Using EC2 Spot Instances


168 students completed the lab in ~48m

Total available time: 1h:20m

62 students rated this lab!

Lab Overview

In this Lab, you will learn how EC2 spot instances can be used in AWS. You will see that spot instances can be used in much the same way as regular, on-demand instances except with a different pricing model built around them allowing you to save a substantial amount. You set a maximum price that you are willing to pay for an instance, and if the spot market price rises to your maximum, your instance is subject to termination. Despite this complication, you will see that there are easy ways to manage this situation.



You should be familiar with:

  • Creating on-demand Amazon EC2 instances
  • Using EBS volumes with your instances
  • Working with autoscaling groups at a basic level

Learning Objectives

Upon completion of this Lab, you will be able to:

  • Create EC2 instances by placing spot requests
  • Handle instance interruptions
  • Auto-scale a spot fleet
  • Get advice from Spot Bid Advisor

Lab Environment

Before completing the Lab instructions, the environment will look as follows:


After completing the Lab instructions, the environment should look similar to:


Do you have questions about this Lab? Contact our cloud experts by sending an email to

Follow these steps to learn by building helpful cloud resources

Logging in to the Amazon Web Services Console

Your first step to start the Lab experience

Creating your first Spot Instance

Learn how to place spot requests and launch your first spot instance

Dealing with Spot Instance Termination

Use best practices to tolerate spot instance interruptions

Auto Scaling Spot Fleets

See how multiple spot instances can be combined and auto scaled with fleets

Informing your Bidding with Spot Bid Advisor

Query the advisor to develop your spot instance strategies