AWS Certified Advanced Networking – Specialty (ANS-C00) — Question 213
A user is running a batch process on EBS backed EC2 instances. The batch process launches few EC2 instances to process hadoop Map reduce jobs which can run between 50-600 minutes or sometimes for even more time. The user wants a configuration that can terminate the instance only when the process is completed. How can the user configure this with CloudWatch?
Answer options
- A. Configure a job which terminates all instances after 600 minutes
- B. It is not possible to terminate instances automatically
- C. Set up the CloudWatch with Auto Scaling to terminate all the instances
- D. Configure the CloudWatch action to terminate the instance when the CPU utilization falls below 5%
Correct answer: D
Explanation
The correct answer is D because it allows the user to monitor CPU utilization and terminate instances once the batch process is complete and the CPU usage indicates inactivity. Option A incorrectly suggests a fixed time which does not account for varying job durations. Option B is incorrect as it is indeed possible to automate instance termination. Option C misrepresents the functionality of Auto Scaling in this context, as it is not designed for terminating instances based on CPU metrics.