Q: 15
A company is running Amazon EC2 instances in multiple AWS accounts. A developer needs to
implement an application that collects all the lifecycle events of the EC2 instances. The application
needs to store the lifecycle events in a single Amazon Simple Queue Service (Amazon SQS) queue in
the company's main AWS account for further processing.
Which solution will meet these requirements?
Options
Discussion
Seriously, AWS makes this more complicated than it should be. Probably D.
D imo, B is tempting but event bus aggregation is standard for cross-account collection. Open to being wrong though.
Its D because that's the standard for cross-account event collection. You set permissions on the main account's EventBridge, then rules in each account forward EC2 lifecycle events there, and from there to SQS. Pretty sure AWS docs back this up, unless I missed some new feature.
C or B. Aliases let you control weights but I thought you could also do weighted routing in API Gateway stages, so B might work depending on setup. Not 100% though, anyone see API Gateway use that way?
Option A and C make sense here. You need to publish a new version first (A), then set up weighted routing using an alias (C) to send 10% of traffic to the updated code. Pretty sure that's the needed combo, unless I missed something.
Be respectful. No spam.
Question 15 of 35