0
0
AWScloud~10 mins

SQS queue concept 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 a new SQS queue using AWS CLI.

AWS
aws sqs create-queue --queue-name [1]
Drag options to blanks, or click blank then click option'
AQueueUrl
BMyQueue
CReceiveMessage
DDeleteMessage
Attempts:
3 left
💡 Hint
Common Mistakes
Using AWS CLI commands that are not related to queue creation.
Confusing queue URL with queue name.
2fill in blank
medium

Complete the code to send a message to an SQS queue using AWS CLI.

AWS
aws sqs send-message --queue-url [1] --message-body "Hello World"
Drag options to blanks, or click blank then click option'
AReceiveMessage
BDeleteMessage
Chttps://sqs.us-east-1.amazonaws.com/123456789012/MyQueue
DMyQueue
Attempts:
3 left
💡 Hint
Common Mistakes
Using the queue name instead of the full queue URL.
Omitting the message body.
3fill in blank
hard

Fix the error in the code to receive messages from an SQS queue.

AWS
aws sqs [1] --queue-url https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue
Drag options to blanks, or click blank then click option'
Areceive-message
Bdelete-message
CReceiveMessage
Dsend-message
Attempts:
3 left
💡 Hint
Common Mistakes
Using camel case or incorrect capitalization.
Using send-message instead of receive-message.
4fill in blank
hard

Fill both blanks to configure a dead-letter queue for an SQS queue using AWS CLI.

AWS
aws sqs set-queue-attributes --queue-url [1] --attributes RedrivePolicy='{"deadLetterTargetArn":"[2]","maxReceiveCount":"5"}'
Drag options to blanks, or click blank then click option'
Ahttps://sqs.us-east-1.amazonaws.com/123456789012/MainQueue
Bhttps://sqs.us-east-1.amazonaws.com/123456789012/DeadLetterQueue
Carn:aws:sqs:us-east-1:123456789012:DeadLetterQueue
Darn:aws:sqs:us-east-1:123456789012:MainQueue
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up queue URLs and ARNs.
Using the main queue ARN instead of the dead-letter queue ARN.
5fill in blank
hard

Fill all three blanks to create an SQS queue with a visibility timeout of 45 seconds using AWS CLI.

AWS
aws sqs create-queue --queue-name [1] --attributes [2]=[3]
Drag options to blanks, or click blank then click option'
AMyVisibilityQueue
BVisibilityTimeout
C45
DDelaySeconds
Attempts:
3 left
💡 Hint
Common Mistakes
Using DelaySeconds instead of VisibilityTimeout.
Setting the timeout value as a string with quotes.