Working with AWS SQS FIFO Queues

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

In this hands-on lab, you will learn how to create and interact with first-in-first-out (FIFO) SQS queues. This lab will provide an important distinction from SQS standard queues, noting the key characteristics and functionality differences between the two. By the end of the lab, you should feel comfortable creating and interacting with SQS FIFO queues. You will also learn and become familiar with various API actions used to interact with the SQS service via the AWS CLI and AWS SDKs.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a FIFO SQS Queue

You’ll need to create an AWS SQS Queue using the AWS CLI on the EC2 instance provided.

  • Sign in to the EC2 instance provided using the credentials in Cloud Assessments
  • Run the Python script to create the SQS queue
  • Remember to copy the URL that is printed to the screen and paste it into to the file for later
Send and Process Messages to Your SQS FIFO Queue

Use the EC2 instance provided to send messages to your SQS queue and process them.

  • Make sure you’ve updated the file with the SQS queue URL
  • Review the data.json file
  • Remember to start up the script
  • Run the Python3 script to send messages to the SQS queue
  • Run the Python3 script to consume the messages in the queue
  • If you need to start over at any point you can start over with the script

Additional Resources

Use the EC2 instance login credentials provided to access your EC2 workspace. Open up multiple different shells to your instance so we can use them all at once.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?