Complete the code to create an SQS queue named 'MyQueue'.
aws sqs create-queue --queue-name [1]The command creates an SQS queue with the specified name. 'MyQueue' is the correct queue name here.
Complete the code to send a message with body 'HelloWorld' to the queue URL stored in QUEUE_URL.
aws sqs send-message --queue-url [1] --message-body HelloWorldThe variable $QUEUE_URL holds the queue URL. It must be referenced with a $ to expand its value in the shell.
Fix the error in the code to receive one message from the queue URL stored in QUEUE_URL.
aws sqs receive-message --queue-url [1] --max-number-of-messages 1
The queue URL variable must be referenced with a $ sign to expand its value in the shell.
Fill both blanks to set the visibility timeout to 30 seconds when receiving messages from the queue.
aws sqs receive-message --queue-url [1] --[2] 30
The queue URL must be referenced with $QUEUE_URL. The option to set visibility timeout is --visibility-timeout.
Fill all three blanks to delete a message from the queue using its ReceiptHandle stored in RECEIPT_HANDLE.
aws sqs delete-message --queue-url [1] --receipt-handle [2] --region [3]
Use $QUEUE_URL and $RECEIPT_HANDLE to reference the variables. The region is set to 'us-east-1' as a common default.