Multiple Choice
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 troubleshot 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
Correct Answer:
Verified
Q139: Your company currently runs a large multi-tier
Q140: A Development team wants to deploy an
Q141: A Developer is designing a continuous deployment
Q142: A company is using AWS CodeBuild, AWS
Q143: What is web identity federation?<br>A) Use of
Q145: A DevOps Engineer is researching the least-expensive
Q146: You need to create an audit log
Q147: A DevOps engineer is tasked with creating
Q148: A DevOps engineer is tasked with migrating
Q149: According to Information Security policy, changes to