Skip to content

Answers & explanations

Mock Exam 2: 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.

  1. Q1

    A retail analytics team splits 240,000 historical orders into a training set, a validation set and a test set. Over three weeks the team compares eleven model variants and repeatedly checks each one against the validation set. A new manager asks why a third split is kept sealed and is only scored once, after the winning variant has been chosen.

    What is the purpose of the sealed test set in this workflow?

    • A It gives the model extra examples to learn from once the training accuracy stops improving
    • B It is where hyperparameters are chosen, because the validation set is reserved for early stopping
    • C It provides one unbiased estimate of performance on unseen data, because no modelling decision was made against it Correct
    • D It replaces the validation set whenever the validation score turns out to be higher than the training score

    Why C

    A three-way split separates the data the model is fitted on, the data used to make choices about the model, and the data used to judge the result. Because the validation set was consulted eleven times, the score on it is optimistic — the choices have been fitted to it. The test set is scored once, after the final variant is fixed, so it estimates how the model will behave on data nobody has optimised against. Option A would let the model learn from the held-out rows, which destroys the measurement it exists to provide. Option B inverts the two roles: choosing hyperparameters is exactly what the validation set is for. Option D would pick whichever split flatters the model, which is not a measurement at all.

  2. Q2

    A support organisation builds an Amazon Bedrock knowledge base over 4,000 troubleshooting articles, using a fixed chunk size of 200 tokens with no overlap. Reviewers find that answers stop mid-procedure, and that any step beginning near the end of a chunk loses the sentence that introduced it.

    Which change to the chunking configuration is most likely to improve answer quality?

    • A Reduce the chunk size to 50 tokens so that more chunks are retrieved for each question
    • B Stop chunking and embed each article as a single vector
    • C Increase the chunk size and add an overlap between consecutive chunks so that context spanning a boundary appears in both Correct
    • D Switch the knowledge base to a larger foundation model for the generation step

    Why C

    Chunk size and overlap decide how much usable context each retrieved unit carries. A 200-token chunk with no overlap severs procedures and strips the introductory sentence from any step that starts near a boundary, so the model is handed a fragment and answers from it. A larger chunk plus a modest overlap places boundary-spanning text in both neighbours, so whichever chunk is retrieved still reads coherently on its own. Option A shrinks the unit further and multiplies the fragmentation. Option B collapses a whole article into one averaged vector, which blurs many distinct topics together and retrieves the article for questions it barely covers. Option D changes the generator, not the broken fragments it is being given.

  3. Q3

    A logistics organisation is preparing a responsible-AI review before it switches on an automated dispatch assistant that reassigns delivery routes across 14 depots. The reviewers' main objection is that once the assistant is live, nobody has a defined way to monitor its decisions, override a route it has changed, or shut it down if its behaviour drifts.

    Which AWS responsible AI dimension does that objection belong to?

    • A Veracity and robustness
    • B Transparency
    • C Controllability Correct
    • D Governance

    Why C

    AWS groups responsible AI into named dimensions, and controllability is the one concerned with having mechanisms to monitor, guide and if necessary stop an AI system once it is running: override paths, escalation routes and an off switch. That is precisely what the reviewers say is missing. Option A, veracity and robustness, is about whether outputs are correct and stay reliable under unusual or adversarial conditions. Option B, transparency, is about making enough information available that stakeholders can judge a system and their interactions with it. Option D, governance, covers the policies, roles and oversight processes an organisation builds around its AI programme, not the runtime controls over one deployed system.

  4. Q4

    A logistics company holds 90,000 photographs of damaged parcels in Amazon S3 and wants to train a model that classifies each photograph into one of six damage types. The photographs carry only a timestamp and a depot code. The operations team has no annotation tooling and no in-house labelling workforce, although two depot supervisors can check a sample of the results.

    Which approach should the team use to produce the labelled dataset with the least operational effort?

    • A A multimodal foundation model on Amazon Bedrock, run in batch to pre-label each photograph, with human spot checks Correct
    • B Amazon Rekognition Custom Labels, trained directly on the unlabelled photographs
    • C Amazon SageMaker Model Registry, to register each photograph against its damage type
    • D Amazon Comprehend custom classification, run over the photograph metadata

    Why A

    Supervised image classification needs a label on every image, and 90,000 unlabelled photographs are the blocker. A multimodal foundation model on Amazon Bedrock can look at each photograph and choose one of the six damage types named in its prompt, and Amazon Bedrock batch inference runs the whole collection as one asynchronous job that reads its input from and writes its output to Amazon S3, so the team builds no annotation tooling and recruits no annotators. The supervisors' spot checks on a random sample measure label quality and catch a consistently confused damage type before training starts. Option B still requires labelled examples before it can train a custom model, so it does not solve the problem it is offered for. Option C stores, versions and approves trained models; it has no labelling function and no concept of an image label. Option D classifies text, not images, and would itself need a labelled training sample before it could run. Amazon SageMaker Ground Truth, the managed human-labelling service this need once pointed to, closed to new customers on 30 July 2026.

  5. Q5

    A SaaS provider serves 60 client organisations from a single Amazon Bedrock knowledge base built over documents all of them upload. Every document is tagged with its client identifier at ingestion. During a pilot, one client's assistant surfaced a passage from another client's file.

    Which approach prevents cross-client answers with the least redesign?

    • A Apply a metadata filter on the client identifier to every retrieval request so only that client's chunks are eligible Correct
    • B Add a sentence to the prompt instructing the model to ignore documents belonging to other clients
    • C Reduce the number of retrieved passages from five to one
    • D Build a separate knowledge base and vector index for each of the 60 clients

    Why A

    Isolation has to happen at retrieval, before any text reaches the model. Because each chunk already carries its client identifier as metadata, attaching a filter on that field to every query makes another tenant's chunks ineligible to be returned at all, which is a configuration change rather than a re-architecture. Option B relies on the model obeying an instruction about data it can already see, which is not an access control and fails the moment the model is persuaded otherwise. Option C only makes a leak less frequent, not impossible. Option D does isolate tenants, but it multiplies ingestion, syncing and cost by sixty and is far more redesign than the requirement calls for.

  6. Q6

    A fintech organisation gives 60 developers access to Amazon Bedrock in a shared development account. Security has approved exactly two foundation models for internal use, and an audit found engineers experimenting with several others. The organisation wants access limited to the approved models without anyone reviewing usage by hand each month.

    Which approach enforces the restriction with least privilege?

    • A Attach an IAM policy that allows the bedrock:InvokeModel action only on the ARNs of the two approved models Correct
    • B Attach an IAM policy that allows bedrock:* on all resources and review AWS CloudTrail monthly for use of unapproved models
    • C Apply a service control policy that denies every Amazon Bedrock action in the development account
    • D Configure an Amazon Bedrock guardrail that blocks prompts sent to models outside the approved list

    Why A

    IAM allows an action to be scoped to specific resources, and Amazon Bedrock models have ARNs, so a policy permitting bedrock:InvokeModel only on the two approved model ARNs makes a call to any other model fail at the API, with no human review in the loop. Option B grants everything and detects misuse after the fact; CloudTrail records the calls but does not prevent them. Option C blocks Amazon Bedrock outright, which stops the approved work as well. Option D misunderstands guardrails: a guardrail filters the content of prompts and responses for topics, words and sensitive data on the model it is applied to, and it has no say in which model a caller is permitted to invoke.

  7. Q7

    A utility company is preparing a table to predict monthly customer churn. The raw columns hold a signup timestamp, a free-text tariff name and a raw meter reading in kilowatt-hours. A data scientist derives tenure in months from the timestamp, one-hot encodes the tariff name into eight columns and rescales the meter reading to a common range.

    Which stage of the machine learning lifecycle does this work belong to?

    • A Hyperparameter tuning
    • B Model evaluation
    • C Model monitoring
    • D Feature engineering Correct

    Why D

    Deriving tenure from a timestamp, one-hot encoding a categorical tariff name and rescaling a numeric reading are all transformations of raw columns into inputs an algorithm can learn from, which is the definition of feature engineering. It sits between data preparation and model training, and it is usually where the largest accuracy gains on tabular problems come from. Option A searches the settings that govern how training runs, and it happens only once the features already exist. Option B scores a trained model against held-out data and produces metrics, not columns. Option C watches an already deployed model for drift and degradation. None of those three changes the shape or encoding of the input data.

  8. Q8

    An electronics distributor runs an assistant over 90,000 product pages using semantic search only. Plain-language questions work well, but a query for the part number XR-4410-B returns pages about similar parts and misses the exact one, because the identifier means little in embedding space.

    Which retrieval change addresses the failure?

    • A Raise the temperature of the generation model so it considers more possibilities
    • B Increase the number of retrieved chunks from 5 to 50
    • C Re-embed the catalogue with a model that has a larger context window
    • D Switch the knowledge base to hybrid search so exact keyword matching runs alongside semantic similarity Correct

    Why D

    Semantic search compares meaning, which is why it handles paraphrase well and handles rare literal strings such as part numbers, error codes and SKUs badly: two similar identifiers sit close together in embedding space. Hybrid search runs a keyword match in parallel with the vector match and merges the results, so an exact token like XR-4410-B is found on its literal form. Option A changes randomness in the output and cannot influence which documents were retrieved. Option B floods the prompt with 50 near-identical part pages and still may not include the exact one. Option C confuses the embedding model's input limit with its ability to match literal identifiers.

  9. Q9

    A public-sector organisation is deciding whether to adopt a managed AWS AI service for face matching in a building-access system. Before it commits, the review board wants an AWS-published document setting out the service's intended use cases, its known limitations, the responsible-AI design and testing choices behind it, and best practices for deploying it well.

    Which resource provides that information?

    • A An Amazon SageMaker model card created for the service
    • B The AWS AI Service Card for that service Correct
    • C The compliance reports available through AWS Artifact
    • D The service's API reference documentation

    Why B

    AWS AI Service Cards are AWS's own responsible-AI documentation for individual AI services and models: each card sets out intended use cases, design and testing choices, known limitations, and best practices for deployment and performance optimisation. That is exactly the material a review board needs before adopting a managed service. Option A inverts the relationship, because Amazon SageMaker model cards are where a customer documents a model it has built and trained itself, not something AWS publishes about its own services. Option C, AWS Artifact, is the portal for compliance reports and agreements such as SOC and ISO, which say nothing about a model's limitations. Option D describes parameters and syntax, not behaviour.

  10. Q10

    A team is training a gradient-boosting model that predicts delivery time. Before training starts, someone must choose the learning rate, the number of trees and the maximum tree depth. When training finishes, the saved model contains the split thresholds the algorithm worked out from the data.

    Which statement correctly classifies these two groups of values?

    • A Both groups are parameters, because both end up stored inside the model file
    • B The learning rate, tree count and depth are hyperparameters set before training; the learned split thresholds are model parameters Correct
    • C The learning rate, tree count and depth are model parameters; the split thresholds are hyperparameters produced by the tuning job
    • D Both groups are hyperparameters, because an automatic tuning job is able to search over either one

    Why B

    A hyperparameter is a value chosen before training that controls how training proceeds; learning rate, number of trees and maximum depth are the textbook examples, and an automatic tuning job searches over exactly these. A parameter is a value the algorithm learns from the data during training, such as the split threshold stored at each node, which no human sets directly. Option A uses storage location as the test, which is not what separates the two ideas. Option C reverses the terms outright. Option D is wrong because a tuning job can only search hyperparameters — learned thresholds are an output of training, never an input to it.

  11. Q11 Choose 2

    A bank's retrieval-based assistant scores well on a generic summarisation benchmark, yet reviewers keep finding two distinct faults: answers that state figures the retrieved passages never contained, and answers that omit a figure the source document clearly provides. The team wants measures that separate the two.

    Which two evaluation measures should the team adopt?

    • A Faithfulness, which checks whether every claim in the answer is supported by the passages that were retrieved Correct
    • B Perplexity of the foundation model measured on a general text corpus
    • C The average number of input tokens consumed per request
    • D Context recall, which checks whether retrieval actually returned the passages containing the information the answer needs Correct
    • E BLEU measured against a set of reference translations

    Why A and D

    A retrieval pipeline has two failure points and they need separate measures. Faithfulness scores the generation step by asking whether each claim traces back to a retrieved passage, which is what catches invented figures. Context recall scores the retrieval step by asking whether the passages needed to answer were fetched at all, which is what catches the missing figure. Option B measures how well a model predicts general text and says nothing about either step. Option C is a cost and capacity figure, not a quality one. Option E is a translation metric based on n-gram overlap with references, and this task has no reference translations to compare against.

  12. Q12

    A bank fine-tunes an Amazon Bedrock foundation model on 12 years of internal loan correspondence. Its key-management policy requires that the bank alone can control, rotate and revoke the key protecting the resulting custom model, and that revoking the key renders the model unusable.

    Which configuration satisfies that policy?

    • A Rely on the encryption Amazon Bedrock applies to custom models by default, which already protects them at rest
    • B Encrypt the training data in Amazon S3 with a customer managed key and leave the custom model on default encryption
    • C Block public access on the S3 bucket holding the training data and control access to the model with IAM policies alone
    • D Create a customer managed AWS KMS key, grant Amazon Bedrock use of it through the key policy, and encrypt the custom model with it Correct

    Why D

    Only a customer managed AWS KMS key gives the organisation ownership of the key policy, the rotation schedule and the ability to disable or schedule deletion of the key. Because the custom model is encrypted with that key, revoking it makes the model unusable, which is the control the policy demands. Option A is true as far as it goes, since Amazon Bedrock encrypts custom models by default, but a service-owned key cannot be controlled or revoked by the customer. Option B protects the training data while leaving the derived model, which carries the same information, outside the bank's key control. Option C confuses access control with encryption: bucket settings and IAM policies give nobody control of a key.

  13. Q13

    A model that predicts warehouse pick times scores 61 percent accuracy on the training set and 60 percent on the test set. The team fitted a single linear model to three years of data whose demand pattern swings sharply with the season and with promotional weeks.

    What is happening, and what should the team try first?

    • A The model is overfitting; add regularisation and remove features until the gap closes
    • B The model has drifted; retrain it on the most recent month of data
    • C The model is underfitting; use a more expressive algorithm or add features that expose the seasonality Correct
    • D The test split is leaking into training; reshuffle the split and retrain

    Why C

    Training accuracy of 61 percent sits barely above test accuracy of 60 percent and both are poor, which is the signature of underfitting: the model is too simple to capture the pattern, so it performs badly everywhere rather than only on unseen data. A linear model against sharply seasonal demand is that situation exactly. The remedy is more capacity, or features such as month and promotion flags that make the pattern learnable. Option A treats the opposite condition, where a high training score sits far above a low test score, and regularisation would make this model simpler still. Option B assumes a deployed model whose incoming data has shifted, which is not in evidence. Option D would show as an unusually high test score, not a low one.

  14. Q14

    A policy assistant retrieves 25 passages for every question and passes all of them into the prompt. Evaluation shows the genuinely correct passage is usually somewhere among the 25, but sits below weaker matches, and the model often answers from a passage that merely shares vocabulary with the question.

    Which change most directly improves the passages that reach the model?

    • A Increase the retrieved passage count from 25 to 100
    • B Add a re-ranking model that scores the 25 retrieved passages against the question and passes only the best few into the prompt Correct
    • C Lower the generation temperature to zero
    • D Shorten the system prompt so more room is left for the passages

    Why B

    Vector search is optimised for fast approximate recall across a large index, so it reliably gets the right passage into a candidate set but orders that set crudely. A re-ranking model reads each candidate together with the question and scores relevance directly, which is slower but far more accurate, and is applied only to the shortlist. Passing the top few reranked passages raises precision without losing recall. Option A retrieves four times as much noise and worsens the same problem. Option C makes the wording more deterministic but does not change which passages were supplied. Option D frees tokens without improving the relevance or ordering of what fills them.

  15. Q15

    An insurer runs an assistant that answers broker questions about a 40-page policy-eligibility rulebook. Testing shows it sometimes states an eligibility conclusion that reads well but contradicts the rules. The compliance team wants each response checked against the rules themselves and a verifiable finding returned, rather than a confidence score.

    Which Amazon Bedrock Guardrails capability fits that requirement?

    • A Automated Reasoning checks, built from a formal model of the eligibility rules, which verify whether a response is logically consistent with them Correct
    • B A contextual grounding filter set to its strictest threshold
    • C A denied topics policy listing every scenario in which a broker is ineligible
    • D A content filter for misconduct set to high strength

    Why A

    Automated Reasoning checks are the Amazon Bedrock Guardrails policy that applies formal logic rather than probability: the team encodes the rulebook as variables and rules, and each response is checked against that model, returning a finding about whether the statement is valid, invalid, or outside the encoded scope. Option B, contextual grounding, tests whether a response is grounded in the retrieved passage and relevant to the query; useful, but it scores a response rather than proving consistency with a rule. Option C requires the team to enumerate every ineligible case by hand and blocks topics instead of checking reasoning. Option D filters harmful content, which is not the failure described.

  16. Q16

    A payments team evaluates a model that flags suspicious card transactions. Only 0.8 percent of transactions are fraudulent, and the current model reaches 99.2 percent accuracy largely by predicting 'not fraud' almost every time. Leadership wants one headline number that moves when fraud is missed and also when genuine customers are wrongly blocked.

    Which evaluation metric should the team report?

    • A Accuracy, since it is already being measured and is comfortably high
    • B Mean squared error between the predicted and actual fraud flags
    • C The final training loss recorded at the end of the last epoch
    • D The F1 score, the harmonic mean of precision and recall Correct

    Why D

    With 0.8 percent positives, always predicting the majority class scores above 99 percent accuracy while catching almost no fraud, so accuracy is worthless on this problem. The F1 score is the harmonic mean of precision and recall, so it falls when missed fraud rises and also when false alarms rise, which is the single balanced figure leadership asked for. Option A is the trap the scenario spells out. Option B is a regression metric for continuous targets and is not defined for a class label in any useful way. Option C measures how well optimisation converged on the training data, which says nothing about behaviour on unseen transactions or about the minority class.

  17. Q17

    A travel company's support assistant runs on a prompt that developers paste and edit by hand for each new use. Tone drifts between teams, the model sometimes replies as a generic assistant rather than the company's support desk, and every request still needs the customer's booking reference and loyalty tier inserted.

    Which prompt-engineering practice addresses both problems?

    • A Raise the temperature so that replies sound more natural and less repetitive
    • B Ask the model to write its own system prompt at the start of each conversation
    • C Use one reusable prompt template that assigns the model an explicit role and takes the booking reference and loyalty tier as variables Correct
    • D Fine-tune a separate model for each support team on that team's past replies

    Why C

    Two techniques solve the two complaints at once. Role prompting states plainly who the model is acting as, which anchors register and scope instead of leaving the model to default to a generic assistant. A template with named variables keeps the surrounding wording identical for everyone while letting per-request values be substituted, so tone stops drifting with whoever last edited the text. Option A increases randomness, which widens the tone variation the team is trying to remove. Option B hands the one stable part of the system to the model to reinvent each session. Option D is an expensive customisation that entrenches the inconsistency between teams rather than resolving it.

  18. Q18

    A healthcare provider in Germany is building a clinical-summary assistant. Its regulator requires that patient records, and the processing of any prompt containing them, remain inside the EU. The engineering team is choosing where to store the records and where to call the model.

    Which approach meets the residency requirement?

    • A Call the model in whichever Region has the lowest latency and encrypt the records with AWS KMS, since encryption satisfies residency
    • B Enable a cross-Region inference profile that may route requests to any commercial Region so capacity is never constrained
    • C Store the records in an EU Region and invoke the model in that same EU Region, choosing a model that is available there Correct
    • D Store the records in an EU Region but invoke the model in us-east-1, where new models become available first

    Why C

    Amazon Bedrock processes a request in the Region in which it is called, so residency is achieved by keeping both the data store and the model invocation in an EU Region, which makes model availability by Region part of the design decision. Option A confuses confidentiality with location: encryption protects the data but does not change which country processes it. Option B is the opposite of what a residency rule allows, because a cross-Region inference profile deliberately routes requests to other Regions, so an EU workload needs a profile scoped to the EU geography or none at all. Option D leaves the records in the EU but sends every prompt containing them abroad for processing.

  19. Q19

    An energy retailer builds a model that predicts next-day electricity demand in megawatt-hours. Operations staff will read the error figure in a daily briefing and need it expressed in the same unit as the forecast itself, so that a reported error can be compared directly against the day's demand.

    Which evaluation metric should the team report?

    • A Mean absolute error, the average size of the misses in megawatt-hours Correct
    • B Mean squared error, which is expressed in squared megawatt-hours and is dominated by a few large misses
    • C Area under the ROC curve
    • D F1 score

    Why A

    The deciding requirement is a metric expressed in the target's own unit. Mean absolute error averages the absolute difference between predicted and actual demand, so it is reported in megawatt-hours and reads directly as a typical miss that operations staff can compare against the day's total. Option B squares each error first, so the result is in squared megawatt-hours and cannot be read as a demand figure; it also weights a handful of large misses far more heavily than the brief asked for. Options C and D are classification metrics: area under the ROC curve summarises class separation across thresholds, and F1 balances precision and recall. Neither is defined for a continuous numeric prediction.

  20. Q20

    A startup indexes 12 million document chunks for retrieval. Its embedding model can emit 1,024, 512 or 256 dimensions per vector. The vector database bill and query latency are both climbing, and the team has confirmed it can tolerate a small reduction in retrieval accuracy.

    What is the effect of selecting the smaller output dimension?

    • A Each vector stores fewer numbers, so index size and search cost fall, while some retrieval accuracy is typically given up Correct
    • B The foundation model's context window shrinks in proportion to the vector size
    • C Retrieval accuracy improves, because shorter vectors carry less noise
    • D Existing vectors are converted automatically, so nothing has to be re-indexed

    Why A

    An embedding's dimensionality is simply how many numbers represent each chunk. Fewer dimensions means a smaller index, cheaper storage and faster similarity search, at the cost of a coarser representation that can blur fine distinctions between passages, so this is a deliberate cost-versus-recall trade-off rather than a free optimisation. Option B confuses the embedding vector's width with the generation model's context window; the two are unrelated. Option C states the trade-off backwards, since compression discards information rather than noise. Option D is the trap worth remembering: changing the embedding model or its dimension means the whole corpus must be re-embedded, because vectors of different shapes are not comparable.

  21. Q21

    A marketing organisation generates several thousand product images a month with an image model on Amazon Bedrock. Months later, partners resize, crop and repost them, and the brand team needs a way to establish whether a given image now in circulation was produced by the model.

    Which approach supports that check most reliably?

    • A Overlay a visible logo in the corner of every generated image before publishing
    • B Rely on the invisible watermark the image model embeds in every image it produces, and use Amazon Bedrock's watermark detection to test an image later Correct
    • C Record the prompt, model and timestamp of every generation request in a database
    • D Tag the objects in Amazon S3 with metadata marking them as AI-generated

    Why B

    The image model embeds an invisible, tamper-resistant watermark in every image it creates, and Amazon Bedrock offers watermark detection that reports whether an image carries it. Because the mark is designed to survive ordinary alterations such as resizing and cropping, it answers the question for an image already in circulation. Option A is defeated by a crop and degrades the creative work. Option C is a useful provenance record, but it can only be searched by request, not by presenting an arbitrary image found on a partner's site. Option D relies on S3 object metadata that exists only inside the bucket and is lost the moment the file is downloaded and reposted.

  22. Q22

    A robotics team wants a warehouse robot to learn an efficient route policy across a 40-aisle floor. No dataset of correct routes exists and none can be produced. A simulator instead scores every attempt: a positive score for reaching the destination quickly, a negative score for each collision with a rack or a person.

    Which machine learning paradigm fits this problem?

    • A Supervised learning
    • B Reinforcement learning Correct
    • C Unsupervised learning
    • D Semi-supervised learning

    Why B

    Reinforcement learning is the paradigm in which an agent takes actions in an environment and improves a policy from reward and penalty signals rather than from labelled examples. A simulator that rewards speed and penalises collisions is precisely a reward function, and the absence of any dataset of correct routes rules out the label-driven paradigms. Option A needs input and output pairs with known correct answers, which the team explicitly cannot produce. Option C finds structure such as clusters in unlabelled data and has no notion of a good or bad action. Option D still depends on a labelled subset to anchor the unlabelled majority, and there is no labelled subset here.

  23. Q23

    An insurer is starting a question-answering assistant over roughly 40,000 claims-handling documents held in an Amazon S3 bucket, answered by a foundation model on Amazon Bedrock. The two-person platform team has no capacity to build or operate a chunking, embedding and vector-store pipeline, and the account holds no existing search deployment to extend.

    Which service should the insurer use to supply the retrieved context with the least operational overhead?

    • A Amazon OpenSearch Service with an in-house ingestion job that chunks each document, calls an embedding model and writes the vectors
    • B Amazon Bedrock Knowledge Bases pointed at the Amazon S3 bucket, so that ingestion, chunking, embedding and retrieval are managed Correct
    • C Amazon Kendra, relying on its managed index and connectors for the retrieval layer
    • D Amazon S3 Select queries issued against each document at question time

    Why B

    Amazon Bedrock Knowledge Bases is the managed retrieval layer here: it reads the documents from the bucket, chunks them, calls an embedding model, maintains the vector store and returns the relevant passages to the model, so a small team gets retrieval-augmented generation without running a pipeline. Option A is that same pipeline built by hand, leaving chunking, embedding and relevance tuning for the team to operate. Option C adds a separate enterprise search deployment to provision, size and pay for, and on its own it only returns passages, so the team would still write and operate the code that passes them to the model; Amazon Kendra has also been closed to new customers since 30 July 2026. Option D does no semantic matching: S3 Select filters rows inside one structured object and cannot rank prose by meaning.

  24. Q24 Choose 2

    A pharmaceutical company trains a compound-screening model with Amazon SageMaker on proprietary assay data. Its security standard states that the training container must have no route to the internet for the duration of the job, while still reading its training data from Amazon S3.

    Which two configurations meet that standard?

    • A Run the job in a public subnet with a security group that permits outbound HTTPS only
    • B Enable network isolation on the training job so the training container has no outbound network access Correct
    • C Enable Amazon SageMaker Debugger so the job is monitored for unexpected data transfers
    • D Turn on S3 Block Public Access for the bucket holding the training data and rely on that
    • E Launch the job into private VPC subnets with no NAT gateway and reach Amazon S3 through a VPC endpoint Correct

    Why B and E

    Two complementary controls apply. Network isolation is the Amazon SageMaker setting that runs the training container with no outbound network access at all, so nothing inside the job can call out even if a dependency tries. Placing the job in private subnets with no NAT gateway removes the route to the internet at the network layer, and an Amazon S3 VPC endpoint keeps the data path on the AWS network. Option A still has a route to the internet, because restricting the protocol to HTTPS does not remove it. Option C is a monitoring feature for training metrics and tensors, not an egress control. Option D protects the bucket from anonymous readers but says nothing about what the container may connect to.

  25. Q25

    A medical imaging startup holds only 4,000 labelled chest X-rays. A classifier trained from random initialisation performs barely above chance. A consultant suggests starting instead from a vision network already trained on millions of general photographs, then retraining only its final layers on the X-rays.

    Which technique is the consultant describing?

    • A Data augmentation
    • B Ensemble learning
    • C Unsupervised clustering
    • D Transfer learning Correct

    Why D

    Transfer learning reuses a model already trained on a large general dataset and adapts it to a smaller related task, typically by keeping the early layers that learned generic edges, textures and shapes and retraining only the final layers on the new labels. With 4,000 images that is far more effective than learning every weight from scratch. Option A manufactures extra training examples by rotating, cropping or adjusting the existing images; it helps with small datasets but does not describe starting from a pre-trained network. Option B trains several models independently and combines their votes, which does not address the shortage of labels. Option C groups unlabelled data and produces no classifier at all.

  26. Q26 Choose 2

    A retailer's assistant runs on a large foundation model. Shoppers abandon the chat because nothing appears on screen for several seconds while the complete answer is generated. Internal evaluation shows most of these requests are short, well-defined classification replies that a smaller model answers correctly.

    Which two changes will most improve the experience?

    • A Increase the maximum output token limit so answers are never truncated
    • B Stream the response so that the first tokens render while the remainder is still being generated Correct
    • C Route these short, well-defined requests to a smaller, faster model Correct
    • D Raise the temperature so the model commits to an answer sooner
    • E Enlarge the model's context window

    Why B and C

    Perceived latency is dominated by time to first token, not by total generation time. Streaming lets the interface display words as they are produced, so the wait shrinks to a fraction of a second even when the full answer takes the same time overall. Choosing a smaller model for requests that evaluation shows it handles correctly cuts the real generation time as well, and lowers cost. Option A lengthens answers and therefore makes the wait worse. Option D controls randomness in token selection and has no bearing on speed. Option E governs how much text can be supplied in one request; it does not accelerate generation and a larger window often accompanies a slower, costlier model.

  27. Q27

    An organisation is three weeks from launching a public-facing generative assistant. Its benchmark suite reports strong accuracy on 500 held-out questions, but the risk committee says it still has no evidence of how the assistant behaves when somebody actively tries to misuse it.

    Which pre-launch activity produces that evidence?

    • A Expand the accuracy benchmark from 500 to 5,000 held-out questions
    • B Run a load test at three times the expected peak request rate
    • C Have the development team re-read the system prompt and tighten its wording
    • D Run a red-teaming exercise in which a dedicated team deliberately attempts to elicit harmful, biased or policy-violating output, and feed the findings into guardrails before launch Correct

    Why D

    Red-teaming is the deliberate adversarial testing of a system before launch: a team acts as an attacker or bad-faith user, probing for harmful, biased, unsafe or policy-violating behaviour, and the findings feed the guardrails, the system prompt and the launch criteria. It is the only listed activity that produces evidence about misuse. Option A measures more of the same benign accuracy, which says nothing about adversarial behaviour. Option B measures capacity and latency under load, a reliability property. Option C is a reasonable habit, but it is a desk review by the people closest to the system, who are least likely to find the failure modes an outsider would deliberately hunt for.

  28. Q28

    A streaming service wants a 'picked for this member' row on its home page that differs for every subscriber, drawn from each person's viewing history plus title metadata such as genre and release year. The company employs no ML engineers and wants a managed service that trains the model and serves recommendations in real time.

    Which AWS service should the company choose with the least development effort?

    • A Amazon Kendra
    • B Amazon Comprehend
    • C Amazon Personalize Correct
    • D Amazon OpenSearch Service with keyword relevance ranking

    Why C

    Amazon Personalize is the managed recommendation service: the company supplies an interactions dataset, a users dataset and an items dataset, and the service selects and trains a recipe and serves real-time recommendations through a campaign, with no model code written. Option A is an enterprise search service that answers a natural-language query over documents; it ranks documents against a query, not titles against a viewer's history. Option B extracts sentiment, entities and key phrases from text and builds no recommender. Option D would rank titles by keyword relevance, returning the same row to every subscriber, which is search rather than personalisation.

  29. Q29

    A claims team builds a knowledge base over 30 years of claim files held as scanned PDFs, which are page images with no text layer. The ingestion job reports success, the vector index is almost empty, and every question comes back with no relevant results.

    What must be added to the ingestion pipeline?

    • A A larger embedding model, because the current one cannot encode PDF files
    • B A guardrail, because the scanned content is being blocked as sensitive information
    • C A larger chunk size, because each scanned page exceeds the current chunk limit
    • D Amazon Textract, to extract machine-readable text from the page images before chunking and embedding Correct

    Why D

    Embedding models consume text. A scanned PDF is a container of page images, so an ingestion job reads it, finds no extractable characters, and produces an index with nothing meaningful in it, which is exactly the symptom described. Textract performs optical character recognition and also recovers tables and form fields, so its output can then be chunked, embedded and retrieved normally. Option A misdiagnoses a missing-text problem as a model-capacity problem; no embedding model reads pixels as prose. Option B invents a filtering explanation that would show up as blocked responses, not an empty index. Option C tunes a parameter that only matters once there is text to divide in the first place.

  30. Q30 Choose 2

    A retailer has enabled Amazon Bedrock model invocation logging, so prompts and responses are written to Amazon S3 and Amazon CloudWatch. A privacy review finds that shoppers sometimes paste card and account numbers into the chat box, that the logs are kept indefinitely, and that the whole analytics team can read them. The audit trail itself must stay in place.

    Which two measures address the privacy finding?

    • A Redact personal data from prompts and responses before they are written to the log destinations Correct
    • B Disable model invocation logging so that no sensitive data is stored anywhere
    • C Set a CloudWatch Logs retention period and an S3 lifecycle rule so log data is deleted at the end of the window the privacy policy defines Correct
    • D Transition the log objects to S3 Glacier Deep Archive so that keeping them indefinitely costs less
    • E Raise the strength of the guardrail's hate and violence content filters

    Why A and C

    The finding is that sensitive data is captured, then retained too long and read too widely. Redacting personal data before it reaches the log destinations means card and account numbers are never stored, and a defined CloudWatch Logs retention period plus an S3 lifecycle rule bounds how long the remaining records live. Option B removes the exposure by destroying the audit trail the stem says must remain. Option D changes the storage class and the bill, not the retention period or who can read the data. Option E tightens filters on harmful content, which is unrelated to personal data sitting in logs. Restricting read access would help as well, but was not among the choices.

  31. Q31

    An airline wants a bot on its website and its phone line that recognises requests such as 'change my seat' or 'what is my baggage allowance', collects the booking reference and travel date needed to act on them, handles both typed and spoken input, and then calls an AWS Lambda function to complete the change.

    Which AWS service is purpose-built for this?

    • A Amazon Lex Correct
    • B Amazon Polly
    • C Amazon Transcribe
    • D Amazon Kendra

    Why A

    Amazon Lex is the service for building conversational interfaces across voice and text: it models intents such as changing a seat, elicits the slots the intent requires such as a booking reference, manages the multi-turn dialogue, and invokes an AWS Lambda function for fulfilment, with speech recognition and natural-language understanding built in. Option B turns text into speech and has no understanding of what a caller wants. Option C turns speech into text, which is one input step but provides no intent recognition, slot filling or dialogue management. Option D searches enterprise documents and returns relevant passages; it cannot run a booking dialogue or call fulfilment code.

  32. Q32

    A logistics company builds an agent on Amazon Bedrock AgentCore that must look up a shipment, reschedule a delivery and issue a credit by calling three existing internal APIs. The AWS Lambda functions all work when invoked directly, but the agent reliably looks up shipments and never invokes the reschedule operation.

    Which part of the agent's configuration governs whether that operation is invoked?

    • A The temperature setting on the agent's foundation model
    • B The guardrail attached to the agent
    • C The tool definitions, whose operation and parameter descriptions tell the agent what each call does and when to use it Correct
    • D The agent's session memory retention period

    Why C

    An agent chooses tools by reading them. Each tool is described by a definition, such as an OpenAPI specification or a function's JSON input schema, and the natural-language summaries of each operation and parameter are what the model reasons over when deciding which call fits the request. A vague, missing or misleading description for the reschedule operation means the agent never recognises it as the right tool, however healthy the underlying Lambda function is. Option A changes randomness in wording, not tool selection. Option B can block content but does not teach the agent what a tool is for. Option D controls how much conversational context carries between sessions, which is unrelated to whether an operation is discoverable.

  33. Q33

    A multinational manufacturer already has an internal responsible-AI policy and now wants an independent auditor to certify the management system it uses to develop and operate AI, in the same way its quality and information-security management systems are certified.

    Which standard is designed for that purpose?

    • A ISO/IEC 42001, a certifiable management system standard for artificial intelligence Correct
    • B The NIST AI Risk Management Framework, organised around the Govern, Map, Measure and Manage functions
    • C The EU AI Act, which sorts AI systems into risk tiers with obligations attached to each
    • D SOC 2, which reports on the controls a service organisation operates for its customers

    Why A

    ISO/IEC 42001 is the international management system standard for artificial intelligence, structured like ISO 9001 and ISO/IEC 27001, so an organisation can build a conforming AI management system and have an accredited body certify it. Option B is voluntary guidance: the NIST AI Risk Management Framework describes the Govern, Map, Measure and Manage functions and is valuable for structuring risk work, but no one certifies an organisation against it. Option C is legislation, so conformity is a legal obligation that varies by risk tier rather than a certificate an organisation elects to pursue. Option D attests to a service organisation's controls and is not specific to how AI is built or operated.

  34. Q34 Choose 2

    A hotel group receives about 30,000 free-text guest reviews a month. The analytics team needs two things from every review: whether its overall tone is positive, negative, neutral or mixed, and a list of the property names, cities and dates mentioned in the text. The team has no labelled data and does not want to train a model.

    Which two Amazon Comprehend capabilities should the team use?

    • A Sentiment analysis Correct
    • B Topic modelling across the review corpus
    • C Named entity recognition Correct
    • D Custom classification trained on a labelled sample of reviews
    • E Personally identifiable information detection and redaction

    Why A and C

    Sentiment analysis returns positive, negative, neutral or mixed for a document, which answers the first requirement, and named entity recognition extracts spans such as organisations, locations and dates, which answers the second. Both are pre-trained Amazon Comprehend APIs, so neither needs labelled data or a training job. Option B discovers unlabelled themes across a corpus, which is useful exploration but answers neither question the team asked. Option D would require labelling a sample and training a custom model, which the scenario rules out, and would still produce no entities. Option E finds and masks personal data such as names and card numbers, a privacy control rather than an analytics output.

  35. Q35

    An HR agent running on Amazon Bedrock AgentCore returns a plausible but incorrect annual leave balance for an employee. The team cannot tell whether the agent consulted the knowledge base, called the leave-balance tool with the wrong employee identifier, or simply produced a number of its own.

    What should the team use to establish what happened?

    • A Use AgentCore Observability traces to inspect the recorded model steps, tool invocations, parameters and knowledge-base lookups for that session Correct
    • B Lower the temperature to zero and re-run the same question
    • C Increase the number of passages retrieved per question
    • D Fine-tune the model on a set of correct leave-balance answers

    Why A

    An agent's output is the end of a chain of decisions, so debugging it requires visibility into the chain rather than the final sentence. With the agent code instrumented through the AWS Distro for OpenTelemetry, AgentCore Observability records a trace for each request whose spans show every step in order: the model calls, which tool was selected, the exact input parameters sent, what the tool returned, and any knowledge-base lookup. That distinguishes a bad parameter from a missing retrieval from a fabricated figure, and the session view ties the trace to the conversation in which the wrong balance appeared. Option B makes the output reproducible without revealing any intermediate step. Option C tunes retrieval breadth before anyone knows retrieval is involved. Option D attempts an expensive fix for an unidentified fault, and would teach the model to recite balances rather than to look them up correctly.

  36. Q36

    An internal helpdesk portal renders the assistant's answer directly into the page as HTML so that tables and links keep their formatting. During a security review, a tester adds a knowledge-base article containing a script tag, asks a question that retrieves it, and watches the script run in the reviewer's browser.

    Which risk is this, and which control addresses it?

    • A Prompt injection; extend the system prompt with an instruction never to emit HTML
    • B Model denial of service; apply rate limiting to the portal
    • C Insecure output handling; treat model output as untrusted and encode or sanitise it before rendering it in the browser Correct
    • D Training data poisoning; retrain the model with the offending article removed

    Why C

    This is insecure output handling, a named entry in the OWASP Top 10 for LLM applications: the application trusted text produced by a model and injected it into the page, so any markup the model reproduced from a retrieved document executes. The control is the ordinary one for untrusted input, namely encoding or sanitising the output and rendering it through a safe formatter rather than raw HTML. Option A names the wrong layer, because a prompt instruction is advisory and cannot serve as a security boundary. Option B addresses availability, not script execution. Option D misdiagnoses retrieval as training: the article was fetched at query time and never entered the weights, so retraining changes nothing.

  37. Q37 Choose 2

    A retail business analyst who does not write code wants a model that predicts whether each store will miss its weekly sales target. The history sits in a CSV in Amazon S3 with the outcome already recorded in one column. The analyst wants a visual path to a trained model, with candidate algorithms and settings explored automatically.

    Which two AWS capabilities support this approach?

    • A Amazon SageMaker Model Registry
    • B Amazon SageMaker Canvas Correct
    • C Amazon SageMaker Ground Truth
    • D Amazon SageMaker Autopilot Correct
    • E Amazon SageMaker Feature Store

    Why B and D

    Amazon SageMaker Canvas gives a business analyst a visual, no-code workflow: import the CSV from Amazon S3, pick the target column, build the model and inspect predictions without writing a line of code. Canvas builds on Amazon SageMaker Autopilot, which automatically explores candidate algorithms and hyperparameter settings and returns a ranked list of trained candidates, and which can also be driven on its own. Option A stores, versions and approves models on their way to deployment; it trains nothing. Option C creates labelled datasets, but this CSV already carries the outcome column. Option E curates and shares features across teams and presumes an existing engineering workflow.

  38. Q38

    A bank's agent on Amazon Bedrock AgentCore, which calls a foundation model on Amazon Bedrock, performs several tool calls and knowledge-base lookups per request. A compliance reviewer requires that the same denied-topic and sensitive-information rules apply to every model interaction the agent makes, including intermediate steps, and keep applying as engineers add new tools.

    Which approach meets the requirement with the least ongoing effort?

    • A Append the rules as additional sentences at the end of the agent's instruction text
    • B Have the agent's model client call Amazon Bedrock with a guardrail, covering every model call Correct
    • C Call a guardrail separately from inside each Lambda function behind the agent's tools
    • D Apply a guardrail only to the final response that is returned to the user

    Why B

    A guardrail is a policy object that can be set once on the model configuration the agent uses rather than invoked by hand, so every model call the agent makes, intermediate steps included, passes the same denied topics, sensitive-information filters and word policies, and a new tool inherits the policy without anyone remembering to wire it in. Agent frameworks hosted on Amazon Bedrock AgentCore, such as Strands Agents, take the guardrail identifier and version as part of their Amazon Bedrock model settings. Option A relies on instructions the model may deprioritise under a long or adversarial conversation, and instructions are not an enforced control. Option C duplicates the same policy across every function, so it drifts the first time one is updated and is forgotten on the next function added. Option D leaves intermediate steps unchecked, which is precisely the gap the reviewer named.

  39. Q39

    A bank runs two AI workflows. In the first, an assistant drafts account-closure letters and a compliance officer reads and approves every letter before it is sent. In the second, a model blocks suspicious card transactions in real time while analysts watch a dashboard of aggregate decisions and step in when the pattern of blocks looks wrong.

    Which terms describe the two oversight arrangements, in order?

    • A Human-on-the-loop, then human-in-the-loop
    • B Human-in-the-loop, then human-on-the-loop Correct
    • C Human-in-the-loop in both workflows
    • D Fully autonomous, then human-in-the-loop

    Why B

    Human-in-the-loop means a person reviews and authorises each individual output before it takes effect, which is what the compliance officer does for every closure letter. Human-on-the-loop means the system acts on its own while people supervise its behaviour in aggregate and intervene when something looks wrong, which is the fraud-blocking arrangement. Option A reverses the two. Option C ignores the fact that no analyst approves individual card blocks, since a real-time block cannot wait for a person, which is exactly why oversight moved to the aggregate view. Option D calls the fraud model fully autonomous, but supervision with the power to intervene is what distinguishes human-on-the-loop from autonomy.

  40. Q40

    A team is estimating the monthly bill for a customer-support summariser on Amazon Bedrock. The pricing page quotes a price per 1,000 input units and a higher price per 1,000 output units, and the model card states the maximum request size in that same unit rather than in words, characters or megabytes.

    What is that unit, and what does it represent?

    • A A character, because text models bill per character of input and output
    • B A token, a chunk of text roughly the size of a short word or a word fragment, which is the unit the model processes Correct
    • C An embedding, a numeric vector the model produces for each sentence of the request
    • D A parameter, one of the learned weights the model applies while answering the request

    Why B

    Foundation models split text into tokens, sub-word chunks that average roughly three quarters of a word in English, and both pricing and context limits are expressed in tokens because that is the unit the model actually consumes and produces. Estimating the bill therefore means estimating input and output tokens, not words. Option A is wrong because billing is not per character; one long word and one short word can each be a single token. Option C describes a numeric vector used for semantic search, which is a separate model's output and never a billing unit for text generation. Option D describes a fixed learned weight inside the model, a property of the model rather than something a request consumes.

  41. Q41 Choose 2

    A media organisation decides to fine-tune an Amazon Bedrock foundation model so it writes headlines in the publication's house style. It holds 40,000 published articles with their headlines in a content database, and has a small editorial team available to review candidate examples.

    Which two steps are required to prepare the training data?

    • A Upload the raw article PDFs to Amazon S3 without labels and let the service infer the pairs
    • B Set the temperature to zero on every training record
    • C Convert the data to JSONL, one record per line pairing the input prompt with the desired headline, and store it in Amazon S3 Correct
    • D Increase the model's context window before the training job is started
    • E Curate a smaller set of high-quality, representative examples and hold some back as a validation set Correct

    Why C and E

    Fine-tuning is supervised, so it needs labelled pairs in the expected format: a JSONL file in Amazon S3 where each line carries the input and the target output the model should learn to produce. Quality then beats volume, because a curated, representative sample teaches the style cleanly while a dump of every article teaches the model the newsroom's inconsistencies, and a held-back validation set is what shows whether the job is learning or memorising. Option A describes unlabelled data, which suits continued pre-training, not fine-tuning. Option B applies an inference parameter to training records, where it has no meaning. Option D treats the context window as a tunable setting; it is a fixed property of the model.

  42. Q42

    A media company wants to bring an open-weight model it found on a public model hub into Amazon Bedrock through Custom Model Import, for an internal summarisation tool. The security team asks how the organisation will manage the supply-chain risk that comes with weights it did not train itself.

    Which approach addresses that risk?

    • A Obtain the weights from the verified publisher, check the published checksums and the licence, scan the downloaded artefacts, and evaluate the model in an isolated account before any production use Correct
    • B Rely on the shared responsibility model, since AWS validates the safety of any model imported into Amazon Bedrock
    • C Treat open weights as inherently safe, because a published architecture can be inspected by anyone
    • D Attach a guardrail to the imported model, which removes the need to establish where the weights came from

    Why A

    Imported weights become part of the organisation's software supply chain, so the controls are the ones used for any third-party dependency: take the artefacts from the verified publisher, verify checksums, read the licence for the terms it places on commercial use, scan what was downloaded, and test behaviour in an isolated account before production. Option B misstates the shared responsibility model, since AWS operates the infrastructure while choosing and validating an imported model stays with the customer. Option C confuses an open architecture with vetted weights, because training data and learned behaviour are not visible by inspection. Option D filters content at run time and says nothing about provenance.

  43. Q43

    A team lead is explaining to a non-technical steering group why current large language models cope with long, complex sentences far better than the sequential architectures they replaced. She wants to name the architecture and the mechanism that lets the model weigh every word in the input against every other word at once.

    Which architecture and mechanism is she describing?

    • A A convolutional network using pooling layers
    • B A decision-tree ensemble using feature importance scores
    • C A recurrent network using a fixed sliding window
    • D A transformer using self-attention Correct

    Why D

    The transformer is the architecture behind current large language models, and self-attention is the mechanism that lets every position in the input attend to every other position and weigh their relevance, which is why relationships between distant words survive far better than in the sequential designs that came before. Option A describes convolutional networks, which excel at images and capture local patterns rather than arbitrary long-range word relationships. Option B describes a classical tabular technique with no notion of sequence at all. Option C describes the older recurrent approach the transformer displaced, which processes one step at a time and loses information across long spans.

  44. Q44

    A team holds two candidate system prompts for its product-recommendation assistant. Offline scoring on 200 saved questions rates them within a point of one another, but the metric the business actually cares about is whether shoppers accept the recommendation they are shown.

    How should the team decide between the two prompts?

    • A Choose the shorter prompt, because it consumes fewer input tokens per request
    • B Ask the foundation model which of the two prompts it prefers
    • C Re-run the offline scoring at a higher temperature to break the tie
    • D Run an A/B test that sends a share of live traffic to each variant and compare acceptance rate over a fixed period Correct

    Why D

    When two variants are indistinguishable offline and the deciding measure is a user behaviour, the only reliable evidence comes from real traffic. An A/B test splits users between the variants, holds everything else constant, and compares the business metric over a defined window, which is how a prompt change is tied to acceptance rate rather than to a proxy score. Option A optimises cost while ignoring the stated decision criterion, and cost is not what is being compared here. Option B asks the system under test to grade itself, which produces a preference with no relationship to shopper behaviour. Option C adds randomness to a scoring run, turning a tie into noise rather than into evidence.

  45. Q45 Choose 2

    A jobs marketplace recommends listings and retrains weekly on the clicks its own recommendations produce. Over six months, listings from one metropolitan area come to dominate the recommendations, engagement data from smaller regions thins out, and those regions are then recommended even less at each retraining.

    Which two actions break the feedback loop?

    • A Reserve a share of impressions for exploration, so listings the current model ranks low still receive exposure and generate data Correct
    • B Track the distribution of recommendations and engagement by region over time, so the drift is detected as it happens Correct
    • C Retrain the model daily rather than weekly so it adapts to the newest click data faster
    • D Move to a larger model that can learn more nuanced regional preferences
    • E Drop the region field from the training features so the model cannot use it

    Why A and B

    The loop is self-reinforcing because the training data is generated by the model's own recommendations: regions shown less produce fewer clicks, which the next retraining reads as lower interest. Reserving impressions for exploration injects data the current ranking would never collect, and monitoring recommendation and engagement distributions by region turns a slow drift into something visible while it is still small. Option C makes the loop turn faster and amplifies the imbalance sooner. Option D changes model capacity, not the biased data it learns from. Option E removes one field while proxies such as postcode and employer remain, and it also destroys the organisation's ability to measure the imbalance.

  46. Q46

    A marketing team uses a text-to-image model that begins each render from a field of pure random noise and then, over 40 steps, removes a little of the estimated noise at a time while the prompt steers each step, until a coherent picture emerges.

    Which family of model is being described?

    • A A diffusion model Correct
    • B A large language model using next-token prediction
    • C An embedding model
    • D A classical linear regression model

    Why A

    Diffusion models are trained to reverse a noising process, so generation starts from random noise and iteratively removes a little estimated noise at each step while the text prompt conditions every step, until an image remains. That step-by-step denoising is exactly the behaviour described, and the step count is the knob the team is setting at 40. Option B describes how a text model generates, predicting one token at a time from the tokens before it, which produces text rather than pixels. Option C turns input into a fixed numeric vector representing meaning and generates nothing at all. Option D fits a line through numeric data and has no generative capability.

  47. Q47

    An insurer's assistant drafts settlement letters. Most drafts are sound, but any draft quoting a payout above 10,000 US dollars must be read by a licensed adjuster before it is sent, and the adjuster's decision has to be recorded so auditors can review it later.

    Which approach implements the review step?

    • A Use a human-in-the-loop workflow step, triggered by the payout condition, that pauses the draft until a licensed adjuster approves or amends it, and store each decision for audit Correct
    • B Add a guardrail that blocks any answer containing a figure above 10,000 US dollars
    • C Have the model rate its own confidence and send only the drafts it rates as low confidence
    • D Fine-tune the model on previously approved letters so that review becomes unnecessary

    Why A

    This is a human-in-the-loop requirement: a defined condition diverts an item to a qualified person, the person approves or amends it, and the decision is retained as evidence. A workflow step that pauses on the payout condition provides exactly that structure, for example an AWS Step Functions task that waits for a callback until the adjuster records an approval or amendment, with the reviewer, the outcome and the time written to a durable store that an auditor can inspect. Option B suppresses the draft rather than routing it, so a legitimate large settlement never reaches the adjuster at all and no decision is recorded. Option C substitutes a self-reported score for the stated monetary threshold, and models are poorly calibrated judges of their own output. Option D cannot satisfy a regulatory review obligation, because customisation is not accountability.

  48. Q48

    A SaaS vendor operates one Retrieval Augmented Generation assistant for 300 customer organisations, with every customer's documents held in a single vector index. A tester signed in as one customer asks a broad question and receives a passage drawn from another customer's board minutes.

    Which change enforces tenant isolation most reliably?

    • A Add an instruction to the system prompt telling the model to use only the signed-in customer's documents
    • B Enable personally identifiable information redaction on the assistant's responses
    • C Log every retrieval so that cross-tenant answers can be investigated after they occur
    • D Enforce the tenant identity in the retrieval layer itself, with a separate knowledge base per tenant or a mandatory filter the application derives from the authenticated session Correct

    Why D

    Tenant isolation has to be enforced where the data is fetched, not where the text is generated. Either give each tenant its own knowledge base, or apply a tenant filter that the application derives from the authenticated session and attaches to every retrieval, so nothing a user types can widen the scope. Option A relies on a system prompt, which is an instruction the model may ignore and an attacker may talk around, and is not an access-control boundary. Option B redacts personal data from responses but would happily return another tenant's strategy discussion. Option C is detective only: by the time anyone reads the log, the passage has already been disclosed.

  49. Q49

    A team tuning a product-description generator holds temperature fixed and experiments with two other sampling settings. The first caps the candidate pool at a fixed count of the most likely next tokens. The second keeps the smallest set of next tokens whose probabilities add up to a chosen threshold, so the pool size varies with the model's confidence.

    Which two settings are these, in that order?

    • A Top-p, then top-k
    • B Stop sequences, then top-k
    • C Top-k, then top-p Correct
    • D Maximum output tokens, then temperature

    Why C

    Top-k and top-p both restrict which next tokens may be sampled, but by different rules. Top-k keeps a fixed number of the highest-probability candidates no matter how confident the model is, while top-p, also called nucleus sampling, keeps the smallest set whose cumulative probability reaches the threshold, so the pool narrows when the model is confident and widens when it is not. Option A names the right pair in the wrong order. Option B substitutes a stop sequence, which ends generation when a chosen string appears and has nothing to do with candidate selection. Option D names an output-length cap plus the randomness control the scenario explicitly held fixed.

  50. Q50

    A team evaluates a summarisation model against human-written reference summaries. A generated summary saying the outage lasted two hours scores poorly against a reference saying the service was down for 120 minutes, even though every human reviewer marks the summary correct.

    Which metric addresses that limitation?

    • A BLEU, which measures n-gram precision against the reference text
    • B Perplexity, which measures how surprised the model is by the reference text
    • C BERTScore, which compares generated and reference text using contextual embeddings and so credits semantically equivalent wording Correct
    • D An F1 score computed over the exact words the two texts share

    Why C

    The failure is a property of overlap-based scoring: two hours and 120 minutes share no words, so any metric counting matching n-grams penalises a correct paraphrase. BERTScore instead embeds both texts and compares them in vector space, so wording that means the same thing scores highly, which is why it is offered alongside overlap metrics for open-ended generation. Option A is the overlap family that caused the problem, and it is aimed at translation besides. Option B measures how well a model predicts text and produces no comparison between a candidate answer and a reference. Option D is another exact-token measure and would penalise the paraphrase for the same reason.

  51. Q51

    A university's admissions team is defining fairness for a model that shortlists applicants. One group argues that the proportion of applicants shortlisted should be equal across demographic groups. Another argues that among applicants who would have gone on to graduate, the proportion shortlisted should be equal across those groups. Measured on the same model, the two disagree.

    Which statement describes the situation correctly?

    • A The two are equivalent, so a model that satisfies one automatically satisfies the other
    • B Only the second is a real fairness definition; the first is simply a quota
    • C They are two different fairness definitions, demographic parity and equal opportunity, which can conflict, so the organisation must choose the one its context calls for and document that choice Correct
    • D The disagreement disappears once the demographic attribute is removed from the training data

    Why C

    Fairness has several mathematical definitions that do not agree with one another. Demographic parity requires equal selection rates across groups; equal opportunity requires equal true positive rates, that is, equal selection among those who would have succeeded. Where base rates differ between groups, a model can satisfy one and fail the other, so the organisation must choose deliberately, justify the choice for its context and record it. Option A asserts an equivalence that holds only in special cases. Option B dismisses a definition that is standard and appropriate in some settings. Option D describes fairness through unawareness, which fails because correlated features act as proxies for the removed attribute.

  52. Q52

    A support tool asks a model for a single reply to one customer message, but the model keeps running past the reply and inventing a further exchange that always begins with the line 'Customer:'. Cutting the text off afterwards in application code leaves half-written sentences in the transcript log.

    Which inference setting should the team configure so that generation ends cleanly at that boundary?

    • A Lower the temperature to zero
    • B Configure a stop sequence of 'Customer:' Correct
    • C Reduce top-k to 1
    • D Reduce the maximum output tokens until the invented exchange no longer fits

    Why B

    A stop sequence tells the service to end generation the moment the model emits a chosen string, and the string itself is not returned, so the reply finishes at the boundary the team cares about instead of being trimmed afterwards. Setting it to 'Customer:' stops generation exactly where the invented exchange would begin. Option A makes wording more predictable but does nothing about a model that predictably continues the transcript. Option C narrows sampling to the single likeliest token, which again changes wording rather than where generation ends. Option D is the same truncation the team already has: a token cap cuts off wherever the budget runs out, which is precisely what leaves half-written sentences.

  53. Q53

    A procurement committee shortlists a foundation model because it leads a public MMLU leaderboard. The model is intended to classify inbound maintenance tickets into 40 categories, written by technicians in site-specific shorthand that appears nowhere in any public dataset.

    How much weight should the MMLU result carry in this decision?

    • A It is decisive, because a higher MMLU score means higher accuracy on any task
    • B It is a useful general signal, but the model must still be evaluated on a labelled sample of the organisation's own tickets Correct
    • C It should be ignored, because public benchmarks measure only response speed
    • D It can replace internal evaluation, provided the model is fine-tuned afterwards

    Why B

    Public benchmarks such as MMLU measure broad multiple-choice knowledge across academic subjects. That is a reasonable way to shortlist candidates, but it is a proxy: it says nothing about 40 in-house categories expressed in shorthand the benchmark has never seen, and leaderboard results can be inflated by training data that overlaps the test set. The decision needs a labelled sample of real tickets scored for the accuracy the business will actually experience. Option A treats a general score as transferable to every task. Option C misstates what the benchmark measures, since MMLU scores knowledge rather than latency. Option D defers evaluation behind a customisation step that itself needs labelled data to be judged.

  54. Q54

    A company runs 40 AWS accounts in which data science teams create Amazon SageMaker notebook instances and endpoints at will. Governance wants continuous detection of notebook instances that allow direct internet access and of endpoints that are not encrypted with a KMS key, with the results visible in one place.

    Which approach meets the requirement with the least ongoing effort?

    • A Schedule a quarterly manual review of the Amazon SageMaker console in each account
    • B Evaluate the SageMaker resources continuously with AWS Config rules and aggregate the findings across all accounts in AWS Security Hub Correct
    • C Enable AWS CloudTrail everywhere and search the logs for CreateNotebookInstance calls
    • D Apply a service control policy denying the CreateNotebookInstance action in every account

    Why B

    AWS Config evaluates resource configurations continuously and ships managed rules for exactly these SageMaker properties, recording each resource as compliant or non-compliant as it changes, while AWS Security Hub aggregates those findings across accounts and Regions into a single view. Option A produces a snapshot every three months, so a misconfigured notebook can run for a quarter unnoticed. Option C records who called which API, which is valuable during an investigation but does not report the current state of a resource that was modified later. Option D prevents new notebook instances altogether, blocking legitimate work while doing nothing about the endpoints or the resources that already exist.

  55. Q55

    A bank's assistant must always answer in formal British English, must never give investment advice, and must decline questions outside retail banking. Those instructions are identical on every one of the 40,000 daily requests, while the customer's question differs each time.

    How should the team structure each request to the model?

    • A Put the standing instructions in the system prompt and the customer's question in the user message Correct
    • B Put the standing instructions in the user message, ahead of the customer's question, on every request
    • C Put both the standing instructions and the question in the system prompt and leave the user message empty
    • D Put the standing instructions in the model's first response so later turns inherit them

    Why A

    The system prompt carries standing instructions — role, tone, scope and refusal rules — that apply to every turn, while the user message carries the request that changes. Separating them keeps the policy in one reviewable place, lets the model treat it as higher-priority context than the customer's text, and makes it easy to version. Option B works mechanically but buries the policy inside user content, where it competes with whatever the customer types and is far harder to govern. Option C leaves no user turn for the model to answer. Option D misunderstands the roles: model output is a result, not a channel through which instructions are issued to later turns.

  56. Q56

    A finance team uses a model for multi-step arithmetic reasoning over expense reports. Running at a non-zero temperature, the model occasionally reaches a wrong total by slipping on one intermediate step. The team can afford five model calls per report and wants the reported figure to be right more often.

    Which prompting technique addresses this?

    • A Raise the temperature so the model explores a wider range of reasoning paths
    • B Raise the maximum output token limit so the reasoning is never cut short
    • C Add a negative prompt listing the totals the model must avoid producing
    • D Sample several independent answers to the same prompt and take the most frequent result, a self-consistency approach Correct

    Why D

    Self-consistency runs the same prompt several times at a non-zero temperature, producing independent reasoning paths, and then takes the answer that appears most often. Arithmetic slips tend to differ from one another while the correct total recurs, so majority voting over five samples raises accuracy at the cost of extra calls, which the team has already budgeted for. Option A adds variation with no mechanism for choosing between the results, making the problem worse rather than better. Option B governs how long an answer may be, not whether the arithmetic in it is right. Option C borrows negative prompting from image generation and is meaningless here, since nobody knows in advance which wrong totals to exclude.

  57. Q57

    A claims intake pipeline feeds a model's output straight into a downstream parser that must read the policy number, the incident date and the claim amount. The model answers in prose today, and the parser breaks whenever the model rewords a sentence or reorders the three values.

    Which prompting change should the team make?

    • A Lower the temperature so that the prose wording stays stable between requests
    • B Move to a model with a larger context window so the whole claim fits comfortably
    • C Instruct the model to return only JSON with a named set of keys, and include one example of the exact structure Correct
    • D Add a stop sequence after the first sentence so the parser only ever sees one line

    Why C

    The downstream system needs a stable machine-readable contract, so the prompt should demand JSON only, name the exact keys expected and show one example of the structure; the parser then depends on a schema rather than on phrasing. Option A makes prose more repeatable but leaves the parser matching free text, which breaks again the moment the model rephrases. Option B addresses input capacity, which is not the failure here — the claim text already fits, and a bigger window does not make output parseable. Option D truncates output early and would cut the answer off mid-structure, losing two of the three values rather than making any of them reliable to read.

  58. Q58

    An interactive chat assistant produces answers of about 600 tokens. Users complain that nothing at all appears for several seconds after they press send. Once the answer does appear, they judge it accurate, and the total generation time is within the team's agreed budget.

    Which change improves the perceived responsiveness without changing the model or the answer?

    • A Increase the maximum output tokens so the model is able to finish sooner
    • B Stream the response so tokens are displayed as they are generated, cutting the time to first token Correct
    • C Switch the request path to batch inference
    • D Raise the temperature so the model begins generating earlier

    Why B

    Streaming returns tokens as the model produces them, so the first words reach the screen almost immediately and the reader watches the answer build. Total generation time is unchanged; what improves is the time to first token, which is precisely what the complaint is about. Option A raises the ceiling on answer length, which if anything lengthens generation rather than shortening the wait. Option C is designed for large asynchronous jobs with nobody waiting and would make an interactive chat dramatically worse. Option D confuses a sampling control with latency: temperature changes how each next token is chosen, not when generation starts.

  59. Q59

    A publisher must classify 4 million archived articles by topic using a foundation model. The job is scheduled to run overnight, no user is waiting on any individual result, and the complete output is needed by nine the following morning. Cost per article is the deciding factor.

    Which Amazon Bedrock inference option should the team choose at the lowest cost?

    • A Batch inference, which processes a file of prompts from Amazon S3 asynchronously and is priced below on-demand for the same model Correct
    • B On-demand inference, issuing one synchronous request per article
    • C Provisioned Throughput with a six-month commitment
    • D A streaming request per article, to reduce the time to first token

    Why A

    Amazon Bedrock batch inference reads a file of prompts from Amazon S3, processes them asynchronously and writes the results back to S3, and it is priced below on-demand for the same model — exactly the trade the publisher wants, since nothing is waiting on an individual article overnight. Option B pays full on-demand price four million times and adds the burden of orchestrating that many synchronous calls. Option C buys reserved capacity for sustained, predictable, latency-sensitive traffic and commits spend for months, far more than a one-off archival pass needs. Option D optimises perceived latency for an interactive reader, and there is no interactive reader in this workload.

  60. Q60

    A team wants to assemble a multi-step generative workflow: classify an incoming email, query a knowledge base when it is a product question, call an AWS Lambda function when it is an order question, then draft a reply. They want to build the branching visually and test it in the console rather than writing orchestration code.

    Which Amazon Bedrock capability should they use?

    • A Amazon Bedrock Guardrails
    • B Amazon Bedrock model evaluation
    • C Amazon Bedrock Flows Correct
    • D Amazon Bedrock Provisioned Throughput

    Why C

    Amazon Bedrock Flows provides a visual builder that chains prompts, knowledge bases, agents, AWS Lambda functions and conditional logic into a single workflow that can be tested and versioned from the console, which matches the classify, branch and draft design without orchestration code. Option A filters harmful content and blocks denied topics on the way in and on the way out; it is a safety control and sequences nothing. Option B scores candidate models against a dataset or human reviewers to help choose one, and runs offline before any workflow exists. Option D reserves model capacity for predictable throughput and has no bearing on how the steps are ordered.

  61. Q61

    An application calls three different foundation models in Amazon Bedrock depending on the task. Today each call site builds a different request body and unpacks a different response shape, so trying a fourth model means new parsing code. The team also wants multi-turn conversation history expressed the same way for every model.

    Which Amazon Bedrock API should the team call?

    • A The InvokeModel API, passing each model's own native request body
    • B The Converse API, which exposes one consistent request and response format across supported models Correct
    • C The ListFoundationModels API
    • D The CreateModelCustomizationJob API

    Why B

    The Converse API gives Amazon Bedrock a single request and response shape across the models that support it, including a common way to express a multi-turn message list and system instructions, so switching models becomes a configuration change rather than a rewrite. Option A is the lower-level call where each model family expects its own JSON body and returns its own shape, which is precisely the coupling the team wants to remove. Option C returns the catalogue of models available in a Region and performs no inference. Option D starts a customisation job that changes a model's behaviour, which is unrelated to standardising how the application talks to several models.

  62. Q62

    A company has two separate needs. Its HR and finance staff want a chat assistant that answers policy and process questions from internal documents held in SharePoint and Amazon S3, respecting each person's existing access rights. Separately, its software engineers want code suggestions inside the IDE and an agent that can implement features from a written specification.

    Which offerings fit the two needs, in that order?

    • A The Kiro IDE for the staff assistant, and Amazon Quick for the engineers
    • B Amazon Quick for both needs
    • C The Kiro IDE for both needs
    • D Amazon Quick for the staff assistant, and the Kiro IDE for the engineers Correct

    Why D

    Amazon Quick is the enterprise assistant AWS now recommends in place of Amazon Q Business: it builds knowledge bases from sources such as SharePoint and Amazon S3, enforces document-level access control lists so each person is answered only from content they may open, and answers staff questions from that content. Kiro is the AWS agentic development environment that succeeds the Amazon Q Developer IDE plugins, offering inline suggestions and chat in the editor plus spec-driven development, in which an agent turns a written specification into requirements, a design and tasks and then implements them. Option A swaps the two, aiming a developer tool at HR staff and a document assistant at engineers. Option B gives engineers a workplace assistant with no IDE integration and no agent working in their code base. Option C would give HR and finance a developer tool with no connector to their document repositories. Amazon Q Business closed to new customers on 30 July 2026, and new Amazon Q Developer subscriptions have been blocked since 15 May 2026.

  63. Q63 Choose 2

    A regulated insurer is reviewing a proposal to replace the deterministic rules engine that prices simple motor policies with a generative model. The existing engine returns the same premium for the same inputs in under 10 milliseconds, at negligible marginal cost, and every decision can be traced to a published rule.

    Which two characteristics of generative AI argue against the replacement?

    • A The same prompt can produce different outputs on different calls, so identical inputs may not yield an identical premium Correct
    • B Generative models are unable to process numeric values in their input
    • C Generative models must be retrained before they can serve each new request
    • D Generative models cannot be invoked privately from inside an AWS virtual private cloud
    • E Per-request inference latency and token cost are far higher than a deterministic rules lookup Correct

    Why A and E

    Two well-documented disadvantages bite here. Generative models sample their output, so the same inputs can produce different wording and therefore a different quoted premium, which is unacceptable for a priced product and hard to defend to a regulator. They also add token cost and inference latency measured in hundreds of milliseconds or more against a lookup that takes under 10 milliseconds at negligible cost. Option B is false: models read numbers in text perfectly well. Option C misstates how inference works, since a trained model serves requests without retraining. Option D is also false, because models can be invoked over private endpoints inside a virtual private cloud.

  64. Q64 Choose 2

    A defence contractor must run a text generation model inside an isolated facility that has no internet connectivity of any kind. Before anything is deployed, its legal team must read and approve the exact terms under which the model may be used commercially.

    Which two characteristics of open-weight models make them a fit for these requirements?

    • A Open-weight models are always free of any cost to obtain and to run
    • B Open-weight models always produce higher-quality output than proprietary models
    • C The model weights can be downloaded and hosted on infrastructure the organisation controls Correct
    • D The licence terms are published, so the legal team can read and approve them before any deployment Correct
    • E The complete training dataset is always published alongside the weights

    Why C and D

    Open-weight means the trained weights are published for download, so the organisation can host the model on its own hardware inside an air-gapped facility rather than calling a hosted endpoint, and the accompanying licence is published and can be read, assessed against internal policy and approved before use. Those two properties answer the two constraints directly. Option A is false: hosting still costs compute, and some open-weight licences restrict commercial scale or particular uses. Option B is false as a general claim, since quality varies by task and several proprietary models lead common benchmarks. Option E confuses open weights with open data, and training sets are usually not released.

  65. Q65 Choose 2

    A team sends the same block of instructions to a model for 14 different report types, substituting only the report name, the audience and the required length. Each of the 14 call sites currently holds its own hand-edited copy of the wording, and three copies have already drifted apart after separate edits.

    Which two benefits does moving to a single parameterised prompt template provide?

    • A It guarantees that the model returns identical output whenever the variables are identical
    • B The shared instruction wording is defined once, so a change applies consistently to all 14 report types Correct
    • C It removes the model's context-window limit for unusually long reports
    • D It eliminates hallucination by constraining what the model is permitted to say
    • E The template can be versioned and tested as one artefact, so a quality regression is easy to trace to a wording change Correct

    Why B and E

    A parameterised template holds the shared wording once and substitutes only the variable parts per call, so an edit is made in one place and reaches all 14 report types, which is exactly what stops the drift described. The template also becomes a single versionable artefact that can be reviewed and tested, so a drop in output quality can be traced to a specific wording change rather than hunted across 14 copies. Option A is false, because a sampled model may word its answer differently even with identical variables. Option C is false, since templating changes nothing about the context window. Option D overclaims: consistency is not truthfulness, and a template cannot stop a model asserting something untrue.

Ready to try it without the answers in front of you?