
Answer-first summary for fast verification
Answer: Utilizing EC2 Auto Scaling lifecycle hooks to trigger custom scripts for audit reporting during instance events.
The correct answer is B. EC2 Auto Scaling lifecycle hooks allow you to execute custom actions when instances are launched or terminated. This provides a reliable mechanism to ensure that the audit system receives reports as soon as instances are launched and terminated, which is critical for compliance and monitoring purposes. Using lifecycle hooks, you can run scripts or invoke other AWS services to automate the reporting process efficiently. Other options like using AWS Lambda (A), running scripts through user data (C), or configuring scripts on the operating system (D) do not provide the same level of integration with the EC2 Auto Scaling lifecycle events, making them less efficient for this specific requirement.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can a solutions architect ensure EC2 instances in Auto Scaling groups report to an auditing system immediately upon launch and termination?
A
Scheduling AWS Lambda to execute scripts on EC2 instances for audit data submission.
B
Utilizing EC2 Auto Scaling lifecycle hooks to trigger custom scripts for audit reporting during instance events.
C
Configuring EC2 Auto Scaling to execute custom scripts via user data for audit system communication at instance launch and termination.
D
Deploying a custom script on EC2 instances to report to the audit system, activated by the Auto Scaling group during instance lifecycle events.
No comments yet.