Course menuMLA-C02

Exams / MLA-C02 / Sample questions

MLA-C02 sample questions from the practice sets

10 questions taken from across the 5 paid practice sets, covering every domain of the exam guide. None of them are in the free exam. Try each one, then open the answer to see why every option is right or wrong.

Last verified against current AWS documentation ·How we write our questions

  1. Question 1 Data Preparation for ML and AI From Practice set 1

    A regional hospital network is training a computer vision model to flag abnormal chest X-ray images. The training set is about 40 million small image files, roughly 9 TB, in Amazon S3.

    Each training run uses eight GPU instances. In File input mode, every instance copies the full dataset to local disk before training starts, so GPUs sit idle for hours.

    The team needs training to start quickly and read images at high throughput from all instances. The S3 bucket must stay the system of record, with no hand-maintained second copy.

    Which solution meets these requirements?

    Choose one answer.

    1. A. Keep File input mode and attach a provisioned-IOPS EBS volume to each instance, pre-filled by a manual copy job from the bucket.
    2. B. Pack the images into a few hundred large archive files and keep File input mode so each instance downloads the archives.
    3. C. Create an Amazon FSx for Lustre file system linked to the S3 bucket and mount it as the training input, loading objects from S3 on demand.
    4. D. Copy the dataset into an Amazon EFS file system and mount it on the training instances, which then read the files directly.
    Show the answer and explanation

    Answer: C

    • A. Wrong: A manual copy still moves the full dataset to every instance before training starts. It also creates a second copy that drifts from the bucket and must be refreshed by hand.
    • B. Wrong: Fewer, larger objects reduce per-object overhead, but every instance still downloads the whole dataset before training begins. The packed archives also become a second copy that must be rebuilt when images change.
    • C. Right: Correct. A linked FSx for Lustre file system imports S3 data on demand and serves it over a fast parallel file system, so instances start quickly without a full copy. The bucket remains the source of truth. Learn more: What is Amazon FSx for Lustre? (opens in a new tab)
    • D. Wrong: EFS can be mounted by training instances, but the images must first be copied from S3 into it, leaving a second copy to manage. A linked FSx for Lustre file system imports from the bucket on demand instead. Learn more: Amazon EFS features (opens in a new tab)

    Explanation

    Copying a very large set of small files to every instance is slow in File input mode. A file system linked to S3, such as FSx for Lustre, loads data on demand over a fast parallel connection while S3 stays the system of record. Archives and manual copies keep the full-copy problem or create a second copy to manage.

    Study

  2. Question 2 Data Preparation for ML and AI From Practice set 2

    An insurance carrier streams call-center transcript events through Amazon Data Firehose into Amazon S3, where its data science team builds a model from them. Some transcripts contain customers' Social Security numbers that agents read aloud.

    Compliance requires that raw Social Security numbers never be written to the S3 bucket, even for a few seconds. The pipeline must stay serverless, and delivery must not wait for a separate processing step.

    Which design meets these requirements?

    Choose one answer.

    1. A. Deliver the raw events to S3 and run a nightly Amazon Macie job that finds the Social Security numbers and removes them from the files it reports.
    2. B. Configure a Firehose transformation with a Lambda function that masks Social Security number patterns before delivery to S3.
    3. C. Encrypt the S3 bucket with a customer managed AWS KMS key, so that readers of the raw Social Security numbers must have key access.
    4. D. Have a Lambda function triggered by each S3 object-created event rewrite the file to remove the numbers a few seconds after it lands.
    Show the answer and explanation

    Answer: B

    • A. Wrong: The raw numbers are written to S3 before the nightly job runs, which breaks the rule that they never reach the bucket. Macie finds the data but does not stop it from being stored. Learn more: What is Amazon Macie? (opens in a new tab)
    • B. Right: Correct. Firehose invokes the Lambda function before delivery, so only masked records are written to the bucket. The transformation runs inside the delivery stream, which keeps the pipeline serverless. Learn more: Transform source data in Amazon Data Firehose (opens in a new tab)
    • C. Wrong: Encryption protects stored values from readers without the key, but the raw numbers are still written to the bucket. The compliance rule forbids storing them at all, so encryption alone does not meet it.
    • D. Wrong: Rewriting after landing means the raw numbers exist in the bucket for seconds, which the compliance rule does not allow. The approach also adds a separate processing step that delays the data.

    Explanation

    Masking must happen before data is written, not after. A Firehose transformation function runs in the delivery path, so only masked records reach S3, and the pipeline stays serverless.

    Study

  3. Question 3 Data Preparation for ML and AI From Practice set 2

    A credit union is building semantic search over 400 million passages from loan documents with an Amazon Titan Text Embeddings V2 model. At the default 1,024 dimensions, the vector index would need far more memory and storage than the budget allows.

    The team can accept a small drop in retrieval quality if it is measured first. It wants to keep the same embedding model and the same vector database.

    Which change best meets these requirements?

    Choose one answer.

    1. A. Keep 1,024 dimensions but index only the first 100 million passages, and add the rest later when the budget grows.
    2. B. Truncate each passage to its first 50 words before embedding, so that each vector carries less information to store.
    3. C. Request 256-dimension embeddings for all passages and queries, and test retrieval on a labeled query set first.
    4. D. Embed the documents at 256 dimensions but keep embedding queries at 1,024 dimensions, so that queries keep their full detail.
    Show the answer and explanation

    Answer: C

    • A. Wrong: Indexing a quarter of the corpus means most loan documents cannot be found. The search would fail for the passages left out, which is worse than a small quality drop.
    • B. Wrong: Embedding dimension does not depend on input length, so shorter text does not shrink the vectors. It only throws away content that searches need.
    • C. Right: Correct. Titan Text Embeddings V2 can output 1,024, 512 or 256 dimensions. Smaller vectors cut index memory and storage, and testing on labeled queries measures the quality trade-off before rollout. Learn more: Amazon Titan Text Embeddings models (opens in a new tab)
    • D. Wrong: Query and document vectors must have the same dimensions to be compared in one index. Mixing sizes would fail or give meaningless similarity scores.

    Explanation

    Titan Text Embeddings V2 supports 256, 512 and 1,024 output dimensions. Re-embedding the corpus and queries at a smaller size reduces vector storage and memory, and a labeled evaluation set shows how much retrieval quality changes. Partial indexing, truncated text or mismatched sizes do not meet the requirements.

    Study

  4. Question 4 ML Model and Foundation Model (FM) Development From Practice set 2

    A newsroom has 15,000 hours of recorded interviews from its reporters' archives. Editors need a searchable transcript for each recording that shows who is speaking and when, so they can find a quote and jump to it in the audio.

    The team wants a managed AWS AI service rather than a custom speech model. The transcripts must be produced in overnight batches, with the audio staying in the company's own S3 bucket.

    Which service should the team use?

    Choose one answer.

    1. A. Amazon Textract, reading each recording's audio waveform and returning the words in the order they are spoken.
    2. B. Amazon Rekognition, analyzing each recording's video frames to detect faces and label the speakers in the transcript.
    3. C. Amazon Polly, generating a synthetic voice that reads each transcript aloud so that editors can scan the content quickly.
    4. D. Amazon Transcribe, running batch transcription jobs on the audio in S3 with speaker identification and timestamps for each segment.
    Show the answer and explanation

    Answer: D

    Explanation

    Converting recorded speech to text with speaker labels and timestamps is the job of Amazon Transcribe. Textract, Rekognition and Polly work on documents, video faces and speech output, not on transcribing audio.

    Study

  5. Question 5 ML Model and Foundation Model (FM) Development From Practice set 3

    A home decor retailer wants to create product lifestyle pictures from short text descriptions, such as a sofa in a sunny living room. Designers will review each picture before it is published.

    The team wants to call a managed foundation model through Amazon Bedrock rather than host a model itself.

    Which type of model should the team choose?

    Choose one answer.

    1. A. An image generation model, such as Amazon Nova Canvas.
    2. B. A text embeddings model, which turns each product description into a numeric vector.
    3. C. A text generation model, which writes longer and richer product descriptions from short ones.
    4. D. An image classification model, which labels existing product photos by room type.
    Show the answer and explanation

    Answer: A

    • A. Right: Correct. Image generation models take a text prompt and return new images. Nova Canvas is available through Amazon Bedrock, so the team does not host anything. Learn more: Generating images with Amazon Nova Canvas (opens in a new tab)
    • B. Wrong: Embeddings models produce numeric vectors for search and similarity tasks. They do not create new pictures from a description.
    • C. Wrong: Text models return text. The retailer needs images, so a text-only model does not fit the task.
    • D. Wrong: Classification labels images that already exist. It cannot create a new lifestyle picture from a description.

    Explanation

    Choosing a foundation model starts with the input and output modality. Creating pictures from text needs a text-to-image generation model, such as Amazon Nova Canvas in Amazon Bedrock. Embeddings, text generation and classification models do not produce new images.

    Study

  6. Question 6 ML Model and Foundation Model (FM) Development From Practice set 4

    A lender already uses SageMaker Clarify for offline bias reports on its loan approval model, which runs on a SageMaker AI real-time endpoint. A new rule requires that every declined application returns the main factors behind that decision at the time of the request.

    The team wants feature attributions for each prediction from the same endpoint, without running a separate batch job.

    Which approach best meets these requirements?

    Choose one answer.

    1. A. Run a Clarify processing job each night on the day's requests, and email the factors to applicants the next day.
    2. B. Configure Clarify online explainability on the endpoint, so that every response includes feature attributions.
    3. C. Return the model's global feature importance with every response, so that each applicant sees the main factors.
    4. D. Ask the data science team to review each declined application by hand and write the main factors.
    Show the answer and explanation

    Answer: B

    • A. Wrong: A nightly job produces explanations a day late. The rule requires them at the time of each request.
    • B. Right: Correct. Online explainability adds a Clarify explainer configuration to the endpoint. The endpoint then returns feature attributions with each prediction in real time. Learn more: Online explainability with SageMaker Clarify (opens in a new tab)
    • C. Wrong: Global importance is the same for everyone. It does not explain an individual applicant's decision.
    • D. Wrong: Manual review cannot keep up with decisions made in real time. It also produces inconsistent explanations across reviewers.

    Explanation

    SageMaker Clarify online explainability adds an explainer configuration to a real-time endpoint so that each response includes SHAP-based feature attributions for that prediction. It meets per-request explanation requirements without a separate batch job. Nightly jobs, global importance or manual review do not provide timely, individual explanations.

    Study

  7. Question 7 Deployment and Orchestration of ML and AI Workflows From Practice set 3

    A retail company has a computer vision model that needs a GPU to return predictions quickly. A checkout application calls the model synchronously and needs each answer in under 200 milliseconds, with steady traffic throughout store hours.

    The team first tried SageMaker Serverless Inference to avoid managing instances.

    Which deployment option best meets these requirements?

    Choose one answer.

    1. A. Keep Serverless Inference, and raise its memory size so that the model gets a GPU.
    2. B. Deploy the model to a SageMaker AI real-time endpoint that uses a GPU instance type.
    3. C. Run a nightly batch transform job on GPU instances, and have checkout read stored predictions.
    4. D. Deploy to an asynchronous endpoint, and have checkout poll Amazon S3 for each result.
    Show the answer and explanation

    Answer: B

    • A. Wrong: Serverless Inference does not support GPUs at any memory size. The model would run on CPU and miss the latency target. Learn more: Deploy models with Amazon SageMaker Serverless Inference (opens in a new tab)
    • B. Right: Correct. Real-time endpoints support GPU instances and serve synchronous requests with low latency. Steady traffic also suits always-on instances. Learn more: Real-time inference (opens in a new tab)
    • C. Wrong: Checkout images are only known at the moment of purchase. Precomputed nightly predictions cannot answer those requests.
    • D. Wrong: Asynchronous inference queues requests and writes results to S3. Polling adds delay, so it does not fit a synchronous 200-millisecond target.

    Explanation

    Real-time endpoints serve synchronous, low-latency requests and can run on GPU instances. Serverless Inference does not support GPUs, batch transform cannot score requests as they arrive, and asynchronous inference returns results through Amazon S3 rather than in the response.

    Study

  8. Question 8 Deployment and Orchestration of ML and AI Workflows From Practice set 4

    A travel agency built a booking assistant with an open-source agent framework, and it runs well on a developer laptop. The team now needs to host it on AWS with session isolation and automatic scaling, without managing servers or containers itself.

    The team wants to keep its existing framework code.

    Which service best meets these requirements?

    Choose one answer.

    1. A. Amazon EC2 instances in an Auto Scaling group, with the agent code installed on each instance.
    2. B. Amazon Bedrock AgentCore Runtime, which hosts agents built with any framework in isolated sessions.
    3. C. Amazon SageMaker AI batch transform, which runs the agent once for each record in an input file.
    4. D. AWS Glue, which runs the agent code as a scheduled extract, transform and load job.
    Show the answer and explanation

    Answer: B

    • A. Wrong: EC2 means managing servers, patching and scaling configuration. The team wants a managed host instead.
    • B. Right: Correct. AgentCore Runtime is a serverless host for agents and tools that works with open-source frameworks. It gives each session its own isolated environment and scales automatically. Learn more: Host agent or tools with Amazon Bedrock AgentCore Runtime (opens in a new tab)
    • C. Wrong: Batch transform runs offline inference over stored datasets. It cannot host an interactive assistant that answers users in real time.
    • D. Wrong: Glue is built for data integration jobs. It is not designed to serve interactive agent sessions.

    Explanation

    Amazon Bedrock AgentCore Runtime is a serverless hosting environment for agents and tools built with any framework. It provides session isolation and automatic scaling, so teams can move existing agent code to production without managing infrastructure. EC2, batch transform and Glue do not fit interactive agent hosting.

    Study

  9. Question 9 Operating, Monitoring, and Securing ML and AI Solutions From Practice set 4

    An online retailer already runs SageMaker Model Monitor data quality checks on its recommendation endpoint. Last month the company added two new product categories, and since then every hourly report flags the product_category feature for values outside the baseline, even though these values are valid.

    All other constraints are still correct, and the team does not want to retrain the model. It wants the false violations to stop while keeping the other checks unchanged.

    Which approach best meets these requirements?

    Choose one answer.

    1. A. Delete the monitoring schedule, and create a new one without a baseline so that no constraints are checked.
    2. B. Lower the endpoint's data capture sampling percentage, so that fewer records with the new categories are analyzed.
    3. C. Edit the schedule's constraints file to accept the new product_category values.
    4. D. Retrain the model with the new categories, and run a new baselining job on the retraining data.
    Show the answer and explanation

    Answer: C

    • A. Wrong: Without a baseline, the schedule has nothing to compare against. All data quality checks would be lost, not just the faulty one.
    • B. Wrong: Sampling fewer records still includes some of the new categories. The outdated constraint would keep failing every hour.
    • C. Right: Correct. Model Monitor reads its rules from the baseline constraints file, which can be edited. Updating only the outdated constraint stops the false violations and keeps every other check. Learn more: Data quality monitoring with Model Monitor (opens in a new tab)
    • D. Wrong: Retraining is not needed because the model handles the categories. The team wants a narrow fix to the monitoring rules.

    Explanation

    Model Monitor compares captured data with the statistics and constraints produced by a baselining job, and the constraints file can be edited when a rule no longer reflects valid data. Changing only the outdated rule removes false alarms while keeping other checks. Removing the baseline, sampling less or retraining is unnecessary or loses monitoring.

    Study

  10. Question 10 Operating, Monitoring, and Securing ML and AI Solutions From Practice set 1

    A city transit agency runs SageMaker AI pipelines that read ridership data from one S3 prefix, write models to another prefix and encrypt artifacts with one AWS KMS key. A security review found that the pipeline execution role has AdministratorAccess.

    The security team requires least privilege. Apart from the SageMaker AI actions that the pipeline runs, the role must reach only those two prefixes and that one key.

    Which change should the ML engineer make?

    Choose one answer.

    1. A. Keep AdministratorAccess on the role and create a CloudTrail alarm that notifies the security team if the role makes unusual API calls.
    2. B. Replace the policy with one that grants the pipeline's SageMaker AI actions, object access on the two prefixes only, and use of the one KMS key.
    3. C. Create an IAM user with long-term access keys for the pipelines, rotated every month, and remove the execution role from the pipelines.
    4. D. Grant s3:* and kms:* on all resources and add an explicit deny for buckets owned by other accounts.
    Show the answer and explanation

    Answer: B

    Explanation

    Least privilege for a SageMaker AI pipeline means its execution role names only the resources the pipeline uses, with actions limited to those tasks. Alarms, long-term keys and broad grants with a few denies all leave the role able to reach far more than the stated prefixes and key.

    Study

Like these? There are 325 more.

The MLA-C02 practice sets: 5 sets, 325 questions in the same style, none of them in the free exam. One payment of$14.99, no subscription, with access for at least 12 months.

Questions about a question or your purchase? Email support@exampark.app and we'll sort it out.

Every exam starts with free questions. No account needed.