SaveMyCert
Log in
5 of 5 free questions left today·for 10 a day
AIP-C01 · Domain 4

Operational Efficiency and Optimization for GenAI Applications practice questions

Operational Efficiency and Optimization for GenAI Applications is worth 12% of the AIP-C01 exam — the 4th-heaviest of the 5 domains. Token and cost efficiency, caching, throughput and latency tuning, inference parameters, and monitoring and observability for GenAI applications. Official weighting 12%. 6 fully worked examples are further down this page, answers included.

Exam weight
12%
the 4th-heaviest of the 5 domains
Questions
102
across 3 topics
Free, no account
5/day
a free account allows 10 a day
Explanations
Every option
right and wrong

Build a practice session

5 free questions left today.

Domains

How many?

Mode

Ready when you are

10 fresh questions drawn across 1 of 5 domains, in Learn mode.

Review what you missed

Every question you answer incorrectly, and every question you flag while practising, is saved here automatically. Finish a session and you can come back to re-drill just those.

6 sample Operational Efficiency and Optimization for GenAI Applications questions, fully explained

Questions from the AIP-C01 bank mapped to domain 4, with the answer key and the reasoning behind every option. None of them repeat the examples on the main AIP-C01 practice page.

Question 1Operational Efficiency and Optimization for GenAI Applications

A developer's Lambda function calls an Amazon Bedrock model with maxTokens set to 8,000 on every request. Amazon CloudWatch shows that OutputTokenCount averages about 400 per request and has never exceeded 900. During business hours the function receives ThrottlingException errors even though the tokens actually processed each minute stay well below the account's tokens-per-minute quota. The team wants to serve more requests per minute without a quota increase and without raising cost. What should the developer do?

Choose one.

  • a
    Send the requests with the service tier set to priority for faster handling of each call

    Priority costs more per token, and the on-demand quota is shared across the priority, standard and flex tiers, so the reservation problem remains.

  • b
    Lower maxTokens to a value just above the longest responses the function has seen Correct

    Bedrock deducts input tokens plus maxTokens from the quota when each request starts and refunds the unused part later. An 8,000-token reservation for 400-token answers exhausts the minute's quota early; a right-sized maxTokens frees it.

  • c
    Raise the SDK retry count and add exponential backoff with jitter to the model calls

    Backoff smooths retries after throttling but does not change how much quota each request reserves, so throughput stays the same.

  • d
    Purchase Provisioned Throughput sized for the business-hours peak of the function

    Dedicated capacity removes the quota pressure but adds a large fixed cost, which the team ruled out.

The concept

Response limiting and quota: at request start Bedrock deducts total input tokens plus maxTokens from TPM/TPD, then adjusts to actual output when the request finishes.

Why that’s the answer

The symptom is throttling while processed tokens are low, which points to the up-front reservation. Each request reserves input + maxTokens, so a needlessly large maxTokens lets far fewer requests start per minute. Setting maxTokens slightly above the longest observed output keeps responses complete and multiplies the concurrent requests that fit in the same quota at no cost. Priority and Provisioned Throughput cost more; retries don't change the reservation.

How to reason it out
  1. Compare the throttling with the tokens actually processed.
  2. Recall that maxTokens is deducted from the quota when a request starts.
  3. Size maxTokens to observed output with headroom.
  4. Reject options that add cost or only retry.

Exam tip: Oversized maxTokens wastes quota: Bedrock reserves input + maxTokens up front, so size it to real outputs.

AIP-C01 GenAI Cost Optimization: Token Efficiency, Model Selection, Throughput and Caching on Amazon Bedrock — the lesson that teaches this.

Question 2Operational Efficiency and Optimization for GenAI Applications

A company is planning the tokens-per-minute (TPM) quota for a new assistant that uses an Anthropic Claude model on Amazon Bedrock. Load tests at peak show 600 requests per minute, each with an average of 2,000 input tokens and 300 output tokens, and maxTokens set to 400. The model card lists an output-token burndown rate of 5x. Prompt caching is not used. Based on these averages, about how many tokens per minute will peak traffic consume from the TPM quota?

Choose one.

  • a
    About 1.38 million tokens per minute

    This is 600 x (2,000 + 300): the tokens that are billed. Quota consumption counts each output token five times for this model.

  • b
    About 2.1 million tokens per minute Correct

    Final quota usage per request is input + output x burndown = 2,000 + 300 x 5 = 3,500 tokens; 600 requests per minute need about 2.1 million TPM.

  • c
    About 1.44 million tokens per minute

    This is 600 x (2,000 + 400): the initial deduction based on maxTokens, which is adjusted to actual output as each request completes.

  • d
    About 2.4 million tokens per minute

    This is 600 x (2,000 + 400 x 5), which applies the burndown to maxTokens rather than to the output actually generated.

The concept

Capacity planning for token quotas: quota usage per request = InputTokenCount + CacheWriteInputTokenCount + OutputTokenCount x burndown rate; billing counts tokens 1:1.

Why that’s the answer

Bedrock first deducts input + maxTokens, then adjusts during processing and settles at input + output x burndown, returning any unused part. For a model with a 5x output burndown, each request settles at 2,000 + 1,500 = 3,500 quota tokens, so 600 requests need about 2.1 million TPM. The billed figure (1.38 million) and the initial deduction (1.44 million) both understate it; applying the burndown to maxTokens (2.4 million) overstates it.

How to reason it out
  1. Write the settled quota formula: input + cache writes + output x burndown.
  2. Apply it per request: 2,000 + 300 x 5 = 3,500.
  3. Multiply by 600 requests per minute.
  4. Check the distractors against billing and initial-deduction formulas.

Exam tip: Plan TPM with the burndown rate: quota tokens per request = input + output x burndown, not the billed token count.

AIP-C01 GenAI Cost Optimization: Token Efficiency, Model Selection, Throughput and Caching on Amazon Bedrock — the lesson that teaches this.

Question 3Operational Efficiency and Optimization for GenAI Applications

A retailer generates product descriptions with an Amazon Bedrock model. The model writes about 600 words per description, but the web page shows only the first 80 words. Output tokens make up most of the monthly model bill. The developer wants to cut cost while keeping every description complete, without sentences cut off mid-way. Which change meets these requirements?

Choose one.

  • a
    Set maxTokens to the token count of 80 words and keep the current prompt unchanged

    The model still plans a 600-word text, so generation stops at the limit mid-sentence, breaking the completeness requirement.

  • b
    Lower the temperature to 0 so that the model generates fewer tokens for each description

    Temperature changes randomness, not length; the model would still write about 600 words.

  • c
    Ask for an 80-word description in the prompt and set maxTokens just above that Correct

    The instruction makes the model write a complete short description, and maxTokens with headroom caps cost if it runs long. Fewer output tokens are generated and billed.

  • d
    Trim each description to 80 words in the Lambda function before display

    The full 600 words are still generated and billed; trimming afterwards saves nothing.

The concept

Response size controls: output tokens are billed as generated, so limit length in the request (instruction plus maxTokens), not after the response arrives.

Why that’s the answer

Cost follows generated tokens. Telling the model the target length produces a complete short text, and maxTokens set just above it is a safety cap. A tight maxTokens alone cuts text mid-sentence, temperature does not control length, and trimming after generation pays for every token anyway.

How to reason it out
  1. Identify the cost driver: generated output tokens.
  2. Find a control that shortens generation, not display.
  3. Check that the text stays complete.
  4. Combine a length instruction with a maxTokens cap.

Exam tip: Shorten outputs at generation time: ask for the length you need and cap maxTokens just above it.

AIP-C01 GenAI Cost Optimization: Token Efficiency, Model Selection, Throughput and Caching on Amazon Bedrock — the lesson that teaches this.

Question 4Operational Efficiency and Optimization for GenAI Applications

A support tool asks an Amazon Bedrock model to classify each ticket. The prompt template tells the model to put the category inside <category></category> tags and then write a short justification. The application code reads only the category and discards the justification, which averages 150 output tokens. Category names range from one word to five words. The developer wants to stop paying for the justification with the fewest changes. What should the developer do?

Choose one.

  • a
    Set maxTokens to 5 in inferenceConfig so generation ends right after the category

    Multi-word category names plus the opening tag can exceed five tokens, so some categories would be cut off.

  • b
    Lower topP in inferenceConfig to 0.1 so the model selects fewer tokens per answer

    topP narrows which tokens are sampled, not how many; the justification is still written.

  • c
    Add the closing </category> tag to stopSequences in the inferenceConfig object Correct

    Generation stops as soon as the model emits the closing tag, so the justification is never generated or billed. The matched stop sequence is not returned, so the parser just reads the text after <category>.

  • d
    Request structured JSON output that contains the category and justification fields

    The model still generates the justification inside the JSON, so output tokens are not reduced.

The concept

Response limiting with stop sequences: generation ends when the model produces a configured string, which cuts unwanted trailing output exactly where the format defines its end.

Why that’s the answer

The template already marks the end of the useful output with </category>. Adding it as a stop sequence ends generation there, removing about 150 billed tokens per call; the response ends with stopReason stop_sequence and does not include the matched tag, so the parser only needs to read the text after <category>. A tiny maxTokens risks truncating longer category names, topP does not control length, and JSON output still contains the justification.

How to reason it out
  1. Find where the useful output ends in the format.
  2. Pick a control that stops generation at that point.
  3. Check that varying category lengths are not truncated.
  4. Reject options that still generate the justification, and note that the stop sequence itself is not returned.

Exam tip: When the useful answer ends at a known delimiter, make that delimiter a stop sequence.

AIP-C01 GenAI Cost Optimization: Token Efficiency, Model Selection, Throughput and Caching on Amazon Bedrock — the lesson that teaches this.

Question 5Operational Efficiency and Optimization for GenAI Applications

A bank's chatbot on Amazon Bedrock resends the full conversation history on every turn. Sessions often run past 60 turns, and the input tokens per request grow with each turn, so long sessions cost several times more than short ones. Customers rarely refer back to anything said more than a few turns earlier, but the account number and issue type given at the start must stay available to the model. Which approach reduces input tokens while meeting these requirements?

Choose one.

  • a
    Send just the last few turns and drop the earlier turns from each new request

    This caps input size, but the account number and issue type from the first turns are lost.

  • b
    Send the last few turns verbatim plus a running summary that keeps the key facts Correct

    A sliding window keeps recent turns exact, and a compact summary of older turns preserves the account number and issue type, so input stays roughly flat as sessions grow.

  • c
    Move to a model with a larger context window and keep sending the full history each turn

    A larger window prevents overflow but does not cut tokens; long sessions cost the same or more.

  • d
    Store the history in DynamoDB and send just the latest customer message per turn

    Storing history does not give it to the model; without context the model cannot answer follow-ups.

The concept

Context window optimization for chat: keep a sliding window of recent turns and replace older turns with a summary of the facts that must persist.

Why that’s the answer

Input cost grows because every turn resends everything. Keeping recent turns plus a summary bounds the prompt while keeping facts such as the account number. A plain window loses those facts, a bigger context window changes capacity not cost, and dropping history entirely breaks the conversation.

How to reason it out
  1. Identify why input tokens grow per turn.
  2. List what must survive pruning: early key facts.
  3. Combine recent turns with a summary of older ones.
  4. Reject options that lose facts or don't reduce tokens.

Exam tip: Prune chat history with a sliding window plus a running summary of facts that must persist.

AIP-C01 GenAI Cost Optimization: Token Efficiency, Model Selection, Throughput and Caching on Amazon Bedrock — the lesson that teaches this.

Question 6Operational Efficiency and Optimization for GenAI Applications

An order-support agent built with the Amazon Bedrock Converse API calls tools in a loop. One tool returns the full order record from an internal API, about 6,000 tokens of JSON, although the agent uses only status, items and delivery dates. Every tool result stays in the message history, so a task with five tool calls resends over 30,000 tokens on its last model call. The team wants to reduce the number of input tokens sent on each model call without reducing the agent's ability to complete tasks. Which TWO changes should the developer make? (Select TWO.)

Choose TWO.

  • a
    Move the agent to a larger model variant that offers a longer context window for history

    A longer window avoids overflow but resends the same tokens, often at a higher per-token price.

  • b
    Put a prompt cache checkpoint after the newest tool result in each request to the model

    Caching discounts the resent history but does not shrink it: cached tokens are still sent and still fill the context window, so it complements trimming rather than cutting input tokens.

  • c
    Lower the temperature so the agent makes fewer tool calls and returns each order sooner

    Temperature affects sampling randomness; it does not reliably reduce tool calls, and tasks still need the data.

  • d
    Make the tool handler return just the order fields that the agent uses Correct

    Projecting the payload to status, items and delivery dates shrinks every tool result at the source, and those results are resent on each later call.

  • e
    Replace older tool results in the history with short summaries after they are used Correct

    Once the agent has acted on a result, a summary keeps the facts it needs while removing thousands of tokens from every later call.

The concept

Context pruning for agents: tool outputs accumulate in the history and are resent on every model call, so trim them at the source and compact them once used.

Why that’s the answer

In a tool loop the history is resent on each call, so a 6,000-token result is paid for again and again. Returning only the needed fields cuts it at the source; summarizing used results compacts what remains. A larger context window doesn't reduce tokens, a prompt cache checkpoint makes the resent history cheaper to read but still sends every token, and temperature does not control the number of tool calls.

How to reason it out
  1. Find what grows: tool results accumulating in the message history.
  2. Shrink the results where they are produced.
  3. Compact results that have already served their purpose.
  4. Reject options that change the price or limit of the tokens rather than the number sent.

Exam tip: In agent loops, trim tool payloads to the fields used and summarize stale tool results.

AIP-C01 GenAI Cost Optimization: Token Efficiency, Model Selection, Throughput and Caching on Amazon Bedrock — the lesson that teaches this.

What AIP-C01 domain 4 tests, topic by topic

The official exam guide breaks Operational Efficiency and Optimization for GenAI Applications into 3 topics. The question bank follows the same split, so a weak topic shows up as a cluster of misses you can go back and read.

Published AIP-C01 practice questions per topic in Operational Efficiency and Optimization for GenAI Applications
TopicWhat it coversQuestions
Implement cost optimization and resource efficiency strategiesOfficial AIP-C01 Task 4.1 skills: (4.1.1) Develop token efficiency systems to reduce FM costs while maintaining effectiveness (for example, by using token estimation and tracking, context window optimization, response size controls, prompt compression, context pruning, response limiting). (4.1.2) Create cost-effective model selection frameworks (for example, by using cost-capability tradeoff evaluation, tiered FM usage based on query complexity, inference cost balancing against response quality, price-to-performance ratio measurement, efficient inference patterns). (4.1.3) Develop high-performance FM systems to maximize resource utilization and throughput for GenAI workloads (for example, by using batching strategies, capacity planning, utilization monitoring, auto-scaling configurations, provisioned throughput optimization). (4.1.4) Create intelligent caching systems to reduce costs and improve response times by avoiding unnecessary FM invocations (for example, by using semantic caching, result fingerprinting, edge caching, deterministic request hashing, prompt caching).34
Optimize application performanceOfficial AIP-C01 Task 4.2 skills: (4.2.1) Create responsive AI systems to address latency-cost tradeoffs and improve the user experience with FMs (for example, by using pre-computation to perform predictable queries, latency-optimized Amazon Bedrock models for time-sensitive applications, parallel requests for complex workflows, response streaming, performance benchmarking). (4.2.2) Enhance retrieval performance to improve the relevance and speed of retrieved information for FM context augmentation (for example, by using index optimization, query preprocessing, hybrid search implementation with custom scoring). (4.2.3) Implement FM throughput optimization to address the specific throughput challenges of GenAI workloads (for example, by using token processing optimization, batch inference strategies, concurrent model invocation management). (4.2.4) Enhance FM performance to achieve optimal results for specific GenAI use cases (for example, by using model-specific parameter configurations, A/B testing to evaluate improvements, appropriate temperature and top-k/top-p selection based on requirements). (4.2.5) Create efficient resource allocation systems specifically for FM workloads (for example, by using capacity planning for token processing requirements, utilization monitoring for prompt and completion patterns, auto-scaling configurations that are optimized for GenAI traffic patterns). (4.2.6) Optimize FM system performance for GenAI workflows (for example, by using API call profiling for prompt-completion patterns, vector database query optimization for retrieval augmentation, latency reduction techniques specific to LLM inference, efficient service communication patterns).34
Implement monitoring systems for GenAI applicationsOfficial AIP-C01 Task 4.3 skills: (4.3.1) Create holistic observability systems to provide complete visibility into FM application performance (for example, by using operational metrics, performance tracing, FM interaction tracing, business impact metrics with custom dashboards). (4.3.2) Implement comprehensive GenAI monitoring systems to proactively identify issues and evaluate key performance indicators specific to FM implementations (for example, by using CloudWatch to track token usage; prompt effectiveness; hallucination rates; and response quality, anomaly detection for token burst patterns and response drift, Amazon Bedrock Model Invocation Logs to perform detailed request and response analysis, performance benchmarks, cost anomaly detection). (4.3.3) Develop integrated observability solutions to provide actionable insights for FM applications (for example, by using operational metric dashboards, business impact visualizations, compliance monitoring, forensic traceability and audit logging, user interaction tracking, model behavior pattern tracking). (4.3.4) Create tool performance frameworks to ensure optimal tool operation and utilization for FMs (for example, by using call pattern tracking, performance metric collection, tool calling observability and multi-agent coordination tracking, usage baselines for anomaly detection). (4.3.5) Create vector store operational management systems to ensure optimal vector store operation and reliability for FM augmentation (for example, by using performance monitoring for vector databases, automated index optimization routines, data quality validation processes). (4.3.6) Develop FM-specific troubleshooting frameworks to identify unique GenAI failure modes that are not present in traditional ML systems (for example, by using golden datasets to detect hallucinations, output diffing techniques to conduct response consistency analysis, reasoning path tracing to identify logical errors, specialized observability pipelines).34
Total102

Revise Operational Efficiency and Optimization for GenAI Applications before you drill it

Other AIP-C01 domains

Operational Efficiency and Optimization for GenAI Applications: your questions

Operational Efficiency and Optimization for GenAI Applications is domain 4 of the AIP-C01 exam guide and carries 12% of the scored content — the 4th-heaviest of the 5 domains. On a 75-question paper that works out to roughly 9 questions, though AWS does not publish an exact per-domain count and individual exam forms vary.