AWS Certified DevOps Engineer – Professional — Question 200

A DevOps engineer wants to implement an automated response that will occur if AWS Trusted Advisor detects an IAM access key in a public source code repository. The automated response must delete the exposed access key and must notify the security team.
Which solution will meet these requirements?

Answer options

Correct answer: D

Explanation

Option D is correct because it effectively combines the use of an AWS Lambda function to delete the IAM access key with an EventBridge rule that triggers based on the Trusted Advisor event, ensuring both actions are performed seamlessly. Options A and B use CloudTrail and AWS Config, which are not the most suitable for this specific scenario, while option C incorrectly implements the Personal Health Dashboard, which does not directly align with the requirements.