AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 111

A company uses a single AWS account to test applications on Amazon EC2 instances. The company has turned on AWS Config in the AWS account and has activated the restricted-ssh AWS Config managed rule.

The company needs an automated monitoring solution that will provide a customized notification in real time if any security group in the account is not compliant with the restricted-ssh rule. The customized notification must contain the name and ID of the noncompliant security group.

A DevOps engineer creates an Amazon Simple Notification Service (Amazon SNS) topic in the account and subscribes the appropriate personnel to the topic.

What should the DevOps engineer do next to meet these requirements?

Answer options

Correct answer: A

Explanation

Option A is correct because it specifically targets the NON_COMPLIANT evaluations for the restricted-ssh rule and allows for the necessary input transformation to customize notifications sent to the SNS topic. Option B is incorrect as it sends all evaluations to the SNS topic without filtering specifically for the restricted-ssh rule. Option C is incorrect because invoking AWS Systems Manager Run Command is unnecessary for this notification setup. Option D is incorrect since it matches all NON_COMPLIANT evaluations, which may include other rules, rather than focusing on the specific restricted-ssh rule.