Advertisement
Beginner AWS, Amazon SNS (Simple Notification Service)

What types of endpoints can subscribe to an SNS topic?

Short answer

SNS supports a wide range of subscriber types including email and email JSON, SMS text messages, HTTP and HTTPS endpoints, SQS queues, Lambda functions, and mobile push notifications to platforms like Apple and Google, giving you a great deal of flexibility in how a single…

Save AWS mock interview
Advertisement
AModel answer
SNS supports a wide range of subscriber types including email and email JSON, SMS text messages, HTTP and HTTPS endpoints, SQS queues, Lambda functions, and mobile push notifications to platforms like Apple and Google, giving you a great deal of flexibility in how a single published message can trigger many different types of downstream actions.
Example

aws sns subscribe --topic-arn arn:aws:sns:us-east-1:123456789012:OrderAlerts --protocol email --notification-endpoint manager@example.com

Real-world example
A monitoring system publishes critical alerts to an SNS topic that simultaneously sends an SMS text message to the on call engineer and triggers a Lambda function that logs the incident into a tracking system.
Likely follow-ups
  • How do you confirm a subscription for email or SMS endpoints?
  • What is the message size limit for an SNS notification?
Related topics