MockCertMockCert
Menu

Test yourself in exam conditions

A full AWS Certified Generative AI Developer - Professional mock exam: 75 questions in 180 minutes, scored against the real exam's pass mark. Your first one is free.

Start a free mock exam
Domain 5 · 2 topics · about 14 minTopics in this domainTopics

Domain 5 · Overview

Overview

Up next: Implement evaluation systems for GenAI. · 10 steps + check · 7 min

Domain 5 · Topic 1 of 2

Implement evaluation systems for GenAI.

Step 1 of 10

Think first How do you show that a model, a RAG pipeline or an agent is good enough, and that it stays good after each change?

Why it matters: Questions describe what needs judging, a model, retrieval or an agent, and ask which evaluation type, metric or setting fits.

GenAI evaluation judges faithfulness, context relevance, coherence and refusals, often with a model as the judge. Bedrock runs evaluation jobs for models and for RAG pipelines, which retrieve texts and then generate a response from them. AgentCore scores live agent sessions and A/B tests.

Step 2 of 10

Term Meaning
Evaluation task type The task a Bedrock evaluation job asks the model to do; each job has exactly one.
Ground truth A reference response in the prompt dataset; some metrics need it, and human raters never score it.
Faithfulness A metric for how well responses avoid hallucination compared with the retrieved texts.
Online evaluation An AgentCore configuration that keeps scoring an agent from live traffic.
Session stickiness Gateway behavior that keeps in-flight sessions on their assigned target during an A/B test.

Step 3 of 10

Each automatic job needs a task type, which brings metrics and datasets. You choose only one task type per job. Evaluate Bedrock models, or other models by putting their responses in the prompt dataset.

Accuracy in two automatic task types

Feature Question and answer Text summarization
Built-in datasets BoolQ, NaturalQuestions, TriviaQA Gigaword
Accuracy metric NLP-F1 BERTScore

Exam trap When you bring your own responses, their name is not free text. It must match the modelIdentifier parameter in the prompt dataset.

Step 4 of 10

An evaluator model scores responses on built-in or custom metrics. Pick at least one built-in metric for the evaluator. When the model under test is a Bedrock model, both models must be in the same Region. These jobs need no CORS configuration. Logical coherence looks for gaps and contradictions; Refusal spots declined requests.

Exam trap Correctness does not ignore your reference answer. When you supply ground truth, the evaluator model considers it while scoring.

Step 5 of 10

A RAG job is either retrieve only or retrieve and generate. Context coverage needs ground truth in the prompt dataset. Retrieve and generate jobs can also score citations with Builtin.CitationCoverage and Builtin.CitationPrecision. The IAM policy must allow the evaluator model and any Bedrock response generator.

Three RAG evaluation metrics compared

Feature Context relevance Context coverage Faithfulness
Metric name Builtin.ContextRelevance Builtin.ContextCoverage Builtin.Faithfulness
What it measures How relevant retrieved texts are to the question How much retrieved texts cover the ground truth How well responses avoid hallucination

Exam trap For your own RAG responses, the name you enter must match knowledgeBaseIdentifier, not modelIdentifier.

Step 6 of 10

Human jobs compare up to two response providers. The two can be different types, such as a Bedrock model and your own responses. A custom prompt dataset holds at most 1,000 prompts. The task type does not steer responses, so every instruction goes in the prompts. Ground truth appears as a reference and is never rated.

Exam trap Outside the console, a human job needs a SageMaker AI flow definition ARN. Its AwsManagedHumanLoopRequestSource must be AWS/Bedrock/Evaluation.

Step 7 of 10

AgentCore online evaluation scores live sessions continuously. Use up to 25 evaluators. Sampling defaults to 10% of sessions. Setting enableOnCreate to false starts the configuration as DISABLED. It reads aws/spans automatically, but you must list the event log group.

Exam trap Creating a configuration as ENABLED has a side effect. The custom evaluators you selected are locked automatically.

Step 8 of 10

Bedrock Agents publish metrics in the AWS/Bedrock/Agents namespace. TTFT, the time-to-first-token metric, is emitted only when streaming is enabled for InvokeAgent or InvokeInlineAgent. Judge agents on task completion rates, tool usage effectiveness and reasoning quality across multi-step workflows.

Step 9 of 10

Keep quality steady with continuous evaluation and regression tests. Add automated quality gates to deployments. Before an FM update, run synthetic user workflows and check hallucination rates and semantic drift. Feedback interfaces, rating systems and annotation workflows bring in the user's view.

Step 10 of 10

Check

Check: Implement evaluation systems for GenAI.

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Up next: Troubleshoot GenAI applications. · 11 steps + check · 6 min

Domain 5 · Topic 2 of 2

Troubleshoot GenAI applications.

Step 1 of 11

Think first When a GenAI app returns errors, drops connections or gives weak answers, how do you find the cause and fix it?

Why it matters: Questions describe an error code, a failed call or a weak answer and ask for its cause or the right fix.

Troubleshooting sorts problems into layers: the API call, the network, the prompt and retrieval. Error codes point to quotas, permissions or capacity, while prompt and retrieval problems show up as weak or invented answers.

Step 2 of 11

Term Meaning
ThrottlingException HTTP 429: the request exceeded your account quotas for Amazon Bedrock.
Prompt variant An alternative prompt configuration, such as a different message, model or inference settings.
Prompt variable A placeholder in a managed prompt, written with double curly brackets as {{variable}}.
Reranking model A model that reorders retrieved documents by relevance in Retrieve or RetrieveAndGenerate.

Step 3 of 11

The HTTP status code tells you what kind of failure it is. An overloaded_error returns 529 for a transient capacity problem. If it carries a Retry-After header, wait that long before retrying.

Three Bedrock errors and their causes

Feature AccessDeniedException ThrottlingException ServiceUnavailable
HTTP status 403 429 503
Cause Not enough permissions for the action Account quotas exceeded High demand or temporary capacity limits

Exam trap A 503 is not a quota problem. Breaching account quotas or rate limits returns a 429 ThrottlingException instead.

Step 4 of 11

Idle connections through NAT or VPC endpoints drop after 350 seconds. NAT Gateways, interface VPC endpoints and Network Load Balancers drop idle TCP connections without telling the client. Turn on TCP keep-alive by setting tcp_keepalive to True in the boto3 Config. It defaults to False.

Step 5 of 11

Some models expect specific markers in the prompt. Claude prompts sent through the API must contain \n\nHuman: and \n\nAssistant:. Wrap Claude few-shot demonstrations in example tags. For Titan models, ending the prompt with \n helps performance.

Exam trap Models called through the API do not remember earlier requests. Include the previous interaction in the current prompt to keep context.

Step 6 of 11

Refine the prompt, add RAG, or try a different model. A default output such as "I don't know" can help prevent plausible-sounding guesses when the model has low confidence. The maximum new tokens setting caps output length. For incomplete answers, check context window overflow, chunking and truncation errors.

Step 7 of 11

Prompt variables need double curly brackets. Writing {variable} instead of {{variable}} raises a ValidationException. To run a managed prompt, pass its ARN as modelId and its values in promptVariables. Messages you add in Converse come after the prompt's own messages.

Exam trap A Converse call with a managed prompt cannot override its settings. It cannot include inferenceConfig, system, toolConfig or additionalModelRequestFields.

Step 8 of 11

Compare variants, then save a version for production. Prompt management lets you test variants and save versions as you iterate. Create version makes a snapshot that production can use. Test values for variables are temporary and are not saved. CloudWatch Logs helps diagnose prompt confusion, and X-Ray supports prompt observability pipelines.

Step 9 of 11

Rerank results or split complex queries to retrieve better context. A reranking model reorders documents from Retrieve or RetrieveAndGenerate. AgenticRetrieveStream breaks a complex query into sub-queries and checks whether the results are enough. RetrieveAndGenerate answers with citations to specific chunks. Also check embedding quality and drift.

Step 10 of 11

Agent templates and session settings explain many agent surprises. Advanced prompts let you edit templates and add hand-curated few-shot examples. The post-processing template is off by default. Reusing a sessionId continues a session only until idleSessionTTLInSeconds expires. In AgentCore Evaluation, LogEventMissingException means a span lacks its log event.

Exam trap The AgentCore Evaluation diagnostic assistant queries your CloudWatch log groups to find root causes. If it cannot query them, check credentials, Region and session ID first. The agent must also have run in the last 24 hours.

Step 11 of 11

  • A 429 means account quotas were exceeded; 503 and 529 mean temporary capacity limits.
  • Idle connections through NAT Gateways or VPC endpoints drop after 350 seconds, so enable TCP keep-alive.
  • Managed prompt variables use {{variable}}; single brackets raise a ValidationException.
  • guardrailConfig guards the whole managed prompt; guardContent blocks guard only themselves.
  • A SageMaker model.tar.gz that contains symlinks makes model creation fail.

Sources: Troubleshooting Amazon Bedrock API Error Codes - Amazon Bedrock (opens in a new tab) · Prompt engineering concepts - Amazon Bedrock (opens in a new tab) · Construct and store reusable prompts with Prompt management in Amazon Bedrock - Amazon Bedrock (opens in a new tab) · Troubleshooting - Amazon Bedrock (opens in a new tab) · Retrieving information from data sources using Amazon Bedrock Knowledge Bases - Amazon Bedrock (opens in a new tab) · Design a prompt - Amazon Bedrock (opens in a new tab) · Exam Guide (AIP-C01) AWS Certified Generative AI Developer - Professional (opens in a new tab) · Test a prompt using Prompt management - Amazon Bedrock (opens in a new tab)

Check

Check: Troubleshoot GenAI applications.

Cards to recall, then questions on this topic. About 2 minutes. Nothing is saved without an account.

Loading the cards and questions…

Domain 5 · after the last topic

Domain 5 review

Each topic's Check tested it on its own; this mixes them.

Mixed quiz

Take the Domain 5 quiz

8 questions mixed from every topic in this domain, each answer explained. Mixing topics is harder than one at a time, and it is what the exam does. No account needed; with a free account your answers also build your estimated exam score.

Flashcards

Domain 5 flashcards

4 cards with this domain's key facts. Flip each one and check what you knew. No account needed.

Test yourself in exam conditions

A full AWS Certified Generative AI Developer - Professional mock exam: 75 questions in 180 minutes, scored against the real exam's pass mark. Your first one is free.

Start a free mock exam
All domains studiedTry a timed mock exam

Report a problem

On “”. Tell us what looks wrong; we read every report.

What is the problem?

Optional.