Ends in
00
days
00
hrs
00
mins
00
secs
SHOP NOW

🚀 25% OFF All Practice Exams, Video Courses, & eBooks – Cyber Sale Extension!

Guided Lab: Launching an EC2 Spot instance

Description

This lab is designed to give you a practical experience working with Amazon EC2 Spot Instances. By launching an EC2 Spot instance, you can take advantage of the unused EC2 capacity in the AWS cloud and save up to 90% compared to On-Demand prices. This lab is perfect for those who want to optimize costs and scale their applications to meet demand. It’s an excellent opportunity to gain hands-on experience with one of the most innovative and cost-effective cloud solutions available today.

Objectives

In this lab, you will learn how to:

  • Create Spot requests for EC2 instances
  • Use Spot Instance pricing history
  • Use Spot placement score

Lab Steps

Creating Spot requests for EC2 instances

1. Navigate to the search bar, type “EC2”, and click to open the EC2 Dashboard.

Launching an EC2 Spot instance

2. In the navigation pane, select “Spot Requests”, then choose “Request Spot Instances”.

Launching an EC2 Spot instance

3. On the “Create Spot Fleet Request” page, specify the parameters for your Spot instance request, such as instance type, AMI (Amazon Machine Image).
For this lab, choose the default AMI.

Launching an EC2 Spot instance

4. Under the “Additional request details” tab, choose the PlayCloud-Snadbox for the IAM fleet role.

Launching an EC2 Spot instance

5. On the “Instance type requirements” tab, choose “Manually select instance types,” then click “Add instance types.”On the “Instance type requirements” tab, choose “Manually select instance types,” then click “Add instance types.”

Launching an EC2 Spot instance

5. Select the “t2.micro” instance type from the available options.

Launching an EC2 Spot instance

For other configurations, you can go through the different fields quickly, but for this lab, stick with the default values.

6. Review your settings.

7. Click the “Launch” button.

8. After clicking the ‘Launch’ button, a confirmation will appear to let you know that the process has started and a spot request has been created.

Launching an EC2 Spot instance
Use Spot Instance pricing history

1. In the navigation pane, select “Spot Requests,” then choose “Pricing History”.

Launching an EC2 Spot instance

2. Here you can view the Spot price history for each instance type in each region.

Launching an EC2 Spot instance

Use Spot placement score

1. In the navigation pane, select “Spot Requests”, then choose “Spot placement score”.

Launching an EC2 Spot instance

2. Spot placement score feature can recommend an AWS Region or Availability Zone based on your Spot capacity requirements. Spot capacity fluctuates, and you can’t be sure that you’ll always get the capacity that you need. A Spot placement score indicates how likely it is that a Spot request will succeed in a Region or Availability Zone.

Launching an EC2 Spot instance

You can use the Spot placement score feature for the following:

  • To relocate and scale Spot compute capacity in a different Region, as needed, in response to increased capacity needs or decreased available capacity in the current Region.
  • To identify the most optimal Availability Zone in which to run single-Availability Zone workloads.
  • To simulate future Spot capacity needs so that you can pick an optimal Region for the expansion of your Spot-based workloads.
  • To find an optimal combination of instance types to fulfill your Spot capacity needs.
Skip to content