Practice Test

True or False: EC2 Spot Instances offer the best choice for applications with flexible start and end time.

  • True
  • False

Answer: True

Explanation: EC2 Spot Instances allow users to take advantage of unused EC2 capacity in the AWS cloud. They are great for applications with flexible start and end times or that can withstand interruptions.

What type of application is most suitable for EC2 Spot Instances?

  • A. Time-sensitive tasks
  • B. Single-threaded, latency-sensitive tasks
  • C. Real-time gaming
  • D. Flexible start/end-time tasks

Answer: D. Flexible start/end-time tasks

Explanation: EC2 Spot Instances are best suited to applications that can handle interruptions and have flexible start and end times.

True or False: You can’t monitor EC2 Spot Instance resource usage using Amazon CloudWatch.

  • True
  • False

Answer: False

Explanation: Amazon CloudWatch can be used to monitor EC2 Spot Instance resource usage, along with other AWS resources.

When should you not use EC2 Spot Instances?

  • A. When you want to reduce compute costs
  • B. When workloads are not time-sensitive
  • C. When applications can handle interruptions
  • D. When applications demand continuous high-performance

Answer: D. When applications demand continuous high-performance

Explanation: EC2 Spot Instances offer spare compute capacity at steep discounts, but they can be interrupted by AWS when the capacity is needed elsewhere. Hence, they might not be suitable for high-performance, un-interruptible workloads.

What is a benefit of using EC2 Spot Instances?

  • A. Consistent performance
  • B. Lower costs
  • C. Guaranteed availability
  • D. Zero interruptions

Answer: B. Lower costs

Explanation: EC2 Spot Instances enable you to optimize your costs on the AWS cloud and scale your application’s throughput up to 10X for the same budget.

True or False: Amazon EC2 Spot Instances can be purchased at a fixed price.

  • True
  • False

Answer: False

Explanation: The price of Spot Instances varies based on the supply and demand of available unused AWS EC2 capacity, not at a fixed rate.

You can save _____ when you use EC2 Spot Instances.

  • A. up to 10%
  • B. up to 90%
  • C. up to 20%
  • D. up to 50%

Answer: B. up to 90%

Explanation: EC2 Spot Instances can offer savings of up to 90% compared to On-Demand Instances.

Spot Instances can be interrupted by AWS with a ______ minute warning when AWS needs the capacity back.

  • A. 120-minute
  • B. 1-minute
  • C. 5-minute
  • D. 10-minute

Answer: C. 2-minute

Explanation: AWS gives a 2-minute interruption warning when it needs the Spot capacity back.

True or False: Spot Instances are a good fit for fault-tolerant and flexible applications.

  • True
  • False

Answer: True

Explanation: Spot Instances come with a possibility of interruption, so they are a good fit for applications that can handle interruptions or have flexibility in their timing.

Spot Instances are taken back by AWS based on _____.

  • A. Termination policies
  • B. Bid price
  • C. Application criticality
  • D. Both A & B

Answer: D. Both A & B

Explanation: AWS reclaims Spot Instances based on the bid price and any termination policies that are in place. AWS always attempts to give a two-minute warning before terminating a Spot Instance.

In EC2 Spot Instances, the interruption behavior can be set as either ‘stop’, ‘terminate’ or ‘_____’.

  • A. Restart
  • B. Hibernate
  • C. Pause
  • D. Delay

Answer: B. Hibernate

Explanation: EC2 Spot Instances come with the option to set the interruption behavior to either ‘stop’, ‘terminate’, or ‘hibernate’ to save the state of your instance for a quick startup at a later time.

True or False: Spot Instances can be used along with On-Demand instances to meet highly variable capacity requirements.

  • True
  • False

Answer: True

Explanation: Spot Instances can be used in conjunction with On-Demand instances to handle variable workloads and gain performance while still keeping costs under control.

When a Spot Instance is reclaimed by AWS and the interruption behavior is ‘stop’, what happens to the data in the Amazon EBS volumes?

  • A. Data is permanently lost
  • B. Data is unaffected
  • C. Data is partially lost
  • D. Data is temporarily unavailable

Answer: B. Data is unaffected

Explanation: When a Spot Instance is stopped, the data in your Amazon EBS volumes is saved and the instance can be started again at a later time.

True or False: Spot Instances provide the ability to specify a maximum price you are willing to pay per hour per instance.

  • True
  • False

Answer: True

Explanation: Spot Instances allow you to specify a maximum price you are willing to pay per instance hour. If the Spot price exceeds your maximum price, your instances are terminated.

Which AWS tool can you use to help predict Spot Instance interruptions?

  • A. AWS Trust Advisor
  • B. AWS Spot Instance Advisor
  • C. AWS Glue
  • D. AWS Elastic Beanstalk

Answer: B. AWS Spot Instance Advisor

Explanation: AWS Spot Instance Advisor is a tool that provides information about Spot Instance interruptions in each Availability Zone over the last month.

Interview Questions

What are EC2 Spot Instances on AWS?

Amazon EC2 Spot Instances are unused EC2 instances that are available at up to a 90% discount compared to On-Demand prices. AWS uses Spot Instances to optimize costs across multiple availability zones.

What is the primary purpose of using EC2 Spot Instances?

Spot Instances are mainly used to optimize costs for fault-tolerant and flexible applications. They provide the ability to significantly reduce the cost of running applications, growing the compute capacity and throughput for the same budget.

What should be done to qualify workloads for EC2 Spot Instances?

First, assess the resource usage patterns, such as CPU usage, memory consumption, and network bandwidth usage, to understand the application requirements. Then, determine how flexible these workloads are with respect to starting and stopping instances and dealing with spot termination notices.

What kind of workloads are best suited for Spot Instances?

Flexible, fault-tolerant and stateless workloads, batch processing jobs, big data analysis, and containerized workloads are ideal for Spot Instances as they can tolerate interruptions and can be stopped and started at any time.

How does AWS determine the price of a Spot Instance?

The price of a Spot Instance is determined by long-term trends in supply and demand for Spot Instance capacity.

What happens to a Spot Instance when its spot price goes above your maximum price?

If the Spot price exceeds your maximum price your Spot Instance will be terminated and you would have to bid again.

What can you do to prepare for and handle Spot Instance interruptions?

AWS provides a 2-minute interruption notice. You can use that time to save the work, move the workload, or take a snapshot of your volume for later use.

How can you persist data in the event of Spot Instance termination?

Spot Instances are ephemeral, but you can use EBS volumes to persist data. EBS volumes will not be deleted if their deleteOnTermination attribute is set to false.

How AWS ensures that Spot Instances use spare capacity in the most effective way?

AWS uses Spot Instances to leverage its unused capacity. Spot Instances allow AWS to optimize resources across all users and make sure no resources are wasted.

Can Spot Instances be stopped or hibernated like On-Demand or Reserved Instances?

Yes, if a Spot Instance is set up in a Spot block or is running in a persistent Spot request, it can be stopped or hibernated just like On-Demand or Reserved Instances, as long as the instance root device is an Amazon EBS volume.

Leave a Reply

Your email address will not be published. Required fields are marked *