AWS Machine Learning Specialty (MLS-C01) · 20% practice allocation

AWS MLS-C01: Data Engineering Practice Questions

5 free sample questions from the Data Engineering domain, with answers and explanations. The full MLS-C01 bank has 212 questions across 4 domains. Questions are scenario-based and written from the official AWS exam guide.

1.

An ML team is designing a data ingestion pipeline for real-time fraud detection. Transactions arrive at a rate of 50,000 records per second with occasional spikes to 200,000 records per second. The downstream fraud model must process each transaction within 500 milliseconds. Which combination of AWS services best satisfies these requirements? (Select TWO)

  • A. Amazon Kinesis Data Firehose with a 60-second buffer interval
  • B. Amazon MSK (Managed Streaming for Apache Kafka) with auto-scaling
  • C. Amazon SQS Standard Queue with long polling
  • D. AWS Lambda triggered directly from Kinesis Data Streams✓ Correct
  • E. Amazon Kinesis Data Streams with enhanced fan-out consumers✓ Correct
Explanation

Kinesis Data Streams with enhanced fan-out provides dedicated 2 MB/s per-shard throughput to each consumer with ~70ms propagation latency, enabling low-latency, high-throughput ingestion that can handle spikes via shard scaling. AWS Lambda triggered from Kinesis Data Streams processes records in near-real-time (sub-second), meeting the 500ms latency requirement without managing servers. Kinesis Data Firehose has a minimum buffer interval of 60 seconds, making it unsuitable for sub-500ms latency requirements. SQS Standard Queue does not guarantee ordering and its polling model introduces variable latency that may exceed 500ms at high throughput. Amazon MSK is a valid high-throughput streaming option but adds operational complexity; combined with Lambda it is less native than Kinesis+Lambda, and MSK alone does not address the downstream processing latency requirement.

2.

A data engineer needs to validate a training dataset stored in Amazon S3 before each training run. The validation must check for missing values, detect statistical drift from a baseline distribution, and enforce column-level constraints (e.g., age must be between 0 and 120). Which AWS tool is MOST purpose-built for this data quality validation use case within an ML pipeline?

  • A. AWS Glue Data Quality (powered by AWS Deequ) with defined rulesets✓ Correct
  • B. Amazon SageMaker Clarify bias detection
  • C. Amazon CloudWatch Metrics with custom metric filters on the S3 bucket
  • D. AWS Lambda with custom Python validation scripts triggered on S3 event notifications
Explanation

AWS Glue Data Quality, which is powered by the open-source AWS Deequ library, provides a declarative rules engine for defining and enforcing data quality constraints such as completeness checks (missing values), statistical profile comparisons (drift detection), and range/constraint validations (e.g., ColumnValues between 0 and 120). It integrates natively with the Glue Data Catalog and can be embedded in ETL pipelines. Amazon CloudWatch Metrics can monitor S3 storage metrics but has no ability to inspect record-level data content or statistical properties. SageMaker Clarify is designed for bias and fairness detection and explainability, not general-purpose data quality rule enforcement. AWS Lambda with custom scripts is feasible but is not purpose-built, requires significant custom development and maintenance, and lacks the built-in statistical profile comparison and rule management that Deequ provides.

3.

A company processes sensor data from IoT devices using Amazon Kinesis Data Streams. A downstream AWS Lambda function consumes records and writes features to Amazon DynamoDB. During peak load, the team observes that Lambda is throttled and records are being delayed. The shard count is already at the service limit for the account. Which THREE actions can help resolve the throttling and processing delay WITHOUT increasing the shard count? (Select THREE)

  • A. Use Kinesis Data Firehose to buffer and batch records before writing to DynamoDB
  • B. Enable Kinesis Data Streams server-side encryption to reduce processing overhead
  • C. Increase the Lambda batch window and batch size to process more records per invocation✓ Correct
  • D. Enable Enhanced Fan-Out on the Kinesis stream for the Lambda consumer
  • E. Switch from Kinesis Data Streams to Amazon SQS Standard Queue as the event source✓ Correct
  • F. Increase the Lambda function's reserved concurrency limit✓ Correct
Explanation

Increasing the batch window and batch size reduces the number of Lambda invocations by processing more records per call, reducing per-invocation overhead and helping Lambda keep up with the stream. Switching to SQS allows Lambda to scale more elastically, as SQS event sources support higher concurrency scaling and are not bound by Kinesis shard limits. Increasing Lambda's reserved concurrency allows more concurrent executions to process records in parallel, directly addressing throttling. Enhanced Fan-Out provides dedicated 2 MB/s throughput per consumer per shard and reduces read latency, but it does not resolve Lambda throttling caused by insufficient concurrency or processing rate — the bottleneck here is Lambda, not read throughput from Kinesis. Enabling server-side encryption adds negligible overhead to Lambda and does not affect throttling. Kinesis Data Firehose is a delivery service for destinations like S3, Redshift, or OpenSearch — it cannot write directly to DynamoDB and would not resolve this issue.

4.

A data engineering team is building an ML pipeline that ingests clickstream data from a high-traffic e-commerce website. The data arrives continuously at roughly 50,000 records per second and must be available for real-time fraud detection inference within seconds. Which AWS service is MOST appropriate for ingesting this streaming data?

  • A. AWS Database Migration Service (DMS)
  • B. AWS Glue streaming ETL
  • C. Amazon Kinesis Data Streams✓ Correct
  • D. Amazon SQS FIFO queues
Explanation

Amazon Kinesis Data Streams is purpose-built for real-time, high-throughput streaming ingestion and can handle hundreds of thousands of records per second with sub-second latency, making it ideal for real-time fraud detection. AWS Glue streaming ETL can process data from Kinesis but is a transformation layer on top of a streaming source, not an ingestion mechanism on its own. Amazon SQS FIFO queues provide reliable message queuing but impose a throughput limit of 3,000 messages per second per API action and are not designed for real-time analytics pipelines at this scale. AWS DMS is designed for database migration and change data capture, not for high-throughput clickstream ingestion.

5.

A healthcare ML team stores sensitive patient datasets in a central S3 data lake governed by AWS Lake Formation. A new regulatory requirement mandates that (1) all data access be logged with the requester identity and resource accessed, (2) specific rows containing records for patients under 18 must be invisible to data scientists but visible to compliance analysts, and (3) compliance analysts must not be able to export query results to personal S3 buckets. Which combination of Lake Formation and AWS features satisfies ALL three requirements? (Select THREE)

  • A. Enable Lake Formation transaction logging for all governed tables to capture row-level access patterns
  • B. Enable AWS CloudTrail data events on the S3 bucket and Lake Formation audit logging to satisfy the access logging requirement✓ Correct
  • C. Use S3 Object Lock in governance mode to prevent compliance analysts from copying data to personal buckets
  • D. Configure Lake Formation row-level security filters on the patient table, granting data scientists a filter that excludes rows where age < 18, while compliance analysts receive the unfiltered grant✓ Correct
  • E. Apply IAM permission boundaries on compliance analyst roles that deny s3:PutObject on any bucket not in the approved list✓ Correct
  • F. Use AWS Macie to automatically detect and block export of sensitive records to unauthorized S3 buckets in real time
Explanation

CloudTrail data events combined with Lake Formation audit logging provide a complete record of who accessed which resources, satisfying requirement 1. Lake Formation row-level security (data filters) can restrict which rows each principal sees at query time—data scientists get a filter excluding underage patients, compliance analysts get the full dataset—satisfying requirement 2. IAM permission boundaries on the compliance analyst IAM roles denying s3:PutObject except on approved buckets enforce the export restriction at the AWS API level, satisfying requirement 3. S3 Object Lock in governance mode prevents object deletion/overwrite by non-privileged users within the same bucket; it does not prevent principals from copying objects to different personal buckets. Amazon Macie detects sensitive data through classification and generates findings, but it does not enforce real-time blocking of S3 PUT operations—it is a detection, not a prevention control. Lake Formation transaction logging tracks table-level DML transactions in governed tables but does not provide the requester-identity audit trail equivalent to CloudTrail for all access types.

Test yourself across every MLS-C01 domain

The free MLS-C01 practice test mixes about 20 questions weighted like the exam. The full 212-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Data Engineering study guide (MLS-C01) →

Other MLS-C01 domains

← All AWS Machine Learning Specialty study resources