Skip to content
AWS Certified Generative AI Developer – Professional (AIP-C01) Exam Prep

Lesson 8 of 8 · 11 min

x
8/8

Domain 5: Testing, Validation, and Troubleshooting

This lesson covers 3 exam topics: Evaluating FM Outputs and Configurations, Evaluating RAG and Agents, Troubleshooting GenAI Applications. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.

1. Evaluating FM Outputs and Configurations

Video lesson: AIP-C01 34/36: Evaluating FM Outputs and Configurations

Central question: How do you know a model, prompt or configuration is good enough, and stays good after changes?

Quality dimensions (5.1.1)

Relevance, factual accuracy, consistency, fluency — beyond traditional ML accuracy.

Systematic evaluation (5.1.2; verified where linked)

  • Amazon Bedrock evaluations: automatic (accuracy, robustness, toxicity), human workers, judge model (LLM-as-a-judge with explanations), and RAG evaluations.
  • A/B testing and canary testing of models and prompts in production (AppConfig experimentation supports A/B and gradual rollouts — verified).
  • Multi-model comparison and cost-performance analysis: token efficiency, latency-to-quality ratio, business outcomes.

User-centred evaluation (5.1.3)

Feedback interfaces, rating systems, annotation workflows.

Quality assurance and deployment validation (5.1.4, 5.1.9)

  • Continuous evaluation, regression tests on outputs, automated quality gates in CI/CD.
  • Synthetic user workflows (for example CloudWatch Synthetics canaries), checks for hallucination rate and semantic drift after updates.

Reporting (5.1.8)

Dashboards and model-comparison visualisations for stakeholders.

Exam traps

  • Judging a new model on a few manual tries.
  • Shipping prompt or model changes without a quality gate.
  • Ignoring cost and latency in evaluation.

2. Evaluating RAG and Agents

Video lesson: AIP-C01 35/36: Evaluating RAG and Agents

Central question: How do you evaluate the retrieval and the agent, not just the final text?

RAG evaluation (5.1.5, 5.1.6; verified where linked)

  • Bedrock RAG evaluations use LLMs to check whether a knowledge base retrieves highly relevant information and generates useful, appropriate responses, against a dataset with ground truth.
  • Retrieval quality tests: relevance scoring, context matching (does the retrieved text contain the answer?), retrieval latency.
  • Combine automated scores (LLM-as-a-judge) with human feedback interfaces.

Agent evaluation (5.1.7)

MeasureQuestion
Task completion rateDid it achieve the goal?
Tool usage effectivenessRight tool, right parameters, minimal calls?
Reasoning qualitySound steps in multi-step workflows?
Cost and latencySteps, tokens, time per task

AWS tooling: AgentCore Evaluations (sessions, traces, spans) and AgentCore Observability; the guide also names Bedrock Agent evaluations (verified).

Exam traps

  • Scoring only the final answer of a RAG app.
  • No ground-truth dataset for retrieval tests.
  • Ignoring tool-call errors in agent evaluation.

3. Troubleshooting GenAI Applications

Video lesson: AIP-C01 36/36: Troubleshooting GenAI Applications

Central question: When answers go wrong, which part is broken: content, API, prompt or retrieval?

Symptoms and fixes (guide examples; design guidance)

SymptomLikely causeFix
Answer ignores the end of a long documentContext window overflow / truncationDynamic chunking, summarise, retrieve instead of pasting
ThrottlingExceptionQuota exceededBackoff with jitter, queue, cross-Region inference, provisioned throughput
ValidationExceptionMalformed request, wrong model format, too many tokensRequest validation, Converse API, check limits
Inconsistent or wrong formatPrompt ambiguityPrompt testing frameworks, version comparison, schema validation, structured outputs
Irrelevant retrieved chunksPoor chunking, wrong embeddings, stale indexEmbedding quality diagnostics, re-chunk, re-sync, hybrid search, reranking
Quality drifts over timeData or prompt driftDrift monitoring, golden sets, systematic prompt refinement

Tools

  • CloudWatch Logs and Logs Insights on model invocation logs to diagnose prompt confusion.
  • AWS X-Ray for prompt observability pipelines across services.
  • Schema validation to catch format inconsistencies.
  • Error logging, request validation and response analysis for API issues.

Exam traps

  • Changing the model when the problem is retrieval.
  • Retrying ValidationException: it won't succeed until the request is fixed.
  • Fixing prompts without version comparison or tests.

References

  1. AIP-C01 Domain 5 — checked Oct 19, 2026
  2. Bedrock evaluations — checked Oct 19, 2026
  3. LLM as a judge — checked Oct 19, 2026
  4. AWS AppConfig — checked Oct 19, 2026
  5. AgentCore — checked Oct 19, 2026
  6. Model invocation logging — checked Oct 19, 2026
  7. AWS X-Ray — checked Oct 19, 2026
  8. AWS SDK retry behavior — checked Oct 19, 2026

Check your understanding

  • Score thousands of outputs for helpfulness with reasons?Show answer

    Answer

    Bedrock judge-model evaluation.
  • RAG app is wrong but the model is strong. Measure?Show answer

    Answer

    Retrieval relevance and context matching.
  • Answers ignore content at the end of long inputs?Show answer

    Answer

    Context overflow/truncation: chunk or retrieve.
  • Roll a new prompt to 10% of users first?Show answer

    Answer

    Canary / A/B (for example with AppConfig).
  • What does a Bedrock RAG evaluation need?Show answer

    Answer

    Prompts plus ground-truth retrieved texts and responses.

Next step: take a AIP-C01 practice exam

You have reached the end of the course. Take practice exam 1 without notes, check your score by domain, then go back to the lessons for your weakest domain before the next exam. There are 10 exams with 750 questions in all, and every answer is explained.

Previous

Progress is saved in this browser.

Finish Course