AWS DevOps Engineer Professional DOP-C01 – Question104

A company hosts parts of a Python-based application using AWS Elastic Beanstalk. An Elastic Beanstalk CLI is being used to create and update the environments. The Operations team detected an increase in requests in one of the Elastic Beanstalk environments that caused downtime overnight. The team noted that the policy used for AWS Auto Scaling is NetworkOut. Based on load testing metrics, the team determined that the application needs to scale CPU utilization to improve the resilience of the environments. The team wants to implement this across all environments automatically. Following AWS recommendations, how should this automation be implemented?

A.
Using ebextensions, place a command within the container_commandskey to perform an API call to modify the scaling metric to CPUUtilizationfor the Auto Scaling configuration. Use leader_onlyto execute this command in only the first instance launched within the environment.
B. Using ebextensions, create a custom resource that modifies the AWSEBAutoScalingScaleUpPolicyand AWSEBAutoScalingScaleDownPolicyresources to use CPUUtilizationas a metric to scale for the Auto Scaling group.
C. Using ebextensions, configure the option setting MeasureNameto CPUUtilizationwithin the aws:autoscaling:trigger namespace.
D. Using ebextensions, place a script within the files key and place it in /opt/elasticbeanstalk/hooks/appdeploy/preto perform an API call to modify the scaling metric to CPUUtilizationfor the Auto Scaling configuration. Use leader_onlyto place this script in only the first instance launched within the environment.

Correct Answer: C