Home / AWS Certified Machine Learning - Specialty (MLS-C01) / Mock exam
AWS Certified Machine Learning - Specialty (MLS-C01) Exam-style mock test

AWS Certified Machine Learning Specialty (MLS-C01) Practice Exams|Practice test

Full explanations Exam format Pass line 65%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Data Engineering: Ingestion, Storage, and Transformation
A B2B SaaS analytics company stores millions of raw customer usage logs daily and wants a central data repository that SageMaker training jobs can read directly while keeping storage costs low for older, infrequently accessed partitions. Which storage design best meets these needs?
・Load all logs into an Amazon RDS for PostgreSQL instance and query them with SQL during training
Incorrect. RDS is an OLTP relational database, not a cost-efficient repository for millions of raw log files, and SageMaker reads training data from S3, not directly from RDS.
✓Store logs in an Amazon S3 data lake partitioned by date and apply S3 lifecycle rules to transition old data
Correct. An S3 data lake partitioned by date is the standard SageMaker training source, and lifecycle rules transition older partitions to cheaper storage classes to control cost.
・Keep the logs on an Amazon EBS volume attached to a single training instance and snapshot it nightly to reduce cost
Incorrect. A single EBS volume does not scale to a shared central repository and SageMaker training expects data in S3, so this design is both fragile and non-standard.
・Place the logs in an Amazon ElastiCache cluster so training jobs can retrieve records with low latency
Incorrect. ElastiCache is an in-memory cache for low-latency key lookups, which is expensive and unsuitable for storing large volumes of raw training logs.
Explanation
Amazon S3 is the canonical ML data repository for SageMaker; date partitioning supports efficient reads and lifecycle policies move cold data to lower-cost tiers.
Example2 · Exploratory Data Analysis: Cleaning, Feature Engineering, and Visualization
A B2B SaaS analytics team is preparing a churn dataset where the numeric column annual_contract_value has about 8% of values missing, and the missingness correlates with the customer_segment column. The team wants to retain all rows and avoid distorting the distribution within each segment. Which imputation approach best fits this situation?
・Replace every missing annual_contract_value with the single global mean computed across all customers in the dataset regardless of segment membership
Incorrect. A single global mean ignores the segment-level correlation and would pull segment distributions toward one another, distorting them.
✓Impute each missing annual_contract_value with the median of its own customer_segment group
Correct. Group-wise median imputation respects the segment correlation, preserves each segment's distribution, and resists outlier skew.
・Drop all rows where annual_contract_value is missing so the model trains only on complete records
Incorrect. Dropping 8% of rows discards data the team explicitly wants to retain and can bias the model when missingness is segment-related.
・Fill the missing values with zero because an absent contract value can reasonably be treated as no revenue
Incorrect. Filling with zero fabricates a false revenue value and injects artificial mass at zero into each segment's distribution.
Explanation
When missingness correlates with a categorical feature, imputing with the group-wise median keeps rows, preserves per-segment distributions, and is robust to outliers.
Example3 · Modeling: Algorithm Selection, Training, and Hyperparameter Tuning
A B2B SaaS company wants to predict which trial accounts will convert to paid subscriptions, producing a probability score the sales team can rank. The data is tabular with roughly 60 numeric and categorical features and clear nonlinear interactions. Which SageMaker built-in algorithm is the most appropriate first choice?
・Latent Dirichlet Allocation (LDA)
Incorrect. LDA is a topic-modeling algorithm for discovering themes in text collections, not for scoring tabular conversion probabilities.
✓XGBoost configured for binary classification
Correct. XGBoost handles mixed tabular features and nonlinear interactions well and outputs a probability suitable for ranking trial accounts by conversion likelihood.
・Semantic Segmentation using the built-in algorithm
Incorrect. Semantic Segmentation classifies pixels in images and is unrelated to a tabular propensity-to-convert problem.
・K-Means clustering to group the trial accounts
Incorrect. K-Means is unsupervised and groups accounts, but it cannot produce a labeled conversion probability score for ranking.
Explanation
A supervised tabular classification problem with labeled conversion outcomes and nonlinear interactions is a strong fit for XGBoost, which natively outputs a ranking-friendly probability.
Example4 · Model Evaluation, Metrics, and Avoiding Overfitting
A healthcare services firm builds a model to flag the roughly 2% of claims that are fraudulent. The data science team reports 98% accuracy, but auditors find almost no fraud is actually being caught. Which single metric should the team monitor instead to properly reflect performance on the rare fraud class?
・Overall classification accuracy computed across the full claims dataset
Incorrect. Accuracy is misleading on a 98/2 split because predicting the majority class yields 98% while catching no fraud at all.
✓Area under the precision-recall curve (AUPRC) for the fraud class
Correct. AUPRC focuses on the positive (fraud) class and is the recommended summary metric when the positive class is rare and false negatives matter.
・Root mean squared error between predicted and true labels
Incorrect. RMSE is a regression error metric and is not appropriate for evaluating a binary fraud classifier.
・The mean absolute error of the model's probability outputs over all claims
Incorrect. Mean absolute error of probabilities does not isolate performance on the rare fraud class and is not the standard imbalance metric.
Explanation
With severe class imbalance, accuracy hides poor minority-class detection; AUPRC emphasizes precision and recall on the rare positive class.
Example5 · ML Implementation and Operations: SageMaker, Deployment, and Security
A healthcare services firm has trained a model that scores patient triage urgency. Clinicians need a prediction returned within about 100 milliseconds the moment a single patient record is submitted during an intake session. Which SageMaker deployment option meets this requirement?
・Create a SageMaker batch transform job that runs on a schedule and writes the scored patient records to an Amazon S3 output location for later retrieval
Incorrect. Batch transform processes datasets offline and is not designed to return a prediction synchronously within milliseconds of a single intake submission.
✓Deploy the model to a SageMaker real-time endpoint that returns a synchronous prediction for each request
Correct. A real-time endpoint hosts the model behind a persistent HTTPS endpoint and returns a synchronous low-latency prediction per request, matching the sub-second intake need.
・Use a SageMaker asynchronous inference endpoint that queues each incoming request and delivers the result once processing completes
Incorrect. Asynchronous inference queues requests for large payloads or long processing, adding delay that violates the ~100 ms clinician requirement.
・Register the model in the SageMaker model registry and attach it to a SageMaker Pipelines workflow triggered nightly
Incorrect. Registering a model and running a nightly pipeline produces offline results, not immediate synchronous responses during an intake session.
Explanation
Real-time endpoints provide synchronous, low-latency, per-request inference, which is required when a clinician needs an immediate score for a single patient record.
Example6 · Data Engineering: Ingestion, Storage, and Transformation
A healthcare services firm streams continuous vital-sign telemetry from thousands of bedside monitors. The ML team needs to ingest this high-throughput data and land it in Amazon S3 in near real time with minimal operational overhead, so it can later train readmission-risk models. Which ingestion approach best fits this requirement?
・Configure each bedside monitor to write records directly into an Amazon RDS for PostgreSQL instance, then run a scheduled script to export the rows into S3 for the training pipeline
Incorrect. Writing high-throughput streaming telemetry into a relational database and exporting on a schedule is not near real time and adds significant operational burden.
✓Use Amazon Kinesis Data Firehose to buffer the telemetry and deliver it to S3
Correct. Kinesis Data Firehose is a fully managed service that ingests streaming data, buffers it, and delivers it to S3 in near real time with minimal operational overhead.
・Have the monitors publish to an Amazon SQS standard queue, and build an always-on EC2 fleet that polls the queue and uploads batched files to S3 on a fixed timer
Incorrect. SQS plus a self-managed EC2 polling fleet introduces operational overhead and is not purpose-built for continuous streaming delivery to S3.
・Stand up an Apache Kafka cluster on EC2 to receive the telemetry, and write a custom consumer application that periodically flushes accumulated events to S3
Incorrect. Running a self-managed Kafka cluster and custom consumer works but adds substantial operational overhead compared with a managed firehose delivery stream.
Explanation
Kinesis Data Firehose is the managed, low-overhead path for landing streaming data into S3 in near real time, which fits the telemetry ingestion need.
Example7 · Data Engineering: Ingestion, Storage, and Transformation
UrbanThread, a fashion retailer, collects millions of raw clickstream and product-image files daily and wants a central ML data lake. The data science team needs durable, cheap storage that integrates natively with SageMaker, Athena, and Glue while keeping raw objects in open formats. Which storage service should form the foundation of the data lake?
・Amazon RDS for PostgreSQL, loading all clickstream and image data into relational tables for the team
Incorrect. A relational database is poorly suited for large volumes of raw image files and is far more expensive than object storage for a data lake.
✓Amazon S3 as the central object store for raw files, queried and processed by Athena and Glue
Correct. Amazon S3 is the standard durable, low-cost object store that natively integrates with Athena, Glue, and SageMaker for ML data lakes.
・Amazon EBS volumes attached to a fleet of EC2 instances that the data science team manages themselves
Incorrect. EBS volumes are block storage tied to individual instances and do not provide the shared, serverless data-lake access pattern needed.
・Amazon DynamoDB tables partitioned by session ID to hold clickstream records and image blobs
Incorrect. DynamoDB is a key-value store for low-latency lookups, not a repository for large image blobs or bulk analytical processing.
Explanation
Amazon S3 is the recommended foundation for an ML data lake because it offers durable, inexpensive object storage in open formats with native integration to analytics and ML services.
Example8 · Data Engineering: Ingestion, Storage, and Transformation
UrbanThread wants to ingest continuous clickstream events from its mobile app and deliver them, buffered and compressed, directly into an S3 data lake with minimal operational overhead and no custom consumer code. Which service best meets this ingestion requirement?
✓Amazon Kinesis Data Firehose configured to buffer, compress, and deliver streaming events to S3
Correct. Kinesis Data Firehose is the fully managed service that buffers, compresses, and delivers streaming data to S3 with no consumer code.
・Amazon SQS standard queues polled by a custom EC2 consumer fleet that writes batches to S3
Incorrect. SQS plus a custom EC2 consumer adds significant operational overhead and is not a purpose-built streaming delivery pipeline.
・Amazon Kinesis Data Streams with a self-managed KCL application running on an EC2 Auto Scaling group
Incorrect. A self-managed KCL application on EC2 requires building and operating custom consumer code, which the requirement explicitly avoids.
・AWS DataSync scheduled transfers moving the clickstream event files from the app servers to S3
Incorrect. DataSync moves files on a schedule between storage systems and is not designed for continuous event streaming.
Explanation
Kinesis Data Firehose provides serverless streaming ingestion with built-in buffering and compression to S3, requiring no custom consumer code.
Example9 · Data Engineering: Ingestion, Storage, and Transformation
UrbanThread's data engineers must run a serverless Spark job that joins raw order JSON with a product catalog and writes partitioned Parquet back to S3, while cataloging the resulting schema for Athena. Which service is purpose-built for this serverless ETL workload?
・Amazon EMR with a long-running Spark cluster that the engineers size, patch, and keep available
Incorrect. EMR requires provisioning and managing a cluster, which is not serverless and adds operational burden for this job.
✓AWS Glue ETL jobs with the Glue Data Catalog registering the output schema for Athena
Correct. AWS Glue provides serverless Spark ETL and the Glue Data Catalog to register output schemas for Athena querying.
・AWS Lambda functions chained together to read, join, and repartition the entire order dataset
Incorrect. Lambda has execution-time and memory limits that make it unsuitable for large distributed join-and-repartition jobs.
・Amazon Athena federated queries writing the joined result directly as Parquet partitions
Incorrect. Athena is a query service and is not designed to run arbitrary ETL transformations and catalog partitioned output as a job.
Explanation
AWS Glue is the serverless ETL service with managed Spark and an integrated Data Catalog, ideal for transforming and cataloging data for Athena.
Example10 · Data Engineering: Ingestion, Storage, and Transformation
A financial services company is building a centralized data lake to hold years of transaction history, credit application records, and risk model features for its ML teams. The data arrives in many formats and must be queryable by multiple analytics and training jobs without copying it to another store. Which AWS service is the most appropriate foundation for this data lake?
✓Amazon S3
Correct. Amazon S3 provides durable, scalable, low-cost object storage that supports mixed formats and decoupled access, making it the standard foundation for an ML data lake.
・Amazon RDS for PostgreSQL configured with provisioned IOPS and a large allocated storage volume
Incorrect. Amazon RDS is a relational OLTP database that scales poorly for petabyte-scale mixed-format data lake storage shared across many training jobs.
・Amazon ElastiCache
Incorrect. Amazon ElastiCache is an in-memory cache for low-latency lookups, not durable bulk storage for a data lake.
・Amazon EBS
Incorrect. Amazon EBS is block storage attached to a single EC2 instance and cannot serve as a shared, independently queryable data lake.
Explanation
Amazon S3 is the canonical data lake foundation because it decouples storage from compute and handles diverse formats durably at low cost.
Example11 · Data Engineering: Ingestion, Storage, and Transformation
A financial services company must ingest a continuous stream of card-swipe events for a near-real-time fraud model, with multiple consumers reading the same events independently and the ability to replay the last 24 hours. Which ingestion service best fits these requirements?
✓Amazon Kinesis Data Streams
Correct. Kinesis Data Streams supports multiple independent consumers over the same shard data and configurable retention for replay, fitting streaming fraud ingestion.
・AWS Database Migration Service running a one-time full-load task from the transaction database into the fraud feature store
Incorrect. AWS DMS performs database replication and migration, not continuous multi-consumer event streaming with replay semantics.
・Amazon SQS standard queue
Incorrect. An SQS standard queue deletes a message once consumed and does not allow multiple independent consumers to replay the same records.
・AWS Snowball
Incorrect. AWS Snowball is for offline bulk data transfer, not continuous streaming ingestion.
Explanation
Kinesis Data Streams is designed for streaming with multiple consumers and a retention window that enables replay, which the fraud use case requires.
Example12 · Data Engineering: Ingestion, Storage, and Transformation
A manufacturing distributor stores millions of small sensor-reading JSON files from its warehouse conveyor system in Amazon S3 as a data lake for ML training. Data scientists complain that SageMaker training jobs spend most of their time listing and opening objects rather than training. Which storage change most directly improves training read throughput?
✓Compact the many small JSON files into fewer large columnar Parquet files partitioned by date before training
Correct. Combining many tiny files into fewer large columnar Parquet objects, partitioned sensibly, drastically cuts per-object listing and open overhead and speeds columnar reads during training.
・Move the sensor files to the S3 Glacier Flexible Retrieval storage class to lower the monthly storage bill
Incorrect. Glacier Flexible Retrieval is for archival and adds retrieval latency, which would make training reads slower, not faster.
・Enable S3 Versioning on the bucket so that each training job can reproduce an exact prior snapshot of the inputs
Incorrect. Versioning aids reproducibility and recovery but does nothing to reduce the small-file read overhead that is slowing training.
・Replicate the bucket to a second AWS Region using S3 Cross-Region Replication for higher durability
Incorrect. Cross-Region Replication improves durability and locality for other Regions but does not address the small-file I/O bottleneck.
Explanation
The small-file problem is solved by compaction into large columnar files, which reduces request overhead and accelerates reads.
Example13 · Data Engineering: Ingestion, Storage, and Transformation
A manufacturing distributor must ingest a continuous high-volume stream of order events from its e-commerce platform and deliver them, with no custom consumer code to manage, directly into Amazon S3 in Parquet format for later ML feature engineering. Which AWS service best fits this requirement?
✓Amazon Data Firehose with a configured S3 destination and record format conversion to Parquet
Correct. Amazon Data Firehose is a fully managed delivery stream that buffers records and can convert them to Parquet before writing to S3, with no consumer code to operate.
・Amazon Kinesis Data Streams with a fleet of custom consumer applications that batch and write to S3
Incorrect. Kinesis Data Streams requires you to build and scale your own consumers to batch and write data, which is the custom-code effort the scenario wants to avoid.
・Amazon SQS standard queues polled by a scheduled AWS Lambda function that writes objects to S3
Incorrect. SQS plus Lambda can work but is a queue-based pattern, not a managed streaming-to-S3 delivery service, and you would handle Parquet conversion yourself.
・AWS DataSync tasks scheduled to copy files from the on-premises order system into S3
Incorrect. DataSync is for scheduled bulk file transfer, not continuous event-stream ingestion.
Explanation
Firehose provides managed streaming delivery with built-in Parquet conversion and no consumer code to maintain.
Example14 · Data Engineering: Ingestion, Storage, and Transformation
A telecom operator stores years of call detail records (CDRs) in Amazon S3 as the central data lake for churn-prediction model training. The ML team queries only the most recent 90 days frequently, while older partitions are read a few times per quarter during retraining. The team wants to cut storage cost without losing millisecond retrieval for occasional old-partition reads. Which S3 configuration best meets the requirement?
✓Apply a lifecycle rule that transitions objects older than 90 days to S3 Standard-IA and keeps recent objects in S3 Standard
Correct. S3 Standard-IA gives the same millisecond access as Standard at lower storage cost, ideal for data read infrequently but needed instantly.
・Keep every object in S3 Standard and enable S3 Versioning to reduce the effective cost of duplicated CDR partitions over time
Incorrect. Versioning retains old object versions and increases cost rather than reducing it, and it does not change the storage class.
・Transition all CDR partitions to S3 Glacier Deep Archive immediately and restore the needed partitions whenever a retraining job starts
Incorrect. Glacier Deep Archive requires multi-hour restores, so it cannot provide the millisecond retrieval the team needs for old partitions.
・Move objects older than 90 days to S3 One Zone-IA and accept that any single Availability Zone loss would permanently delete those older training partitions
Incorrect. One Zone-IA lowers cost but stores data in a single AZ, risking permanent loss of training data on an AZ failure, which is unacceptable here.
Explanation
S3 Standard-IA preserves instant access while reducing cost for data accessed infrequently, which matches the quarterly old-partition reads.
Example15 · Data Engineering: Ingestion, Storage, and Transformation
A telecom operator must ingest a continuous stream of network-tower telemetry events to feed a real-time anomaly-detection model. The team wants the simplest managed path to deliver the raw stream into an S3 data lake in Parquet, with automatic buffering and no servers to manage. Which AWS service should they choose for the delivery layer?
・Amazon Kinesis Data Streams consumed by a fleet of EC2 instances that batch records and write Parquet files to S3 on a schedule
Incorrect. Kinesis Data Streams with self-managed EC2 consumers requires you to run and scale servers, which is not the simplest serverless path.
✓Amazon Kinesis Data Firehose configured with a buffer and format conversion to write Parquet objects directly to S3
Correct. Kinesis Data Firehose is fully managed, buffers automatically, converts records to Parquet, and delivers directly to S3 with no servers.
・Amazon SQS standard queues polled by a Lambda function that aggregates messages and uploads them to the S3 data lake
Incorrect. SQS plus custom Lambda aggregation adds development effort and is not purpose-built for high-volume streaming delivery to S3.
・AWS Database Migration Service running a full-load-plus-CDC task from the telemetry database into the S3 target endpoint
Incorrect. DMS replicates databases, not continuous telemetry event streams, so it does not fit a streaming ingestion requirement.
Explanation
Kinesis Data Firehose is the managed streaming-delivery service that buffers, converts to Parquet, and writes to S3 without server management.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)