A web application for healthcare services runs on Amazon EC2 instances behind an ELB Application Load Balancer. The instances run in an Amazon EC2 Auto Scaling group across multiple Availability Zones. A DevOps Engineer must create a mechanism in which an EC2 instance can be taken out of production so its system logs can be analyzed for issues to quickly troubleshoot problems on the web tier. How can the Engineer accomplish this task while ensuring availability and minimizing downtime?
A) Implement EC2 Auto Scaling groups cooldown periods. Use EC2 instance metadata to determine the instance state, and an AWS Lambda function to snapshot Amazon EBS volumes to preserve system logs.
B) Implement Amazon CloudWatch Events rules. Create an AWS Lambda function that can react to an instance termination to deploy the CloudWatch Logs agent to upload the system and access logs to Amazon S3 for analysis.
C) Terminate the EC2 instances manually. The Auto Scaling service will upload all log information to CloudWatch Logs for analysis prior to instance termination.
D) Implement EC2 Auto Scaling groups with lifecycle hooks. Create an AWS Lambda function that can modify an EC2 instance lifecycle hook into a standby state, extract logs from the instance through a remote script execution, and place them in an Amazon S3 bucket for analysis.
Correct Answer:
Verified
Q199: A media customer has several thousand amazon
Q200: A company wants to use a grid
Q201: A defect was discovered in production and
Q202: A DevOps Engineer is researching the least-expensive
Q203: A DevOps Engineer must track the health
Q205: An e-commerce company is running a web
Q206: A company has developed an AWS Lambda
Q207: A company has a web application that
Q208: A retail company is currently hosting a
Q209: For auditing, analytics, and troubleshooting purposes, a
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