exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 187 discussion

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?

  • A. Create an S3 event notification on the S3 bucket to invoke the Lambda function for s3:ObjectTagging:Put events. Enable bucket versioning on the S3 bucket.
  • B. Enable server access logging on the S3 bucket. Create an S3 event notification on the S3 bucket for s3:ObjectTagging:* events.
  • C. Create a recurring hourly Amazon EventBridge scheduled rule that invokes the Lambda function. Modify the Lambda function to read the logs from the S3 bucket.
  • D. Create an Amazon EventBridge rule that uses Amazon EC2 as the event source. Configure the rule to match events delivered by CloudTrail. Configure the rule to target the Lambda function.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
dkp
6 months, 2 weeks ago
Selected Answer: D
D looks more relevant
upvoted 2 times
...
DanShone
7 months, 1 week ago
Selected Answer: D
Answer is D.
upvoted 3 times
...
thanhnv142
8 months, 2 weeks ago
Selected Answer: D
D is corect. A and B: irrelevant C: using lambda to read log is a bad idea because it takes a lot of time.
upvoted 3 times
...
a54b16f
9 months, 2 weeks ago
Selected Answer: D
the trigger event is the EC2 creation, so D
upvoted 4 times
...
kabary
9 months, 4 weeks ago
Selected Answer: D
Answer is D. The answer must have CloudTrail for EC2 tagging.
upvoted 2 times
...
csG13
10 months ago
Selected Answer: D
It's D. It says within an hour so it can't be C, looping over the S3 logs may take a lot (apparently there is also consideration about the 15mins limit of lambda)
upvoted 3 times
...
PrasannaBalaji
10 months ago
C looks correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago