Answers & explanations
Mock Exam 3: every answer explained.
All 65 questions from this set, with the correct answer marked and a full explanation of why it is right — and why each plausible alternative is not. 11 of them are multi-answer, which the AWS AI Practitioner exam uses heavily. Read it as a study sheet, or take the set under timed conditions first and come back.
Every question here is original, written for this site to match the style and difficulty of the real exam. None are reproduced from an actual exam — that would breach the certification agreement and would not teach you anything.
- Q1
A travel company's itinerary assistant on Amazon Bedrock writes detailed day-by-day holiday plans. Customers report that plans covering ten days or more stop in the middle of a sentence, while shorter plans arrive complete. The application logs show that every truncated response returned the stop reason max_tokens, and no guardrail intervention was recorded.
Which change resolves the truncation?
- A Lower the temperature so the model writes shorter and more focused sentences
- B Add a stop sequence that ends generation at the final day's heading
- C Raise the maximum output tokens setting so the longest plans fit within the limit Correct
- D Move to a model with a larger context window while keeping the same output settings
Why C
The stop reason max_tokens means generation ended because the response reached the configured output token limit, not because the model decided it had finished. Short plans fit under the cap and long ones reach it mid-sentence, which matches the pattern exactly. Raising the maximum output tokens value, within the ceiling the model supports, lets the longest itineraries complete; a cost-conscious team can pair this with an instruction to stay concise. Option A changes how randomly tokens are chosen, not how many may be generated, so long plans still hit the same cap. Option B adds another reason to stop early, and a stop sequence cuts text off rather than extending it. Option D enlarges how much the model can read, but nothing is being rejected for its size; the limit being reached is the output setting, which this option leaves unchanged.
- Q2
An engineering firm is building an Amazon Bedrock knowledge base over 300 equipment manuals, each up to 1,200 pages and organised into chapters, sections and numbered sub-sections. Testing shows a dilemma: small chunks match a technician's question precisely but hand the model too little of the surrounding section to answer, while large chunks carry the context but match questions loosely.
Which chunking strategy resolves both problems?
- A Fixed-size chunking of 300 tokens with a 20% overlap between consecutive chunks
- B Semantic chunking that places breakpoints where the meaning of adjacent sentences diverges
- C Hierarchical chunking that matches on small child chunks and returns their larger parents Correct
- D No chunking, so that each manual is embedded and retrieved as one single unit
Why C
Hierarchical chunking stores two linked levels: small child chunks, whose embeddings are precise enough to match a narrowly worded question, and the larger parent chunks that contain them. At retrieval the matched children are swapped for their parents, so the model receives the whole surrounding section. That removes the trade-off the firm measured instead of choosing a point on it. Option A softens cuts at chunk boundaries, but every chunk is still one size, so the team must still choose between precise matching and enough context. Option B draws better boundaries by meaning, yet it still produces a single level of chunk and adds foundation-model cost at ingestion. Option D turns a 1,200-page manual into one averaged vector, which matches almost any question loosely and far exceeds what the model can usefully read in one prompt.
- Q3
A geospatial analytics firm runs a change-detection model on GPU instances in Amazon SageMaker AI. Client applications submit satellite image tiles of about 600 MB each through an API, and the model takes 8 to 12 minutes per tile. Requests arrive in a few bursts a day with long idle gaps between them, and clients are happy to be notified when each result is ready rather than wait on an open connection.
Which SageMaker AI inference option meets these requirements at the lowest cost?
- A Real-time inference on an endpoint whose instances run at all times
- B Serverless inference with the maximum memory size configured
- C A batch transform job run against the tiles stored in Amazon S3
- D Asynchronous inference, scaling instances to zero between bursts Correct
Why D
Asynchronous inference queues each request, reads the payload from Amazon S3 and writes the result back to S3, with an optional Amazon SNS notification, and it supports payloads up to 1 GB and processing times up to one hour. Because the queue absorbs the bursts, the endpoint can scale its instance count to zero between them, so the firm pays only while tiles are being processed. Option A keeps instances running, and billing, through the idle hours, and a synchronous call is the wrong shape for a 600 MB input that takes ten minutes. Option B suits small, quick requests with idle gaps, but its payload limits and short timeouts rule out these tiles, and it offers no GPUs. Option C runs a job over a dataset that someone starts, not an endpoint that accepts individual client requests as they arrive.
- Q4
A building society uses a text classifier to route incoming customer letters to one of 12 handling queues. On its curated test set of 6,000 typed letters it routes 96 percent correctly, and the error rate is the same across every customer segment the review team measured.
During a pre-launch review, the team rescans the same letters with typical scanner noise, introduces common misspellings and appends one irrelevant sentence to each. Routing accuracy falls to 71 percent, and one phrase found by the red team sends formal complaints to the 'no action' queue almost every time.
Which feature of responsible AI does this review show the classifier lacks?
- A Fairness
- B Robustness Correct
- C Explainability
- D Transparency
Why B
Robustness is the property of producing stable, reliable output when inputs are noisy, unexpected or deliberately adversarial. The classifier is accurate on clean letters, but small perturbations that do not change a letter's meaning, and one crafted phrase, change its decision, so the weakness the review exposes is robustness, and the remedy lies in testing and training with perturbed and adversarial inputs. Option A, fairness, concerns differing outcomes across groups, and the team found equal error rates across segments. Option C, explainability, is about understanding why a model produced a given output; the review measured how stable the decisions are, not whether they can be explained. Option D, transparency, is about giving stakeholders enough information to make informed choices about a system, which says nothing about how stable its decisions are under perturbed inputs.
- Q5
An energy retailer runs a billing-dispute summariser in private subnets of a production VPC in eu-west-2. The application reaches Amazon Bedrock only through an interface VPC endpoint for bedrock-runtime. Security has approved one foundation model for this workload and wants any other model, and any action other than invocation, refused for traffic passing through that endpoint. Data scientists in the same account still use the Amazon Bedrock console to evaluate other models, and the network team does not manage the application's IAM roles.
Which control meets the requirement without affecting the data scientists?
- A Apply a service control policy to the account that denies every Amazon Bedrock action except invocation of the approved model
- B Add a security group to the endpoint network interfaces that allows HTTPS only from the application subnets
- C Attach a custom endpoint policy to the interface endpoint that allows only the invoke actions on the approved model's ARN Correct
- D Add a network ACL to the application subnets that denies outbound traffic to the public Amazon Bedrock endpoint
Why C
An endpoint policy is a resource policy on the interface endpoint itself: it states which principals may perform which actions on which resources for traffic that passes through it. Allowing only bedrock:InvokeModel and bedrock:InvokeModelWithResponseStream on the approved model's ARN refuses everything else on that path, works alongside the callers' IAM policies without editing them, and leaves console traffic outside the VPC untouched. Option A applies to every principal in the account, so it also blocks the data scientists' model evaluations. Option B decides which hosts may connect to the endpoint by address and port, and has no view of which model or action a request names. Option D stops traffic from bypassing the endpoint, which is useful, but places no limit on the models called through it.
- Q6
A legal-technology firm is choosing how to build a feature that reviews merger agreements. Each agreement runs to about 250,000 tokens, and the review must check every obligation against definitions and exceptions that may sit hundreds of pages away, so missing any single cross-reference is a material error.
The firm requires each agreement to be read as a whole in one pass. Which approach meets this requirement?
- A Split each agreement into sections, summarise each section separately, and then review the combined summaries
- B Index the agreements in a knowledge base and retrieve the ten clauses most relevant to each review question
- C Fine-tune a model with a 32,000-token context window on past agreements so that it learns typical merger terms
- D Choose a model whose 1 million-token context window holds the whole agreement and instructions at once Correct
Why D
Input length is a model selection criterion in its own right. The context window caps how many tokens one request can carry, and only a long-context model can hold a 250,000-token agreement plus instructions at once, which lets it relate every obligation to definitions and exceptions far away in the same pass. Very long requests are billed for every input token, so the firm should still confirm that the cost per agreement is acceptable. Option A, a map-reduce pattern, compresses each section in isolation, so a definition that changes the meaning of a distant clause is often dropped before the two are ever compared. Option B supplies only the clauses that look similar to the question, and the exception that matters may not be among them. Option C teaches general patterns but leaves the window at 32,000 tokens, so the model still cannot see the whole agreement.
- Q7
A furniture retailer holds 600,000 product photos, many with no caption or alt text, and 2 million written product descriptions and reviews. It wants shoppers to type a phrase such as "green velvet armchair with brass legs" and see matching photos, and to upload a photo and see matching descriptions, all from one search index.
Which approach supports both directions of search with the least custom engineering?
- A Embed photos and text with a multimodal model that maps both into one vector space Correct
- B Embed only the descriptions with a text embedding model and attach the photos as metadata
- C Tag every photo with Amazon Rekognition labels and run keyword search over the label lists
- D Embed photos with an image model and text with a separate text model in a single index
Why A
A multimodal embedding model, such as Amazon Nova Multimodal Embeddings, encodes an image and a piece of text into the same vector space, so a photo of a green velvet armchair and a sentence describing one land close together. One index then answers text-to-image and image-to-text queries with ordinary nearest-neighbour search. Option B never looks at the pixels, so the 600,000 uncaptioned photos can be found only through whatever text sits next to them, and an uploaded photo has nothing to be compared with. Option C reduces each image to generic labels such as chair or furniture, which loses details like brass legs and turns semantic search back into keyword matching. Option D places vectors from two unrelated models side by side; their dimensions mean different things, so the distance between an image vector and a text vector is meaningless.
- Q8
A finance department uses an internal app that sends short expense descriptions to a 1.5 GB text classifier, which runs on CPU and returns a category. Traffic comes in bursts during the last three days of each month, and the app sits almost unused for the rest of the month. The department accepts that the first request after a quiet spell may take a few extra seconds, but each answer must come back to the form directly.
Which Amazon SageMaker AI inference option meets these requirements with the least cost and operational effort?
- A Serverless inference Correct
- B Real-time inference on a provisioned instance with auto scaling
- C Asynchronous inference with results written to Amazon S3
- D Batch transform jobs scheduled at month-end
Why A
Serverless inference provisions compute only when requests arrive and scales the endpoint to zero when there are none, with pay-per-use billing, which is exactly the shape of a tool that sits idle for weeks and then sees a month-end burst. The occasional cold start after an idle period is the trade-off, and the department has said a few seconds of delay on a first request is acceptable. A small CPU model fits within the serverless memory sizes of up to 6 GB. Option B keeps at least one instance running, and billing, through the quiet weeks, and someone must choose the instance type and tune the scaling policy. Option C requires staging every payload in Amazon S3 and collecting the result later, which suits large, slow requests rather than a form expecting an immediate answer. Option D scores a whole dataset as a job and cannot answer individual requests from the app.
- Q9
A freight broker wants to fine-tune a text-generation model on Amazon Bedrock with 8,000 labelled examples, each pairing a raw carrier incident report with the structured summary its analysts wrote. The fine-tuned model must run inside its AWS account in us-east-1, and the team plans a supervised fine-tuning job rather than writing reward functions.
Which model should the team choose as the base model?
- A Amazon Nova Lite, which Amazon Bedrock supports for supervised fine-tuning in us-east-1 Correct
- B Anthropic Claude Sonnet 4.5, which scored highest in the team's prompt-only trials
- C Qwen3 32B, which Amazon Bedrock supports for reinforcement fine-tuning with reward functions
- D Amazon Titan Text Embeddings V2, the model that already powers the broker's knowledge base
Why A
Support for customisation is a model selection criterion: Amazon Bedrock offers fine-tuning only for specific models, Regions and methods, so a team that must train on its own labelled data has to start from that list. Amazon Nova Lite supports supervised fine-tuning in us-east-1, so the 8,000 report and summary pairs can be used directly in a fine-tuning job. Option B may perform well with prompting alone, but Bedrock does not offer fine-tuning for it, so the labelled examples could never be trained in. Option C is customisable, but through reinforcement fine-tuning driven by reward functions, which the team has decided against, and in us-west-2 rather than us-east-1. Option D is an embedding model that returns vectors rather than text, so it cannot write summaries, and it is not offered for fine-tuning either.
- Q10
A telecom provider's support assistant resends the entire conversation to the model on every turn. Troubleshooting sessions regularly exceed 150 turns, so input tokens and cost grow with each message, and the longest sessions now fail because the accumulated history no longer fits in the model's context window.
Which change addresses both the rising cost and the failures?
- A Move to a model with a context window four times larger and keep sending the full history
- B Keep the latest turns verbatim and replace older turns with a running summary of key facts Correct
- C Enable prompt caching on the conversation history so that repeated input tokens cost less
- D Raise the maximum output token setting so the model can finish long troubleshooting replies
Why B
Summarising or truncating history is a core context-engineering technique: recent turns stay word for word, and everything older collapses into a short summary of the facts that still matter, such as the customer's device, the steps already tried and the open fault. The input stops growing with every turn, which caps cost and keeps even a 150-turn session inside the context window. Option A only postpones the failure, and because every turn still resends the whole conversation, cost keeps climbing and often rises faster on a larger model. Option C can discount repeated tokens, but the cached history still occupies the context window, so the longest sessions still overflow. Option D governs the length of the reply, not the size of the input, and longer replies add tokens rather than remove them.
- Q11 Choose 2
A broadband provider runs a customer support assistant on Amazon Bedrock and is writing its guardrail policy. Customers routinely type their phone numbers and email addresses into the chat while asking about orders, and the business wants those conversations to carry on normally with the contact details replaced by placeholders, rather than having the whole message refused.
The assistant must also never output the names of two specific rival providers or the internal codename 'Kestrel', although customers may still ask in general terms about switching provider.
Which two guardrail configurations meet this policy?
- A A sensitive information filter with the PHONE and EMAIL types set to Block
- B A sensitive information filter with the PHONE and EMAIL types set to Mask Correct
- C A denied topic describing competitors and switching to another provider
- D A content filter for the Misconduct category set to High strength
- E A word filter whose custom list contains the two rival names and 'Kestrel' Correct
Why B and E
The sensitive information filter can block or mask each PII type; Mask replaces a detected phone number or email address with its type, such as {PHONE} or {EMAIL}, so the conversation carries on without exposing the value. A word filter blocks exact matches of custom words and phrases of up to three words, which suits a fixed list of brand names and a codename that must never appear. Option A applies the Block action, which refuses the entire prompt or response with the configured message whenever a phone number or email address appears, the opposite of what the provider wants. Option C relies on a natural-language topic definition, so it would also block the general questions about switching provider that the policy explicitly allows. Option D tunes the harmful-content filter for criminal activity, which does not target brand names at all.
- Q12
An insurer keeps 9 years of claims records as Parquet files in Amazon S3, catalogued as tables in the AWS Glue Data Catalog. A team preparing data to fine-tune a claims-triage model may read only the non-identifying columns, with national insurance number and policyholder name hidden, and only the rows for claims filed in the United Kingdom. Governance wants these permissions managed centrally on the existing tables, without maintaining extra copies of the data.
Which approach meets the requirement?
- A Grant the team AWS Lake Formation permissions on the table through a data filter that limits its columns and rows Correct
- B Write an S3 bucket policy that limits the team's IAM role to the prefix where the claims files are stored
- C Run Amazon Macie on the bucket so the identifying columns are discovered and reported to the governance team
- D Schedule a nightly AWS Glue job that writes a redacted, UK-only copy of the claims data to a bucket for the team
Why A
AWS Lake Formation governs access to Data Catalog tables at a finer grain than files: a data filter combines column-level permissions, which hide the identifying columns, with a row filter expression that returns only UK claims, and the team then queries the original tables through integrated services such as Amazon Athena. Permissions are granted and revoked centrally, and no second dataset exists. Option B works at the level of objects and prefixes, so the team either reads whole files, identifying columns included, or nothing at all. Option C finds and reports sensitive data, which is a discovery step, but enforces no access restriction. Option D does produce a safe dataset, yet it is the extra copy governance wants to avoid, and it drifts out of date between runs.
- Q13
A legal technology company wants a model that assigns a risk category to each clause in a commercial contract. Its lawyers have labelled the clauses in 1,200 contracts, and the company holds a further 300,000 contracts that nobody has labelled. Lawyer time is expensive, so labelling the remaining contracts by hand is ruled out, but the company wants the model to learn from the whole collection.
Which learning approach fits this situation?
- A Supervised learning on the 1,200 labelled contracts only
- B Unsupervised clustering of the 300,000 unlabelled contracts
- C Semi-supervised learning across both sets of contracts Correct
- D Reinforcement learning with a reward for each correct category
Why C
Semi-supervised learning trains on a small labelled set together with a much larger unlabelled set, typically by learning from the labelled examples, assigning provisional labels to the unlabelled examples the model is confident about, and retraining on the enlarged set. It exists for exactly this situation: labels are scarce because expert time is expensive, while raw examples are plentiful. Option A learns only from the 1,200 labelled contracts and discards whatever the other 300,000 could teach the model, which the company explicitly wants to use. Option B can group the unlabelled contracts by similarity, but clusters carry no risk categories and the approach ignores the lawyers' labels entirely. Option D learns a policy from rewards for actions taken in an environment, and categorising a clause involves no sequence of actions and no environment to reward them.
- Q14
A retail group keeps three years of sales, returns and inventory figures in an Amazon Redshift data warehouse. Regional managers want to ask questions such as 'Which ten stores had the highest return rate for footwear last quarter?' in plain English and receive answers computed from the live tables.
The analytics team does not want to write SQL for every request or copy the warehouse into another data store. Which approach meets these requirements?
- A Export the tables to CSV files in Amazon S3 and ingest them into a vector knowledge base for semantic search
- B Connect a Bedrock knowledge base to the warehouse as a structured data store that generates SQL Correct
- C Fine-tune a foundation model on a snapshot of the sales tables so it can answer from memory
- D Paste a sample of the sales rows into each prompt and ask the model to estimate the answer
Why B
Amazon Bedrock Knowledge Bases can connect to a structured data store, using Amazon Redshift as the query engine. When a manager asks a question, the knowledge base uses the schema to generate a SQL query, runs it against the warehouse, and returns the results or a generated answer built from them, so the figures come from the current tables and nobody writes SQL by hand. The service role should be granted read-only access. Option A turns rows into embeddings, and similarity search cannot rank, sum or filter across millions of rows, so a top-ten calculation would be guessed from whichever rows looked similar. Option C freezes one snapshot into model weights; it cannot compute exact aggregates and goes stale as soon as new sales arrive. Option D asks the model to extrapolate from a sample, which yields estimates rather than correct totals.
- Q15
A consultancy is building a research assistant from three specialist agents: a researcher that gathers sources, an analyst that tests claims and a writer that drafts the report. The order of work is unpredictable: the analyst often returns work to the researcher several times, and the writer may need to question either of them before finishing. The team wants each agent to pass the task straight to whichever colleague is best placed to take the next step.
Which multi-agent collaboration pattern best fits this way of working?
- A A supervisor pattern, in which one orchestrating agent assigns each subtask and gathers results
- B A swarm pattern, in which peer agents share context and hand off to one another as needed Correct
- C A sequential pipeline, in which each agent runs once in a fixed order and passes output on
- D A single agent holding every tool the three specialists would use, under one system prompt
Why B
In a swarm, agents collaborate as peers: each can see the shared context and hand off directly to whichever teammate is best placed, so work can loop between the researcher and the analyst as often as needed with no coordinator in the middle. That matches a task whose path cannot be planned in advance. Option A centralises every decision in an orchestrator, which suits work that splits cleanly into assignable subtasks, but no agent could pass work straight to a colleague: every back-and-forth exchange would have to route through the orchestrator. Option C fixes the order, so the analyst could never send work back to the researcher. Option D is not a multi-agent design at all, and loading one prompt with three roles and every tool tends to blur responsibilities and degrade tool selection.
- Q16
A pharmaceutical manufacturer stores 900 supplier audit reports, batch records and component specifications as documents in Amazon S3. Investigators ask which finished products could be affected if a particular excipient supplier fails an audit, which means linking the supplier to its components, the components to batches and the batches to products across several documents.
A standard vector-based knowledge base returns individually relevant passages but misses the connections between them. Which approach best supports these multi-step relationship questions?
- A Use GraphRAG with Amazon Neptune Analytics so relationships between entities in different documents are traversed Correct
- B Increase the chunk size substantially so that each chunk holds several related documents and the links between them
- C Switch the knowledge base to hybrid search so that supplier names and component codes are also matched by exact keyword
- D Move the embeddings to Amazon S3 Vectors so that retrieving more passages per question costs less
Why A
GraphRAG in Amazon Bedrock Knowledge Bases identifies entities and the relationships between them in the ingested documents and stores that graph, alongside the vectors, in Amazon Neptune Analytics. After the initial vector search, retrieval traverses those links to pull in connected chunks, so a supplier can be traced through components and batches to products even when each link sits in a different document. GraphRAG takes its documents from Amazon S3, which suits this corpus. Option B makes chunks larger and less focused, and relationships spread across 900 documents cannot fit into any single chunk. Option C improves exact matching of names and codes, which is useful, yet still returns isolated passages rather than the chain that links them. Option D changes where vectors are stored and what they cost; retrieval stays similarity-only and still misses the connections.
- Q17
A media company is writing internal training material about the open-weight language model it uses. The model card states that the model was pre-trained on 9 trillion tokens of public web text, with the objective of predicting each next token from the tokens before it, and that no human annotators were involved at this stage. Instruction tuning and preference alignment were separate, later stages.
Which learning approach describes the pre-training stage?
- A Supervised learning on human-annotated examples
- B Self-supervised learning Correct
- C Reinforcement learning from human feedback
- D Semi-supervised learning
Why B
Self-supervised learning creates its training targets from the data itself. In next-token prediction, every position in the text supplies its own label, the token that actually comes next, so trillions of training examples exist without a single human annotation. This is how large language models acquire their broad knowledge of language during pre-training, before any later tuning stages. Option A requires people to attach a correct answer to each example, which is the step the model card says never happened. Option C is a later alignment stage in which people rank model responses and a reward model steers further training, so it depends on exactly the human judgements that pre-training lacked. Option D mixes a small human-labelled subset with a large unlabelled set, and in this stage there is no human-labelled subset at all.
- Q18
A travel company already applies one Amazon Bedrock guardrail, with denied topics, content filters and PII masking, to three assistants built on Bedrock models. Its new itinerary assistant uses a fine-tuned open-weight model that the company hosts on Amazon EC2 GPU instances in eu-west-1, and the model must stay there for now.
The responsible-AI lead wants the itinerary assistant's prompts and responses checked against exactly the same guardrail policies, without the team maintaining a second set of rules.
Which approach meets the requirement with the least duplicated effort?
- A Add the guardrail identifier and version to Converse API calls, pointing those calls at the EC2 model
- B Rebuild the policies as Amazon Comprehend toxicity and PII detection calls inside the application
- C Place AWS WAF in front of the EC2 instances with rules that inspect each request body for the policies
- D Call the ApplyGuardrail API with the existing guardrail on every prompt and every model response Correct
Why D
The ApplyGuardrail API evaluates any text against a pre-configured guardrail without invoking a foundation model, so it is decoupled from where the model runs. The application sends each user prompt with the source set to INPUT and each model response with the source set to OUTPUT, and gets back the same assessment, masking or blocked message the Bedrock-hosted assistants receive, from one shared policy. Option A misreads the guardrail configuration in Converse and InvokeModel: it applies a guardrail to a model invoked through Amazon Bedrock and cannot route a request to a model on EC2. Option B recreates part of the policy in a second service, the duplicate rule set the lead wants to avoid, and Comprehend has no equivalent of denied topics. Option C matches HTTP requests against patterns; it cannot judge what a prompt means or check model responses.
- Q19
A hospital group wants an external analytics vendor to build an appointment no-show model from 1.2 million historical visit records. Its privacy officer rules that no real patient record may leave the organisation, and notes that removing names alone is insufficient, because postcode, date of birth and sex together can re-identify individuals. The statistical relationships between booking lead time, age band, clinic and attendance must survive so that the vendor's model is useful.
Which approach meets the privacy officer's ruling?
- A Remove names and patient numbers from the records, then share every remaining field with the vendor
- B Encrypt the records with a customer managed AWS KMS key and grant the vendor permission to decrypt them
- C Share the records with the vendor through an S3 access point reachable only over AWS PrivateLink
- D Generate a differentially private synthetic dataset that keeps the statistical patterns, and share it instead Correct
Why D
Synthetic data generated with differential privacy reproduces the distributions and correlations of the real visits while bounding how much any single patient can influence the output, so the vendor can train a useful model and no real record is handed over. Option A is pseudonymisation: the quasi-identifiers the privacy officer named stay in the data, so individuals can still be re-identified by linking them with other sources. Option B protects the records at rest and in transit, but the vendor holds the decryption permission and therefore reads every real record, which the ruling forbids. Option C secures the network path and the access mechanism, yet what arrives at the vendor is still the full set of real patient records.
- Q20
A lender processes mortgage applications through the same five steps every time: extract fields from the uploaded documents, validate them against lending rules, request a credit report, draft a summary for the underwriter and route the file to an underwriting queue. Regulators require every application to follow an identical, auditable path, yet a proposal suggests an autonomous AI agent that decides for itself which steps to run and in what order.
Which design best meets the requirement for a predictable, auditable process?
- A An autonomous agent with a more detailed system prompt that lists the five steps in order
- B A group of peer agents that pass each application among themselves until the file is done
- C A deterministic workflow of fixed, ordered steps that calls a model only to draft the summary Correct
- D An autonomous agent with a guardrail attached to filter harmful content from its responses
Why C
When the steps are known in advance and must run the same way every time, a deterministic workflow, for example an AWS Step Functions state machine, fits better than an agent. The path is defined in code, every execution records the same sequence, and a foundation model is used only where judgement on language adds value, here in drafting the summary. Autonomy is worth its unpredictability only when the steps cannot be planned beforehand. Option A still leaves the model free to reorder, skip or repeat steps, because a prompt is guidance rather than a guarantee. Option B adds more autonomous decision points, which makes the path harder still to predict and audit. Option D filters what the agent says, not which steps it chooses, so the process path remains non-deterministic.
- Q21
A professional-services firm is building an Amazon Bedrock knowledge base over 6 million archived project documents. Consultants query it only a few dozen times a day, mostly while preparing proposals, and a response time of under a second is acceptable.
The finance team has asked for the vector store with the lowest ongoing cost, and the firm does not need hybrid keyword search. Which vector store best fits these requirements?
- A An Amazon OpenSearch Serverless vector search collection sized for the full index
- B Amazon Aurora PostgreSQL with the pgvector extension on provisioned instances
- C Amazon S3 Vectors, with a vector bucket and vector index for the knowledge base Correct
- D An Amazon Neptune Analytics graph created with a vector search index
Why C
Amazon S3 Vectors stores and queries embeddings in S3 vector buckets without any provisioned infrastructure, and AWS positions it for large vector datasets with infrequent queries where sub-second response times are acceptable, which is this firm's profile. It is a supported knowledge base vector store, so cost follows the data held and the queries made rather than capacity kept running. Its trade-off is that it does not offer hybrid search, which the firm has said it does not need. Option A suits high query volumes and hybrid search, but its compute capacity keeps accruing charges between queries. Option B needs database instances that run, and are billed, around the clock to serve a few dozen queries a day. Option D is intended for GraphRAG over relationship-heavy content, and its graph is billed for provisioned memory capacity whether or not anyone is querying.
- Q22
A travel company's booking agent must query an internal fares database and call a currency-conversion API during each request. It must also delegate visa-eligibility checks to a separate agent that another team built on a different agent framework and runs independently.
Which protocol assignment matches the standard role of each protocol?
- A Model Context Protocol for the fares database and the API, and Agent2Agent protocol for the visa agent Correct
- B Agent2Agent protocol for the database and the API, and Model Context Protocol for the visa agent
- C Model Context Protocol for all three connections, treating it as the agent-to-agent standard
- D Agent2Agent protocol for all three connections, treating the fares database as a peer agent
Why A
The two protocols cover different connections. The Model Context Protocol (MCP) standardises how an agent, acting as an MCP client, discovers and calls tools and data sources exposed by MCP servers, which is exactly the fares database and the currency API. The Agent2Agent (A2A) protocol standardises how independent agents, possibly built on different frameworks, advertise their capabilities and delegate tasks to one another, which is the visa-eligibility handoff. Option B reverses the roles: a database has no reasoning of its own to negotiate with, and MCP is not designed for delegating tasks to a peer agent. Option C stretches MCP beyond its role; it connects an agent to tools, while the other team's agent runs its own reasoning and task lifecycle. Option D treats passive data sources as peers, adding an agent layer in front of a database that needs only a tool interface.
- Q23
A news publisher wants a model that tags each new article from a fixed list of 14 topics. Editors routinely give one article several topics at once: a piece on a carbon tax, for example, is tagged politics, economy and climate. The publisher has 80,000 past articles with their editor-assigned tags.
Which type of machine learning problem is this?
- A Binary classification
- B Multilabel classification Correct
- C Multiclass classification
- D Clustering
Why B
Multilabel classification predicts a set of labels for each item, and any number of them can apply at once, so the carbon-tax article can be tagged politics, economy and climate in a single prediction. That matches a scheme in which each article carries any combination of the 14 topics. Option A makes one yes-or-no decision per item; covering 14 topics would take 14 separate binary models, which is a workaround rather than the problem type. Option C also chooses among many classes, but it assigns exactly one class per item, so it would force the carbon-tax article into a single topic and lose the other two. Option D groups articles by similarity without using the editors' tags at all, so it cannot reproduce the topic list the publisher has defined, and the 80,000 tagged examples would go unused.
- Q24
Two teams at an insurer share one Amazon Bedrock knowledge base. The claims team wants the most relevant passages returned with their source locations, so that its own application can insert them into a carefully tuned prompt for a model it invokes separately and then apply its own post-processing.
The intranet team wants one call that returns a finished natural-language answer with citations to the source documents, without building a generation step. Which knowledge base API should each team call?
- A The claims team calls Retrieve, and the intranet team calls RetrieveAndGenerate Correct
- B The claims team calls RetrieveAndGenerate, and the intranet team calls Retrieve
- C Both teams call RetrieveAndGenerate, and the claims team discards the generated answer
- D Both teams call InvokeModel and pass the knowledge base ID in the request body
Why A
The Retrieve operation queries the knowledge base and returns the matching chunks with their source locations, metadata and relevance scores, then stops, which is what a team running its own prompt and model needs. RetrieveAndGenerate performs the same retrieval and then has a chosen foundation model write a response grounded in those chunks, returning citations that map parts of the answer to their sources, so the intranet team gets a finished answer from a single call. Option B reverses the fit: the claims team would pay for a generation it never uses, and the intranet team would have to build the generation step it wants to avoid. Option C adds a wasted model invocation, its cost and its latency to every claims request. Option D misunderstands InvokeModel, which calls a model directly and has no knowledge base parameter, so nothing would be retrieved.
- Q25
A legal-services firm wants a model that summarises and tags contracts. Its data science team proposes pre-training a new language model from scratch on 2 TB of public legal text, an estimated six weeks on a large GPU cluster, followed by training on 30,000 of the firm's own labelled contracts.
The firm has published a commitment to reduce the carbon footprint of its technology, and the board asks the team to justify its choice against that commitment.
Which approach meets the need with the smallest environmental impact?
- A Adapt an existing pre-trained model with the labelled contracts, on energy-efficient instances in a lower-carbon Region Correct
- B Pre-train from scratch as proposed, but on twice as many GPUs so the cluster runs for three weeks instead of six
- C Pre-train from scratch as proposed, then retrain the whole model every month on the newest public legal text
- D Pre-train from scratch in the Region closest to the firm's offices so inference traffic travels the shortest distance
Why A
Reusing a pre-trained model and adapting it with the firm's 30,000 labelled contracts, through fine-tuning or a lighter technique, avoids the six-week pre-training run, which is where most of the energy would be spent. Choosing energy-efficient accelerated instances, such as those built on AWS Trainium, and a Region whose electricity has a lower carbon intensity reduces the footprint of the remaining work further. Option B halves the elapsed time but uses roughly the same number of GPU-hours, so the energy consumed hardly changes. Option C repeats the most expensive step every month and multiplies the footprint. Option D optimises network latency for users; the training run is unchanged, and being close to the office says nothing about the carbon intensity of that Region's grid.
- Q26 Choose 2
A wholesaler deploys a procurement agent on Amazon Bedrock AgentCore. Its task is to read the product catalogue and supplier records and to raise purchase orders, yet it can call every tool in the company's procurement system, including cancelling orders, issuing refunds and deleting supplier records. In testing, a crafted supplier email led the agent to cancel 14 open orders without anyone being asked.
Which two measures reduce the agent's excessive agency?
- A Move the agent to a larger foundation model with stronger reasoning so that it misjudges fewer requests
- B Add instructions to the system prompt telling the agent never to cancel orders unless it is certain the request is genuine
- C Limit the agent's tools to the read and purchase-order operations its task needs, for example with Policy in AgentCore Correct
- D Require explicit human confirmation before the agent runs any action that changes or deletes records Correct
- E Turn on AWS CloudTrail and model invocation logging so that every action the agent takes is recorded for later review
Why C and D
Excessive agency means an agent holds more capability or autonomy than its task needs, so a manipulated or mistaken decision turns into real damage. Restricting tool access to the read and purchase-order operations removes cancellation, refunds and deletion from what the agent can do at all, and Policy in AgentCore evaluates each tool call at the gateway before it runs. Requiring human confirmation for side-effecting actions puts a person in front of anything that changes records. Option A may improve judgement but leaves every dangerous tool within reach, and a stronger model can still be manipulated. Option B is guidance the model can be talked out of, which is how the crafted email succeeded. Option E creates an audit trail that explains the damage afterwards without preventing it.
- Q27 Choose 2
A developer is adding a stock-level lookup to a retail assistant that calls Amazon Bedrock through the Converse API. The lookup is an existing internal function that takes a SKU and a store ID. When a shopper asks whether an item is in stock, the model should request the lookup with the right arguments and then use the real stock level in its answer.
Which two steps make up the tool-use integration?
- A Define the tool in the tool configuration with a name, a description and a JSON input schema Correct
- B Wait for Amazon Bedrock to run the internal function itself and append the stock level to the reply
- C Fine-tune the model on the function's documentation so it returns stock levels without any tool
- D Raise the temperature so the model answers directly instead of stopping with a tool request
- E Run the function with the model's arguments and send the output back as a toolResult message Correct
Why A and E
With the Converse API, tool use is a loop the application drives. The application first describes each tool in the tool configuration, giving it a name, a description that tells the model when to use it, and a JSON schema for its inputs, so the model can request it with valid arguments. When the model stops with a tool_use stop reason, it has only asked for the call; the application must run the function itself and return the output in a toolResult content block, matched to the request's ID, in the next user message so the model can compose its answer. Option B describes something Converse does not do: the model never executes the internal function. Option C cannot teach a model stock levels that change by the minute. Option D adds randomness without connecting the model to the data, so any figure it produced would be invented.
- Q28
An HR assistant built on an Amazon Bedrock knowledge base answers single questions well. It struggles with compound questions such as 'How does parental leave differ between the Dublin and Singapore offices, and which one allows a phased return?', where the relevant passages sit in two separate policy documents.
Retrieval logs show that the single search returns passages about only one office. Which knowledge base configuration change most directly addresses the problem?
- A Turn on hybrid search so office names are matched by keyword as well as by meaning
- B Raise the number of retrieved results from 5 to 50 for every query
- C Enable query decomposition so the question is split into sub-queries that are each retrieved Correct
- D Add a re-ranking model that reorders the single search's passages by relevance
Why C
Query decomposition, an orchestration option on RetrieveAndGenerate, has the knowledge base break a complex question into smaller sub-queries, for example one about each office's parental leave and one about phased return, and run each against the index before the answer is generated. Each sub-query retrieves its own focused passages, so both policy documents reach the model. Option A improves exact matching of terms such as office names, but it still issues one search whose embedding blends two topics. Option B returns more passages from the same blended search, padding the prompt with near-misses while possibly still favouring one office. Option D can only reorder what the single search already returned; it cannot add passages for the office that the search missed.
- Q29
A payments processor handles 50 million card transactions a month. Only 140 transactions have been confirmed as fraud, and investigators report that each new fraud scheme looks quite unlike the ones before it. The risk team wants a model that surfaces individual transactions behaving unusually, including those belonging to schemes nobody has seen yet.
Which approach best meets this requirement?
- A A supervised binary classifier trained on the 140 confirmed fraud transactions
- B A time-series forecast of the total number of transactions per day
- C Unsupervised anomaly detection that flags deviations from normal behaviour Correct
- D A multiclass classifier trained to recognise each known fraud scheme
Why C
Unsupervised anomaly detection learns what normal transactions look like, from amounts, timing, merchants and device patterns, and flags the ones that deviate from it, so it needs no fraud labels and can surface schemes that have never been seen before. That fits a problem where labelled fraud is scarce and new tactics bear little resemblance to old ones. Option A has only 140 positive examples against 50 million negatives, and a classifier can only learn to recognise patterns resembling those 140, which is precisely what new schemes avoid. Option B forecasts aggregate volume per day, so it might notice a spike but cannot point to which individual transactions are suspicious. Option D can only assign transactions to the scheme types it was trained on, so a novel scheme would be forced into a known class or missed.
- Q30 Choose 2
A payroll provider's assistant runs on a foundation model with no retrieval and no web access. Asked about the statutory minimum wage, it confidently quotes the rate that applied before an increase took effect two months ago. Separately, auditors ask the provider to show why the assistant advised that one overtime arrangement was lawful; engineers can see the prompt and the answer, but cannot point to what inside the model produced that conclusion.
Which two limitations of generative AI explain these two problems?
- A The prompts exceeded the model's context window, so the start of each question was discarded
- B The model was overfitted to its fine-tuning data and has lost much of its general knowledge
- C The model's knowledge stops at its training cutoff, so it is unaware of changes made since Correct
- D The model's internal workings are opaque, so the reason for a given output cannot be traced Correct
- E A prompt injection hidden in the questions instructed the model to give misleading answers
Why C and D
These are two distinct limitations. A foundation model knows only what was in its training data, so a rate that changed two months ago, after the training cutoff, is simply absent and the model reports the old figure with full confidence; grounding answers in current documents through retrieval addresses it. The audit problem is interpretability: an output emerges from billions of learned parameters, and there is no rule or feature weighting to point to, so the model cannot show why it reached a conclusion. Citing sources and keeping a human reviewer accountable for advice mitigate it. Option A is unlikely for short questions, and an overflow causes rejection or truncation, not a confident stale figure. Option B assumes fine-tuning that the scenario never mentions. Option E would require malicious text in the input, and these are plain questions from staff.
- Q31
A bank's document classifier on Amazon Bedrock relies on in-context learning: every request carries 30 worked examples, adding about 5,000 input tokens. An internal compliance tool sends roughly 200 such requests a month, while the customer-onboarding service sends about 4 million.
A fine-tuned model would no longer need the examples, but it carries a one-off training charge plus ongoing charges for serving the custom model. Which approach gives the lowest overall cost for each workload?
- A Fine-tune for both workloads, since dropping the examples always lowers cost
- B Keep in-context learning for both workloads, since it has no training charge
- C Keep in-context learning for the compliance tool and fine-tune a model for onboarding Correct
- D Fine-tune for the compliance tool and keep in-context learning for onboarding
Why C
The two approaches spend money in different places. In-context learning has no up-front cost, but the examples are re-sent and billed as input tokens on every request, so its cost grows in step with volume. Fine-tuning moves that spend into a one-off training job and an ongoing serving charge that does not depend on how many examples would have been sent. At 200 requests a month, 5,000 extra tokens each is a trivial sum that could never repay training and serving a custom model. At 4 million requests, the same examples add about 20 billion input tokens a month, which can far exceed the fixed cost of a fine-tuned model. Option A ignores the fixed serving charge that dominates at low volume. Option B ignores how the per-request token cost scales at high volume. Option D inverts the trade-off for both workloads.
- Q32 Choose 2
A motor insurer receives 25,000 scanned claim forms a month. Each form has labelled fields such as Policy number and Date of incident with handwritten values beside them, and a grid listing each repair item with its description, quantity and cost. The claims system needs every value linked to its field label and every repair line kept together as a row.
Which two capabilities should the insurer use?
- A Amazon Textract DetectDocumentText for the lines and words on each page
- B The SIGNATURES feature type of Amazon Textract AnalyzeDocument
- C The FORMS feature type of Amazon Textract AnalyzeDocument Correct
- D Amazon Comprehend entity recognition on the extracted page text
- E The TABLES feature type of Amazon Textract AnalyzeDocument Correct
Why C and E
AnalyzeDocument with the FORMS feature type returns key-value pairs, linking a label such as Policy number to the value written beside it, along with selection elements such as tick boxes. The TABLES feature type returns each table as rows, columns and cells, so every repair line keeps its description, quantity and cost together. Requesting both feature types covers the two requirements in one call. Option A returns lines and words of text but no relationship between a label and its value, or between the cells of a row, which is exactly the structure the claims system needs. Option B locates signatures on the page and says nothing about field values or itemised costs. Option D finds entities such as names and dates in a flat stream of text after the page structure has already been lost, so it cannot say which value belongs to which field.
- Q33
A publishing house plans to generate first-draft blurbs and back-cover copy for 3,000 titles a year on Amazon Bedrock. Its legal counsel is chiefly concerned that a third party might later claim a generated passage infringes its copyright, and wants contractual protection from AWS against such claims, not only technical controls.
The team is free to choose any text model available in its Region.
Which choice addresses counsel's concern most directly?
- A Use any third-party model on Bedrock, because AWS indemnifies the outputs of every model the service hosts
- B Use a generally available Amazon Nova text model, whose outputs AWS covers with uncapped IP indemnity Correct
- C Run every blurb through Amazon Macie before publication to detect copyrighted passages in the text
- D Attach a guardrail with every content filter set to High strength so that infringing passages are blocked
Why B
Under Section 50.10 of the AWS Service Terms, AWS offers uncapped intellectual property indemnity for the output of its Indemnified Generative AI Services, which include the generally available Amazon Nova models: AWS defends the customer against third-party claims that the output infringes their IP. The cover has conditions, such as keeping available filters enabled, following the service instructions and not knowingly using infringing output, so the publisher must stay within them. Option A overstates the cover, which applies to the services AWS lists, not to every third-party model on Bedrock. Option C misuses Amazon Macie, which discovers sensitive data such as PII in Amazon S3 and does not check text for copyright. Option D filters categories such as hate, insults and violence, none of which detects copied text, and a filter is not the contractual protection counsel asked for.
- Q34
A clinic network trained a classifier on patient records to predict the risk of a rare condition, and plans to expose it through a public API that returns the model's confidence score with each prediction. During a review, a red team submits the exact record of a named patient and observes a markedly higher confidence than for similar records it invented, then repeats this for other people.
Which attack is the red team demonstrating, and what does it expose?
- A Data poisoning, which exposes that manipulated records were inserted into the training set to change predictions
- B An adversarial evasion attack, which exposes inputs crafted to make the classifier return the wrong prediction
- C Model extraction, which exposes enough of the model's behaviour for an attacker to train a working copy of it
- D Membership inference, which exposes whether a particular person's record was part of the training data Correct
Why D
Models tend to be more confident on records they were trained on than on similar unseen ones, so comparing confidence for a named person's exact record reveals whether that person was in the training set, and here that alone discloses that they were treated by the clinic network. The related model inversion attack uses outputs to reconstruct sensitive attributes of training data. Mitigations include returning labels rather than raw scores, rate limiting and training with differential privacy. Option A tampers with the data before training, whereas the red team only queries a finished model. Option B aims to change a prediction, not to learn anything about the training set. Option C copies the model's function through many queries and reveals nothing about individual patients.
- Q35
A logistics company wants a model to label inbound customer emails as Delivery delay, Damaged item, Billing or Other. The categories are well defined and easy for a general-purpose language model to recognise. In a test on 500 emails, a prompt containing only a clear instruction and the four category names, with no examples, labelled 97 percent correctly, which meets the target.
A developer proposes adding worked examples to every request anyway. Which approach should the team use for this task?
- A Few-shot prompting, adding several labelled emails per category to every request
- B Chain-of-thought prompting, asking the model to reason step by step before labelling
- C Zero-shot prompting, relying on the clear instruction and the category names alone Correct
- D Fine-tuning a model on a labelled training set of several thousand emails
Why C
Zero-shot prompting gives the model an instruction with no examples and relies on what it already knows. When the task is simple, the categories are unambiguous and testing shows the target is met, zero-shot is the right choice: it uses the fewest input tokens, keeps the prompt short and easy to maintain, and adds no examples that might skew the labels towards their wording. Option A would help if the model were misreading the categories, but here it adds tokens to every request for no measured gain. Option B adds reasoning tokens and latency to a one-word classification that is already accurate. Option D requires labelled data, a training job and serving costs to solve a problem that the instruction alone has already solved.
- Q36
A national museum wants draft text descriptions for 80,000 digitised photographs in its online archive, so that screen-reader users can explore the collection. Curators will review every draft before it is published. The team has a shortlist of four models available in Amazon Bedrock and will compare their prices once it knows which are usable.
Which model on the shortlist can perform this task?
- A Amazon Nova Micro
- B Amazon Titan Text Embeddings V2
- C Amazon Nova 2 Sonic
- D Amazon Nova Lite Correct
Why D
Model selection starts with the modalities a task needs on each side. Writing a description of a photograph needs a model that accepts images as input and returns text. Amazon Nova Lite reads text, images and video and responds in text, at a low price per token, so it fits the archive and the curators can review its drafts. Option A is the cheapest model on the list, but it is text-only and cannot accept a photograph at all, so its price is irrelevant. Option B also takes only text, and its output is a numeric vector for search and similarity rather than readable prose. Option C is a conversational speech model that takes speech and text and replies in speech and text; it has no way to receive an image. Checking the input and output modalities on each model card rules out three of the four before price is even compared.
- Q37 Choose 2
A pharmacy services company transcribes recorded calls between a pharmacist and a patient with Amazon Transcribe. The recordings are single-channel, with both voices mixed together. Transcripts keep misspelling about 300 drug names, such as Zelvoxa and Tremadrin, and analysts cannot tell which person said each line. The team has a list of the drug names but no large body of domain text.
Which two Amazon Transcribe features should the team use with the least effort?
- A A vocabulary filter containing the drug names
- B A custom vocabulary containing the drug names Correct
- C Channel identification
- D A custom language model
- E Speaker diarization Correct
Why B and E
A custom vocabulary lists domain-specific words, such as brand names, acronyms and proper nouns, that Amazon Transcribe is rendering incorrectly, and the team already holds the 300 drug names it needs to build one. Speaker diarization partitions a single audio stream by voice and labels each segment with a speaker, so the transcript shows which of the two people said each line. Option A does something else entirely: a vocabulary filter masks, removes or tags listed words in the output rather than improving how they are recognised. Option C separates speakers by audio channel, so it helps only when each party was recorded on its own channel, and these recordings mix both voices into one. Option D adapts recognition to a domain by training on a large body of domain text, which the team does not have and which is far more effort than a word list.
- Q38 Choose 2
An operations manager at a water utility pastes a 3,000-word outage report into a chat assistant beneath the single line 'Summarise the following.' The summaries vary from one sentence to a full page, and they are written in engineering jargon, although they are meant for the company's board, which needs a short briefing focused on business impact.
Which two prompt elements are missing and should be added?
- A An instruction that states the task the model should perform, such as summarising the text below
- B Context explaining that the readers are board members who need business impact, not technical detail Correct
- C An output indicator giving format and length, such as five bullet points of at most 20 words Correct
- D Input data, in the form of the complete 3,000-word outage report that the model is asked to summarise
- E A higher temperature setting so that the model varies its wording and structure between runs
Why B and C
A well-formed prompt typically combines an instruction, context, input data and an output indicator. This prompt already contains an instruction, the request to summarise, and input data, the pasted report. What it lacks is context about who will read the summary and why, which is why the language defaults to engineering jargon, and an output indicator stating the expected format and length, which is why the summaries range from one sentence to a page. Adding both addresses each observed symptom directly. Option A is already present in the line asking for a summary. Option D is already present as the pasted report. Option E is an inference parameter rather than a prompt element, and more randomness would make the length and tone less consistent, not more.
- Q39 Choose 2
A media group maintains seven separate task-specific machine learning models for sentiment, topic tagging, language detection and similar jobs. Each one needed its own labelled dataset and is retrained on its own schedule. Editors now also want to draft headlines and ask questions about the archive in plain language, and a proposal suggests a single foundation model in their place.
Which two advantages of foundation models support the proposal?
- A The same input always produces an identical output, so each result is fully repeatable
- B One pre-trained model adapts to many tasks through prompting, without a dataset per task Correct
- C Each output can be traced to the specific inputs and rules that produced it for audit
- D The model can generate new text and hold a conversation, rather than only assign labels Correct
- E Outputs can be published straight away, with no need for any human review of what it writes
Why B and D
Two advantages of foundation models apply here. Adaptability: a model pre-trained on broad data can take on sentiment, tagging, language detection and new jobs through instructions and a few examples, instead of a labelled dataset and a retraining cycle for every task. Generation and conversation: a foundation model writes new content and responds to follow-up questions in natural language, which covers headline drafting and questions about the archive that no classifier can serve. Option A describes the opposite of how these models behave; they sample their output, so identical inputs can produce different responses. Option C is a known weakness, because a foundation model's reasoning cannot be traced to specific rules. Option E is a misconception: a foundation model can produce fluent but wrong or unsuitable text, so drafted headlines and answers still need editorial review before they reach readers.
- Q40 Choose 2
A credit union trains a model to predict loan default from 180,000 historical applications. Applicants aged over 70 make up 2 percent of the training rows, and on the validation set the error rate for that group is three times the error rate for everyone else, although overall accuracy looks healthy.
The data science team wants to correct the imbalance in the training data before it considers a different model.
Which two actions directly address the imbalance?
- A Oversample the under-represented group, duplicating or synthesising its records so it carries more weight in training Correct
- B Remove the age column from the training data so that the model cannot take an applicant's age into account at all
- C Assign higher sample weights to the under-represented group's records so that errors on them cost more in training Correct
- D Train for more epochs on the same data so that the model makes more passes over the older applicants' records
- E Report only overall accuracy on the validation set, since that figure already shows the model performs well
Why A and C
Both keys change how much the under-represented group influences training. Oversampling raises its share of the training rows, by duplicating records or generating synthetic ones, and undersampling the majority does the same from the other side. Sample or class weights leave the data as it is but make each error on the minority records cost more in the loss function, so the model cannot minimise its loss while ignoring them. Option B is fairness through unawareness: credit history length and other fields still act as proxies for age, and the team loses the ability to measure the disparity. Option D repeats the same imbalanced data, so extra passes mainly fit the majority better and risk overfitting the few minority rows. Option E hides the problem the validation results revealed instead of fixing it.
- Q41
An insurer uses a foundation model in Amazon Bedrock to extract the policy number, claim type and payout amount from incoming claim emails as JSON, which is posted straight to the claims system's API that schedules payments. Every few hundred emails the model returns malformed JSON, adds unexpected fields, or writes the amount as text such as "roughly 2,000". Once, the amount field contained an instruction copied from the email body.
Which control should sit between the model and the claims API?
- A Raise the maximum output tokens so that the model never truncates the JSON object it returns
- B Validate each response against a strict schema of fields, types and ranges, routing failures to review Correct
- C Apply an Amazon Bedrock guardrail with the hate, insults and violence content filters set to high strength
- D Set the temperature to zero so that the model returns the same structure for every email it processes
Why B
Model output is untrusted input to whatever consumes it. A strict schema check on required fields, data types, numeric ranges and the absence of extra keys catches malformed JSON, text in a numeric field and injected instructions before the claims API can act on them, and anything that fails goes to a person instead of becoming a payment. Option A fixes truncation at most, while the failures described are wrong content, not cut-off content. Option C filters harmful language categories, none of which describes a malformed amount or a smuggled instruction. Option D makes output more repeatable, but deterministic output can still be wrong for a given email, and nothing checks it before it schedules a payment.
- Q42 Choose 2
A property-management firm's tenant chatbot on Amazon Bedrock uses a system prompt that contains an API key for its maintenance-ticketing system, together with an internal rule: offer a rent-arrears payment plan only to tenants whose account carries the GOLD flag, and keep the rule confidential. A user persuaded the chatbot to repeat its instructions word for word, and the key and the rule were posted online.
Which two changes remove the underlying risk rather than only making extraction harder?
- A Remove the API key from the prompt and keep it server-side, fetched by backend or tool code at call time Correct
- B Add a line to the system prompt telling the model never to reveal, quote or paraphrase its instructions
- C Lower the temperature so that the model reproduces its own instructions less readily when asked
- D Treat the system prompt as public, enforcing payment-plan eligibility and authorisation checks in code Correct
- E Move the API key and the confidential rule from the system prompt into the first user message of each session
Why A and D
Anything placed in a model's context can potentially be extracted, because the model has no reliable way to keep part of its own input secret. The durable fix is to keep secrets out of that context: the key belongs in a secrets store, used by backend or tool code that the model can ask to act but never reads, and the leaked key must be rotated. Likewise, the prompt should be written on the assumption that it will be disclosed, so eligibility for a payment plan is decided by code that checks the account flag, not by a hidden instruction the model may reveal or be talked out of. Option B is itself an instruction that a determined user can talk the model past. Option C changes sampling, not what the model can see. Option E moves the same secrets into another part of the same context.
- Q43
A software company uses Amazon Translate to publish its English help centre in nine languages. Reviewers find that product names such as FlowDesk Pulse and QuickLedger are being translated word by word, so the Spanish articles refer to a product that does not exist. The company wants these names left unchanged in every language, without training a model.
Which approach meets this requirement with the least effort?
- A A custom terminology file mapping each product name to itself Correct
- B Active Custom Translation trained on parallel data from past articles
- C The formality setting, set to formal for every target language
- D Profanity masking applied to every translation request
Why A
Custom terminology supplies source terms together with the target text to use, and when Amazon Translate finds a match in the source it applies the terminology entry, so mapping FlowDesk Pulse and QuickLedger to themselves keeps the names unchanged across all nine languages. It is a small file attached to translation requests, with no training job involved. Option B steers translations towards the style and wording of example parallel data, which means assembling pairs of translated articles, adds cost, and is aimed at overall domain style rather than pinning individual names. Option C adjusts the register of the output, for example formal versus informal forms of address, and leaves the product names translated exactly as before. Option D masks profane words and phrases in the output, which has no bearing on brand or product names.
- Q44
A legal-technology start-up fine-tuned Meta Llama 3.3 70B Instruct in Amazon Bedrock in us-west-2 last month so that it drafts clause summaries in the firm's house style. Lawyers call it from an editor and wait for each draft. Traffic is low and spiky: a few hundred requests on a busy weekday, bursts before deadlines, and almost nothing at night or at weekends.
Which way of serving the fine-tuned model is most cost-effective for this traffic?
- A Buy Provisioned Throughput for the custom model, sized for peak with a monthly commitment
- B Create a custom model deployment and invoke it on demand, paying per token processed Correct
- C Retrain the model outside Amazon Bedrock and host it on a self-managed fleet of EC2 GPUs
- D Submit each lawyer's request to Amazon Bedrock batch inference as soon as it arrives
Why B
Amazon Bedrock can serve a customised model on demand through a custom model deployment: once deployed, the deployment's ARN is used as the model ID, and the team pays only for what it uses, with no provisioned compute to size or idle through the night. Support covers models customised on or after 16 July 2025, including Meta Llama 3.3 70B Instruct in US West (Oregon) and several Amazon Nova models in US East (N. Virginia). Option A charges for reserved model units every hour whether or not anyone is drafting, so capacity sized for deadline bursts sits idle most of the week. Option C repeats the training work and adds always-on GPU instances plus patching, scaling and monitoring the team must run itself. Option D returns results asynchronously, which suits offline jobs but leaves a lawyer waiting in the editor for a draft that arrives later.
- Q45
A public library's homework-help assistant refuses a request for instructions on bypassing a car immobiliser. The same user then asks it to write a short story in which a character called Rook, described as an AI with no rules, explains to an apprentice exactly how he bypasses immobilisers, step by step.
The user is not trying to reveal the system prompt or change what the assistant is for; the aim is to obtain content that the model would normally refuse. Which type of attack is this?
- A Jailbreaking, using role-play to talk the model out of its built-in safety behaviour Correct
- B Prompt injection, inserting instructions that override the developer's task
- C Prompt leaking, coaxing the model into revealing its hidden instructions
- D Training data poisoning, corrupting the data that the model learns from
Why A
Jailbreaking aims to bypass a model's built-in safety and moderation behaviour so that it produces content it was trained to refuse. Persona and role-play framing, such as a character with no rules whose dialogue happens to contain the forbidden instructions, is a classic jailbreak technique, and the stated goal is harmful content rather than anything about the application's configuration. Option B describes input that tries to override the developer's instructions, for example telling a homework helper to act as a different tool; the distinction matters because the two are mitigated differently, and Amazon Bedrock Guardrails reports them as separate prompt attack types. Option C targets the system prompt, which this user is not after. Option D attacks a model while it is being trained, not through a chat request at inference time.
- Q46
A car maker's in-vehicle assistant sends drivers' transcribed questions to Amazon Nova Pro through a cross-Region inference profile from us-east-1. Nova Pro's answers meet the accuracy target, but user research shows drivers abandon a request when the reply takes more than a moment. The team wants faster responses from the same model, with no fine-tuning and no change of model.
Which Amazon Bedrock option should the team enable?
- A Latency-optimized inference, set in the latency field of the performance configuration Correct
- B Batch inference, collecting drivers' questions into a file that is processed from Amazon S3
- C The Flex service tier, set through the service_tier parameter on each runtime request
- D Model distillation, training a smaller custom model from Nova Pro's answers to serve instead
Why A
Latency-optimized inference serves a supported model with significantly lower latency and no loss of accuracy, without fine-tuning or a model change: the request sets the latency field of its performance configuration to optimized. Amazon Nova Pro supports it through cross-Region inference from US East (N. Virginia), US East (Ohio) and US West (Oregon); the feature is in preview, and once its quota is used up requests fall back to standard latency at standard rates. Option B processes requests asynchronously and returns results later, which is useless to a driver waiting for a spoken reply. Option C trades response time for a discount, so replies may arrive more slowly rather than faster. Option D produces a different, smaller model and requires a training job, both of which the team has ruled out.
- Q47
An insurer's gradient-boosted model gives every new motor claim a fraud-risk score, and claims above a threshold go to an investigator. Investigators complain that they receive a score such as 0.87 with no indication of why that particular claim was flagged.
The analytics team wants each flagged claim to show which of its features pushed its score up or down, and by how much, relative to the average claim.
Which explanation technique meets the requirement?
- A A partial dependence plot for each feature, showing how the average predicted score changes as it varies
- B SHAP values computed for each claim, attributing that claim's score to its individual feature contributions Correct
- C A confusion matrix for each claim type, showing how often flagged claims turned out to be fraudulent
- D A permutation feature importance ranking, showing which features matter most across all claims
Why B
SHAP, based on Shapley values from cooperative game theory, gives a local explanation: for one prediction it assigns each feature a positive or negative contribution, and the contributions add up to the difference between that claim's score and the model's average score. An investigator can see, for example, that a recent policy start and a late-night incident time raised this score while a long claims-free history lowered it. Option A is a global technique: it shows the average effect of a feature across the dataset, not why one claim scored 0.87. Option C measures how accurate the flagging is, which says nothing about the reasons behind any single score. Option D is also global, ranking features by how much they matter overall, and the features driving one claim can differ from that ranking.
- Q48
A publishing group's legal team uses a third-party contract-management application with built-in AI drafting under an enterprise agreement. Separately, its newsroom engineers run an Amazon Bedrock customisation job that fine-tunes a foundation model on 80,000 of the group's archived articles, then call the resulting custom model from an internal headline-suggestion tool. The security team is mapping each initiative to the controls it owns.
Under the Generative AI Security Scoping Matrix, which scope does the headline-suggestion tool fall into?
- A Scope 4, fine-tuned models Correct
- B Scope 3, pre-trained models
- C Scope 5, self-trained models
- D Scope 2, enterprise applications
Why A
The matrix places an organisation that refines an existing third-party foundation model with its own data, producing a new model specialised to its workload, in Scope 4. That is the newsroom's case, so the security team also owns the governance of the 80,000 training articles and of the custom model, on top of the application controls. Option B describes building an application on a foundation model through its API without changing the model, as a RAG assistant on Amazon Bedrock would. Option C applies when an organisation trains a model from scratch on data it owns or acquires and owns every aspect of it. Option D fits the legal team's contract tool, a vendor application with AI built in, but not the newsroom's custom model.
- Q49
A retailer's data science team receives three years of loyalty-programme data with 60 columns. Before choosing features or an algorithm, the team plots a histogram of each column, computes correlations between pairs of columns, discovers that one column is 40 percent empty, and finds negative values in a field that records spend.
Which stage of the machine learning lifecycle is the team in?
- A Feature engineering
- B Model evaluation
- C Hyperparameter tuning
- D Exploratory data analysis Correct
Why D
Exploratory data analysis is the stage in which a team examines a new dataset before modelling, plotting distributions, computing summary statistics and correlations, and spotting problems such as missing values, outliers and impossible entries. Its findings then shape cleaning, feature choices and even whether the data can support the use case at all. Every activity in the scenario, from the histograms to the 40 percent gap and the negative spend values, is discovery rather than transformation. Option A creates or transforms input columns, for example by encoding categories or deriving tenure, and it follows the analysis that tells the team which features are worth building. Option B scores a trained model on held-out data, and no model exists yet. Option C searches training settings such as the learning rate, which also requires an algorithm to have been chosen.
- Q50
A media company is moving a long-standing summarisation prompt, written and tuned for a different model, to Amazon Nova Pro on Amazon Bedrock. Early tests show that the old prompt's structure suits Nova Pro poorly.
The team wants Amazon Bedrock to analyse the prompt and produce a rewritten version tailored to Nova Pro that can be compared side by side with the original, without hand-crafting variants. Which Amazon Bedrock capability meets this need?
- A Prompt optimization, with Nova Pro selected as the target model for the rewrite Correct
- B Prompt Management, saving the existing prompt as a new numbered version
- C Intelligent Prompt Routing, sending each request to a suitable model in one family
- D Prompt caching, storing the repeated prompt prefix to reduce cost and latency
Why A
Amazon Bedrock prompt optimization analyses the components of a prompt and rewrites it for a model the user selects, either from the optimize action in a playground or in Prompt Management, or through the OptimizePrompt API with a target model ID. The rewritten prompt appears beside the original so that the team can compare outputs and adopt it, which is exactly this migration task. The simple mode is a quick heuristic rewrite that works best on prompts of around 1,000 tokens or fewer, and the result should still be tested against the team's own examples. Option B stores and versions prompts but does not rewrite them for a different model. Option C decides which model serves each request and leaves the prompt text unchanged. Option D lowers the cost and latency of repeated prompt prefixes without altering their wording.
- Q51
A research firm runs a nightly agentic workflow on Amazon Bedrock in which each step sends a request through the runtime API, reads the response and uses it to build the next request. Nobody reads the results until morning, so slower responses are acceptable, but the firm wants a lower price per token without restructuring the workflow.
Which option should the firm use at the lowest cost?
- A The Priority service tier, which serves requests ahead of the other tiers
- B Batch inference, submitting all of the night's prompts as one file in Amazon S3
- C The Flex service tier, set through the service_tier parameter on each request Correct
- D The Reserved service tier, with a one-month reservation of capacity
Why C
Amazon Bedrock service tiers trade cost against response time on the same runtime APIs. The Flex tier applies a pricing discount in exchange for potentially longer processing, and AWS positions it for work such as model evaluations, summarisation and agentic workflows; the firm only sets the service_tier parameter to flex on each request, so the workflow is unchanged. Option A charges a premium over standard pricing for the fastest responses, the opposite of what an unattended overnight job needs. Option B is also discounted, but a batch job takes a prepared file of independent prompts and returns all the results later, while this workflow builds each request from the previous response, so it would have to be redesigned. Option D reserves capacity at a fixed monthly price for mission-critical traffic that cannot tolerate downtime, far more than a delay-tolerant nightly job requires.
- Q52
A data-platform company wants a smaller model on Amazon Bedrock to turn analysts' plain-English questions into SQL for its warehouse schema. It has 3,000 logged analyst questions, each paired with the result table the analyst eventually accepted, but almost none has the correct SQL written down, and writing it by hand would take months.
Every generated query can be executed against a test copy of the warehouse and its output compared with the accepted result. Which customisation approach best fits this situation with the least manual labelling?
- A Supervised fine-tuning on question and SQL pairs that the team first writes by hand
- B Reinforcement fine-tuning, with a Lambda reward function that runs each generated query and scores its output Correct
- C Continued pre-training on a large unlabelled collection of SQL scripts gathered from public code repositories
- D Reinforcement learning from human feedback, with hired annotators ranking pairs of generated queries
Why B
Reinforcement fine-tuning in Amazon Bedrock learns from rewards instead of labelled responses. The model generates several candidate answers for each prompt, a reward function grades every one, and training shifts the model towards the higher-scoring behaviour. A Lambda function that executes the SQL against the test warehouse and compares its output with the accepted result is an objective, automatic grader, so the 3,000 logged questions become usable training data without anyone writing SQL. Option A needs the very labelled pairs the company lacks, and writing them is the months of work it wants to avoid. Option C absorbs general SQL style from unlabelled text but never learns this schema or whether a query returns the right answer. Option D swaps an automatic, exact check for human preference rankings, which are slower, costlier and less precise for output that can be verified.
- Q53
Every month a data scientist at a telecoms provider retrains its churn model by running seven notebooks by hand, in order: data processing, training, evaluation, and registering the new model only if its AUC beats the current one. Steps are sometimes skipped, and nobody can say which run produced the model now in production.
Which AWS capability should the team adopt to make this workflow repeatable and automated with the least custom infrastructure to manage?
- A Amazon SageMaker Feature Store
- B Amazon SageMaker Data Wrangler
- C A cron job on an Amazon EC2 instance that runs the notebooks in order
- D Amazon SageMaker Pipelines Correct
Why D
SageMaker Pipelines defines an ML workflow as a series of connected steps, such as processing, training, evaluation, a condition and model registration, and runs it the same way every time on orchestration that SageMaker AI provisions and scales. Each execution is versioned and its lineage recorded, so the team can see which data and which run produced which model, and a condition step can register the model only when its AUC beats the current one. Option A stores and serves engineered features for reuse across models, but it orchestrates nothing. Option B is a visual tool for preparing data, which covers one of the seven steps. Option C would run the notebooks unattended, yet it leaves an instance and its scripts for the team to maintain and records no lineage or step history, so a failed step could still go unnoticed.
- Q54
A small-business lender declines about 400 loan applications a month using a machine learning model. A new policy requires every declined applicant to receive an explanation that makes sense to someone without data science knowledge and that helps them understand what they could do before reapplying.
The model team already produces internal explanation charts for its risk analysts.
Which form of explanation best meets the policy for applicants?
- A A chart of the applicant's feature attribution scores, showing how much each input moved the model's risk score
- B A ranking of the features that matter most to the model across all applications, published on the lender's website
- C A statement of the smallest realistic changes to the applicant's own figures that would have led to approval Correct
- D The model source code and trained weights, so that any applicant can inspect exactly how the decision was reached
Why C
A counterfactual explanation answers the question an applicant actually has: what would have had to be different for the decision to change. Phrased as the smallest realistic changes to the applicant's own figures, for example existing debt below a stated level or twelve more months of trading history, it is understandable without technical knowledge and points directly to what could be done before reapplying. Option A is a valid local explanation for analysts, but scores in model units tell an applicant which inputs mattered, not what change would lead to approval. Option B is global, so it describes the model in general rather than this applicant's decision. Option D maximises openness in a form no applicant can use, and exposing the model's internals invites applicants to game it.
- Q55
A software company runs four AI features, each owned by a different product team, through one shared gateway service. The gateway runs under a single IAM role and calls the same Anthropic Claude model through the Amazon Bedrock Converse API on the bedrock-runtime endpoint. Finance wants each feature's share of the Amazon Bedrock bill to appear in AWS Cost Explorer, grouped by owning team, without moving the features into separate accounts.
Which approach meets the requirement with the least ongoing effort?
- A Tag the gateway's IAM role with a team tag, activate it as a cost allocation tag, and group the Amazon Bedrock costs by it
- B Create an AWS Budgets budget filtered to Amazon Bedrock with alert thresholds at each team's expected share of spend
- C Create an application inference profile per feature, tagged with its owning team, and invoke each feature through it Correct
- D Enable model invocation logging and have each team estimate its monthly spend from the token counts recorded in the logs
Why C
An application inference profile is a taggable Amazon Bedrock resource that wraps a model, so each feature passes its own profile ARN as the model identifier and the usage and cost of those calls carry that profile's tags. Once the team tag is activated as a cost allocation tag, Cost Explorer groups the bill by it with no further work. Option A describes a real feature: since April 2026 Amazon Bedrock can allocate costs by IAM principal tags, and it works well when each team calls under its own role. It fails here only because all four features share one role, so every dollar lands under the same tag. Option B alerts on spend against thresholds, but a budget splits nothing between teams. Option D could approximate each share, yet it is a manual monthly estimate from token counts, not attribution that appears on the bill.
- Q56
A retailer's shopping assistant calls a foundation model in Amazon Bedrock from eu-west-1. During flash sales, traffic spikes unpredictably for a few hours and requests are throttled, while the rest of the month is quiet. Company policy requires all inference to be processed inside the EU.
Which change increases burst throughput and resilience while keeping processing inside the EU?
- A Purchase Provisioned Throughput in eu-west-1 sized for the flash-sale peak
- B Switch the assistant to a global cross-Region inference profile for the model
- C Move the assistant's requests to Amazon Bedrock batch inference during sales
- D Invoke the model through an EU geographic cross-Region inference profile from eu-west-1 Correct
Why D
A cross-Region inference profile lets Amazon Bedrock route each request to a Region in a defined set that has capacity, which absorbs bursts that would throttle a single Region and keeps serving when one Region is under pressure. Choosing the EU geographic profile limits routing to EU Regions, so the residency policy holds, and there is no additional routing charge; the price follows the Region the call is made from. Option A buys dedicated capacity sized for a few hours of peak and pays for it through a quiet month, a commitment that suits steady demand rather than short, unpredictable spikes. Option B can route requests to any supported commercial Region worldwide, which breaks the EU-only policy. Option C makes shoppers wait for asynchronous results, which an interactive assistant cannot do.
- Q57
A news aggregator is choosing between two foundation models on Amazon Bedrock for a summarisation feature. Before launch, the product owner wants evidence of how often each model produces toxic language and how far its summaries degrade when the input contains typos or odd capitalisation, so that the two can be compared on equal terms.
The team has no reference summaries of its own and no reviewers to spare. Which approach provides this comparison with the least effort?
- A Write a custom test harness that sends prompts to both models and scores the replies with an in-house toxicity classifier
- B Run Bedrock automatic evaluation jobs on both models with the built-in dataset and metrics for toxicity and robustness Correct
- C Create a model evaluation job in which staff reviewers rate each model's summaries for toxicity and quality
- D Compare the perplexity of each model, measured on a large general-purpose text corpus
Why B
Automatic model evaluation jobs in Amazon Bedrock run a model against a prompt dataset and compute the scores without any human reviewers. For text summarisation, Bedrock supplies a built-in dataset with metrics that include a toxicity score and a robustness score that measures how much output quality changes when prompts are slightly perturbed, for example by typos or changes of case. Running the same job on each candidate gives directly comparable results, and the built-in dataset means the team supplies no reference summaries. Option A could measure similar things, but building, validating and maintaining the harness and classifier is the effort the team wants to avoid. Option C needs reviewers the team does not have, and humans rating every summary is slow for properties that can be scored automatically. Option D measures how well a model predicts general text, which reveals neither toxic output nor sensitivity to noisy input.
- Q58
An online marketplace plans to suspend seller accounts automatically, with no human review, whenever a model flags them as fraudulent. A wrongly suspended seller loses a week of income while appealing, and many never return. Fraud that the model misses is still caught later by the existing chargeback process.
Which metric should the team prioritise when setting the model's decision threshold?
- A Recall, the share of fraudulent sellers that the model catches
- B Precision, the share of flagged sellers that really are fraudulent Correct
- C Accuracy, the share of all sellers that the model classifies correctly
- D Mean absolute error between predicted and actual fraud scores
Why B
Precision is the share of flagged sellers who really are fraudulent, so it falls with every legitimate seller who is wrongly suspended. When a false positive is the expensive error, as it is when a suspension happens automatically, costs an honest seller income and drives many away, the threshold should be tuned to keep precision high. The marketplace has also said that fraud the model misses is caught later by chargebacks, which makes a missed case the cheaper error here. Option A would be the priority if misses were the costly error, which is the reverse of this situation. Option C is dominated by the large majority of honest sellers and can look excellent while many of them are still being suspended. Option D is a regression metric for continuous values, not a measure of classification errors.
- Q59
A bank has 40 internal REST APIs described by OpenAPI specifications and a set of AWS Lambda functions for account operations. Its developers, building agents with Strands Agents, want those agents to discover and call the APIs and functions as Model Context Protocol tools, with inbound and outbound authentication handled for them.
Which service meets the need without the team writing and hosting its own MCP servers?
- A Amazon Bedrock AgentCore Gateway, with the APIs and functions added as targets Correct
- B Amazon Bedrock AgentCore Runtime, hosting a hand-written MCP server for every API
- C Amazon Bedrock AgentCore Memory, storing the API specifications for agents to recall
- D Amazon Bedrock AgentCore Code Interpreter, letting agents write code to call each API
Why A
Amazon Bedrock AgentCore Gateway converts existing APIs and Lambda functions into MCP-compatible tools: OpenAPI, Smithy and Lambda are supported target types, and the gateway translates an agent's MCP tool calls into the underlying API requests and Lambda invocations. It also handles inbound authentication of the calling agent and outbound credentials for each target, and offers semantic search so agents can find the right tool among many. Option B can host MCP servers, but the bank would still write and maintain one per API, which is the work it wants to avoid. Option C keeps short-term and long-term memory for agents and exposes nothing as a callable tool. Option D runs code in a sandbox; having agents improvise HTTP calls to banking APIs gives no managed tool interface and no managed authentication.
- Q60 Choose 2
A rail operator has built an agent on Amazon Bedrock AgentCore that books tickets by calling a timetable search tool, a seat-reservation tool and a payment tool in sequence. In recent tests, some conversations ended with a polite confirmation even though the agent had called the wrong tool and no seat was actually reserved.
Before release, the team wants measures that show whether the agent behaves correctly, not merely whether its final message reads well. Which two measures should the team track?
- A BLEU score of the agent's final message measured against a reference confirmation message written by staff
- B ROUGE score of the agent's replies measured against a set of human-written example conversations
- C Tool-selection accuracy, checking the agent called the right tool with correct parameters at each step Correct
- D Perplexity of the underlying foundation model measured on a large general-purpose text corpus
- E Task completion, checking that the booking really exists at the end and the trajectory was valid Correct
Why C and E
An agent's quality lies in what it does, so its evaluation has to examine actions and outcomes, not just text. Tool-selection accuracy checks each step of the trajectory, confirming that the agent chose the correct tool and passed valid parameters, which catches the wrong-tool calls seen in testing. Task completion checks the end state against the goal, here whether a reservation really exists, and trajectory evaluation confirms that the steps happened in a sensible order. Managed options such as Amazon Bedrock AgentCore Evaluations include built-in evaluators for task completion and tool usage. Option A and Option B score word overlap with reference text, so a fluent but false confirmation could score well. Option D measures how predictable general text is to the model and says nothing about whether this agent booked anything.
- Q61
A city council uses a model to flag housing benefit claims for possible fraud, and flagged claims are suspended automatically. Claimants find out only from a standard letter, many suspensions turn out to be wrong, and caseworkers say the case system gives them no way to lift a suspension the model has made.
The council's review board asks for a change grounded in human-centred design principles for automated decisions.
Which change should the council make?
- A Raise the model's flagging threshold so that fewer claims are suspended and fewer claimants receive the letter
- B Publish a general page on the council's website describing how its fraud model was trained and evaluated
- C Retrain the model every month on newly confirmed fraud cases so that its flags become more accurate over time
- D Tell claimants the decision was automated and why, and let them appeal to a caseworker who can override it Correct
Why D
Human-centred design for AI decisions keeps people able to understand and contest outcomes that affect them. Telling each claimant that the suspension was automated, with the main reason, and offering an appeal to a caseworker who has the authority to review and reverse it, adds both AI decision transparency and a human override, and the outcomes of appeals feed back where the model is wrong. Option A reduces the number of people affected but leaves every remaining claimant with no route to challenge a mistaken suspension. Option B is general transparency about the model, but it explains nothing about an individual decision and offers no recourse. Option C may improve accuracy over time, yet wrong suspensions will still happen and the people affected still cannot contest them.
- Q62
A US health-technology company with 12 AWS accounts in AWS Organizations plans to summarise clinical notes containing protected health information with Amazon Bedrock. Counsel advises that HIPAA requires a Business Associate Addendum with AWS before any account stores or processes that information, and that accounts created later must be covered without a separate step each time.
Which action satisfies counsel's requirement?
- A Download the latest SOC 2 report from AWS Artifact and file it with the company's HIPAA compliance records
- B Deploy the AWS Config conformance pack for HIPAA security to every account and remediate all of its findings
- C Create an organisation trail in AWS CloudTrail that records every Amazon Bedrock call made in all 12 accounts
- D From the management account, accept the AWS Business Associate Addendum as an organisation agreement in AWS Artifact Correct
Why D
AWS Artifact holds agreements as well as reports, and accepting the Business Associate Addendum as an organisation agreement from the management account covers every existing member account and every account added later. That agreement covers only HIPAA-eligible services such as Amazon Bedrock, and the company still configures them securely. Option A provides audit evidence about the controls AWS operates, which is useful in a compliance file, but a report is not a contract and creates no business associate relationship. Option B checks the company's resource settings against HIPAA-related practices, which helps meet its own obligations but is not the addendum counsel requires. Option C produces an audit trail of API activity, which HIPAA safeguards may call for, yet it puts no legal agreement in place.
- Q63
A vision model at a vehicle-parts plant inspected 1,000 welds, of which 80 were actually defective. It correctly flagged 72 defective welds, wrongly flagged 18 good welds as defective, missed 8 defective welds and correctly passed 902 good ones. The quality lead asks what share of the truly defective welds the model caught.
Which value answers the quality lead's question?
- A 80 percent
- B 97.4 percent
- C 90 percent Correct
- D 98 percent
Why C
The share of truly defective welds that the model caught is recall: true positives divided by all actual positives, which is 72 divided by 72 plus 8, or 72 out of 80, giving 90 percent. The eight missed welds are the false negatives that recall counts against the model. Option A is precision, 72 out of the 90 welds flagged, which answers how many of the flags were correct rather than how many defects were caught. Option B is accuracy, 974 correct decisions out of 1,000, inflated by the 902 good welds correctly passed. Option D is specificity, 902 out of 920 good welds correctly passed, which describes how the model treats good welds and says nothing about the defective ones the quality lead asked about.
- Q64
A media company self-hosts an open-weight large language model on Amazon EC2 GPU instances to tag articles, serving a high and steady volume of inference requests around the clock. Its engineers are willing to compile the model with the AWS Neuron SDK if that lowers the bill.
Which compute choice is most likely to lower the cost per inference?
- A Amazon EC2 P5 instances with the most powerful NVIDIA GPUs available
- B Graviton-based general-purpose instances running the model on CPU only
- C Amazon SageMaker Serverless Inference endpoints that scale to zero when idle
- D Amazon EC2 Inf2 instances powered by AWS Inferentia2 accelerator chips Correct
Why D
AWS Inferentia2 is a chip that AWS designed for deep-learning inference, and Inf2 instances are positioned to deliver lower cost per inference than comparable GPU instances for models compiled with the AWS Neuron SDK, which the engineers have already accepted. Its counterpart, AWS Trainium, plays the same role for training. Steady, round-the-clock volume is where a cheaper per-inference rate compounds most. Option A offers top GPU performance aimed at training and the very largest models, at the highest hourly price, so it raises cost for a tagging workload. Option B avoids accelerator charges, but generating text from a large language model on CPUs alone is slow enough to need far more instances. Option C suits intermittent traffic, offers no GPU or Inferentia acceleration, and scaling to zero saves nothing when requests never stop.
- Q65
A tax-software company adjusts the system prompt of its filing assistant every few weeks. Last month a wording change fixed one complaint but caused the assistant to give wrong deadline answers to a whole category of self-employed users, which was noticed only after customers complained.
The company wants to catch such regressions before any prompt or model change reaches production. Which practice best meets this goal?
- A Run an A/B test that sends half of all production traffic to each prompt version and compares complaint rates
- B Lower the temperature to zero so that answers stay the same between releases
- C Store every prompt in Amazon Bedrock Prompt Management so that a faulty version can be rolled back quickly
- D Score every change against a golden dataset of representative questions with approved answers before release Correct
Why D
A golden dataset is a curated, version-controlled set of representative inputs, including edge cases such as each category of user, paired with approved reference answers or grading criteria. Running every candidate prompt or model change against it, and comparing the scores with those of the current version, turns a regression into a failed check before release rather than a customer complaint afterwards, and each defect that does escape becomes a new test case. Option A exposes real customers to the faulty version, and suits choosing between versions that have already passed quality checks. Option B makes the same input produce more consistent wording but cannot tell whether that wording is still correct after a prompt change. Option C makes rollback quick once a problem is found, but detection would still depend on complaints.
Ready to try it without the answers in front of you?