AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 87

The security team depends on AWS CloudTrail to detect sensitive security issues in the company’s AWS account. The DevOps engineer needs a solution to auto-remediate CloudTrail being turned off in an AWS account.

What solution ensures the LEAST amount of downtime for the CloudTrail log deliveries?

Answer options

Correct answer: A

Explanation

Option A is the best choice as it directly responds to the StopLogging event with minimal downtime by immediately invoking StartLogging through an EventBridge rule. Options B and C involve periodic checks which could delay the response time, leading to longer downtime. Option D uses an EC2 instance, which introduces unnecessary complexity and overhead compared to the serverless approach in Option A.