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
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
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)
| Measure | Question |
|---|---|
| Task completion rate | Did it achieve the goal? |
| Tool usage effectiveness | Right tool, right parameters, minimal calls? |
| Reasoning quality | Sound steps in multi-step workflows? |
| Cost and latency | Steps, 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
Central question: When answers go wrong, which part is broken: content, API, prompt or retrieval?
Symptoms and fixes (guide examples; design guidance)
| Symptom | Likely cause | Fix |
|---|---|---|
| Answer ignores the end of a long document | Context window overflow / truncation | Dynamic chunking, summarise, retrieve instead of pasting |
ThrottlingException | Quota exceeded | Backoff with jitter, queue, cross-Region inference, provisioned throughput |
ValidationException | Malformed request, wrong model format, too many tokens | Request validation, Converse API, check limits |
| Inconsistent or wrong format | Prompt ambiguity | Prompt testing frameworks, version comparison, schema validation, structured outputs |
| Irrelevant retrieved chunks | Poor chunking, wrong embeddings, stale index | Embedding quality diagnostics, re-chunk, re-sync, hybrid search, reranking |
| Quality drifts over time | Data or prompt drift | Drift 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
- AIP-C01 Domain 5 — checked Oct 19, 2026
- Bedrock evaluations — checked Oct 19, 2026
- LLM as a judge — checked Oct 19, 2026
- AWS AppConfig — checked Oct 19, 2026
- AgentCore — checked Oct 19, 2026
- Model invocation logging — checked Oct 19, 2026
- AWS X-Ray — checked Oct 19, 2026
- AWS SDK retry behavior — checked Oct 19, 2026
Check your understanding
Score thousands of outputs for helpfulness with reasons?Show answerHide answer
Answer
Bedrock judge-model evaluation.RAG app is wrong but the model is strong. Measure?Show answerHide answer
Answer
Retrieval relevance and context matching.Answers ignore content at the end of long inputs?Show answerHide answer
Answer
Context overflow/truncation: chunk or retrieve.Roll a new prompt to 10% of users first?Show answerHide answer
Answer
Canary / A/B (for example with AppConfig).What does a Bedrock RAG evaluation need?Show answerHide answer
Answer
Prompts plus ground-truth retrieved texts and responses.