AWS Certified Solutions Architect – Associate (SAA-C03) — Question 369

A company recently deployed a new auditing system to centralize information about operating system versions, patching, and installed software for Amazon EC2 instances. A solutions architect must ensure all instances provisioned through EC2 Auto Scaling groups successfully send reports to the auditing system as soon as they are launched and terminated.

Which solution achieves these goals MOST efficiently?

Answer options

Correct answer: B

Explanation

EC2 Auto Scaling lifecycle hooks are the most efficient solution because they allow you to pause instance state transitions (such as launching or terminating) to perform custom actions, ensuring data is sent before the instance is destroyed. User data (Option C) can only run during instance launch and cannot handle termination events. Scheduled Lambda functions (Option A) and OS-level configurations (Option D) add unnecessary complexity and cannot reliably guarantee termination reporting.