Migrating Legacy Cron Jobs to AWS with Minimal Refactoring
Short answer
C Create a container image for the cron jobs. Use Amazon EventBridge Scheduler to create a recurring schedule. Run the cron job tasks on AWS Fargate.
Question
Key Takeaways
The exam tests the ability to match job duration constraints (over 15 minutes) with the correct compute service, avoiding Lambda's timeout trap.
This question addresses migrating legacy cron jobs to AWS using Amazon EventBridge Scheduler and AWS Fargate to handle execution times exceeding Lambda's limits. It establishes that serverless container orchestration is the optimal path for minimal refactoring.
Common mistake: Candidates often choose AWS Lambda due to its popularity for scheduled tasks, failing to notice the '20 minutes' duration requirement which exceeds Lambda's 15-minute limit.
Expert Analysis
Why the Answer Is Correct
The correct solution is C because it leverages Amazon EventBridge Scheduler to trigger tasks on AWS Fargate. This combination allows you to run containerized applications without managing servers, satisfying the 'minimal refactoring' requirement by simply packaging the existing logic into a container image.
Why the Other Options Are Wrong
Option A is incorrect because AWS Lambda has a maximum execution timeout of 15 minutes, whereas the requirements specify jobs running up to 20 minutes. Option B uses AWS Batch, which typically involves managing EC2 instances or more complex provisioning than necessary for simple cron-like scheduling. Option D introduces unnecessary complexity with Step Functions Wait states compared to the native scheduling capabilities of EventBridge.
Community Comment Notes
Community consensus strongly supports C, citing the Lambda timeout limit as the primary differentiator. As Linuslin noted, "Lambda has 15 mins limit, so A is out." Another commenter emphasized that Fargate allows paying only for what is used, freeing users from provisioning EC2 instances.
Official Reference
- https://docs.aws.amazon.com/lambda/latest/dg/limits.html
- https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html
- https://docs.aws.amazon.com/eventbridge-scheduler/latest/userguide/schedule-targets-ecs.html
These links open the official vendor documentation in a new tab.
Exam Strategy
Always check the execution time limits of serverless services like Lambda before selecting them for long-running tasks. For batch processing or jobs exceeding 15 minutes, consider Fargate or Batch as viable alternatives.
Frequently Asked Questions
Why not use AWS Lambda for cron jobs?
Is AWS Fargate considered minimal refactoring?
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 6 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 6
-
Kezuko 👍 18Give yourself a pat on the back when you reach this question, its been a long run
-
Linuslin 👍 4 Answered CLambda has 15 mins limit, so A is out. B works, but you have to run highly-available virtual machines or containers waiting for the event to happen. C is the best answer in this question, with AWS Fargate allows you to pay for only what you use and free you from provisioning, configuring, and scaling clusters of Amazon EC2 instances. https://aws.amazon.com/blogs/containers/migrate-cron-jobs-to-event-driven-architectures-using-amazon-elastic-container-service-and-amazon-eventbridge/
-
asdfcdsxdfc 👍 4 Answered Cits either A or C. C looks correct because lambda works for 15 mins and the question says between 1-20
-
seetpt 👍 2 Answered CC because lambda has 15min time limit.
-
FlyingHawk 👍 1 Answered CAs an example, one customer had hundreds of cron jobs configured on a single on-premise server. They chose to run these various cron jobs as separate scheduled tasks on Amazon Elastic Container Service (Amazon ECS) using AWS Fargate. They used Amazon EventBridge to schedule the tasks because it triggers an Amazon ECS task at scheduled times rather than having to run highly-available virtual machines or containers waiting for the event to happen. They chose Amazon ECS because of its simple container orchestration. And they chose AWS Fargate because it allows them to pay for only what they use and frees them from provisioning, configuring, and scaling clusters of Amazon EC2 instances.
Show 1 more comment
-
cvoiceip 👍 1Ans : C https://aws.amazon.com/blogs/containers/migrate-cron-jobs-to-event-driven-architectures-using-amazon-elastic-container-service-and-amazon-eventbridge/
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SAA-C03 Questions
Access 120 questions with complete answers and detailed explanations.
View Full SAA-C03 Practice Test →