表示モード
画像位置
文字位置
理解度の自動記録
Q1AWS Certified Machine Learning Engineer Associate
Q1. An ML engineer at a manufacturing company is planning to run a training job on Amazon SageMaker AI.
The job will train a neural network using multiple GPUs.
The training dataset is stored in Parquet format.
The ML engineer notices that some of the files in the Parquet dataset are too large to fit into the memory of the SageMaker AI training instances.
Which solution will resolve this memory issue?
Show answer
Correct answer: B. Use Apache Spark on Amazon EMR to repartition (split) the Parquet files. Use the repartitioned files for the training job.
The correct answer is B.The root cause of the problem is that individual Parquet files are too large to be loaded into the memory of the training instances.
By using Apache Spark on Amazon EMR to repartition the files into smaller units, SageMaker can stream and process them efficiently, resolving the memory issue at its source.
Option A adds an EBS volume that increases storage capacity rather than memory, so it does not relieve the memory constraint.
Option C uses a memory-optimized instance, which increases cost and will hit the limit again as the data volume grows.
Option D uses SMDDP, a mechanism for distributing gradients and computation, which does not solve the problem of the file size itself.
Therefore, B, which optimizes the data layout, is the best choice.
Apache Spark – Amazon EMR
Q2AWS Certified Machine Learning Engineer Associate
Q2. An ML engineer at a retail company wants to use, prepare, and load data stored in Amazon S3 for analytics.
The ML engineer needs to run an extract, transform, and load (ETL) job that discovers the schema of the data and stores the associated metadata.
Which solution will meet these requirements with the least manual effort?
Show answer
Correct answer: A. Run the ETL job with AWS Glue. Have the job discover the schema and store the associated metadata in the AWS Glue Data Catalog.
The correct answer is A.AWS Glue is an AWS-native ETL service that provides schema discovery, ETL job execution, and metadata management in a single managed service.
A Glue crawler automatically crawls the data source in S3 to infer the schema and automatically registers the result in the AWS Glue Data Catalog, so there is no need to build your own schema-inference logic or metadata-management mechanism.
Option B’s SageMaker Data Wrangler is primarily intended for visual data preparation and is not suited for catalog management.
Option C’s combination of Athena and Step Functions requires building your own orchestration, which adds effort.
Option D’s approach of using scikit-learn on EC2 has the highest operational overhead.
Therefore, A, which achieves schema discovery and metadata management with the least manual effort, is correct.
What is AWS Glue – AWS Glue
Q3AWS Certified Machine Learning Engineer Associate
Q3. A law firm operates a Retrieval Augmented Generation (RAG) application that stores document embeddings in a vector database.
The firm needs to migrate this application to AWS and implement a solution that provides semantic search over text files.
The text repository has already been migrated to an Amazon S3 bucket.
Which solution will meet these requirements?
Show answer
Correct answer: C. Use the Amazon Kendra S3 connector to ingest the documents from the S3 bucket into Amazon Kendra. Perform semantic search by querying Amazon Kendra.
The correct answer is C.Amazon Kendra is an AI-powered search service specialized in semantic search, and by using the Amazon Kendra S3 connector you can ingest documents in the S3 bucket directly.
Because Kendra itself provides semantic search over the ingested documents through built-in functionality, there is no need to generate embeddings or build and operate your own vector database, so the requirements can be met with minimal operational overhead.
Option A’s combination of AWS Batch and Glue and Option B’s approach using a SageMaker notebook and Feature Store both require building your own embedding-generation and vector-search mechanisms, resulting in high operational overhead.
Option D’s Textract is a text-recognition service and does not provide a search function.
Therefore, C, which has the least operational overhead, is correct.
What is Amazon Kendra – Amazon Kendra
Q4AWS Certified Machine Learning Engineer Associate
Q4. A company that provides an online travel booking service trained an ML model on Amazon SageMaker.
The company needs to host this model to serve inference in production.
The model must be highly available and must respond with minimal latency.
Each request ranges in size from 1 KB to 3 MB.
The model receives unpredictable spikes of requests during the day.
The inference must scale proportionally to changes in demand.
How should the model be deployed to production to meet these requirements?
Show answer
Correct answer: A. Create a SageMaker real-time inference endpoint. Configure auto scaling. Configure the endpoint to serve the existing model.
The correct answer is A.An Amazon SageMaker real-time inference endpoint is a managed hosting feature optimized for low-latency inference.
By configuring auto scaling, the number of instances is automatically increased or decreased even in response to unpredictable request spikes, achieving both high availability and low latency.
Option B’s schedule-based scaling cannot keep up with sudden, unpredictable changes in demand.
Option C’s approach of scaling on EKS based on a memory metric is operationally complex and does not directly reflect changes in request volume.
Option D’s Spot Instances offer a cost advantage but carry a risk of interruption and are not suited to the high-availability requirement.
Therefore, A, which is managed and supports auto scaling, is the best choice.
Real-time inference – Amazon SageMaker AI
Q5AWS Certified Machine Learning Engineer Associate
Q5. An ML engineer is working on an ML model that predicts the prices of similarly sized homes.
The model makes predictions based on several features.
From the list of feature engineering techniques below, select the one best suited to each of the following features.
Each technique is used exactly once or not at all.
(Select 3)
Drag an option into a requirement’s drop zone, or tap to place it. Click a filled zone to return it (the same option can be used multiple times).
Feature Splitting
Logarithmic Transformation
One-Hot Encoding
Standardized Distribution
City
Home type and build year (Type_year)
Size of the building
Show answer
Correct answer: City → One-Hot Encoding / Home type and build year (Type_year) → Feature Splitting / Size of the building → Standardized Distribution
This is a matching-format question in which you select 3 of the 4 feature engineering techniques and apply each to the corresponding feature.Accordingly, for a non-numeric categorical variable such as City, apply One-Hot Encoding to convert each category into a binary column, and for the Type_year column, which combines home type and build year, apply Feature Splitting to separate it into two independent features.
For a continuous numeric variable such as the size of the building, apply Standardized Distribution (scaling to mean 0 and standard deviation 1) to prevent bias caused by scale differences with other features.
Logarithmic Transformation does not apply to any of the three features in this case, so it is not selected.
The exam point is whether you can select and distinguish the appropriate technique according to the nature of each feature.
Prepare ML data with Amazon SageMaker Data Wrangler – Amazon SageMaker AI
Q6AWS Certified Machine Learning Engineer Associate
Q6. An insurance company regularly receives new training data from an ML model vendor.
The vendor delivers cleaned and prepared data to the company’s Amazon S3 bucket every 3 to 4 days.
The company has an Amazon SageMaker pipeline that retrains the model.
The ML engineer needs to implement a solution that runs the pipeline when new data is uploaded to the S3 bucket.
Which solution will meet these requirements with the least operational overhead?
Show answer
Correct answer: C. Create an Amazon EventBridge rule with an event pattern that matches uploads to S3. Configure the pipeline as the target of that rule.
The correct answer is C.By setting an event pattern in Amazon EventBridge that matches uploads to S3 and invoking the SageMaker pipeline directly as the target of the rule, you can automatically start the pipeline in an event-driven manner without implementing additional polling processes or custom code.
Option A’s S3 Lifecycle rule is a feature intended for transitioning storage classes or deleting objects, and cannot be used as a trigger to start a pipeline.
Option B’s approach of scanning the bucket with a Lambda function requires implementing scheduled execution or polling, which increases operational overhead.
Option D’s Amazon MWAA requires building and maintaining an Airflow environment, which is excessive for these requirements.
Therefore, C, which has the least operational overhead, is correct.
Using EventBridge – Amazon S3
Q7AWS Certified Machine Learning Engineer Associate
Q7. A logistics company uses an Amazon EMR cluster for data ingestion processing for its ML models.
The ML engineer notices that the processing time is gradually increasing.
Which solution will reduce the processing time in the most cost-effective way?
Show answer
Correct answer: C. Use Spot Instances and increase the number of task nodes.
The correct answer is C.An Amazon EMR cluster is composed of primary nodes, core nodes, and task nodes, each with a different role.
The primary node manages the entire cluster, core nodes store data in HDFS while running tasks, and task nodes handle only computation without storing data.
Because task nodes do not store data, there is no risk of data loss even if a Spot Instance interruption occurs, so you can safely and inexpensively add task nodes to scale processing capacity.
Option A’s addition of primary nodes is not supported by the design of EMR.
Option B’s core nodes also store data, so there is a risk of data loss due to Spot Instance interruptions.
Option D’s approach of adding core nodes with On-Demand Instances is more expensive.
Therefore, C, which reduces processing time cost-effectively, is the best choice.
Understanding Amazon EMR node types (primary, core, and task) – Amazon EMR
Q8AWS Certified Machine Learning Engineer Associate
Q8. An ML engineer trained an ML model on Amazon SageMaker to detect car accidents from closed-circuit TV (CCTV) footage.
The ML engineer used SageMaker Data Wrangler to create a training dataset composed of accident and non-accident images.
The model performed well during the training and validation phases.
However, the model’s performance is degraded in production due to variations in image quality across cameras.
Which solution will improve the model’s accuracy in the shortest amount of time?
Show answer
Correct answer: B. Recreate the training dataset using the Data Wrangler Corrupt Image transform. Specify the Impulse Noise option.
The correct answer is B.The performance degradation in production is caused by variations in image quality across cameras.
By adding impulse noise with the Data Wrangler Corrupt Image transform to create training data that mimics the noise and variability that occur with real cameras, you can improve the model’s robustness in a short time without collecting additional data.
Option A’s collection of additional images is effective but takes time to collect and prepare, so it is not the fastest response.
Option C’s contrast enhancement transform is effective for contrast bias but cannot fully address overall image-quality variability such as noise.
Option D’s resize transform is intended to standardize image size and does not resolve image-quality variability.
Therefore, B, which is expected to improve accuracy in the shortest time, is correct.
Prepare ML data with Amazon SageMaker Data Wrangler – Amazon SageMaker AI
Q9AWS Certified Machine Learning Engineer Associate
Q9. An ML engineer is tuning an image classification model that performs poorly on one of two classes.
This poorly performing class accounts for only a small portion of the training dataset.
Which solution will improve the model’s performance?
Show answer
Correct answer: B. Optimize for the F1 score. Apply image augmentation to the minority-class images.
The correct answer is B.In an imbalanced dataset where the minority class is extremely underrepresented, accuracy becomes high simply by predicting the majority class, so it is not an appropriate evaluation metric.
The F1 score is a metric that balances precision and recall, making it suitable for evaluating minority-class performance in imbalanced data.
For image data, techniques that increase minority-class samples through image augmentation such as rotation, flipping, and cropping are effective.
The accuracy used in Options A and C is inappropriate as an evaluation metric for imbalanced data.
Options C and D’s SMOTE is a synthetic-sample-generation technique for tabular data and is not suited to image pixel data.
Therefore, B, which combines optimizing for the F1 score with image augmentation, is the best solution.
Metrics and validation – Amazon SageMaker AI
Q10AWS Certified Machine Learning Engineer Associate
Q10. An ML engineer is building a model that predicts the prices of houses and apartments.
The model uses three features: Square Meters, Price, and Age of Building.
The dataset has 10,000 rows.
The data includes one data point for a very large mansion and one data point for an extremely small apartment.
The ML engineer needs to preprocess the dataset so that the model makes accurate predictions for typical houses or apartments.
Which solution will meet these requirements?
Show answer
Correct answer: A. Remove the outliers, then perform a logarithmic transformation on the Square Meters variable.
The correct answer is A.In a regression model that predicts house prices, extreme outliers have a large impact on the loss function and reduce prediction accuracy for the majority of typical data.
The very large mansion and extremely small apartment included in this dataset are clear outliers in Square Meters.
By removing these outliers and then applying a logarithmic transformation to the Square Meters variable, you can suppress the distortion caused by the wide range of magnitudes and improve prediction accuracy for the majority of typical houses and apartments.
Option B’s normalization alone cannot fundamentally eliminate the impact of the outliers themselves.
Options C and D’s One-Hot Encoding is a technique for categorical variables and is not suited to a continuous numeric variable such as Square Meters.
Therefore, A, which combines outlier removal with a logarithmic transformation, is the most appropriate preprocessing.
Prepare ML data with Amazon SageMaker Data Wrangler – Amazon SageMaker AI
