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.
Think first How do you cut foundation model costs without giving up answer quality or response speed?
Why it matters: Questions describe a workload's traffic and budget and ask which pricing, hosting or caching choice lowers its cost.
Cost falls when you pay less per token, send fewer tokens and keep hardware busy. Pick the pricing mode that fits the traffic, trim tokens per request, and share or cache work so fewer model calls run.
Reported, thanks
Step 2 of 8
Term
Meaning
Batch inference
Predictions on a batch of observations, for large datasets or when no immediate response is needed.
SageMaker AI Savings Plan
A plan for consistent SageMaker AI usage that can cut costs by up to 64%.
Multi-model endpoint
One endpoint whose instance serves many models and caches the frequently used ones.
KV caching
HyperPod Inference caching with an L1 tier in CPU memory and an L2 tier in Redis or tiered storage.
Effort parameter
A Claude Opus 4.5 setting for how liberally tokens are spent; it defaults to high.
Reported, thanks
Step 3 of 8
Batch suits work that can wait; the Reserved Tier suits steady high load. Cross-Region inference with global profiles also lowers token costs for some models.
Two discounted Bedrock options compared
Feature
Batch inference
Reserved Tier
Saving
50% versus on-demand
30-50% with a commitment
Best fit
Large datasets with no need for an immediate answer
Steady high-volume load
Catch
Jobs time out after 24 hours by default, up to 168
Requires a commitment
Exam trap Long Claude Sonnet 4 requests are not billed in two parts. Above 200K input tokens, the long context rate covers the entire request.
Reported, thanks
Step 4 of 8
Track tokens per request and trim prompts first. The token-efficient-tools-2025-02-19 beta header for tool use works with Claude 3.7 Sonnet and Claude 4+. For Claude Opus 4.5, the effort parameter defaults to high. Setting medium or low makes token use more conservative.
Reported, thanks
Step 5 of 8
Send each query to a model tier that matches its complexity. Measure the price-to-performance ratio and weigh inference cost against response quality. Inference Recommender compares instances so you can see model performance and cost together.
Reported, thanks
Step 6 of 8
Multi-model and multi-container endpoints share one instance. Frequently used models stay cached in memory and on disk until space runs out. GPU-backed multi-model endpoints need the NVIDIA Triton Inference Server. Run them on more than one instance for availability and cache hits.
Exam trap Model caching does not always pay off. When many models are each called once or rarely, setting ModelCacheSetting to Disabled allows higher TPS.
Reported, thanks
Step 7 of 8
Inference optimization techniques depend on the hardware. Most GPU instances support quantization and speculative decoding. Speculative decoding jobs add no cost, while quantization and compilation jobs bill for the instance. Concurrency runs several model copies on one device, and a stopping condition caps job cost.
Exam trap Compilation is not the GPU option here. It is the technique for custom silicon such as AWS Inferentia instances.
Reported, thanks
Step 8 of 8
Bedrock batch inference saves 50% versus on-demand when you can wait for results.
The Reserved Tier suits steady high-volume load, saving 30-50% with a commitment.
Speculative decoding jobs cost nothing extra; quantization and compilation jobs bill for the instance.
HyperPod intelligent routing defaults to prefixaware and supports only vLLM-based containers.
Think first When a generative AI app is slow or throttled, which levers improve latency and throughput, and what does each one cost?
Why it matters: Questions describe a latency, throughput or retrieval problem and ask which Bedrock or SageMaker setting fixes it.
Performance work balances latency, throughput and cost. Latency-optimized models suit time-sensitive apps, service tiers trade cost against throttling risk, and reranking makes retrieved documents more relevant.
Reported, thanks
Step 2 of 11
Term
Meaning
Latency-optimized inference
A preview Bedrock mode you request by setting the latency parameter to optimized.
Model Unit (MU)
A unit defined by the input tokens it can process across all requests in one minute.
Service tier
An on-demand class, Flex, Standard or Priority, with its own cost, limits and throttling risk.
Reranking model
A model that reorders retrieved documents by relevance during Retrieve or RetrieveAndGenerate.
Reported, thanks
Step 3 of 11
Set the latency parameter to optimized; otherwise requests run standard. This feature is in preview and may change. For Llama 3.1 405B it supports up to 11K total tokens per request. Larger requests fall back to standard mode. Its CloudWatch metrics appear under model-id+latency-optimized.
Exam trap Reaching the latency optimization quota does not fail the request. Bedrock tries to serve it at standard latency and charges standard rates.
Reported, thanks
Step 4 of 11
Start on Standard; move to Priority only when throttling hurts users. Watch CloudWatch throttle metrics to decide. Dev and test environments can drop down to Flex.
Flex, Standard and Priority on-demand tiers
Feature
Flex
Standard
Priority
Requests per minute
10-100
100-500
500-1000+
Tokens per minute
5K-50K
50K-150K
150K-300K+
Throttling risk
High
Medium
Low
Trade-off
Lowest cost per token, no SLA
The starting point for most workloads
Highest on-demand cost, enhanced SLA
Reported, thanks
Step 5 of 11
Move to the Reserved tier once steady load tops 40% of on-demand costs. Begin with a 1-month commitment. The minimum purchase is 1 model unit. Within the capacity you buy, there is no RPM throttling.
Reported, thanks
Step 6 of 11
Provisioned Throughput is billed hourly for each one you purchase. With a 6-month commitment, you cannot delete it until the six-month commitment term is over.
Exam trap A customized model does not run on on-demand capacity. You must purchase Provisioned Throughput before you can use it.
Reported, thanks
Step 7 of 11
Batch jobs wait behind on-demand traffic. On-demand requests take priority, so batch processing time depends on spare capacity. Completion is not guaranteed. A batch job that uses a VPC must be submitted through the API, not the console.
Reported, thanks
Step 8 of 11
Rerank, decompose and tune retrieval to feed better context. A reranking model reorders documents returned by Retrieve or RetrieveAndGenerate. AgenticRetrieveStream splits complex queries into sub-queries and retrieves iteratively. The Retrieve operation lets you decouple and customize RAG steps. Index optimization, query preprocessing and hybrid search with custom scoring also help.
Reported, thanks
Step 9 of 11
An agent with one knowledge base can make fewer LLM calls. When the single knowledge base conditions are met, Bedrock reduces the LLM calls needed per request.
Exam trap Overriding the default orchestration prompt template has a cost. The agent switches to the standard flow, which may add LLM calls and latency.
Reported, thanks
Step 10 of 11
Tune parameters per use case and right-size the hosting. Adjust temperature and top-k or top-p, and A/B test each change. Check CloudWatch CPU and GPU use to find idle endpoints, then combine their models. SageMaker Neo can optimize models for fewer or smaller instances. Asynchronous inference runs a fixed instance count and can scale to zero.
Reported, thanks
Step 11 of 11
Latency-optimized inference is a preview you opt into per request; standard is the default.
Priority has the lowest throttling risk and highest cost; Flex has the lowest cost and no SLA.
Custom models need Provisioned Throughput, which is billed hourly.
Pre-computation, parallel requests and response streaming ease latency-cost trade-offs.
Profile prompt-completion patterns and optimize vector queries to speed up whole workflows.
Think first How would you find out why an FM app or agent is slow, failing or drifting, from tool calls down to GPU use?
Why it matters: Questions describe a monitoring or troubleshooting need and ask which metric, log or setting reveals the problem.
GenAI monitoring tracks FM-specific signals, such as token usage and hallucination rates, alongside inference framework metrics. AgentCore observability covers runtime agents plus memory, gateway and built-in tools. SageMaker AI detailed observability covers endpoints, and Model Invocation Logs support detailed request and response analysis.
Reported, thanks
Step 2 of 11
Term
Meaning
Transaction Search
A CloudWatch feature you enable once before AgentCore metrics, spans and traces appear.
aws/spans log group
The CloudWatch Logs group that holds full span data for AgentCore built-in tools.
Detailed observability
A SageMaker AI endpoint feature that publishes OTel metrics, including GPU and framework metrics, to CloudWatch.
Golden dataset
A dataset used in FM-specific troubleshooting to detect hallucinations in model output.
TTFT
Time to first token, one of the native vLLM and SGLang metrics.
Reported, thanks
Step 3 of 11
Enable CloudWatch Transaction Search once to see AgentCore data. Agents in the AgentCore runtime get session metrics automatically. Memory, gateway and built-in tools can be monitored even when agents run elsewhere. Metrics are on by default; signals marked with an asterisk need explicit enablement. Logs can go to CloudWatch Logs, Amazon S3 or Firehose.
Exam trap Policy data has no tab of its own. It appears under the AgentCore Gateway tab in CloudWatch gen AI observability.
Reported, thanks
Step 4 of 11
Tool metrics show latency, throttling and usage for each tool. Latency runs from request receipt until the first response token. Throttles counts requests over transactions per second (TPS) or quota limits, which return ThrottlingException with HTTP 429. Code interpreter and browser metrics are batched each minute. Usage data may lag by up to 60 minutes.
Reported, thanks
Step 5 of 11
Use the Browser tool for specific page actions, not general search. To avoid CAPTCHA blocks, run general web search through a non-browser MCP tool such as Tavily. Browser sessions time out after 900 seconds by default, set by sessionTimeoutSeconds.
Exam trap Session Replay and Web Bot Auth fail in a context made with browser.new_context(). Their extensions work only in the default browser context.
Reported, thanks
Step 6 of 11
Detailed observability sends OpenTelemetry (OTel) endpoint metrics. On SageMaker AI endpoints, it exposes native vLLM and SGLang metrics, such as TTFT, KV cache utilization and queue depth, with no custom instrumentation. GPU metrics show which inference component uses each GPU. It defaults to on for endpoint configurations created after June 17, 2026.
Exam trap These are not Prometheus metrics. They are OTel metrics sent to CloudWatch over OTLP, and PromQL is only the query language.
Reported, thanks
Step 7 of 11
Set the scrape rate and enable OTel enrichment to query metrics.MetricPublishFrequencyInSeconds defaults to 60 and accepts 10, 30, 60, 120, 180, 240 or 300. OTel enrichment makes metrics queryable with PromQL in CloudWatch Query Studio and Amazon Managed Grafana. A custom container exposes Prometheus-format metrics on port 8080, at /metrics by default.
Exam trap Detailed observability does not replace enhanced metrics. EnableDetailedObservability and EnableEnhancedMetrics are separate features that can run on the same endpoint.
Reported, thanks
Step 8 of 11
SageMaker AI Insights groups endpoint metrics into three views. The views are Performance, Capacity and Reliability. For Bedrock, an EventBridge rule on aws.bedrock with detail-type Batch Inference Job State Change catches a finished job. Route it to a subscribed SNS topic to get notified.
Reported, thanks
Step 9 of 11
Track tokens, hallucinations and drift, not only errors. CloudWatch can track token usage, prompt effectiveness, hallucination rates and response quality. Model Invocation Logs support detailed request and response analysis. Golden datasets detect hallucinations, output diffing checks consistency, and reasoning path tracing finds logic errors. For vector stores, monitor performance and validate data quality.
Reported, thanks
Step 10 of 11
Custom prompt datasets for human evaluation use JSON Lines. Save the file with the .jsonl extension. A single file may hold no more than 1,000 JSON objects.
Reported, thanks
Step 11 of 11
Enable CloudWatch Transaction Search once before AgentCore metrics, spans and traces appear.
Built-in tool throttling returns ThrottlingException with HTTP 429.
Detailed observability sends OTel metrics over OTLP; PromQL is only the query language.
AgentCore Browser sessions time out after 900 seconds by default.
Golden datasets catch hallucinations, and output diffing checks response consistency.
Each topic's Check tested it on its own; this mixes them.
Mixed quiz
Take the Domain 4 quiz
9 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.
Thank you. It goes straight to the people who write these notes.
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.
Free to start: the study notes and plan, quizzes, flashcards and the first mock exam, no card needed. A free account keeps your place and saves your quiz scores.