Ultimate access to all questions.
In a scenario with Amazon EC2 instances across multiple AWS accounts, how can a developer implement an application to collect and store all EC2 instance lifecycle events into a single Amazon SQS queue in the main AWS account?
Explanation:
The correct answer is D. Configuring the permissions on the main account event bus to receive events from all accounts and creating EventBridge rules in each account to forward EC2 instance lifecycle events to the main account's event bus is an efficient and centralized solution. This setup enables the central event bus to manage and route all incoming lifecycle events to the SQS queue in the main account for further processing. This method leverages EventBridge's cross-account event routing capabilities, ensuring a streamlined and secure way to handle events across multiple AWS accounts.