nerdexam
Amazon

SCS-C02 · 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…

The correct answer is C. Add an Amazon CloudWatch agent into the AMI used in the Auto Scaling group. Configure the. Option C is the best solution to ensure the durability and availability of log data from EC2 instances in an Auto Scaling group. By using an Amazon CloudWatch agent, the logs can be sent to Amazon CloudWatch Logs, which is a fully managed service that can store, monitor, and…

Submitted by andres_qro· Mar 6, 2026Security Logging and Monitoring

Question

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?

Options

  • AWithin the Auto Scaling lifecycle, add a hook to create and attach an Amazon Elastic Block Store
  • BCreate an Amazon Elastic File System (Amazon EFS) file system and add a command in the user
  • CAdd an Amazon CloudWatch agent into the AMI used in the Auto Scaling group. Configure the
  • DWithin the Auto Scaling lifecycle, add a lifecycle hook at the terminating state transition and alert

How the community answered

(53 responses)
  • A
    6% (3)
  • B
    2% (1)
  • C
    81% (43)
  • D
    11% (6)

Explanation

Option C is the best solution to ensure the durability and availability of log data from EC2 instances in an Auto Scaling group. By using an Amazon CloudWatch agent, the logs can be sent to Amazon CloudWatch Logs, which is a fully managed service that can store, monitor, and analyze log data. CloudWatch Logs also allows you to set retention policies for your log groups, so you can keep the logs for a minimum of 1 year for auditing purposes. CloudWatch Logs also supports encryption, access control, and compliance features to protect your log data.

Topics

#CloudWatch agent#Auto Scaling lifecycle#log durability#EC2 logs

Community Discussion

No community discussion yet for this question.

Full SCS-C02 Practice