Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
A company operates a Java job on an Amazon EC2 instance, scheduled hourly, lasting 10 seconds, and using 1 GB memory. CPU usage peaks during job execution but is otherwise minimal. What is the most cost-effective solution for running this job?
A
Containerize the job with AWS App2Container and execute it on AWS Fargate using Amazon ECS, allocating 0.5 vCPU and 1 GB memory.
B
Migrate the job to an AWS Lambda function with 1 GB memory, triggered by an Amazon EventBridge hourly schedule.
C
Containerize the job with AWS App2Container, deploy in the existing AMI, and automate container stoppage post-task completion.
D
Modify the schedule to stop the EC2 instance after job execution and start it again for the next job.