Q: 8
A company has multiple development teams in different business units that work in a shared single
AWS account All Amazon EC2 resources that are created in the account must include tags that specify
who created the resources. The tagging must occur within the first hour of resource creation.
A DevOps engineer needs to add tags to the created resources that Include the user ID that created
the resource and the cost center ID The DevOps engineer configures an AWS Lambda function With
the cost center mappings to tag the resources. The DevOps engineer also sets up AWS CloudTrail in
the AWS account. An Amazon S3 bucket stores the CloudTrail event logs
Which solution will meet the tagging requirements?
Options
Discussion
D . EventBridge lets you catch those EC2 API calls from CloudTrail in near real time so tagging happens quickly and automatically. The other options don’t hook directly into resource creation events the way D does. Pretty sure this is the most efficient solution, but open to seeing if someone had luck with C.
I think this is same as a common exam questions, in AWS practice sets. D matches the tagging and automation requirements best.
Its D since EventBridge can take CloudTrail EC2 events right as they happen and send them to Lambda, so you get tagging almost immediately. C is tempting but introduces delay (since it's only hourly) and might miss the 1-hour window. A and B are just S3 events, not relevant for EC2 resource creation. Pretty sure D meets the timing and automation requirement best, unless AWS changed something.
Maybe D here. EventBridge can directly catch EC2 events from CloudTrail and trigger the Lambda fast, so tags get added within the hour. C looks possible but probably slower since it scans logs every hour. Correct me if I'm missing something.
Be respectful. No spam.