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_commands key to perform an API call to modify the scaling metric to CPUUtilization for the Auto Scaling configuration. Use leader_only to execute this command in only the first instance launched within the environment. Using ebextensions, place a command within the container_commands key to perform an API call to modify the scaling metric to CPUUtilization for the Auto Scaling configuration. Use leader_only to execute this command in only the first instance launched within the environment.
B) Using ebextensions, create a custom resource that modifies the AWSEBAutoScalingScaleUpPolicy and AWSEBAutoScalingScaleDownPolicy resources to use CPUUtilization as a metric to scale for the Auto Scaling group. Using ebextensions, create a custom resource that modifies the AWSEBAutoScalingScaleUpPolicy and AWSEBAutoScalingScaleDownPolicy resources to use as a metric to scale for the Auto Scaling group.
C) Using ebextensions, configure the option setting MeasureName to CPUUtilization within the aws: autoscaling : trigger namespace. Using ebextensions, configure the option setting MeasureName to within the aws: autoscaling : trigger namespace.
D) Using ebextensions, place a script within the files key and place it in /opt/elasticbeanstalk/hooks/appdeploy/pre to perform an API call to modify the scaling metric to CPUUtilization for the Auto Scaling configuration. Use leader_only to place this script in only the first instance launched within the environment. Using ebextensions, place a script within the files key and place it in /opt/elasticbeanstalk/hooks/appdeploy/pre to perform an API call to modify the scaling metric to to place this script in only the first instance launched within the environment.
Correct Answer:
Verified
Q72: A Development team creates a build project
Q73: A DevOps Engineer encountered the following error
Q74: A DevOps Engineer is building a multi-stage
Q75: A company is beginning to move to
Q76: A DevOps Engineer uses Docker container technology
Q78: A company is testing a web application
Q79: A DevOps Engineer manages an application that
Q80: A company is hosting a web application
Q81: A Security team requires all Amazon EBS
Q82: A DevOps Engineer is researching the least-expensive
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents