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 2 · 5 topics · about 31 minTopics in this domainTopics

Domain 2 · Overview

Overview

Up next: Implement agentic AI solutions and tool integrations. · 11 steps + check · 6 min

Domain 2 · Topic 1 of 5

Implement agentic AI solutions and tool integrations.

Step 1 of 11

Think first What does an agent need beyond a model to remember, follow rules, use tools and bring people in?

Why it matters: Questions describe an agent's memory, safety, tool or review need and ask which AgentCore or Bedrock feature or setting meets it.

An agent pairs a model with supporting services. AgentCore Memory stores raw events, and Automated Reasoning translates a source document into formal logic rules. Semantic search on a gateway helps agents find tools, and human workers can review model responses.

Step 2 of 11

Term Meaning
Memory strategy A long-term memory setting such as SEMANTIC, SUMMARIZATION, USER_PREFERENCE or EPISODIC.
Short-term memory The raw events AgentCore Memory stores; all it keeps when no strategy is defined.
Automated Reasoning policy Formal logic rules plus a schema of variables and types, built from a source document.
Curated query A natural language question paired with its SQL, used as an example for SQL generation.

Step 3 of 11

With no strategy, AgentCore Memory stores only short-term raw events. Add a long-term strategy, such as SEMANTIC or EPISODIC, to keep more than raw events. Each kind of memory has its own retention rule.

Retention for raw events and long-term records

Feature Raw events Long-term records
Retention range 3 to 365 days in the CLI wizard recordExpiryDurationDays, at least 31 days
If you set nothing 30 days, the CLI wizard default Records do not expire
Where you set it Entered in the CLI Memory wizard In each strategy's recordExpirySpecification

Exam trap Raising eventExpiryDuration later does not extend stored events. It applies at write time, so only new events change, and expired events cannot be recovered.

Step 4 of 11

Front Memory with a gateway to add OAuth and fine-grained access control. That enforces per-user isolation at the infrastructure layer without handing AWS credentials to end users. Data is encrypted with a service managed key even without a customer managed key. Metrics go to the Bedrock-AgentCore CloudWatch namespace.

Step 5 of 11

Ingestion logs land in a log group in your own account. This happens when log delivery is enabled. Use those application logs to find errors in the asynchronous ingestion process.

Step 6 of 11

Automated Reasoning turns a source document into formal logic rules. Source documents are limited to 5 MB and 50,000 characters. The fidelity report helps you review rules with the experts who wrote the document. A policy allows 2 build workflows, only 1 in progress at once.

Exam trap Unexpected IMPOSSIBLE results can come from conflicting rules or from bare assertions. Bare assertions create axioms that make some conditions logically impossible.

Step 7 of 11

Gateway semantic search helps agents pick the right tools. Turn it on with searchType set to SEMANTIC in the gateway's MCP protocol configuration. Remember that gateway latency comes mostly from the tools behind it.

Step 8 of 11

Agents with one knowledge base can use latency-optimized flows. When the optimization conditions are met, the service cuts the LLM calls needed for each request.

Exam trap Overriding the default orchestration prompt template moves the agent to the standard flow, which may add LLM calls and latency.

Step 9 of 11

A query engine, such as Redshift, turns questions into SQL. In CreateKnowledgeBase, set the type to SQL and include sqlKnowledgeBaseConfiguration. Curated queries give the SQL generator worked examples to follow.

Exam trap Inclusions are not additive hints. Once you specify inclusions, every other table and column is ignored.

Step 10 of 11

A human evaluation job compares up to two inference sources. One can be a Bedrock model and the other your own response data. A prompt leaves circulation once enough workers review it. Outside the console, the flow definition's AwsManagedHumanLoopRequestSource must be AWS/Bedrock/Evaluation.

Step 11 of 11

Check

Check: Implement agentic AI solutions and tool integrations.

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

Loading the cards and questions…

Up next: Implement model deployment strategies. · 11 steps + check · 6 min

Domain 2 · Topic 2 of 5

Implement model deployment strategies.

Step 1 of 11

Think first How do you deploy a large language model so it is fast enough, scales with demand and does not waste expensive hardware?

Why it matters: Questions describe an FM workload's latency, scale or cost need and ask which deployment target, serving setting or scaling option fits.

LLM deployments must balance speed, scale and hardware cost. Good deployments choose the right host, share hardware, reuse cached work and scale on the right signals, down to zero when idle.

Step 2 of 11

Term Meaning
Inference component A SageMaker AI hosting unit whose copies can scale down to zero to free room for others.
KV cache Stored attention keys and values, kept to optimize inference latency.
Multi-Instance GPU (MIG) GPU partitioning that runs several inference workloads on a single GPU.
Dynamic batching A DJL Serving feature that groups requests to increase throughput.

Step 3 of 11

Customized Nova models deploy to Bedrock; open weight models to SageMaker AI. Keep the S3 bucket with model artifacts in the same Region as the model. Inference Recommender suggests instance types, and popular JumpStart LLMs come pre-benchmarked for cost or performance.

Step 4 of 11

A Single Model Endpoint hosts one model per variant, without components. With inference components, any copy can scale to zero, freeing room for another. In the console, a component needs at least 128 MB of memory. Timeout settings cap model download and container startup time.

Step 5 of 11

DJL Serving runs models on CPUs, GPUs and AWS Inferentia. In Python mode, set only option.model_id in serving.properties. By default, it sizes the worker count from the available hardware. Set required_memory_mb and reserved_memory_mb for each model to control memory.

Step 6 of 11

Max total tokens is input tokens plus generated output. You can also set Max input token length for each request and Max concurrent requests the model handles at once.

Exam trap Max total tokens is not an output limit alone. A long prompt uses up part of the same budget.

Step 7 of 11

HyperPod deploys through kubectl, the Python SDK, Studio or its CLI. To cut cold starts, cache weights on host-local NVMe and pre-pull the container image with modelCacheConfig. A prioritized list of instance types gives automatic fallback when capacity runs short. Observability tracks time-to-first-token, latency and GPU use.

Step 8 of 11

HyperPod's KV cache has an L1 tier in CPU memory and an L2 tier in Redis. L1 gives low-latency local reuse; L2 shares cache across nodes. Routing then steers requests toward cached work.

HyperPod cache-aware routing strategies

Strategy Sends a request to Based on
prefixaware The instance that handled the same prompt prefix Prompt prefix match
kvaware The instance whose KV cache hit rate is highest KV cache hit rate

Exam trap KV cache data is stored unencrypted at rest. With managed tiered storage as L2, deployments in one cluster share cache with no isolation.

Step 9 of 11

By default, autoScalingSpec keeps between 1 and 5 replicas. CPU and memory triggers can reach zero only alongside another scaler, such as SQS or Prometheus.

Key autoScalingSpec settings

Setting Default Note
minReplicaCount 1 Must be 0 or more
maxReplicaCount 5 Must be at least minReplicaCount
cooldownPeriod 300 seconds Wait before going from 1 to 0 pods; only with a minimum of 0

Exam trap With minReplicaCount at 0, never activate on a metric the pods produce. Once pods reach zero, that metric stops and the deployment never scales up.

Step 10 of 11

Shadow deployments test a new serving component before production. They run long-lived shadow variants, so any candidate part of the serving stack is proven first.

Step 11 of 11

Check

Check: Implement model deployment strategies.

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

Loading the cards and questions…

Up next: Design and implement enterprise integration architectures. · 10 steps + check · 6 min

Domain 2 · Topic 3 of 5

Design and implement enterprise integration architectures.

Step 1 of 10

Think first How do you plug foundation model capabilities into an existing enterprise without opening security holes between tools, teams and accounts?

Why it matters: Questions describe an enterprise integration or access need and ask which gateway, policy or cross-account setting meets it securely.

Put a managed gateway between agents and enterprise tools, and make every access path explicit. Policies, interceptors and resource-based permissions decide who reaches what, including across AWS accounts.

Step 2 of 10

Term Meaning
Gateway target The link between a gateway and a tool type, such as a Lambda function or REST API service.
Cedar policy The authorization rule language a gateway policy engine uses.
Interceptor Gateway logic that checks requests, for example to allow specific MCP operations.
Resource-based policy A policy attached to a memory that lets principals in another account call it.

Step 3 of 10

An AgentCore gateway gives agents one MCP entry point to tools. It is a managed service: it takes care of authentication and calls your endpoints as tools. A connected agent can call those tools and use a Bedrock model to answer. Each new gateway gets a workload identity automatically.

Step 4 of 10

Targets connect a gateway to Lambda functions and REST API services. Integration provider templates are added as targets in the console, and you host the server yourself. Pass a path's {variable} in the JSON RPC request's params field. The Bedrock Runtime target authenticates with the gateway service role.

Exam trap A template target does not expose every provider API. AgentCore supports only a subset of the APIs the provider offers.

Step 5 of 10

Semantic search can be enabled only when the gateway is created. Without a customer-managed KMS key, AWS encrypts the gateway with an AWS-managed key. A JWT authorizer needs your identity provider's discovery URL and the allowed client IDs.

Exam trap An explicit gateway service role ARN is not created for you. It must name a role that already exists.

Step 6 of 10

Policy engines apply Cedar policies in log-only or enforcing mode. For IAM-authenticated gateways, match patterns on principal.id to limit accounts, roles or users. Interceptors check permissions for specific MCP operations, like tools/list and tools/call. REQUEST interceptors run before the gateway calls the target.

Exam trap With the AgentCore CLI, order matters. Run agentcore add policy-engine before agentcore add gateway so the CLI can resolve the engine ARN.

Step 7 of 10

Attach a resource-based policy to the memory with PutResourcePolicy. The caller passes the full memory ARN as the memory-id. Both the resource policy and the caller's identity policy must allow the call, with no explicit deny. Grant specific roles rather than the account root, and audit with CloudTrail.

Exam trap Deleting the resource-based policy ends cross-account access. Any later cross-account request returns an AccessDeniedException.

Step 8 of 10

The bucket owner's account grants the import execution role access. It does so with a bucket policy. If you submit the import job from the console, also edit its default import execution role so aws:ResourceAccount names the bucket owner's account ID.

Setup for cross-account custom model import

Step Done in Purpose
Bucket policy Bucket owner's account Grants the import execution role access
KMS key policy, for a custom key Bucket owner's account Lets the import execution role decrypt objects
Edit the console's default role User's account Set aws:ResourceAccount to the bucket owner's account ID

Step 9 of 10

SageMaker Pipelines orchestrates and automates ML development. You pay only for the Studio environment and the jobs Pipelines runs, such as training and processing.

Step 10 of 10

Check

Check: Design and implement enterprise integration architectures.

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

Loading the cards and questions…

Up next: Implement FM API integrations. · 11 steps + check · 6 min

Domain 2 · Topic 4 of 5

Implement FM API integrations.

Step 1 of 11

Think first How should an application call, route and recover foundation model requests so users get fast and reliable answers?

Why it matters: Questions describe an FM integration's latency, routing or reliability need and ask which endpoint, routing strategy or runtime practice fits.

Every model call passes through a hosting choice, a routing decision and a runtime. Pick real-time endpoints for interactive work, route requests toward cached work or across more Regions, and write agent code that survives snapshot restores.

Step 2 of 11

Term Meaning
Inference component A unit on a SageMaker AI endpoint holding one model and that model's resource needs.
Cross-Region inference profile A global or geographic profile, such as US or EU, that routes Bedrock requests across more Regions.
Snapshot Captured startup state that AgentCore Runtime V2 restores to start each agent instance.
Aggregation mode The gateway mode set by protocolType MCP, which allows only MCP targets.
LMCache The cache layer for inference; if it fails to initialize, the system recomputes instead of using the cache.

Step 3 of 11

Real-time inference suits interactive, low-latency workloads. Manage single-model endpoints with the AWS CLI, Boto3, Studio or the SageMaker Python SDK. ModelBuilder's deploy method can create a real-time HTTPS endpoint. The endpoint is ready once EndpointStatus shows InService.

Step 4 of 11

An endpoint can host several inference components, each with one model. After deployment, call a component's model directly with InvokeEndpoint. The Maximum instance count setting caps how far the endpoint scales up when traffic grows.

Step 5 of 11

HyperPod intelligent routing defaults to prefixaware. The L1 KV cache uses CPU memory for fast local reuse, while L2 uses Redis or managed tiered storage for sharing across nodes.

HyperPod routing strategies compared

Strategy Routes by Note
prefixaware Same prompt prefix to the same instance The default when none is set
session Same user session to the same instance Keeps a session on one instance
kvaware Instance whose KV cache hit rate is highest Needs invocationEndpoint set to /completions

Exam trap Watch for fallbacks. Broken KV-aware routing falls back to round-robin, and a failed LMCache start runs in degraded mode that recomputes.

Step 6 of 11

Cross-Region profiles spread Bedrock requests across more Regions. Use global or geographic profiles when processing need not stay in one Region or geography. The exam guide also lists Step Functions for content-based routing to specialized FMs.

Exam trap An inference profile does not keep a retired model alive. After its End-of-Life date, the model is no longer available through the profile.

Step 7 of 11

AgentCore Runtime V2 starts agents by restoring a snapshot. Startup work is captured once and shared by every restored instance. Each agent version gets one snapshot until you create or update the agent. Initialization must finish within 120 seconds, or the health check fails.

Step 8 of 11

Restored instances share startup state, so avoid per-instance assumptions. Snapshot-safe cryptographic library builds do not reseed after a restore. In a build warmup hook, the memory and disk calls share 120 seconds, with memory first.

Exam trap Every restored instance reports hostname localhost and PID 1, so neither works as an instance ID. Refresh credentials when they expire, since startup credentials can lapse first.

Step 9 of 11

Bedrock Agents works with every Bedrock model, but only some are optimized. For a model without native tool use, define tools in the prompt and write a custom parser. No more models will be optimized, and AWS recommends evaluating AgentCore for new agents.

Step 10 of 11

Setting protocolType to MCP limits a gateway to MCP targets. Leave the field out to allow both MCP and HTTP targets. With AUTHENTICATE_ONLY, the gateway checks the SigV4 signature but makes no authorization decision.

Step 11 of 11

Check

Check: Implement FM API integrations.

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

Loading the cards and questions…

Up next: Implement application integration patterns and development tools. · 11 steps + check · 6 min

Domain 2 · Topic 5 of 5

Implement application integration patterns and development tools.

Step 1 of 11

Think first What makes a GenAI application easy to build, connect and troubleshoot when calls to models and tools start failing?

Why it matters: Questions describe an app's interface, setup or error and ask which configuration, API or troubleshooting step solves it.

Build on a small set of required settings, then read errors carefully. A 429 and a 503 have different causes. Gateways offer switches for debugging, policy testing and access control.

Step 2 of 11

Term Meaning
ThrottlingException A Bedrock error with HTTP 429: the request went over the account quotas.
Idle connection timeout The fixed 350-second limit after which NAT gateways, VPC endpoints and NLBs drop idle connections.
Agent resource role ARN of a service role allowed to call the agent's API operations.
AUTHENTICATE_ONLY A gateway authorizer type that verifies SigV4 signatures but leaves authorization to others.

Step 3 of 11

A 429 points to quotas; a 503 does not. For ResourceNotFound, call ListFoundationModels to see which models you can use. For an overloaded_error, retry with backoff and jitter, and honor any Retry-After header.

Common Amazon Bedrock errors

Error HTTP code Cause
ThrottlingException 429 The request exceeded the account quotas
ServiceUnavailable 503 Not related to account quotas or rate limits
FTUFormNotFilled 404 Model use case details were never submitted

Step 4 of 11

InvokeWebSearch rejects a searchQuery over 200 characters. It also rejects maxResults outside 1 to 25. On a 429, retry with exponential backoff or request a higher quota. On a 503 with retryAfterSeconds, wait that many seconds first.

Exam trap Advanced Prompt Optimization templates need double curly brackets. Writing {variable} instead of {{variable}} returns a ValidationException.

Step 5 of 11

NAT gateways, VPC endpoints and NLBs end idle connections at 350 seconds. To keep long calls alive, enable TCP keep-alive in the SDK. In boto3, tcp_keepalive in the Config object defaults to False, so set it to True.

Exam trap SDK keep-alive alone has no effect while Linux keeps tcp_keepalive_time at its 7200-second default, which outlasts the idle timeout.

Step 6 of 11

Preparing an agent takes a resource role, a model and instructions. With no action groups or knowledge bases, it answers from the FM, instructions and base templates. For cross-Region inference, put an inference profile ID in foundationModel. By default, history ends after 30 idle minutes.

Exam trap The service role Bedrock creates for you lacks permissions for features that are still in preview.

Step 7 of 11

CreateGateway needs at least name, roleArn and authorizerType. CUSTOM_JWT also needs an authorizerConfiguration. AUTHENTICATE_ONLY checks the caller's SigV4 signature and leaves authorization to the target or a policy engine. Setting protocolType to MCP allows only MCP targets.

Step 8 of 11

Set exceptionLevel to DEBUG to get debugging messages. The AgentCore CLI sets it to NONE by default; pass --exception-level debug at creation. Run a policy engine in LOG_ONLY to test policies before switching to ENFORCE.

Exam trap Interceptors run on every request. An explicit gateway service role must allow lambda:InvokeFunction on the interceptor function.

Step 9 of 11

Console-created flows start with a single prompt node. CreateSession returns a session ID and ARN for recording events with CreateInvocation and PutInvocationStep. The exam guide lists Amplify UI components, OpenAPI specifications and Prompt Flows for accessible interfaces.

Step 10 of 11

Step Functions runs multi-step ML workflows on SageMaker AI infrastructure. You write the workflow in Python and skip provisioning resources separately. Gateways can also find tools by meaning once searchType is SEMANTIC.

Step 11 of 11

Check

Check: Implement application integration patterns and development tools.

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

Loading the cards and questions…

Domain 2 · after the last topic

Domain 2 review

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

Mixed quiz

Take the Domain 2 quiz

20 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 2 flashcards

9 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
Next domain · 20% of the examAI Safety, Security, and Governance4 topics

Report a problem

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

What is the problem?

Optional.