Create container availability alert rules and grant the Prometheus service principal SNS publish on the topic
A company has deployed a complex container-based workload on AWS. The workload uses Amazon Managed Service for Prometheus for monitoring. The workload runs in an Amazon Elastic Kubernetes Service (Amazon EKS) cluster in an AWS account. The company’s DevOps team wants to receive workload alerts by using the company’s Amazon Simple Notification Service (Amazon SNS) topic. The SNS topic is in the same AWS account as the EKS cluster. Which combination of steps will meet these requirements? (Choose three.)
Community Votes
80% of anonymous learners picked answer BCD. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
Alerting requires both an alert rule that fires on container availability and an alert manager configuration pointing at the SNS receiver (B, C). Delivery then fails without resource-based authorization, which is why the SNS topic access policy must grant the aps.amazonaws.com service principal sns:Publish and sns:GetTopicAttributes (D). Option E misplaces the grant on the Prometheus service role's IAM policy, which does not authorize publishing to the topic. Option A is invalid because Managed Service for Prometheus has no remote-write mechanism aimed at SNS.
To route Amazon Managed Service for Prometheus alerts to the company's SNS topic, define an alerting rule for each workload container's availability, create an alert manager configuration that targets the SNS topic as the receiver, and amend the topic's access policy so the aps.amazonaws.com service principal is allowed sns:Publish and sns:GetTopicAttributes. The permissions belong on the SNS topic resource policy because Managed Service for Prometheus delivers alerts on the company's behalf using its service principal.
Using the Managed Service for Prometheus remote write URL to send alerts to the SNS topic (A)—remote write targets Prometheus-compatible endpoints, not SNS, so this does not deliver alerts. Granting sns:Publish on the Managed Service for Prometheus IAM role instead of the topic policy (E)—the service assumes that role for its own operations, not as a principal publishing to your SNS topic, so the authorization must be a resource-based policy on the topic granting the aps service principal.
Community Discussion (31 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
An alerting rule must exist for each workload container so that the Managed Service for Prometheus Alertmanager evaluates availability and fires (B). An alert manager configuration then defines SNS as the receiver that delivers those fired alerts (C). Because the alerts are published to a topic the company owns, the topic's resource-based policy must authorize the publishing principal: granting the aps.amazonaws.com service principal sns:Publish and sns:GetTopicAttributes allows Managed Service for Prometheus to deliver alerts to the topic (D), which is exactly the configuration the AWS troubleshooting documentation describes.Why the Other Options Are Wrong
A proposes sending alerts to the SNS topic through the Managed Service for Prometheus remote write URL. Remote write is for pushing samples to Prometheus-compatible backends and cannot target SNS, so alerts would never arrive. E proposes granting sns:Publish and sns:GetTopicAttributes on the IAM role used by Managed Service for Prometheus, but that role authorizes the service's own service-side operations rather than acting as a principal publishing to your SNS topic; the required grant is a resource policy on the topic naming the aps service principal. B, C, and D are the correct combination.Community Comment Notes
Community voted B,C,D (73), with B,C,E an 18 percent minority. Commenters linked both the AWS troubleshooting page for missing alerting policies and the Alertmanager receiver documentation, and jamesf quoted the documented policy statement that gives Managed Service for Prometheus permission to send messages to the SNS topic.Official Reference
Related Analysis
Practice All DOP-C02 Questions
Access 85 questions with complete answers and detailed explanations.
View Full DOP-C02 Practice Test →