Amazon SNS (Simple Notification Service) is used to send messages or notifications to multiple subscribers through different protocols like email, SMS, or Lambda functions.
Click to reveal answer
beginner
How does SNS send notifications to email subscribers?
SNS sends notifications to email subscribers by sending an email message to the subscribed email address when a message is published to the topic.
Click to reveal answer
beginner
What is required to send SMS notifications using SNS?
To send SMS notifications, the subscriber must be a valid phone number, and the SNS topic must support SMS protocol. AWS handles the delivery to the phone via SMS.
Click to reveal answer
intermediate
How does SNS trigger a Lambda function?
SNS can trigger a Lambda function by invoking it directly when a message is published to the SNS topic, allowing automated processing of the message.
Click to reveal answer
intermediate
What are the benefits of using Lambda as an SNS subscriber?
Using Lambda as an SNS subscriber allows automatic, serverless processing of messages, enabling custom logic, data transformation, or integration with other AWS services without managing servers.
Click to reveal answer
Which protocol does SNS NOT support for notifications?
AFTP
BSMS
CLambda
DEmail
✗ Incorrect
SNS supports Email, SMS, and Lambda protocols but does not support FTP for notifications.
What must a user do to receive SNS email notifications?
ACreate an IAM user
BJust provide the email address without confirmation
CSubscribe and confirm the subscription via email
DEnable SMS on the email
✗ Incorrect
Users must subscribe and confirm the subscription by clicking a link sent to their email to start receiving SNS notifications.
What happens when SNS publishes a message to a Lambda subscriber?
ALambda sends an email
BLambda function is invoked automatically with the message
CSNS stores the message in S3
DNothing happens
✗ Incorrect
SNS automatically invokes the subscribed Lambda function with the published message as input.
Which of these is a valid SNS notification type?
AEmail
BFTP
CHTTP
DBoth A and C
✗ Incorrect
SNS supports multiple protocols including Email and HTTP, but not FTP.
To send SMS notifications via SNS, what is required?
AA valid phone number subscribed to the topic
BAn email address
CA Lambda function
DAn S3 bucket
✗ Incorrect
SNS sends SMS notifications to valid phone numbers subscribed to the topic.
Explain how SNS can send notifications using email, SMS, and Lambda.
Think about how each subscriber type receives or processes the message.
You got /4 concepts.
Describe the benefits of using Lambda as a subscriber in SNS notifications.
Consider what Lambda adds beyond simple message delivery.
You got /4 concepts.
Practice
(1/5)
1. Which of the following is NOT a valid protocol for an AWS SNS subscription?
easy
A. email
B. sms
C. lambda
D. ftp
Solution
Step 1: Review SNS supported protocols
AWS SNS supports protocols like email, sms, and lambda for subscriptions.
Step 2: Identify unsupported protocol
FTP is not supported as a protocol for SNS subscriptions.
Final Answer:
ftp -> Option D
Quick Check:
Supported protocols exclude ftp [OK]
Hint: Remember SNS supports email, sms, lambda but not ftp [OK]
Common Mistakes:
Confusing FTP as supported protocol
Thinking HTTP is the only protocol
Mixing SNS with S3 protocols
2. Which is the correct way to specify an SMS subscription protocol in AWS SNS?
easy
A. Protocol: 'sms', Endpoint: 'user@example.com'
B. Protocol: 'email', Endpoint: '+1234567890'
C. Protocol: 'sms', Endpoint: '+1234567890'
D. Protocol: 'lambda', Endpoint: '+1234567890'
Solution
Step 1: Understand protocol and endpoint types
For SMS, protocol must be 'sms' and endpoint is a phone number with country code.
Step 2: Match correct protocol and endpoint
Protocol: 'sms', Endpoint: '+1234567890' correctly uses 'sms' protocol and a phone number endpoint.
Final Answer:
Protocol: 'sms', Endpoint: '+1234567890' -> Option C
Quick Check:
SMS needs phone number endpoint [OK]
Hint: SMS protocol requires phone number endpoint format [OK]
Email subscriptions require the recipient to confirm by clicking a link in a confirmation email.
Step 2: Identify common cause of no delivery
If the email is not confirmed, SNS will not send notifications to that address.
Final Answer:
The email address was not confirmed by the subscriber. -> Option A
Quick Check:
Email subscriptions need confirmation [OK]
Hint: Email subscriptions require confirmation before delivery [OK]
Common Mistakes:
Assuming SNS does not support email
Confusing phone number as email endpoint
Expecting Lambda involvement in email subscription
5. You want to send an SMS notification and also trigger a Lambda function whenever a message is published to an SNS topic. How should you configure the subscriptions?
hard
A. Create one subscription with protocol 'email' and endpoint as phone number, and another with protocol 'lambda' and endpoint as Lambda ARN.
B. Create one subscription with protocol 'sms' and endpoint as phone number, and another with protocol 'lambda' and endpoint as Lambda ARN.
C. Create one subscription with protocol 'lambda' and endpoint as phone number, and another with protocol 'sms' and endpoint as Lambda ARN.
D. Create one subscription with protocol 'sms' and endpoint as Lambda ARN, and another with protocol 'lambda' and endpoint as phone number.
Solution
Step 1: Understand protocol and endpoint matching
SMS protocol requires a phone number endpoint; Lambda protocol requires Lambda function ARN.
Step 2: Configure two subscriptions correctly
Create one subscription with protocol 'sms' and phone number endpoint, and another with protocol 'lambda' and Lambda ARN endpoint.
Final Answer:
Create one subscription with protocol 'sms' and endpoint as phone number, and another with protocol 'lambda' and endpoint as Lambda ARN. -> Option B
Quick Check:
Match protocol to correct endpoint type [OK]
Hint: Match SMS to phone number, Lambda to function ARN [OK]
Common Mistakes:
Mixing endpoints and protocols
Using email protocol for SMS
Assigning Lambda ARN as SMS endpoint
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.