A streaming services company has a three-tier web application hosted on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB) . When the Auto Scaling group scales in, a deregistration delay occurs and the delay is sometimes longer than the time required to terminate the EC2 instance. A SysOps administrator must ensure that the latest logs are delivered to an external system before the EC2 instance is terminated. Which solution will solve this problem?
A) Add a lifecycle hook to the Auto Scaling group to put the EC2 instance in a wait state until the log files have been delivered.
B) Configure a fixed response for the ALB to use custom error messages to respond to incoming requests with HTTP error response codes.
C) Create an Amazon CloudWatch alarm based on the RequestCountPerTarget metric for the Auto Scaling group. Modify the cooldown period to wait until the EC2 instance is terminated.
D) Update the launch configuration to enable scale-in protection for the Auto Scaling group and detach the EC2 instance protected for termination.
Correct Answer:
Verified
Q940: A Chief Financial Officer has asked for
Q941: A SysOps administrator is implementing automated I/O
Q942: A SysOps Administrator created an AWS CloudFormation
Q943: A company uses many Amazon Elastic Block
Q944: A company uses multiple accounts for its
Q946: A SysOps administrator is testing a new
Q947: A company needs to deploy a web
Q948: An application is running on Amazon EC2
Q949: A SysOps administrator must monitor a fleet
Q950: A sysops administrator has an AWS Lambda
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