AWS Certified Cloud Practitioner: Cost-effective Recovery from Amazon EC2 Instance Failures

Best Practices for Recovering Gracefully from Amazon EC2 Instance Failures

Question

You have a distributed application that periodically processes large volumes of data across multiple Amazon EC2 Instances.

The application is designed to recover gracefully from Amazon EC2 instance failures.

You are required to accomplish this task most cost-effectively. Which of the following will meet your requirements?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - A.

When you think of cost effectiveness, you can either have to choose Spot or Reserved instances.

Now when you have a regular processing job, the best is to use spot instances.

Since your application is designed to recover gracefully from Amazon EC2 instance failures, there is no issue even if you lose the Spot instances.

For more information on spot instances, please visit the URL:

https://aws.amazon.com/ec2/spot/

The most cost-effective option for running a distributed application that periodically processes large volumes of data across multiple Amazon EC2 Instances and is designed to recover gracefully from Amazon EC2 instance failures is Spot Instances.

Spot Instances are spare EC2 capacity that is available at a significantly lower price than On-Demand instances. With Spot Instances, you bid on unused EC2 capacity, and your instance runs whenever your bid exceeds the current Spot price. If the Spot price goes above your bid or Amazon EC2 needs the capacity back, your instance is terminated. However, since your application is designed to recover gracefully from Amazon EC2 instance failures, it can simply be relaunched on another Spot instance when needed.

Reserved instances offer a discount on the hourly charge for an instance but require a contract for a specific amount of time. Dedicated instances are instances that run on hardware that's dedicated to a single customer for privacy and compliance reasons, and On-Demand instances are instances that are available for as long as you need them, with no long-term commitments or upfront payments.

In summary, Spot Instances offer a cost-effective way to run a distributed application that is designed to recover gracefully from Amazon EC2 instance failures.