AWS Certified Security – Specialty — Question 56

An application has been written that publishes custom metrics to Amazon CloudWatch. Recently, IAM changes have been made on the account and the metrics are no longer being reported.
Which of the following is the LEAST permissive solution that will allow the metrics to be delivered?

Answer options

Correct answer: C

Explanation

The correct answer is C, as adding permission for cloudwatch:putMetricData specifically allows the application to publish metrics without granting unnecessary access. Option A is incorrect because it pertains to logging permissions, not metric publishing. Option B is overly permissive since it grants full access to CloudWatch, which is more than what is needed. Option D relates to trust relationships and does not directly enable metric publishing.