AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 32

A company runs an application on one Amazon EC2 instance. Application metadata is stored in Amazon S3 and must be retrieved if the instance is restarted. The instance must restart or relaunch automatically if the instance becomes unresponsive.
Which solution will meet these requirements?

Answer options

Correct answer: B

Explanation

The correct answer is B because AWS OpsWorks provides an auto healing feature that can automatically stop and start the instance, while also allowing for the retrieval of metadata from S3 during the lifecycle event. Option A involves CloudWatch which does not directly pull metadata, and option C, while it mentions recovery, lacks the specific integration for pulling metadata. Option D focuses on UserData but does not provide auto healing capabilities.