0
0
AWScloud~10 mins

SNS notification types (email, SMS, Lambda) in AWS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create an SNS topic named 'MyTopic'.

AWS
aws sns create-topic --name [1]
Drag options to blanks, or click blank then click option'
ANotificationTopic
BTopicName
CSNS_Topic
DMyTopic
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different topic name than 'MyTopic'.
Omitting the --name option.
2fill in blank
medium

Complete the code to subscribe an email endpoint to the SNS topic 'MyTopic'.

AWS
aws sns subscribe --topic-arn arn:aws:sns:us-east-1:123456789012:MyTopic --protocol [1] --notification-endpoint user@example.com
Drag options to blanks, or click blank then click option'
Alambda
Bhttp
Cemail
Dsms
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'sms' or 'lambda' instead of 'email' for email subscriptions.
Misspelling the protocol name.
3fill in blank
hard

Fix the error in the command to subscribe an SMS endpoint to the SNS topic.

AWS
aws sns subscribe --topic-arn arn:aws:sns:us-east-1:123456789012:MyTopic --protocol [1] --notification-endpoint +1234567890
Drag options to blanks, or click blank then click option'
Asms
Blambda
Cemail
Dsqs
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'email' or 'lambda' as protocol for SMS subscription.
Forgetting the '+' sign in the phone number.
4fill in blank
hard

Fill both blanks to subscribe a Lambda function to the SNS topic.

AWS
aws sns subscribe --topic-arn arn:aws:sns:us-east-1:123456789012:MyTopic --protocol [1] --notification-endpoint arn:aws:lambda:us-east-1:123456789012:function:[2]
Drag options to blanks, or click blank then click option'
Alambda
BMyLambdaFunction
Cemail
Dsms
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'email' or 'sms' as protocol for Lambda subscription.
Incorrect Lambda function name in the ARN.
5fill in blank
hard

Fill all three blanks to create an SNS topic, subscribe an email endpoint, and publish a message.

AWS
aws sns create-topic --name [1]
aws sns subscribe --topic-arn arn:aws:sns:us-east-1:123456789012:[2] --protocol [3] --notification-endpoint user@example.com
aws sns publish --topic-arn arn:aws:sns:us-east-1:123456789012:[2] --message "Hello from SNS!"
Drag options to blanks, or click blank then click option'
AMyTopic
Cemail
DNotificationTopic
Attempts:
3 left
💡 Hint
Common Mistakes
Mismatch between topic name in create-topic and ARN.
Wrong protocol for email subscription.