AWS Certified DevOps Engineer – Professional — Question 105
A DevOps engineer is researching the least expensive way to implement an image batch processing cluster on AWS. The application cannot run in Docker containers and must run on Amazon EC2. The batch job stores checkpoint data on an NFS and can tolerate interruptions. Configuring the cluster software from a generic EC2 Linux image takes 30 minutes.
What is the MOST cost-effective solution?
Answer options
- A. Use Amazon EFS for checkpoint data. To complete the job, use an EC2 Auto Scaling group and an On-Demand pricing model to provision EC2 instances temporarily.
- B. Use GlusterFS on EC2 instances for checkpoint data. To run the batch job, configure EC2 instances manually. When the job completes, shut down the instances manually.
- C. Use Amazon EFS for checkpoint data. Use EC2 Fleet to launch EC2 Spot Instances, and utilize user data to configure the EC2 Linux instance on startup.
- D. Use Amazon EFS for checkpoint data. Use EC2 Fleet to launch EC2 Spot Instances. Create a custom AMI for the cluster and use the latest AMI when creating instances.
Correct answer: D
Explanation
Option D is the most cost-effective solution because it leverages EC2 Spot Instances, which are generally cheaper than On-Demand instances, and a custom AMI can significantly reduce the setup time for the cluster. Option A is less cost-effective due to the use of On-Demand pricing. Option B involves manual configuration and shutdown, which is time-consuming and may incur additional costs. Option C also uses Spot Instances but does not optimize instance configuration with a custom AMI.