AWS DevOps Engineer Professional DOP-C01 – Question102

A company has a website in an AWS Elastic Beanstalk load balancing and automatic scaling environment. This environment has an Amazon RDS MySQL instance configured as its database resource. After a sudden increase in traffic, the website started dropping traffic. An administrator discovered that the application on some instances is not responding as the result of out-of-memory errors. Classic Load Balancer marked those instances as out of service, and the health status of Elastic Beanstalk enhanced health reporting is degraded. However, Elastic Beanstalk did not replace those instances. Because of the diminished capacity behind the Classic Load Balancer, the application response times are slower for the customers. Which action will permanently fix this issue?

A.
Clone the Elastic Beanstalk environment. When the new environment is up, swap CNAME and terminate the earlier environment.
B. Temporarily change the maximum number of instances in the Auto Scaling group to allow the group to support more traffic.
C. Change the setting for the Auto Scaling group health check from Amazon EC2 to Elastic Load Balancing, and increase the capacity of the group.
D. Write a cron script for restarting the web server process when memory is full, and deploy it with AWS Systems Manager.

Correct Answer: C