0
0
AWScloud~10 mins

Why messaging services matter in AWS - Test Your Understanding

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

Complete the code to create a simple AWS SQS queue named 'MyQueue'.

AWS
aws sqs create-queue --queue-name [1]
Drag options to blanks, or click blank then click option'
AMyQueue
BSampleQueue
CTestQueue
DQueue1
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different queue name than 'MyQueue'.
Omitting the --queue-name option.
2fill in blank
medium

Complete the code to send a message 'HelloWorld' to the SQS queue URL stored in QUEUE_URL.

AWS
aws sqs send-message --queue-url [1] --message-body HelloWorld
Drag options to blanks, or click blank then click option'
A$QUEUE_URL
BQUEUE_URL
CMyQueueUrl
DqueueUrl
Attempts:
3 left
💡 Hint
Common Mistakes
Using the variable name without the $ sign.
Using a placeholder string instead of the variable.
3fill in blank
hard

Fix the error in the AWS CLI command to receive one message from the queue URL stored in QUEUE_URL.

AWS
aws sqs receive-message --queue-url [1] --max-number-of-messages 1
Drag options to blanks, or click blank then click option'
Aqueue_url
BQueueUrl
C$QUEUE_URL
DQUEUE_URL
Attempts:
3 left
💡 Hint
Common Mistakes
Using the variable name without $.
Using incorrect casing or underscores.
4fill in blank
hard

Fill both blanks to create an SNS topic named 'MyTopic' and subscribe an email endpoint to it.

AWS
aws sns create-topic --name [1]
aws sns subscribe --topic-arn [2] --protocol email --notification-endpoint user@example.com
Drag options to blanks, or click blank then click option'
AMyTopic
Barn:aws:sns:us-east-1:123456789012:MyTopic
Carn:aws:sns:us-east-1:123456789012:OtherTopic
DTopicName
Attempts:
3 left
💡 Hint
Common Mistakes
Using different topic names in creation and subscription.
Using an ARN for a different topic.
5fill in blank
hard

Fill all three blanks to publish a message 'Hello Subscribers' to the SNS topic ARN stored in TOPIC_ARN variable.

AWS
aws sns publish --topic-arn [1] --message [2] --subject [3]
Drag options to blanks, or click blank then click option'
A$TOPIC_ARN
B"Hello Subscribers"
C"Greeting"
DTOPIC_ARN
Attempts:
3 left
💡 Hint
Common Mistakes
Not using $ for the variable.
Not quoting the message or subject.
Using incorrect variable names.