You have been given a business requirement to retain log files for your application for 10 years. You need to regularly
retrieve the most recent logs for troubleshooting. Your logging system must be cost-effective, given the large volume of
logs. What technique should you use to meet these requirements?
A.
Store your log in Amazon CloudWatch Logs.
B.
Store your logs in Amazon Glacier.
C.
Store your logs in Amazon S3, and use lifecycle policies to archive to Amazon Glacier.
D.
Store your logs in HDFS on an Amazon EMR cluster.
E.
Store your logs on Amazon EBS, and use Amazon EBS snapshots to archive them.
Absolutely C
C
put the logs to S3 for durability and accessibility and then, to save cost, put the older logs to Glacier for long term storage, using life cycle policies.
A.
Seems simple, but tricky.
At first C may jump out as the obvious answer (10 years ==> Glacier).
But question doesnt mention after how long logs should be archived..Just that logs need to be retained for 10 years. CloudWatch Logs can be retained indefinitely, also let you troubleshoot real-time. Could it be A ?
http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/SettingLogRetention.html
Thoughts?
Cost effective?