Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
How can a company minimize costs for a Java job on an EC2 instance that executes hourly, runs for 10 seconds, and uses 1 GB memory with occasional high CPU spikes?
A
Containerize the job with AWS App2Container and deploy it on AWS Fargate using Amazon ECS, specifying 0.5 vCPU and 1 GB memory.
B
Migrate the job to an AWS Lambda function with 1 GB memory and trigger it hourly with an Amazon EventBridge rule.
C
Containerize the job using AWS App2Container, then integrate it into the existing AMI, automating 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 cycle.