Question 31:
You currently run your infrastructure on Amazon EC2 instances behind an Auto Scaling group. All logs for your application are currently written to ephemeral storage. Recently your company experienced a major bug in the code that made it through testing and was ultimately deployed to your fleet. This bug triggered your Auto Scaling group to scale up and back down before you could successfully retrieve the logs off your server to better assist you in troubleshooting the bug. Which technique should you use to make sure that you can review your logs?
Answer options:
A.Configure the ephemeral policies on your Auto Scaling group to back up on terminate. B.Configure your Auto Scaling policies to create a snapshot of all ephemeral storage on terminate. C.Install the CloudWatch Logs Agent on your AMI, and configure CloudWatch Logs Agent to stream your logs. D.Install the CloudWatch monitoring agent on your AMI, and set up a new SNS alert for CloudWatch metrics that triggers the CloudWatch monitoring agent to backup all logs on the ephemeral drive.