Which technique should you use to make sure you are abl…

You currently run your infrastructure on Amazon EC2 instances behind an Auto Scaling group> All logs for you application
are currently written to ephemeral storage. Recently your company experienced a major bug in 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 you are able to review your logs after your instances have shut down?

You currently run your infrastructure on Amazon EC2 instances behind an Auto Scaling group> All logs for you application
are currently written to ephemeral storage. Recently your company experienced a major bug in 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 you are able to review your logs after your instances have shut down?

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 new SNS alert for CloudWatch metrics that triggers the CloudWatch
monitoring agent to backup all logs on the ephemeral drive.

E.
Install the CloudWatch monitoring agent on your AMI, Update your Auto Scaling policy to enable automated CloudWatch Log copy.



Leave a Reply 8

Your email address will not be published. Required fields are marked *


Raj

Raj

I think B. Can anyone explain the answer.

VK

VK

There is no option that you can take snapshot of ephemeral storage on terminate. However, you can set a clod watch to store your App logs. So for me the correct answer is C
=====================================================================
Monitor and Store Logs
CloudWatch Logs lets you monitor and troubleshoot your systems and applications using your existing system, application, and custom log files.

With CloudWatch Logs, you can monitor your logs, in near real-time, for specific phrases, values or patterns (metrics). For example, you could set an alarm on the number of errors that occur in your system logs or view graphs of web request latencies from your application logs. You can view the original log data to see the source of the problem if needed. Log data can be stored and accessed for as long as you need using highly durable, low-cost storage so you don’t have to worry about filling up hard drives.

TuanBA

TuanBA

Yes C. You cannot create snapshot of ephemeral storage in this case. Stream your log with something like kinesis is the best solution

raysmithvic1978

raysmithvic1978

C

Sadeel Anjum

Sadeel Anjum

C.

Ephemeral devices on EC2 don’t support Screenshot or Backups , so streaming the data to a reliable storage is the best option.