Automate SageMaker Retraining with S3 Events and Lambda
A company uses Amazon SageMaker to train models. The data scientist wants to automate the retraining process whenever new data arrives in an S3 bucket. Which THREE services can be used together to achieve this? (Choose THREE.)
Quick Answer
This question tests whether you can map an event-driven automation pattern onto AWS's serverless building blocks rather than reaching for compute you'd have to manage yourself. Amazon S3 is the natural trigger point because it can emit object-creation events the moment new training data lands in the bucket, without any polling or scheduled job. AWS Lambda is the natural glue between that event and the training system: it runs briefly in response to the S3 notification, and its only job is to call the SageMaker API to kick off a new training job, without needing to run continuously or manage its own infrastructure. Amazon SageMaker is the service that actually owns the retraining work itself, spinning up managed training infrastructure and producing an updated model artifact. Together these three services form a clean trigger-orchestrate-execute chain with no persistent servers to patch or scale. EC2 is the wrong choice here because it would mean provisioning and managing your own compute for a task SageMaker already handles as a managed service, adding operational overhead with no benefit. AWS Glue is designed for data transformation and ETL, not for triggering or running model training, so it doesn't fit this workflow. When you see a scenario asking for an automated, event-driven pipeline reacting to new data in S3, expect the answer to combine an S3 event source with a lightweight orchestrator like Lambda and the managed service that performs the actual work.
⚠ Common exam trap
The trap here is that candidates often select AWS Glue (Option E) thinking it is needed for data transformation before retraining, but the question asks for services that directly enable the automation of retraining when new data arrives, and Glue is not required for the core trigger-and-train flow.
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
✓
Amazon S3
Amazon S3 is correct because it acts as the event source, emitting notifications (e.g., s3:ObjectCreated:*) when new data arrives. These events can be captured by AWS Lambda, which is correct because it can run a function that invokes Amazon SageMaker to start a retraining job. Amazon SageMaker is correct because it performs the actual model training. Together, S3 triggers the pipeline, Lambda orchestrates the invocation, and SageMaker executes the retraining. Options B (EC2) and E (Glue) are not directly required for this automated retraining workflow; EC2 is a compute service that would add unnecessary complexity, and Glue (data transformation) is not needed for the core trigger-and-train flow.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Amazon S3
Why this is correct
S3 events can trigger the pipeline.
- ✗
Amazon EC2
Why it's wrong here
EC2 is not required for this automation.
- ✓
AWS Lambda
Why this is correct
Lambda can react to S3 events and start training.
- ✓
Amazon SageMaker
Why this is correct
SageMaker runs the training job.
- ✗
AWS Glue
Why it's wrong here
Glue is for ETL, not needed.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
About these practice questions
Courseiva writes every MLS-C01 question from scratch — 1,672 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on MLS-C01
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company wants to use Amazon SageMaker to train a model using data that is updated daily. The training data is stored in an S3 bucket, and the team wants to automate the training process whenever new data arrives. Which AWS service should be used to trigger the SageMaker training job?
easy- ✓ A.AWS Lambda triggered by S3 event notifications
- B.Amazon CloudWatch Events
- C.Amazon Simple Queue Service (SQS)
- D.AWS Step Functions with a scheduled trigger
Why A: AWS Lambda can be triggered by S3 event notifications (e.g., object creation). The Lambda function can then start the SageMaker training job using the AWS SDK, automating the process when new data arrives. Option B (Amazon CloudWatch Events) is incorrect because CloudWatch Events can schedule events based on time or AWS API calls but cannot directly react to S3 object creation without additional services. Option C (Amazon SQS) is incorrect because SQS is a message queue service; it does not natively trigger from S3 events without an intermediary like Lambda, which would still be the trigger. Option D (AWS Step Functions with a scheduled trigger) is incorrect because a scheduled trigger is time-based, not event-driven; Step Functions would need an S3 event to start, and that event would typically come via Lambda.
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.