AWS MLA-C01 Practice Questions with Explanations
Free AWS MLA-C01 practice questions. 50 of them, each with the correct answer, a full explanation, and the reason every other option is wrong. These are real questions from the MLA-C01 exam, not paraphrases, and every explanation is written out rather than just marking the right letter.
They are drawn from the same bank as the full MLA-C01 pack, which has 271 questions in total.
Get the full MLA-C01 question bank (271 questions) →
MLA-C01 practice questions
Question 1
CASE STUDY A company is building a web-based AI application by using Amazon SageMaker. The application will provide the following capabilities and features: ML experimentation, training, a central model registry, model deployment, and model monitoring. The application must ensure secure and isolated use of training data during the ML lifecycle. The training data is stored in Amazon S3. The company needs to use the central model registry to manage different versions of models in the application. Which action will meet this requirement with the LEAST operational overhead?
- A. Create a separate Amazon Elastic Container Registry (Amazon ECR) repository for each model.
- B. Use Amazon Elastic Container Registry (Amazon ECR) and unique tags for each model version.
- C. Use the SageMaker Model Registry and model groups to catalog the models.
- D. Use the SageMaker Model Registry and unique tags for each model version.
Show answer and explanation ▾
Correct answer: C
SageMaker Model Registry with model groups is the purpose-built AWS service for managing model versions and metadata with minimal operational overhead. It provides native integration with SageMaker's ML lifecycle, automatic versioning, and approval workflows. ECR repositories are container registries not designed for model metadata management, and tagging alone (options B and D) lacks the governance and cataloging features of the Model Registry.
Why the other options are wrong:
- A. ECR repositories are for container images, not optimized for ML model versioning and governance.
- B. ECR with tags requires manual management and lacks SageMaker's model-specific features like approval status and lineage tracking.
- D. Generic tagging in Model Registry lacks the organizational structure that model groups provide for managing related model versions.
Question 2
CASE STUDY A company is building a web-based AI application by using Amazon SageMaker. The application will provide the following capabilities and features: ML experimentation, training, a central model registry, model deployment, and model monitoring. The application must ensure secure and isolated use of training data during the ML lifecycle. The training data is stored in Amazon S3. The company is experimenting with consecutive training jobs. How can the company MINIMIZE infrastructure startup times for these jobs?
- A. Use Managed Spot Training.
- B. Use SageMaker managed warm pools.
- C. Use SageMaker Training Compiler.
- D. Use the SageMaker distributed data parallelism (SMDDP) library.
Show answer and explanation ▾
Correct answer: B
SageMaker managed warm pools maintain pre-initialized compute resources between training jobs, eliminating the startup overhead of provisioning and initializing instances. This directly addresses minimizing infrastructure startup times for consecutive jobs. Managed Spot Training reduces costs but not startup time. Training Compiler optimizes code execution speed, not infrastructure provisioning. SMDDP is for distributed training parallelism, not startup optimization.
Why the other options are wrong:
- A. Managed Spot Training reduces costs through interruption-prone instances but does not minimize startup times.
- C. Training Compiler optimizes training job execution speed, not the infrastructure provisioning startup phase.
- D. Distributed data parallelism is for scaling training across multiple instances, not reducing startup times.
Question 3
CASE STUDY A company is building a web-based AI application by using Amazon SageMaker. The application will provide the following capabilities and features: ML experimentation, training, a central model registry, model deployment, and model monitoring. The application must ensure secure and isolated use of training data during the ML lifecycle. The training data is stored in Amazon S3. The company must implement a manual approval-based workflow to ensure that only approved models can be deployed to production endpoints. Which solution will meet this requirement?
- A. Use SageMaker Experiments to facilitate the approval process during model registration.
- B. Use SageMaker ML Lineage Tracking on the central model registry. Create tracking entities for the approval process.
- C. Use SageMaker Model Monitor to evaluate the performance of the model and to manage the approval.
- D. Use SageMaker Pipelines. When a model version is registered, use the AWS SDK to change the approval status to "Approved."
Show answer and explanation ▾
Correct answer: D
SageMaker Pipelines enables automated workflows that can programmatically manage model approval status through the AWS SDK. When a model is registered in the Model Registry, the pipeline can conditionally change the approval status to 'Approved' based on validation checks, creating a manual approval gate for production deployment. SageMaker Experiments tracks experiments but doesn't manage approvals. ML Lineage Tracking records relationships but doesn't enforce approval gates. Model Monitor evaluates performance but is not designed for approval workflows.
Why the other options are wrong:
- A. SageMaker Experiments facilitates experiment organization and comparison, not approval process management.
- B. ML Lineage Tracking documents model relationships and data provenance but does not implement approval workflows.
- C. Model Monitor detects model performance degradation and data drift but is not designed for approval-based gating.
Question 4
CASE STUDY A company is building a web-based AI application by using Amazon SageMaker. The application will provide the following capabilities and features: ML experimentation, training, a central model registry, model deployment, and model monitoring. The application must ensure secure and isolated use of training data during the ML lifecycle. The training data is stored in Amazon S3. The company needs to run an on-demand workflow to monitor bias drift for models that are deployed to real-time endpoints from the application. Which action will meet this requirement?
- A. Configure the application to invoke an AWS Lambda function that runs a SageMaker Clarify job.
- B. Invoke an AWS Lambda function to pull the sagemaker-model-monitor-analyzer built-in SageMaker image.
- C. Use AWS Glue Data Quality to monitor bias.
- D. Use SageMaker notebooks to compare the bias.
Show answer and explanation ▾
Correct answer: A
SageMaker Clarify is the dedicated service for bias detection and monitoring, and invoking it through AWS Lambda enables on-demand workflow execution for monitoring bias drift in deployed endpoints. This provides the required monitoring capability without continuous execution overhead. Pulling the monitor-analyzer image manually (option B) bypasses SageMaker's integrated monitoring. AWS Glue Data Quality monitors data quality but not model bias. Notebooks require manual execution and don't provide on-demand automation.
Why the other options are wrong:
- B. Manually pulling the monitor-analyzer image requires custom scripting and lacks the integration that Clarify provides.
- C. AWS Glue Data Quality monitors data quality issues, not model-specific bias drift in predictions.
- D. SageMaker notebooks require manual execution and comparison, not automated on- demand workflows.
Question 5
CASE STUDY An ML engineer is developing a fraud detection model on AWS. The training dataset includes transaction logs, customer profiles, and tables from an on-premises MySQL database. The transaction logs and customer profiles are stored in Amazon S3. The dataset has a class imbalance that affects the learning of the model's algorithm. Additionally, many of the features have interdependencies. The algorithm is not capturing all the desired underlying patterns in the data. Which AWS service or feature can aggregate the data from the various data sources?
- A. Amazon EMR Spark jobs
- B. Amazon Kinesis Data Streams
- C. Amazon DynamoDB
- D. AWS Lake Formation
Show answer and explanation ▾
Correct answer: D
AWS Lake Formation is purpose-built for aggregating and managing data from multiple sources (on-premises databases, S3, etc.) into a centralized data lake with unified governance and schema management. It provides connectors for on-premises databases like MySQL and integrates with S3 data. EMR is for processing but not aggregation governance. Kinesis Streams handle real-time streaming data, not batch aggregation from heterogeneous sources. DynamoDB is a NoSQL database, not an aggregation service.
Why the other options are wrong:
- A. EMR provides processing capability but not data aggregation and governance from multiple heterogeneous sources.
- B. Kinesis Data Streams is designed for real-time streaming data, not aggregating batch data from on-premises databases.
- C. DynamoDB is a NoSQL database service, not a data aggregation and governance platform for multiple source types.
Question 6
CASE STUDY An ML engineer is developing a fraud detection model on AWS. The training dataset includes transaction logs, customer profiles, and tables from an on-premises MySQL database. The transaction logs and customer profiles are stored in Amazon S3. The dataset has a class imbalance that affects the learning of the model's algorithm. Additionally, many of the features have interdependencies. The algorithm is not capturing all the desired underlying patterns in the data. After the data is aggregated, the ML engineer must implement a solution to automatically detect anomalies in the data and to visualize the result. Which solution will meet these requirements?
- A. Use Amazon Athena to automatically detect the anomalies and to visualize the result.
- B. Use Amazon Redshift Spectrum to automatically detect the anomalies. Use Amazon QuickSight to visualize the result.
- C. Use Amazon SageMaker Data Wrangler to automatically detect the anomalies and to visualize the result.
- D. Use AWS Batch to automatically detect the anomalies. Use Amazon QuickSight to visualize the result.
Show answer and explanation ▾
Correct answer: C
SageMaker Data Wrangler includes built-in data quality and anomaly detection capabilities with integrated visualization features, enabling both anomaly detection and result visualization in a single tool. This meets both requirements with minimal additional components. Athena is a query service without anomaly detection. Redshift Spectrum querying data doesn't automatically detect anomalies; QuickSight visualization requires separate anomaly logic. AWS Batch requires custom anomaly detection code.
Why the other options are wrong:
- A. Amazon Athena is a query engine without built-in anomaly detection capabilities.
- B. Redshift Spectrum requires custom anomaly detection logic; it doesn't automatically detect anomalies without additional implementation.
- D. AWS Batch requires custom container code to detect anomalies and doesn't provide automatic anomaly detection.
Question 7
CASE STUDY An ML engineer is developing a fraud detection model on AWS. The training dataset includes transaction logs, customer profiles, and tables from an on-premises MySQL database. The transaction logs and customer profiles are stored in Amazon S3. The dataset has a class imbalance that affects the learning of the model's algorithm. Additionally, many of the features have interdependencies. The algorithm is not capturing all the desired underlying patterns in the data. The training dataset includes categorical data and numerical data. The ML engineer must prepare the training dataset to maximize the accuracy of the model. Which action will meet this requirement with the LEAST operational overhead?
- A. Use AWS Glue to transform the categorical data into numerical data.
- B. Use AWS Glue to transform the numerical data into categorical data.
- C. Use Amazon SageMaker Data Wrangler to transform the categorical data into numerical data.
- D. Use Amazon SageMaker Data Wrangler to transform the numerical data into categorical data.
Show answer and explanation ▾
Correct answer: C
SageMaker Data Wrangler provides visual, low-code data transformation with built-in recipes for encoding categorical variables into numerical representations. It requires minimal coding effort and provides immediate preview of transformations. AWS Glue requires writing custom transformation code (Spark/Python), increasing operational overhead. Data Wrangler's visual interface and pre-built transformations make it the least operationally intensive option.
Why the other options are wrong:
- A. AWS Glue requires custom ETL code or mapping logic, which increases operational complexity compared to Data Wrangler's visual interface.
- B. Converting numerical to categorical data is the inverse of what's needed for a classification model; it reduces rather than maximizes accuracy.
- D. Converting numerical to categorical data reverses the needed transformation and would degrade model performance.
Question 8
CASE STUDY An ML engineer is developing a fraud detection model on AWS. The training dataset includes transaction logs, customer profiles, and tables from an on-premises MySQL database. The transaction logs and customer profiles are stored in Amazon S3. The dataset has a class imbalance that affects the learning of the model's algorithm. Additionally, many of the features have interdependencies. The algorithm is not capturing all the desired underlying patterns in the data. Before the ML engineer trains the model, the ML engineer must resolve the issue of the imbalanced data. Which solution will meet this requirement with the LEAST operational effort?
- A. Use Amazon Athena to identify patterns that contribute to the imbalance. Adjust the dataset accordingly.
- B. Use Amazon SageMaker Studio Classic built-in algorithms to process the imbalanced dataset.
- C. Use AWS Glue DataBrew built-in features to oversample the minority class.
- D. Use the Amazon SageMaker Data Wrangler balance data operation to oversample the minority class.
Show answer and explanation ▾
Correct answer: D
SageMaker Data Wrangler includes a built-in balance data operation specifically designed to handle class imbalance through oversampling techniques. This requires no custom code and is the least operationally intensive solution. Athena is for querying, not data balancing. Studio Classic built-in algorithms may handle imbalance but require model training iteration rather than preprocessing. AWS Glue DataBrew is primarily for data quality and profiling, not specialized imbalance handling.
Why the other options are wrong:
- A. Athena identifies patterns through queries but doesn't provide automated balancing operations.
- B. SageMaker algorithms can handle imbalanced data but require training iterations rather than resolving the issue in preprocessing.
- C. AWS Glue DataBrew is designed for data quality and profiling, not providing built-in class balancing operations.
Question 9
CASE STUDY An ML engineer is developing a fraud detection model on AWS. The training dataset includes transaction logs, customer profiles, and tables from an on-premises MySQL database. The transaction logs and customer profiles are stored in Amazon S3. The dataset has a class imbalance that affects the learning of the model's algorithm. Additionally, many of the features have interdependencies. The algorithm is not capturing all the desired underlying patterns in the data. The ML engineer needs to use an Amazon SageMaker built-in algorithm to train the model. Which algorithm should the ML engineer use to meet this requirement?
- A. LightGBM
- B. Linear learner
- C. K-means clustering
- D. Neural Topic Model (NTM)
Show answer and explanation ▾
Correct answer: A
LightGBM is a gradient boosting algorithm that excels at handling class imbalance through built-in mechanisms like balanced bagging and feature-dependent penalties. It also captures complex feature interdependencies through its tree-based ensemble approach, making it ideal for capturing underlying patterns that simpler algorithms miss. The other options are unsuitable: Linear Learner cannot capture nonlinear interdependencies, K- means is unsupervised and not designed for classification, and NTM is for topic modeling on text data.
Why the other options are wrong:
- B. Linear Learner cannot capture nonlinear feature interdependencies and performs poorly with class imbalance.
- C. K-means is an unsupervised clustering algorithm, not appropriate for fraud detection classification.
- D. Neural Topic Model is designed for topic modeling on text corpora, not structured transactional fraud detection.
Question 10
A company has deployed an XGBoost prediction model in production to predict if a customer is likely to cancel a subscription. The company uses Amazon SageMaker Model Monitor to detect deviations in the F1 score. During a baseline analysis of model quality, the company recorded a threshold for the F1 score. After several months of no change, the model's F1 score decreases significantly. What could be the reason for the reduced F1 score?
- A. Concept drift occurred in the underlying customer data that was used for predictions.
- B. The model was not sufficiently complex to capture all the patterns in the original baseline data.
- C. The original baseline data had a data quality issue of missing values.
- D. Incorrect ground truth labels were provided to Model Monitor during the calculation of the baseline.
Show answer and explanation ▾
Correct answer: A
Concept drift occurs when the statistical properties of the target variable change over time in production data. After months of stable performance, a sudden significant decrease in F1 score indicates the underlying customer behavior patterns have shifted-customers likely differ in their cancellation patterns from the baseline period. This is the most common reason for model performance degradation in production. The other options describe static issues that would have affected performance from the beginning, not caused degradation after months of stability.
Why the other options are wrong:
- B. If the model was insufficiently complex for baseline data, performance would have been poor from the start, not degrade after stable months.
- C. Missing values in baseline data would have impacted initial model training and baseline performance, not cause degradation months later.
- D. Incorrect ground truth labels during baseline calculation would affect the threshold itself, not explain actual performance changes in production.
Question 11
A company has a team of data scientists who use Amazon SageMaker notebook instances to test ML models. When the data scientists need new permissions, the company attaches the permissions to each individual role that was created during the creation of the SageMaker notebook instance. The company needs to centralize management of the team's permissions. Which solution will meet this requirement?
- A. Create a single IAM role that has the necessary permissions. Attach the role to each notebook instance that the team uses.
- B. Create a single IAM group. Add the data scientists to the group. Associate the group with each notebook instance that the team uses.
- C. Create a single IAM user. Attach the AdministratorAccess AWS managed IAM policy to the user. Configure each notebook instance to use the IAM user.
- D. Create a single IAM group. Add the data scientists to the group. Create an IAM role. Attach the AdministratorAccess AWS managed IAM policy to the role. Associate the role with the group. Associate the group with each notebook instance that the team uses.
Show answer and explanation ▾
Correct answer: A
Creating a single IAM role with necessary permissions and attaching it to each notebook instance provides centralized permission management with minimal complexity. This approach allows the company to update permissions in one place (the role) and have those changes automatically apply to all notebook instances that use it. Option B fails because IAM groups cannot be directly associated with EC2 instances. Option C violates security best practices by using a shared IAM user instead of roles. Option D is overly complex and groups cannot be directly associated with instances.
Why the other options are wrong:
- B. IAM groups cannot be directly associated with or attached to notebook instances; only roles can be used.
- C. Using a shared IAM user with AdministratorAccess violates security best practices and creates accountability issues.
- D. This approach is unnecessarily complex; groups cannot be directly associated with notebook instances, only roles can.
Question 12
An ML engineer needs to use an ML model to predict the price of apartments in a specific location. Which metric should the ML engineer use to evaluate the model's performance?
- A. Accuracy
- B. Area Under the ROC Curve (AUC)
- C. F1 score
- D. Mean absolute error (MAE)
Show answer and explanation ▾
Correct answer: D
Predicting apartment prices is a regression problem requiring a regression metric. Mean Absolute Error (MAE) measures the average absolute difference between predicted and actual prices in the same units as the target variable, making it directly interpretable and appropriate for price prediction. Accuracy, AUC, and F1 score are all classification metrics used for binary or multiclass prediction problems, not continuous value prediction.
Why the other options are wrong:
- A. Accuracy is a classification metric measuring the percentage of correct predictions, not applicable to regression.
- B. Area Under the ROC Curve is a classification metric for evaluating binary classifiers, not for regression tasks.
- C. F1 score is a classification metric combining precision and recall, not designed for regression problems.
Question 13
An ML engineer has trained a neural network by using stochastic gradient descent (SGD). The neural network performs poorly on the test set. The values for training loss and validation loss remain high and show an oscillating pattern. The values decrease for a few epochs and then increase for a few epochs before repeating the same cycle. What should the ML engineer do to improve the training process?
- A. Introduce early stopping.
- B. Increase the size of the test set.
- C. Increase the learning rate.
- D. Decrease the learning rate.
Show answer and explanation ▾
Correct answer: D
The oscillating pattern of training and validation loss indicates the learning rate is too high, causing the optimizer to overshoot the minimum and bounce around it. Decreasing the learning rate allows SGD to take smaller, more controlled steps toward the optimal solution, stabilizing the training process. Early stopping (A) addresses overfitting, not oscillation. Increasing test set size (B) is irrelevant to training dynamics. Increasing learning rate (C) would worsen oscillation.
Why the other options are wrong:
- A. Early stopping addresses overfitting, not the oscillating loss pattern caused by high learning rate instability.
- B. Test set size does not affect training dynamics or the oscillating loss behavior during training.
- C. Increasing the learning rate would exacerbate the oscillation problem, not solve it.
Question 14
An ML engineer needs to process thousands of existing CSV objects and new CSV objects that are uploaded. The CSV objects are stored in a central Amazon S3 bucket and have the same number of columns. One of the columns is a transaction date. The ML engineer must query the data based on the transaction date. Which solution will meet these requirements with the LEAST operational overhead?
- A. Use an Amazon Athena CREATE TABLE AS SELECT (CTAS) statement to create a table based on the transaction date from data in the central S3 bucket. Query the objects from the table.
- B. Create a new S3 bucket for processed data. Set up S3 replication from the central S3 bucket to the new S3 bucket. Use S3 Object Lambda to query the objects based on transaction date.
- C. Create a new S3 bucket for processed data. Use AWS Glue for Apache Spark to create a job to query the CSV objects based on transaction date. Configure the job to store the results in the new S3 bucket. Query the objects from the new S3 bucket.
- D. Create a new S3 bucket for processed data. Use Amazon Data Firehose to transfer the data from the central S3 bucket to the new S3 bucket. Configure Firehose to run an AWS Lambda function to query the data based on transaction date.
Show answer and explanation ▾
Correct answer: A
Amazon Athena with CTAS statements provides serverless SQL querying directly against S3 CSV objects with minimal operational overhead. Athena automatically handles schema inference for CSV files and can partition/filter by transaction date without requiring data movement or complex job configurations. Option B adds unnecessary replication and S3 Object Lambda complexity. Option C requires setting up and managing Glue jobs and infrastructure. Option D requires Firehose setup and Lambda function development, both unnecessarily complex.
Why the other options are wrong:
- B. This solution adds unnecessary complexity with S3 replication and Object Lambda when simple querying suffices.
- C. AWS Glue requires job creation, management, and cluster configuration, adding operational overhead versus serverless Athena.
- D. Firehose and Lambda function development adds code complexity and operational overhead compared to Athena's serverless approach.
Question 15
A company has a large, unstructured dataset. The dataset includes many duplicate records across several key attributes. Which solution on AWS will detect duplicates in the dataset with the LEAST code development?
- A. Use Amazon Mechanical Turk jobs to detect duplicates.
- B. Use Amazon QuickSight ML Insights to build a custom deduplication model.
- C. Use Amazon SageMaker Data Wrangler to pre-process and detect duplicates.
- D. Use the AWS Glue FindMatches transform to detect duplicates.
Show answer and explanation ▾
Correct answer: D
AWS Glue FindMatches is a purpose-built ML transform specifically designed to detect and remove duplicate records in datasets with minimal code. It uses machine learning to identify fuzzy matches across key attributes without requiring custom model development. Option A requires manual human review at scale. Option B (QuickSight) is for visualization and insights, not deduplication. Option C (Data Wrangler) is a general preprocessing tool requiring manual deduplication logic.
Why the other options are wrong:
- A. Mechanical Turk requires manual human review of records, which is not scalable for large datasets.
- B. QuickSight is a visualization and BI tool, not designed for duplicate detection functionality.
- C. Data Wrangler is a general preprocessing tool that would require custom logic development for deduplication.
Question 16
A company needs to run a batch data-processing job on Amazon EC2 instances. The job will run during the weekend and will take 90 minutes to finish running. The processing can handle interruptions. The company will run the job every weekend for the next 6 months. Which EC2 instance purchasing option will meet these requirements MOST cost- effectively?
- A. Spot Instances
- B. Reserved Instances
- C. On-Demand Instances
- D. Dedicated Instances
Show answer and explanation ▾
Correct answer: A
Spot Instances offer up to 90% discount compared to On-Demand prices, making them the most cost-effective option for workloads that can tolerate interruptions. Since the batch job is scheduled for weekends and can handle interruptions, Spot Instances are ideal. Reserved Instances require upfront commitment and provide better economics for continuous workloads. On-Demand is full price. Dedicated Instances are for compliance requirements and are more expensive.
Why the other options are wrong:
- B. Reserved Instances require longer-term commitment and are less cost-effective than Spot for interruptible workloads.
- C. On-Demand pricing is full price, significantly more expensive than Spot for interrupt- tolerant workloads.
- D. Dedicated Instances are for compliance/licensing requirements and offer no cost advantage over standard instances.
Question 17
An ML engineer has an Amazon Comprehend custom model in Account A in the us- east-1 Region. The ML engineer needs to copy the model to Account B in the same Region. Which solution will meet this requirement with the LEAST development effort?
- A. Use Amazon S3 to make a copy of the model. Transfer the copy to Account B.
- B. Create a resource-based IAM policy. Use the Amazon Comprehend ImportModel API operation to copy the model to Account B.
- C. Use AWS DataSync to replicate the model from Account A to Account B.
- D. Create an AWS Site-to-Site VPN connection between Account A and Account B to transfer the model.
Show answer and explanation ▾
Correct answer: B
Amazon Comprehend provides the ImportModel API operation specifically designed to copy custom models between AWS accounts in the same region. This is the native, purpose-built solution that requires minimal development effort. You create a resource- based IAM policy granting Account B permission to import the model from Account A, then use the ImportModel API. This is more efficient than manual S3 transfers, doesn't require DataSync infrastructure, and avoids the complexity of VPN setup.
Why the other options are wrong:
- A. Manual S3 copying doesn't leverage AWS's native model transfer capabilities and requires more manual steps.
- C. DataSync is designed for data synchronization workflows, not for copying Comprehend models.
- D. Site-to-Site VPN is unnecessarily complex for a cross-account operation within the same region and creates operational overhead.
Question 18
A company has a Retrieval Augmented Generation (RAG) application that uses a vector database to store embeddings of documents. The company must migrate the application to AWS and must implement a solution that provides semantic search of text files. The company has already migrated the text repository to an Amazon S3 bucket. Which solution will meet these requirements?
- A. Use an AWS Batch job to process the files and generate embeddings. Use AWS Glue to store the embeddings. Use SQL queries to perform the semantic searches.
- B. Use a custom Amazon SageMaker notebook to run a custom script to generate embeddings. Use SageMaker Feature Store to store the embeddings. Use SQL queries to perform the semantic searches.
- C. Use the Amazon Kendra S3 connector to ingest the documents from the S3 bucket into Amazon Kendra. Query Amazon Kendra to perform the semantic searches.
- D. Use an Amazon Textract asynchronous job to ingest the documents from the S3 bucket. Query Amazon Textract to perform the semantic searches.
Show answer and explanation ▾
Correct answer: C
Amazon Kendra is purpose-built for semantic search and can directly ingest documents from S3, automatically handling embeddings and vector indexing internally. It's a fully managed service that eliminates the need to manually generate embeddings, manage vector databases, or write custom queries. Options A and B require manual embedding generation and storage, losing the managed service benefits. Option D is incorrect because Amazon Textract is for text extraction, not semantic search.
Why the other options are wrong:
- A. AWS Glue is a data catalog and ETL service, not designed for vector storage or semantic search queries.
- B. This approach requires manual embedding generation and Feature Store doesn't provide semantic search capabilities-SQL queries cannot perform semantic similarity searches.
- D. Amazon Textract extracts text from documents but provides no semantic search or vector database capabilities.
Question 19
A company uses Amazon Athena to query a dataset in Amazon S3. The dataset has a target variable that the company wants to predict. The company needs to use the dataset in a solution to determine if a model can predict the target variable. Which solution will provide this information with the LEAST development effort?
- A. Create a new model by using Amazon SageMaker Autopilot. Report the model's achieved performance.
- B. Implement custom scripts to perform data pre-processing, multiple linear regression, and performance evaluation. Run the scripts on Amazon EC2 instances.
- C. Configure Amazon Macie to analyze the dataset and to create a model. Report the model's achieved performance.
- D. Select a model from Amazon Bedrock. Tune the model with the data. Report the model's achieved performance.
Show answer and explanation ▾
Correct answer: A
Amazon SageMaker Autopilot is specifically designed to automatically build, train, and tune ML models with minimal user input. It can directly query Athena datasets, automatically handles feature engineering and model selection, and reports performance metrics. This requires the least development effort compared to implementing custom scripts (B), using Macie which is designed for data classification not model building (C), or fine-tuning foundation models from Bedrock which adds unnecessary complexity (D).
Why the other options are wrong:
- B. Custom scripts require significant development effort for preprocessing, model implementation, and evaluation.
- C. Amazon Macie is designed for data protection and sensitive data discovery, not for building predictive models.
- D. Bedrock foundation models are not designed for this use case and fine-tuning them adds unnecessary complexity and cost.
Question 20
A company wants to predict the success of advertising campaigns by considering the color scheme of each advertisement. An ML engineer is preparing data for a neural network model. The dataset includes color information as categorical data. Which technique for feature engineering should the ML engineer use for the model?
- A. Apply label encoding to the color categories. Automatically assign each color a unique integer.
- B. Implement padding to ensure that all color feature vectors have the same length.
- C. Perform dimensionality reduction on the color categories.
- D. One-hot encode the color categories to transform the color scheme feature into a binary matrix.
Show answer and explanation ▾
Correct answer: D
One-hot encoding (D) is the standard technique for handling categorical features in neural networks. It converts each category into a binary vector, preventing the model from incorrectly assuming ordinal relationships between color categories. Label encoding (A) assigns arbitrary integers, causing the model to interpret ordinal relationships that don't exist. Padding (B) addresses sequence length, not categorical encoding. Dimensionality reduction (C) is premature before encoding and would lose information.
Why the other options are wrong:
- A. Label encoding creates false ordinal relationships between colors (e.g., red=1, blue=2 implies blue > red).
- B. Padding ensures sequence length uniformity, which is irrelevant for non-sequential categorical color data.
- C. Dimensionality reduction should occur after proper encoding if needed, not as the initial categorical transformation.
Question 21
A company uses a hybrid cloud environment. A model that is deployed on premises uses data in Amazon 53 to provide customers with a live conversational engine. The model is using sensitive data. An ML engineer needs to implement a solution to identify and remove the sensitive data. Which solution will meet these requirements with the LEAST operational overhead?
- A. Deploy the model on Amazon SageMaker. Create a set of AWS Lambda functions to identify and remove the sensitive data.
- B. Deploy the model on an Amazon Elastic Container Service (Amazon ECS) cluster that uses AWS Fargate. Create an AWS Batch job to identify and remove the sensitive data.
- C. Use Amazon Macie to identify the sensitive data. Create a set of AWS Lambda functions to remove the sensitive data.
- D. Use Amazon Comprehend to identify the sensitive data. Launch Amazon EC2 instances to remove the sensitive data.
Show answer and explanation ▾
Correct answer: C
Amazon Macie is a managed service that automatically identifies and classifies sensitive data in S3, requiring minimal operational overhead. Combined with Lambda functions for removal, this is fully serverless and requires no infrastructure management. Option A requires redeploying to SageMaker. Option B involves complex ECS/Fargate orchestration and Batch jobs. Option D requires manual EC2 instance management and Comprehend is designed for NLP tasks, not general sensitive data discovery.
Why the other options are wrong:
- A. Requires redeploying the on-premises model to SageMaker, changing the deployment architecture unnecessarily.
- B. ECS/Fargate and Batch require more operational overhead than using a managed service like Macie.
- D. EC2 instances require operational overhead. Comprehend is designed for NLP analysis, not general sensitive data identification.
Question 22
An ML engineer needs to create data ingestion pipelines and ML model deployment pipelines on AWS. All the raw data is stored in Amazon S3 buckets. Which solution will meet these requirements?
- A. Use Amazon Data Firehose to create the data ingestion pipelines. Use Amazon SageMaker Studio Classic to create the model deployment pipelines.
- B. Use AWS Glue to create the data ingestion pipelines. Use Amazon SageMaker Studio Classic to create the model deployment pipelines.
- C. Use Amazon Redshift ML to create the data ingestion pipelines. Use Amazon SageMaker Studio Classic to create the model deployment pipelines.
- D. Use Amazon Athena to create the data ingestion pipelines. Use an Amazon SageMaker notebook to create the model deployment pipelines.
Show answer and explanation ▾
Correct answer: B
AWS Glue is the purpose-built service for data ingestion and ETL pipelines from S3, providing native connectors, schema discovery, and transformation capabilities. SageMaker Studio Classic is designed for ML model deployment pipeline orchestration. Together they address both requirements with AWS's native ML stack. DataFirehose (A) is for streaming data. Redshift ML (C) is for SQL-based ML. Athena (D) is a query engine, not a pipeline builder.
Why the other options are wrong:
- A. Data Firehose is designed for streaming data ingestion, not batch data ingestion from S3 buckets.
- C. Redshift ML is for in-database ML, not for building general-purpose data ingestion pipelines.
- D. Athena is a query engine, not a pipeline orchestration tool. Using a notebook is less maintainable than SageMaker Studio.
Question 23
A company that has hundreds of data scientists is using Amazon SageMaker to create ML models. The models are in model groups in the SageMaker Model Registry. The data scientists are grouped into three categories: computer vision, natural language processing (NLP), and speech recognition. An ML engineer needs to implement a solution to organize the existing models into these groups to improve model discoverability at scale. The solution must not affect the integrity of the model artifacts and their existing groupings. Which solution will meet these requirements?
- A. Create a custom tag for each of the three categories. Add the tags to the model packages in the SageMaker Model Registry.
- B. Create a model group for each category. Move the existing models into these category model groups.
- C. Use SageMaker ML Lineage Tracking to automatically identify and tag which model groups should contain the models.
- D. Create a Model Registry collection for each of the three categories. Move the existing model groups into the collections.
Show answer and explanation ▾
Correct answer: D
SageMaker Model Registry Collections is the native feature designed to organize model groups hierarchically without affecting existing model artifacts or groupings. Collections allow organizing model groups by team or category while preserving their integrity. Option A uses tags but doesn't organize into the hierarchical team structure requested. Option B moves models between groups, disrupting existing groupings. Option C doesn't address the organizational need-lineage tracking is about model provenance, not categorization.
Why the other options are wrong:
- A. Tags provide metadata but don't create organizational hierarchies for improved discoverability at scale.
- B. Moving models to new category groups disrupts existing model group integrity and organization.
- C. ML Lineage Tracking records model dependencies and history, not organizational categorization by team.
Question 24
A company runs an Amazon SageMaker domain in a public subnet of a newly created VPC. The network is configured properly, and ML engineers can access the SageMaker domain. Recently, the company discovered suspicious traffic to the domain from a specific IP address. The company needs to block traffic from the specific IP address. Which update to the network configuration will meet this requirement?
- A. Create a security group inbound rule to deny traffic from the specific IP address. Assign the security group to the domain.
- B. Create a network ACL inbound rule to deny traffic from the specific IP address. Assign the rule to the default network Ad for the subnet where the domain is located.
- C. Create a shadow variant for the domain. Configure SageMaker Inference Recommender to send traffic from the specific IP address to the shadow endpoint.
- D. Create a VPC route table to deny inbound traffic from the specific IP address. Assign the route table to the domain.
Show answer and explanation ▾
Correct answer: B
Network ACLs are stateless and operate at the subnet level, making them ideal for blocking traffic from specific IP addresses at the network perimeter. A network ACL inbound deny rule will block all traffic from the specified IP address to any resource in the subnet, including the SageMaker domain. This is more comprehensive than security group rules, which are stateful and instance-level, and network ACLs are the proper mechanism for subnet-wide traffic filtering.
Why the other options are wrong:
- A. Security groups are stateful and work at the instance level; they cannot explicitly deny traffic (only allow or implicitly deny), and SageMaker domains don't directly attach security groups in the traditional sense.
- C. Shadow variants and Inference Recommender are for canary deployments and performance optimization, not for blocking malicious traffic.
- D. Route tables control packet routing between networks, not inbound traffic filtering; they cannot deny specific source IPs.
Question 25
A company is gathering audio, video, and text data in various languages. The company needs to use a large language model (LLM) to summarize the gathered data that is in Spanish. Which solution will meet these requirements in the LEAST amount of time?
- A. Train and deploy a model in Amazon SageMaker to convert the data into English text. Train and deploy an LLM in SageMaker to summarize the text.
- B. Use Amazon Transcribe and Amazon Translate to convert the data into English text. Use Amazon Bedrock with the Jurassic model to summarize the text.
- C. Use Amazon Rekognition and Amazon Translate to convert the data into English text. Use Amazon Bedrock with the Anthropic Claude model to summarize the text.
- D. Use Amazon Comprehend and Amazon Translate to convert the data into English text. Use Amazon Bedrock with the Stable Diffusion model to summarize the text.
Show answer and explanation ▾
Correct answer: B
Amazon Transcribe converts audio and video to text efficiently, Amazon Translate handles Spanish-to-English conversion, and Amazon Bedrock provides instant access to Claude and other LLMs without training or deployment overhead. This fully managed, serverless approach minimizes time-to-value compared to training custom models or using Rekognition (for images only) or Comprehend (not designed for this workflow).
Why the other options are wrong:
- A. Training and deploying custom SageMaker models requires significant time for model development, training, and endpoint deployment.
- C. Rekognition is designed for image and video object detection, not for audio transcription or general text processing required here.
- D. Stable Diffusion is a generative image model, not suitable for text summarization; Comprehend is not the optimal choice for this specific workflow.
Question 26
A financial company receives a high volume of real-time market data streams from an external provider. The streams consist of thousands of JSON records every second. The company needs to implement a scalable solution on AWS to identify anomalous data points. Which solution will meet these requirements with the LEAST operational overhead?
- A. Ingest real-time data into Amazon Kinesis data streams. Use the built-in RANDOM_CUT_FOREST function in Amazon Managed Service for Apache Flink to process the data streams and to detect data anomalies.
- B. Ingest real-time data into Amazon Kinesis data streams. Deploy an Amazon SageMaker endpoint for real-time outlier detection. Create an AWS Lambda function to detect anomalies. Use the data streams to invoke the Lambda function.
- C. Ingest real-time data into Apache Kafka on Amazon EC2 instances. Deploy an Amazon SageMaker endpoint for real-time outlier detection. Create an AWS Lambda function to detect anomalies. Use the data streams to invoke the Lambda function.
- D. Send real-time data to an Amazon Simple Queue Service (Amazon SQS) FIFO queue. Create an AWS Lambda function to consume the queue messages. Program the Lambda function to start an AWS Glue extract, transform, and load (ETL) job for batch processing and anomaly detection.
Show answer and explanation ▾
Correct answer: A
Amazon Managed Service for Apache Flink with the built-in RANDOM_CUT_FOREST function provides the lowest operational overhead because it is a fully managed service that requires no infrastructure management, no custom Lambda functions, and no endpoint deployment. The RANDOM_CUT_FOREST algorithm is specifically optimized for real-time anomaly detection on streaming data and scales automatically with Kinesis.
Why the other options are wrong:
- B. While functional, this requires managing SageMaker endpoints and writing custom Lambda code, increasing operational complexity.
- C. Managing Apache Kafka on EC2 instances adds significant operational overhead including instance management, patching, and scaling.
- D. SQS FIFO is designed for message queuing, not real-time streaming; Glue ETL is batch-oriented and introduces latency, making it unsuitable for thousands of JSON records per second.
Question 27
A company has a large collection of chat recordings from customer interactions after a product release. An ML engineer needs to create an ML model to analyze the chat data. The ML engineer needs to determine the success of the product by reviewing customer sentiments about the product. Which action should the ML engineer take to complete the evaluation in the LEAST amount of time?
- A. Use Amazon Rekognition to analyze sentiments of the chat conversations.
- B. Train a Naive Bayes classifier to analyze sentiments of the chat conversations.
- C. Use Amazon Comprehend to analyze sentiments of the chat conversations.
- D. Use random forests to classify sentiments of the chat conversations.
Show answer and explanation ▾
Correct answer: C
Amazon Comprehend is a fully managed natural language processing service with built-in sentiment analysis capabilities specifically designed for text. It requires no model training or infrastructure management and can immediately analyze chat transcripts to determine sentiment, making it the fastest solution to complete the evaluation.
Why the other options are wrong:
- A. Rekognition analyzes images and videos, not text chat data.
- B. Training a Naive Bayes classifier requires data labeling, feature engineering, and model training, consuming significantly more time.
- D. Random forests require manual feature engineering, data preparation, and model training, adding substantial time overhead.
Question 28
A company has a conversational AI assistant that sends requests through Amazon Bedrock to an Anthropic Claude large language model (LLM). Users report that when they ask similar questions multiple times, they sometimes receive different answers. An ML engineer needs to improve the responses to be more consistent and less random. Which solution will meet these requirements?
- A. Increase the temperature parameter and the top_k parameter.
- B. Increase the temperature parameter. Decrease the top_k parameter.
- C. Decrease the temperature parameter. Increase the top_k parameter.
- D. Decrease the temperature parameter and the top_k parameter.
Show answer and explanation ▾
Correct answer: D
Decreasing temperature reduces randomness in token selection, making responses more deterministic and consistent. Decreasing top_k limits the pool of candidate tokens to the k most likely options, further reducing variability. Together, these changes minimize the randomness that causes similar questions to produce different answers.
Why the other options are wrong:
- A. Increasing temperature increases randomness; increasing top_k expands the token selection pool, both making responses less consistent.
- B. Increasing temperature increases randomness, contrary to the goal of consistency.
- C. While decreasing temperature helps, increasing top_k expands token selection and increases variability, undermining the goal.
Question 29
A company is using ML to predict the presence of a specific weed in a farmer's field. The company is using the Amazon SageMaker linear learner built-in algorithm with a value of multiclass_dassifier for the predictorjype hyperparameter. What should the company do to MINIMIZE false positives?
- A. Set the value of the weight decay hyperparameter to zero.
- B. Increase the number of training epochs.
- C. Increase the value of the target_precision hyperparameter.
- D. Change the value of the predictorjype hyperparameter to regressor.
Show answer and explanation ▾
Correct answer: C
The target_precision hyperparameter in SageMaker's linear learner allows you to set a precision threshold, which directly minimizes false positives. A higher target_precision value optimizes the decision threshold to prioritize precision (true positives / all positive predictions), reducing incorrect positive weed detections.
Why the other options are wrong:
- A. Setting weight decay to zero affects regularization but does not directly control the precision-recall tradeoff needed to minimize false positives.
- B. Increasing training epochs improves model fit but does not address the classification threshold needed to reduce false positives.
- D. Changing to regressor would change the problem from classification to regression, which is inappropriate for detecting the presence/absence of a weed.
Question 30
A company has implemented a data ingestion pipeline for sales transactions from its ecommerce website. The company uses Amazon Data Firehose to ingest data into Amazon OpenSearch Service. The buffer interval of the Firehose stream is set for 60 seconds. An OpenSearch linear model generates real-time sales forecasts based on the data and presents the data in an OpenSearch dashboard. The company needs to optimize the data ingestion pipeline to support sub-second latency for the real-time dashboard. Which change to the architecture will meet these requirements?
- A. Use zero buffering in the Firehose stream. Tune the batch size that is used in the PutRecordBatch operation.
- B. Replace the Firehose stream with an AWS DataSync task. Configure the task with enhanced fan-out consumers.
- C. Increase the buffer interval of the Firehose stream from 60 seconds to 120 seconds.
- D. Replace the Firehose stream with an Amazon Simple Queue Service (Amazon SQS) queue.
Show answer and explanation ▾
Correct answer: A
Setting Firehose buffer interval to zero eliminates the 60-second batching delay, and tuning the batch size in PutRecordBatch operation allows optimization of throughput while maintaining low latency. This achieves sub-second latency by delivering data to OpenSearch immediately rather than waiting for the buffer interval.
Why the other options are wrong:
- B. DataSync is designed for large-scale data transfer and migration, not real-time streaming; enhanced fan-out is an Kinesis feature unrelated to Firehose.
- C. Increasing the buffer interval to 120 seconds worsens latency, moving in the opposite direction of the requirement.
- D. SQS adds message queue latency and is not designed for sub-second streaming requirements; it would worsen latency.
Question 31
A company has trained an ML model in Amazon SageMaker. The company needs to host the model to provide inferences in a production environment. The model must be highly available and must respond with minimum latency. The size of each request will be between 1 KB and 3 MB. The model will receive unpredictable bursts of requests during the day. The inferences must adapt proportionally to the changes in demand. How should the company deploy the model into production to meet these requirements?
- A. Create a SageMaker real-time inference endpoint. Configure auto scaling. Configure the endpoint to present the existing model.
- B. Deploy the model on an Amazon Elastic Container Service (Amazon ECS) cluster. Use ECS scheduled scaling that is based on the CPU of the ECS cluster.
- C. Install SageMaker Operator on an Amazon Elastic Kubernetes Service (Amazon EKS) cluster. Deploy the model in Amazon EKS. Set horizontal pod auto scaling to scale replicas based on the memory metric.
- D. Use Spot Instances with a Spot Fleet behind an Application Load Balancer (ALB) for inferences. Use the ALBRequestCountPerTarget metric as the metric for auto scaling.
Show answer and explanation ▾
Correct answer: A
SageMaker real-time inference endpoints provide high availability through multi-AZ deployment, minimum latency through optimized container serving, and built-in auto- scaling that adapts to unpredictable request bursts proportionally. This is a fully managed solution designed exactly for this use case with request sizes between 1 KB and 3 MB.
Why the other options are wrong:
- B. ECS scheduled scaling is time-based, not responsive to unpredictable bursts; it lacks the automatic, demand-driven scaling needed.
- C. Horizontal pod autoscaling based on memory metric is reactive and may not scale quickly enough for unpredictable bursts; EKS adds operational complexity.
- D. Spot Instances are cost-effective but not guaranteed for high availability; manual fleet management adds operational overhead compared to managed SageMaker endpoints.
Question 32
An ML engineer needs to use an Amazon EMR cluster to process large volumes of data in batches. Any data loss is unacceptable. Which instance purchasing option will meet these requirements MOST cost-effectively?
- A. Run the primary node, core nodes, and task nodes on On-Demand Instances.
- B. Run the primary node, core nodes, and task nodes on Spot Instances.
- C. Run the primary node on an On-Demand Instance. Run the core nodes and task nodes on Spot Instances.
- D. Run the primary node and core nodes on On-Demand Instances. Run the task nodes on Spot Instances.
Show answer and explanation ▾
Correct answer: D
In Amazon EMR, the primary node manages the cluster and must remain stable, so it requires On-Demand Instances. Core nodes store HDFS data and cannot be lost, requiring On-Demand Instances. Task nodes only perform computations and can be interrupted without data loss, making Spot Instances cost-effective for them. This configuration balances cost savings with data durability requirements.
Why the other options are wrong:
- A. Using On-Demand for all instances is unnecessarily expensive when task nodes can use cheaper Spot Instances.
- B. Spot Instances can be terminated, risking loss of the primary node's state and core node HDFS data.
- C. Core nodes store HDFS data and cannot be lost, so they must use On-Demand Instances rather than Spot.
Question 33
A company is planning to create several ML prediction models. The training data is stored in Amazon S3. The entire dataset is more than 5 TB in size and consists of CSV, JSON, Apache Parquet, and simple text files. The data must be processed in several consecutive steps. The steps include complex manipulations that can take hours to finish running. Some of the processing involves natural language processing (NLP) transformations. The entire process must be automated. Which solution will meet these requirements?
- A. Process data at each step by using Amazon SageMaker Data Wrangler. Automate the process by using Data Wrangler jobs.
- B. Use Amazon SageMaker notebooks for each data processing step. Automate the process by using Amazon EventBridge.
- C. Process data at each step by using AWS Lambda functions. Automate the process by using AWS Step Functions and Amazon EventBridge.
- D. Use Amazon SageMaker Pipelines to create a pipeline of data processing steps. Automate the pipeline by using Amazon EventBridge.
Show answer and explanation ▾
Correct answer: D
SageMaker Pipelines is purpose-built for orchestrating complex multi-step ML workflows with support for diverse data formats, long-running operations, and NLP transformations. It integrates seamlessly with other SageMaker components and can be automated via EventBridge for scheduled or event-driven execution. Data Wrangler (A) has limitations on data size and step complexity. SageMaker notebooks (B) require manual orchestration and don't scale well for automation. Lambda (C) has execution time limits that make it unsuitable for processes taking hours.
Why the other options are wrong:
- A. Data Wrangler has constraints on dataset size and complexity of transformations, and is less suitable for multi-hour processing steps.
- B. Notebooks require manual execution and EventBridge integration is cumbersome; this approach lacks native automation for complex multi-step workflows.
- C. Lambda functions have a 15-minute maximum execution timeout, making them unsuitable for processing that takes hours.
Question 34
An ML engineer needs to use AWS CloudFormation to create an ML model that an Amazon SageMaker endpoint will host. Which resource should the ML engineer declare in the CloudFormation template to meet this requirement?
- A. AWS::SageMaker::Model
- B. AWS::SageMaker::Endpoint
- C. AWS::SageMaker::NotebookInstance
- D. AWS::SageMaker::Pipeline
Show answer and explanation ▾
Correct answer: A
AWS::SageMaker::Model defines the ML model artifact and configuration that will be hosted on an endpoint. To host this model, you then declare AWS::SageMaker::Endpoint in the same template, which references the model. The Model resource is the prerequisite that must be declared first to enable endpoint creation.
Why the other options are wrong:
- B. Endpoint resource hosts the model but does not define the model itself; you need Model first.
- C. NotebookInstance is for interactive development and is not used to host trained models.
- D. Pipeline is for orchestrating training workflows, not for hosting deployed models.
Question 35
An advertising company uses AWS Lake Formation to manage a data lake. The data lake contains structured data and unstructured data. The company's ML engineers are assigned to specific advertisement campaigns. The ML engineers must interact with the data through Amazon Athena and by browsing the data directly in an Amazon S3 bucket. The ML engineers must have access to only the resources that are specific to their assigned advertisement campaigns. Which solution will meet these requirements in the MOST operationally efficient way?
- A. Configure IAM policies on an AWS Glue Data Catalog to restrict access to Athena based on the ML engineers' campaigns.
- B. Store users and campaign information in an Amazon DynamoDB table. Configure DynamoDB Streams to invoke an AWS Lambda function to update S3 bucket policies.
- C. Use Lake Formation to authorize AWS Glue to access the S3 bucket. Configure Lake Formation tags to map ML engineers to their campaigns.
- D. Configure S3 bucket policies to restrict access to the S3 bucket based on the ML engineers' campaigns.
Show answer and explanation ▾
Correct answer: C
Lake Formation provides fine-grained access control through tagging mechanisms that map users to resources based on campaign assignments. Lake Formation tags enable column-level and table-level access control in the Glue Data Catalog, which directly controls both Athena query access and S3 bucket visibility. This is the most operationally efficient approach as it centralizes access management in Lake Formation rather than requiring manual policy updates across multiple services.
Why the other options are wrong:
- A. IAM policies alone cannot provide the granular, tag-based access control that Lake Formation offers for campaign-specific data.
- B. Using DynamoDB and Lambda to update S3 bucket policies is operationally complex and lacks the native access control features of Lake Formation.
- D. S3 bucket policies are coarse-grained and difficult to maintain for campaign-specific access patterns; Lake Formation tagging is more scalable.
Question 36
An ML engineer needs to use data with Amazon SageMaker Canvas to train an ML model. The data is stored in Amazon S3 and is complex in structure. The ML engineer must use a file format that minimizes processing time for the data. Which file format will meet these requirements?
- A. CSV files compressed with Snappy
- B. JSON objects in JSONL format
- C. JSON files compressed with gzip
- D. Apache Parquet files
Show answer and explanation ▾
Correct answer: D
Apache Parquet is a columnar storage format optimized for analytical workloads with built- in compression and efficient data retrieval. It minimizes processing time by allowing SageMaker Canvas to read only the columns needed, skip unnecessary data, and leverage predicate pushdown. For complex, structured data at scale, Parquet significantly outperforms CSV, JSON, and JSONL formats in processing speed and resource efficiency.
Why the other options are wrong:
- A. CSV with Snappy compression is row-based and requires full file parsing, less efficient than columnar Parquet for complex data.
- B. JSONL format is text-based and requires parsing each line individually, slower than Parquet for large datasets.
- C. JSON with gzip compression is text-based and does not provide the columnar optimization benefits of Parquet.
Question 37
An ML engineer is evaluating several ML models and must choose one model to use in production. The cost of false negative predictions by the models is much higher than the cost of false positive predictions. Which metric finding should the ML engineer prioritize the MOST when choosing the model?
- A. Low precision
- B. High precision
- C. Low recall
- D. High recall
Show answer and explanation ▾
Correct answer: D
Recall measures the proportion of actual positive cases correctly identified (true positives divided by all actual positives). When false negatives are costly-meaning missed positive cases are expensive-high recall is critical to minimize these missed detections. High recall ensures the model catches as many true positive cases as possible, even if it generates more false positives, which are acceptable given the cost structure.
Why the other options are wrong:
- A. Low precision means many false positives; this is not the priority when false negatives are more costly.
- B. High precision reduces false positives, which is less important when false negatives carry higher cost.
- C. Low recall means missing true positives, directly increasing the high-cost false negative rate.
Question 38
A company has trained and deployed an ML model by using Amazon SageMaker. The company needs to implement a solution to record and monitor all the API call events for the SageMaker endpoint. The solution also must provide a notification when the number of API call events breaches a threshold. Which solution will meet these requirements?
- A. Use SageMaker Debugger to track the inferences and to report metrics. Create a custom rule to provide a notification when the threshold is breached.
- B. Use SageMaker Debugger to track the inferences and to report metrics. Use the tensor_variance built-in rule to provide a notification when the threshold is breached.
- C. Log all the endpoint invocation API events by using AWS CloudTrail. Use an Amazon CloudWatch dashboard for monitoring. Set up a CloudWatch alarm to provide notification when the threshold is breached.
- D. Add the Invocations metric to an Amazon CloudWatch dashboard for monitoring. Set up a CloudWatch alarm to provide notification when the threshold is breached.
Show answer and explanation ▾
Correct answer: C
CloudTrail records all API calls made to AWS services, including SageMaker endpoint invocations, providing a complete audit trail of endpoint activity. CloudWatch can display this data via dashboards and CloudWatch alarms can trigger notifications when API call counts breach thresholds. This solution directly addresses the requirements for recording API events and threshold-based alerting. SageMaker Debugger (A, B) is designed for training job monitoring, not inference endpoint API call tracking. Option D monitors the built-in Invocations metric but lacks the comprehensive API call recording that CloudTrail provides.
Why the other options are wrong:
- A. SageMaker Debugger tracks training job metrics and tensor values, not endpoint API call events.
- B. SageMaker Debugger and its tensor_variance rule are for training job monitoring, not for recording endpoint invocation API events.
- D. The CloudWatch Invocations metric provides count data but does not record or audit individual API calls like CloudTrail does.
Question 39
A company has AWS Glue data processing jobs that are orchestrated by an AWS Glue workflow. The AWS Glue jobs can run on a schedule or can be launched manually. The company is developing pipelines in Amazon SageMaker Pipelines for ML model development. The pipelines will use the output of the AWS Glue jobs during the data processing phase of model development. An ML engineer needs to implement a solution that integrates the AWS Glue jobs with the pipelines. Which solution will meet these requirements with the LEAST operational overhead?
- A. Use AWS Step Functions for orchestration of the pipelines and the AWS Glue jobs.
- B. Use processing steps in SageMaker Pipelines. Configure inputs that point to the Amazon Resource Names (ARNs) of the AWS Glue jobs.
- C. Use Callback steps in SageMaker Pipelines to start the AWS Glue workflow and to stop the pipelines until the AWS Glue jobs finish running.
- D. Use Amazon EventBridge to invoke the pipelines and the AWS Glue jobs in the desired order.
Show answer and explanation ▾
Correct answer: C
SageMaker Pipelines Callback steps are specifically designed to integrate with external services like AWS Glue workflows. A Callback step starts the Glue workflow and pauses the pipeline until the workflow completes, then resumes execution. This requires minimal configuration and no additional orchestration services, making it the least operationally overhead solution compared to managing separate Step Functions orchestration, EventBridge rules, or manually configuring processing steps with ARN inputs.
Why the other options are wrong:
- A. Step Functions would require additional setup and management of separate orchestration logic for both Glue and SageMaker components.
- B. Processing steps in SageMaker Pipelines are designed to run custom code, not to orchestrate external Glue workflows directly.
- D. EventBridge would require creating custom event rules and integration logic, adding unnecessary complexity.
Question 40
A company is using an Amazon Redshift database as its single data source. Some of the data is sensitive. A data scientist needs to use some of the sensitive data from the database. An ML engineer must give the data scientist access to the data without transforming the source data and without storing anonymized data in the database. Which solution will meet these requirements with the LEAST implementation effort?
- A. Configure dynamic data masking policies to control how sensitive data is shared with the data scientist at query time.
- B. Create a materialized view with masking logic on top of the database. Grant the necessary read permissions to the data scientist.
- C. Unload the Amazon Redshift data to Amazon S3. Use Amazon Athena to create schema-on-read with masking logic. Share the view with the data scientist.
- D. Unload the Amazon Redshift data to Amazon S3. Create an AWS Glue job to anonymize the data. Share the dataset with the data scientist.
Show answer and explanation ▾
Correct answer: A
Amazon Redshift's dynamic data masking policies provide query-time masking without modifying the source data or creating additional stored copies. This is the most straightforward solution that meets all requirements: sensitive data remains untransformed in the source, no anonymized copies are stored in the database, and access control happens automatically at query time with minimal implementation effort.
Why the other options are wrong:
- B. Materialized views would require storing derived data, and masking logic in views is less flexible than dynamic policies.
- C. Unloading to S3 and using Athena adds complexity and operational overhead compared to native Redshift masking.
- D. Using Glue to anonymize data requires ETL job creation and storing separate anonymized datasets, violating the constraint of not storing anonymized data in or outside the database.
Question 41
An ML engineer is using a training job to fine-tune a deep learning model in Amazon SageMaker Studio. The ML engineer previously used the same pre-trained model with a similar dataset. The ML engineer expects vanishing gradient, underutilized GPU, and overfitting problems. The ML engineer needs to implement a solution to detect these issues and to react in predefined ways when the issues occur. The solution also must provide comprehensive real-time metrics during the training. Which solution will meet these requirements with the LEAST operational overhead?
- A. Use TensorBoard to monitor the training job. Publish the findings to an Amazon Simple Notification Service (Amazon SNS) topic. Create an AWS Lambda function to consume the findings and to initiate the predefined actions.
- B. Use Amazon CloudWatch default metrics to gain insights about the training job. Use the metrics to invoke an AWS Lambda function to initiate the predefined actions.
- C. Expand the metrics in Amazon CloudWatch to include the gradients in each training step. Use the metrics to invoke an AWS Lambda function to initiate the predefined actions.
- D. Use SageMaker Debugger built-in rules to monitor the training job. Configure the rules to initiate the predefined actions.
Show answer and explanation ▾
Correct answer: D
SageMaker Debugger includes built-in rules specifically designed to detect vanishing gradients, underutilized GPU, and overfitting problems during training. It provides comprehensive real-time metrics and can be configured to automatically trigger predefined actions when issues are detected, requiring minimal manual setup and no additional Lambda or SNS infrastructure.
Why the other options are wrong:
- A. TensorBoard requires manual monitoring and publishing findings to SNS, then setting up Lambda functions-significantly more operational overhead.
- B. CloudWatch default metrics do not include the deep gradient analysis needed for vanishing gradient detection.
- C. Manually expanding CloudWatch metrics and setting up Lambda automation is more complex than using built-in Debugger rules.
Question 42
A credit card company has a fraud detection model in production on an Amazon SageMaker endpoint. The company develops a new version of the model. The company needs to assess the new model's performance by using live data and without affecting production end users. Which solution will meet these requirements?
- A. Set up SageMaker Debugger and create a custom rule.
- B. Set up blue/green deployments with all-at-once traffic shifting.
- C. Set up blue/green deployments with canary traffic shifting.
- D. Set up shadow testing with a shadow variant of the new model.
Show answer and explanation ▾
Correct answer: D
Shadow testing deploys a shadow variant alongside the production model, sends live traffic to both models, and compares predictions without affecting production responses. This allows comprehensive performance assessment on real data without any impact on end users, as predictions from the shadow variant are never used to make actual decisions.
Why the other options are wrong:
- A. SageMaker Debugger is for monitoring model training, not for testing deployed model variants in production.
- B. All-at-once traffic shifting would immediately direct traffic from the old model to the new one, affecting end users.
- C. Canary traffic shifting still routes some percentage of live traffic to the new model, risking impact on production users.
Question 43
A company stores time-series data about user clicks in an Amazon S3 bucket. The raw data consists of millions of rows of user activity every day. ML engineers access the data to develop their ML models. The ML engineers need to generate daily reports and analyze click trends over the past 3 days by using Amazon Athena. The company must retain the data for 30 days before archiving the data. Which solution will provide the HIGHEST performance for data retrieval?
- A. Keep all the time-series data without partitioning in the S3 bucket. Manually move data that is older than 30 days to separate S3 buckets.
- B. Create AWS Lambda functions to copy the time-series data into separate S3 buckets. Apply S3 Lifecycle policies to archive data that is older than 30 days to S3 Glacier Flexible Retrieval.
- C. Organize the time-series data into partitions by date prefix in the S3 bucket. Apply S3 Lifecycle policies to archive partitions that are older than 30 days to S3 Glacier Flexible Retrieval.
- D. Put each day's time-series data into its own S3 bucket. Use S3 Lifecycle policies to archive S3 buckets that hold data that is older than 30 days to S3 Glacier Flexible Retrieval.
Show answer and explanation ▾
Correct answer: C
Partitioning data by date prefix in S3 enables Athena to use partition pruning, dramatically improving query performance for the most recent 3 days of data. This combined with S3 Lifecycle policies to archive older partitions to Glacier provides optimal retrieval performance for the 30-day retention period while managing costs effectively.
Why the other options are wrong:
- A. Unpartitioned data requires Athena to scan millions of rows every time, causing poor performance.
- B. Lambda-based copying and separate buckets adds complexity without the performance benefits of partition pruning.
- D. Creating separate buckets per day is inefficient and prevents Athena from leveraging partition elimination for queries spanning multiple days.
Question 44
A company has deployed an ML model that detects fraudulent credit card transactions in real time in a banking application. The model uses Amazon SageMaker Asynchronous Inference. Consumers are reporting delays in receiving the inference results. An ML engineer needs to implement a solution to improve the inference performance. The solution also must provide a notification when a deviation in model quality occurs. Which solution will meet these requirements?
- A. Use SageMaker real-time inference for inference. Use SageMaker Model Monitor for notifications about model quality.
- B. Use SageMaker batch transform for inference. Use SageMaker Model Monitor for notifications about model quality.
- C. Use SageMaker Serverless Inference for inference. Use SageMaker Inference Recommender for notifications about model quality.
- D. Keep using SageMaker Asynchronous Inference for inference. Use SageMaker Inference Recommender for notifications about model quality.
Show answer and explanation ▾
Correct answer: A
For real-time fraud detection, SageMaker real-time inference provides immediate responses to individual transactions, eliminating the delays consumers are experiencing with asynchronous inference. SageMaker Model Monitor provides the necessary notifications about model quality deviations, making this the complete solution for both performance improvement and quality monitoring.
Why the other options are wrong:
- B. Batch transform is designed for processing large datasets in batches, not suitable for real-time transaction fraud detection.
- C. Serverless Inference is appropriate but Inference Recommender provides sizing recommendations, not quality deviation notifications.
- D. Asynchronous Inference is the root cause of the reported delays; switching to it does not solve the performance problem.
Question 45
An ML engineer needs to implement a solution to host a trained ML model. The rate of requests to the model will be inconsistent throughout the day. The ML engineer needs a scalable solution that minimizes costs when the model is not in use. The solution also must maintain the model's capacity to respond to requests during times of peak usage. Which solution will meet these requirements?
- A. Create AWS Lambda functions that have fixed concurrency to host the model. Configure the Lambda functions to automatically scale based on the number of requests to the model.
- B. Deploy the model on an Amazon Elastic Container Service (Amazon ECS) cluster that uses AWS Fargate. Set a static number of tasks to handle requests during times of peak usage.
- C. Deploy the model to an Amazon SageMaker endpoint. Deploy multiple copies of the model to the endpoint. Create an Application Load Balancer to route traffic between the different copies of the model at the endpoint.
- D. Deploy the model to an Amazon SageMaker endpoint. Create SageMaker endpoint auto scaling policies that are based on Amazon CloudWatch metrics to adjust the number of instances dynamically.
Show answer and explanation ▾
Correct answer: D
SageMaker endpoint auto scaling uses CloudWatch metrics to dynamically adjust the number of instances based on demand. This provides automatic scaling during peak usage while allowing instances to scale down to zero during periods of low usage, meeting both cost minimization and capacity requirements.
Why the other options are wrong:
- A. Lambda with fixed concurrency requires pre-allocated capacity, preventing cost savings during low-usage periods.
- B. ECS Fargate with a static number of tasks cannot scale down during low usage, wasting costs.
- C. Manually deploying multiple copies and using an ALB requires manual capacity management and does not automatically scale.
Question 46
A company uses Amazon SageMaker Studio to develop an ML model. The company has a single SageMaker Studio domain. An ML engineer needs to implement a solution that provides an automated alert when SageMaker compute costs reach a specific threshold. Which solution will meet these requirements?
- A. Add resource tagging by editing the SageMaker user profile in the SageMaker domain. Configure AWS Cost Explorer to send an alert when the threshold is reached.
- B. Add resource tagging by editing the SageMaker user profile in the SageMaker domain. Configure AWS Budgets to send an alert when the threshold is reached.
- C. Add resource tagging by editing each user's IAM profile. Configure AWS Cost Explorer to send an alert when the threshold is reached.
- D. Add resource tagging by editing each user's IAM profile. Configure AWS Budgets to send an alert when the threshold is reached.
Show answer and explanation ▾
Correct answer: B
AWS Budgets is specifically designed to send automated alerts when spending reaches defined thresholds. Resource tagging should be configured through the SageMaker user profile in the domain, which allows Budgets to track and alert on SageMaker-specific compute costs without requiring IAM profile modifications.
Why the other options are wrong:
- A. Cost Explorer is for analyzing costs after the fact, not for setting threshold-based alerts.
- C. Editing individual IAM profiles is unnecessary and not the standard approach; SageMaker user profile tagging is the proper method.
- D. While Budgets is correct, editing IAM profiles is the wrong configuration method for SageMaker domain-based cost tracking.
Question 47
A company uses Amazon SageMaker for its ML workloads. The company's ML engineer receives a 50 MB Apache Parquet data file to build a fraud detection model. The file includes several correlated columns that are not required. What should the ML engineer do to drop the unnecessary columns in the file with the LEAST effort?
- A. Download the file to a local workstation. Perform one-hot encoding by using a custom Python script.
- B. Create an Apache Spark job that uses a custom processing script on Amazon EMR.
- C. Create a SageMaker processing job by calling the SageMaker Python SDK.
- D. Create a data flow in SageMaker Data Wrangler. Configure a transform step.
Show answer and explanation ▾
Correct answer: D
SageMaker Data Wrangler is purpose-built for data preparation tasks like dropping unnecessary columns with minimal effort. It provides a visual, low-code interface where users can configure transform steps to remove correlated or unwanted columns from Parquet files without writing code. A 50 MB file is well within Data Wrangler's capabilities, making this the least-effort solution.
Why the other options are wrong:
- A. Downloading to a local workstation and writing custom Python scripts requires more manual effort than using Data Wrangler's built-in transforms, and one-hot encoding is not the appropriate technique for dropping columns.
- B. Creating an EMR Spark job requires infrastructure setup and custom scripting, which is considerably more effort than using Data Wrangler's visual interface.
- C. Creating a SageMaker processing job requires writing and managing custom processing scripts, which is more complex than using Data Wrangler's no-code transform steps.
Question 48
A company is creating an application that will recommend products for customers to purchase. The application will make API calls to Amazon Q Business. The company must ensure that responses from Amazon Q Business do not include the name of the company's main competitor. Which solution will meet this requirement?
- A. Configure the competitor's name as a blocked phrase in Amazon Q Business.
- B. Configure an Amazon Q Business retriever to exclude the competitor's name.
- C. Configure an Amazon Kendra retriever for Amazon Q Business to build indexes that exclude the competitor's name.
- D. Configure document attribute boosting in Amazon Q Business to deprioritize the competitor's name.
Show answer and explanation ▾
Correct answer: A
Amazon Q Business supports blocked phrases functionality that prevents specific terms from appearing in responses. This is the direct and intended mechanism for excluding competitor names from API responses. Configuring the competitor's name as a blocked phrase ensures it will not be included in any Amazon Q Business responses.
Why the other options are wrong:
- B. Retrievers are designed to control which documents are searched, not to filter specific phrases from responses.
- C. Kendra indexing controls which documents are available for search but does not prevent specific phrases from appearing in final responses.
- D. Document attribute boosting controls document relevance ranking, not phrase-level filtering of response content.
Question 49
An ML engineer needs to use Amazon SageMaker to fine-tune a large language model (LLM) for text summarization. The ML engineer must follow a low-code no-code (LCNC) approach. Which solution will meet these requirements?
- A. Use SageMaker Studio to fine-tune an LLM that is deployed on Amazon EC2 instances.
- B. Use SageMaker Autopilot to fine-tune an LLM that is deployed by a custom API endpoint.
- C. Use SageMaker Autopilot to fine-tune an LLM that is deployed on Amazon EC2 instances.
- D. Use SageMaker Autopilot to fine-tune an LLM that is deployed by SageMaker JumpStart.
Show answer and explanation ▾
Correct answer: D
SageMaker JumpStart provides pre-trained foundation models with built-in fine-tuning capabilities, and SageMaker Autopilot is designed for automated ML with minimal code. Using Autopilot with LLMs deployed through JumpStart provides a low-code/no-code approach to fine-tuning LLMs for text summarization, requiring minimal manual intervention.
Why the other options are wrong:
- A. SageMaker Studio alone is an IDE and does not provide the low-code/no-code automation that Autopilot offers; EC2 deployments require more manual management.
- B. Custom API endpoints require custom development and infrastructure management, contradicting the low-code/no-code requirement.
- C. EC2 instance management requires significant manual configuration and is not consistent with a low-code/no-code approach.
Question 50
A company has an ML model that needs to run one time each night to predict stock values. The model input is 3 MB of data that is collected during the current day. The model produces the predictions for the next day. The prediction process takes less than 1 minute to finish running. How should the company deploy the model on Amazon SageMaker to meet these requirements?
- A. Use a multi-model serverless endpoint. Enable caching.
- B. Use an asynchronous inference endpoint. Set the InitialInstanceCount parameter to 0.
- C. Use a real-time endpoint. Configure an auto scaling policy to scale the model to 0 when the model is not in use.
- D. Use a serverless inference endpoint. Set the MaxConcurrency parameter to 1.
Show answer and explanation ▾
Correct answer: D
A serverless inference endpoint is ideal for this use case: it runs once per night on a schedule with minimal data (3 MB) and completes in under 1 minute. Serverless endpoints automatically scale to zero when not in use, eliminating costs during idle time. Setting MaxConcurrency to 1 ensures the single nightly prediction request is handled appropriately without unnecessary parallelism.
Why the other options are wrong:
- A. Multi-model serverless endpoints are designed for scenarios with multiple models, not a single model running once daily; caching is unnecessary for a single nightly execution.
- B. Asynchronous inference is designed for high-volume, latency-tolerant workloads; it incurs costs for the infrastructure even when idle, and InitialInstanceCount parameter doesn't apply to async endpoints.
- C. Real-time endpoints maintain instances continuously, incurring unnecessary costs when the model is idle for 23+ hours per day; auto-scaling to 0 defeats the purpose of a real-time endpoint.
Get the complete MLA-C01 bank
These 50 questions are roughly 21% of the bank. The full pack has 271 real MLA-C01 questions, each with the same depth of explanation, plus a questions-only PDF for timed practice and free updates forever.
View the full AWS MLA-C01 question bank →