Courseiva
Data EngineeringeasyMultiple ChoiceObjective-mapped

MLS-C01 Data Engineering Practice Question

Network Topology
TempDir': 's3://my-temp-dir/''job-bookmark-option': 'job-bookmark-enable'Refer to the exhibit.```yaml# CloudFormation template snippetAWSTemplateFormatVersion: '2010-09-09'Resources:MyBucket:Type: AWS::S3::BucketProperties:BucketName: my-data-lake-bucketLifecycleConfiguration:Rules:- Id: ExpireOldDataStatus: EnabledExpirationInDays: 30MyGlueJob:Type: AWS::Glue::JobName: my-etl-jobRole: !GetAtt GlueServiceRole.ArnCommand:Name: glueetlScriptLocation: s3://my-scripts/etl.pyDefaultArguments:```

Refer to the exhibit. A data engineer has deployed this CloudFormation template. The Glue job 'my-etl-job' reads from the S3 bucket 'my-data-lake-bucket' and writes transformed data to another bucket. After 30 days, the data engineer notices that the Glue job fails with 'Input data not found' errors. What is the most likely cause?

⚠ Common exam trap

A common trap on the AWS Machine Learning Specialty exam is that candidates mistakenly attribute failures to job bookmarks or temporary directories instead of recognizing that the lifecycle rule is deleting the source data after the specified retention period.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The lifecycle configuration deletes objects from the bucket after 30 days, removing the input data.

The lifecycle configuration on the S3 bucket 'my-data-lake-bucket' is set to delete objects after 30 days. Since the Glue job 'my-etl-job' reads input data from this bucket, once the 30-day period elapses, the input data is removed, causing the 'Input data not found' error. This matches the symptom of the job failing after exactly 30 days.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The temporary directory 'my-temp-dir' is being cleaned up by the lifecycle configuration.

    Why it's wrong here

    The temp directory is not in the same bucket; it's in a different bucket.

  • The script location 's3://my-scripts/etl.py' is being deleted by the lifecycle rule.

    Why it's wrong here

    The script is in a different bucket, not affected by this lifecycle rule.

  • The job bookmark option 'job-bookmark-enable' is causing the job to skip newly arriving data.

    Why it's wrong here

    Job bookmarks track processed data but do not cause data loss.

  • The lifecycle configuration deletes objects from the bucket after 30 days, removing the input data.

    Why this is correct

    The ExpirationInDays: 30 rule deletes objects older than 30 days, which may include input data.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

One of 1,672 original MLS-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This MLS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MLS-C01 exam.