Learn about the most cost-effective Amazon EC2 instance purchasing option for running interruptible batch workloads that can handle interruptions and restart from where they left off.
Table of Contents
Question
A company has batch workloads that need to run for short periods of time on Amazon EC2. The workloads can handle interruptions and can start again from where they ended.
What is the MOST cost-effective EC2 instance purchasing option to meet these requirements?
A. Reserved Instances
B. Spot Instances
C. Dedicated Instances
D. On-Demand Instances
Answer
B. Spot Instances
Explanation
The most cost-effective EC2 instance purchasing option to meet the requirements for running interruptible batch workloads is Spot Instances.
Spot Instances are the most cost-effective option for workloads that can handle interruptions and are flexible in terms of when they run. These instances allow you to bid on unused EC2 capacity at a significantly lower price compared to On-Demand instances. However, Spot Instances can be interrupted by AWS with a two-minute notification when the Spot price exceeds your bid price or if AWS requires the capacity back.
In this scenario, the company’s batch workloads can handle interruptions and can start again from where they ended. This makes Spot Instances an ideal choice, as the workloads can resume from the point of interruption without any significant impact on the overall job completion.
Here’s why the other options are less suitable:
A. Reserved Instances: While Reserved Instances offer a discount compared to On-Demand instances, they are not as cost-effective as Spot Instances for interruptible workloads. Reserved Instances are better suited for steady-state, predictable workloads that require a specific capacity reservation.
C. Dedicated Instances: Dedicated Instances run on hardware dedicated to a single customer, providing isolation at the hardware level. They are more expensive than other instance types and are not necessary for the given use case, where cost-effectiveness is the primary concern.
D. On-Demand Instances: On-Demand Instances are the most expensive option, as you pay for compute capacity by the second with no long-term commitments or upfront payments. They are suitable for short-term, unpredictable workloads that cannot be interrupted, but not the most cost-effective choice for the scenario described.
In summary, Spot Instances provide the most cost-effective solution for running interruptible batch workloads on Amazon EC2, as they offer significant cost savings and can handle interruptions without impacting the overall job completion.
Amazon AWS Certified Cloud Practitioner CLF-C02 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Amazon AWS Certified Cloud Practitioner CLF-C02 exam and earn Amazon AWS Certified Cloud Practitioner CLF-C02 certification.