AWS Certified Security – Specialty — Question 200

A company is running an application on Amazon EC2 instances in an Auto Scaling group. The application stores logs locally. A security engineer noticed that logs were lost after a scale-in event. The security engineer needs to recommend a solution to ensure the durability and availability of log data. All logs must be kept for a minimum of 1 year for auditing purposes.
What should the security engineer recommend?

Answer options

Correct answer: C

Explanation

The correct answer is C, as using the Amazon CloudWatch agent allows for centralized logging and ensures that logs are sent to Amazon CloudWatch Logs, which retains data durability and availability. Options A and B involve additional complexity and do not guarantee logs are retained for long-term auditing. Option D does not solve the problem of lost logs, as it only delays termination without preserving log data.