AWS Certified Solutions Architect – Professional — Question 87
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. Configure the CloudWatch action to terminate the instance when the CPU utilization falls below 5%
- D. Set up the CloudWatch with Auto Scaling to terminate all the instances
Correct answer: C
Explanation
Option C is correct because configuring a CloudWatch action to monitor CPU utilization allows the user to terminate the instance once the MapReduce job is finished and CPU usage falls below the specified threshold. Option A is not suitable as it doesn't account for varying job lengths, while option B incorrectly states that automatic termination is impossible. Option D suggests using Auto Scaling, which is unnecessary for this specific requirement.