hands-on lab

Manage Message Queues Using Amazon SQS

Difficulty: Beginner
Duration: Up to 55 minutes
Students: 12,613
Rating: 4.6/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

Amazon Simple Queue Service (Amazon SQS) offers fast, reliable and scalable queues for storing messages. By using Amazon SQS, you can move data between distributed components of your applications that perform different tasks without losing messages or requiring each component to be always available. A queue is a temporary repository for messages that are awaiting processing.

During this introductory Lab, you will learn how to create an SQS queue, send queue messages and retrieve and delete them.

Lab Objectives

Upon completion of this Lab you will be able to:

  • Create SQS queues
  • Send SQS messages
  • Retrieve and delete SQS messages using the AWS Management Console
  • Work with SQS messages using the AWS CLI

Lab Prerequisites

You should be familiar with:

  • AWS Management Console and AWS CLI familiarity are helpful but not required

You can complete the Introduction to the AWS CLI Lab to learn more using the AWS CLI in Linux.

Updates 

June 23rd, 2023 - Resolved deprecation warning

October 30th, 2022 - Updated instructions and screenshots to improve clarity

August 3rd, 2022 - Resolved deployment issue

July 11th, 2022 - Resolved deployment issue

January 14th, 2022 - Updated instructions and screenshots to reflect the latest UI

September 6th, 2021 - Updated screenshot for Sending Messages to an SQS Queue lab step

June 4th, 2019 - Included a Lab Step showing how to use the AWS CLI with an SQS queue, reformatted the Lab, upgraded to a custom validation Lab Step

January 10th, 2019 - Added a validation Lab Step to check the work you perform in the Lab

Environment before

Environment after

Covered topics

Lab steps

Logging In to the Amazon Web Services Console
Creating an SQS Queue
Sending Messages to an SQS Queue
Polling for SQS Messages
Deleting a Queue Message
Opening the AWS Cloud9 IDE
Interacting with Amazon SQS Using the AWS CLI
Deleting an SQS Queue