Question 1 · choose 3
After a rehost, a monolith on EC2 still runs a nightly cron job that builds reports, resizes every uploaded image inside the web request, and handles a five-step order fulfillment process in one long-running thread that loses progress on restarts. The company wants to modernize these three parts without managing servers. Which changes should it make? (Choose THREE.)
- ARun the report job as a Lambda function or ECS task started by an Amazon EventBridge Scheduler schedule
- BMove the monolith to a larger EC2 instance so that the cron job and image work finish faster
- CResize images in a Lambda function invoked by Amazon S3 event notifications when an upload lands in the bucket
- DKeep the fulfillment thread but restart the instance every night so that progress is never lost
- ERun the cron job on an EC2 instance in an Auto Scaling group with a minimum and maximum of one
- FModel the fulfillment process as an AWS Step Functions state machine with retries for each step
Show the answer and why
ARun the report job as a Lambda function or ECS task started by an Amazon EventBridge Scheduler schedule
Correct
EventBridge Scheduler starts targets such as Lambda functions and ECS tasks on a cron-style schedule, so no server has to run cron.
BMove the monolith to a larger EC2 instance so that the cron job and image work finish faster
Incorrect
A larger instance still keeps all three jobs inside the server that the company wants to stop managing.
CResize images in a Lambda function invoked by Amazon S3 event notifications when an upload lands in the bucket
Correct
S3 event notifications can invoke a Lambda function for each new object, which moves image processing out of the web request.
DKeep the fulfillment thread but restart the instance every night so that progress is never lost
Incorrect
Restarting does not save progress; it causes exactly the loss the company wants to avoid.
ERun the cron job on an EC2 instance in an Auto Scaling group with a minimum and maximum of one
Incorrect
An Auto Scaling group of one replaces a failed instance, but the company would still manage a server for a scheduled job.
FModel the fulfillment process as an AWS Step Functions state machine with retries for each step
Correct
Step Functions coordinates multi-step workflows, keeps the state of each execution and retries failed steps, so progress survives failures.
Schedules, events and workflows each have a serverless home: EventBridge Scheduler, S3 events to Lambda, and Step Functions.
AWS documentation