Testing, Validation, and Troubleshooting

Study AIP-C01 GenAI evaluation systems, release validation, retrieval quality testing, agent evaluation, troubleshooting, prompt diagnostics, and rollback decisions.

The final AIP-C01 domain tests whether you can prove a GenAI system is ready and then debug it when reality does not match the demo. Strong answers use evaluation datasets, comparison logic, release gates, and structured troubleshooting order.

What AWS is explicitly testing

As of May 11, 2026, the current AWS Documentation exam guide splits this domain into two tasks:

  • Task 5.1: implement evaluation systems for GenAI
  • Task 5.2: troubleshoot GenAI applications

That split is useful on the exam. If the question is about quality metrics, model comparison, RAG evaluation, agent evaluation, A/B tests, canaries, user feedback, automated quality gates, or stakeholder reporting, it belongs in task 5.1. If it is about context overflow, truncation, API errors, prompt confusion, schema failures, retrieval drift, vectorization quality, chunking, or prompt maintenance, it belongs in task 5.2.

Current weight in the exam guide

AWS currently weights this domain at 11% of scored content.

Official task compression

5.1 Evaluation systems asks whether you can measure GenAI quality beyond classic ML metrics. Study 5.1 Evaluations and Release Readiness when the scenario mentions relevance, factual accuracy, consistency, fluency, model comparison, cost-performance, latency-to-quality ratios, business outcomes, human feedback, RAG evaluation, agent task completion, or deployment validation.

5.2 Troubleshooting asks whether you can isolate the failing layer instead of guessing at prompts. Study 5.2 Troubleshooting RAG, Agents, and FM Apps when the scenario mentions context-window overflow, truncation, API integration errors, prompt version drift, retrieval relevance loss, embedding quality, vector search performance, schema validation failures, or prompt observability.

Domain mental model

This domain follows a simple evidence chain:

  1. Define expected behavior. Clarify the target task, acceptable answer, safety constraints, output format, and business outcome.
  2. Evaluate the whole system. Test FM output, retrieved context, prompt assembly, agent/tool path, structured output, latency, and cost.
  3. Gate the release. Use regression tests, quality thresholds, safety checks, canaries, A/B tests, and rollback criteria.
  4. Observe production behavior. Watch prompt versions, context quality, tool calls, API errors, metrics, logs, and quality drift.
  5. Troubleshoot by failing layer. Isolate expectation, retrieval, prompt assembly, model route, tools, and release history before redesigning.

This domain is small by weight but important for professional-level answer quality. AIP-C01 expects evidence across the whole GenAI system, not a subjective judgment that one prompt or model “looked better.”

Troubleshooting decision stack

Use this order when output quality, reliability, or release behavior regresses.

  1. Reproduce with a known case. Use a representative prompt, expected output, source document set, tool workflow, or golden dataset instead of debugging one anecdote.
  2. Separate retrieval from generation. Check source freshness, chunking, embeddings, metadata filters, context assembly, and retrieved evidence before changing model settings.
  3. Inspect the prompt contract. Compare template versions, variables, instruction hierarchy, output schema, truncation behavior, and assembled request payloads.
  4. Check integration and tools. Review API errors, retries, rate limits, tool inputs, tool outputs, state handling, task completion, and downstream system responses.
  5. Use release evidence. Compare canary/A-B results, model versions, prompt versions, quality metrics, cost, latency, safety signals, and rollback criteria.

Work this domain in order

Start with 5.1 Evaluations and Release Readiness to compare model, prompt, RAG, and agent alternatives with repeatable criteria before release.

Then move to 5.2 Troubleshooting RAG, Agents, and FM Apps to debug content handling, prompts, retrieval, vectorization, schema validation, observability, API calls, and tool execution in the right order.

Fast routing inside this chapter

  • Go to 5.1 Evaluations and Release Readiness when the scenario is about model evaluation, prompt comparison, RAG evaluation, agent performance, human feedback, annotation workflows, canary testing, A/B testing, quality gates, or deployment validation.
  • Go to 5.2 Troubleshooting RAG, Agents, and FM Apps when the scenario is about context overflow, truncation, API errors, prompt confusion, prompt version drift, schema failures, retrieval quality loss, embedding diagnostics, vector search performance, or prompt observability.

High-yield decision rules

  • If a new model or prompt seems better, use the same test set, rubric, metrics, cost/latency comparison, and release gate instead of relying on demos or preference.
  • If RAG answer quality changed, check retrieval relevance, source freshness, chunking, embeddings, metadata filters, and context fit before tuning only model parameters.
  • If an agent workflow fails, inspect tool-call logs, task completion rate, tool effectiveness, approvals, state, and downstream API responses before calling it hallucination.
  • If output format is inconsistent, use schema validation, prompt template tests, assembled prompt inspection, and regression checks instead of manually editing prompts until one example works.
  • If a release regresses quality or safety, use canary/A-B results, rollback criteria, evaluation drift, and version comparison instead of shipping globally with no rollback path.
  • If evaluation uses LLM-as-a-judge, calibrate it with representative examples, human review where risk is high, and explicit criteria.

Chapter traps

  • calling an app “validated” because one demo looked good
  • testing only the model and ignoring retrieval or workflow behavior
  • debugging prompt wording before checking logs, data freshness, retrieval quality, and tool execution
  • measuring quality without cost, latency, safety, and business outcome tradeoffs
  • using LLM-as-a-judge without representative tests, calibration, or human review for high-risk outputs

The exam distinction is evidence. Strong answers compare, observe, isolate, and roll back with a defined signal. Weak answers guess at prompts, blame the model first, or ship a new version because it looked better in a small demo.

In this section

Revised on Monday, June 15, 2026