You work for an insurance company and are responsible for the day-to-day operations of your company’s online quote
system used to provide insurance quotes to members of the public. Your company wants to use the application logs
generated by the system to better understand customer behavior. Industry, regulations also require that you retain all
application logs for the system indefinitely in order to investigate fraudulent claims in the future. You have been tasked
with designing a log management system with the following requirements:
– All log entries must be retained by the system, even during unplanned instance failure.
– The customer insight team requires immediate access to the logs from the past seven
days.
– The fraud investigation team requires access to all historic logs, but will wait up to
24 hours before these logs are available.
How would you meet these requirements in a cost-effective manner? (Choose three.)
A.
Configure your application to write logs to the instance’s ephemeral disk, because this storage is free and has good write performance.
Create a script that moves the logs from the instance to Amazon S3 once an hour.
B.
Write a script that is configured to be executed when the instance is stopped or terminated and that will upload any remaining logs on
the instance to Amazon S3.
C.
Create an Amazon S3 lifecycle configuration to move log files from Amazon S3 to Amazon Glacier after seven days.
D.
Configure your application to write logs to the instance’s default Amazon EBS boot volume, because this storage already exists.
Create a script that moves the logs from the instance to Amazon S3 once an hour.
E.
Configure your application to write logs to a separate Amazon EBS volume with the “delete on termination” field set to false.
Create a script that moves the logs from the instance to Amazon S3 once an hour.
F.
Create a housekeeping script that runs on a T2 micro instance managed by an Auto Scaling group for high availability.
The script uses the AWS API to identify any unattached Amazon EBS volumes containing log files.
Your housekeeping script will mount the Amazon EBS volume, upload all logs to Amazon S3, and then delete the volume.
Yep CEF. I thought BCD at first but that doesn’t satisfy retaining logs “even during unplanned instance failure”.
CEF
I think BCE
CEF are the right options to fulfill the requirement.
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html
https://aws.amazon.com/blogs/aws/archive-s3-to-glacier/
What is a “separate Amazon EBS volume”. Best of my understanding there is no such thing. EBS volumes are created and “attached” else “snapshots” and saved. E and F don’t make sense.
C and B are OK.
Not sure abut D – don’t know if you can write to EBS boot volume?
“separate EBS volume,” that means another EBS volume attached to an instance, or another EBS volume. EBS volumes work like disk drives. How many EBS volumes can be attached to an running instance depend on the instance’s operating system. Choice E should be a valid answer.
A,C,F
E could have been right if the question said “separate ‘EC2 instance’ with the ‘delete on termination’ field set to false. ”
Instead, it says “separate EBS volume”
Thoughts?