A company has a legacy application running on AWS. The application can only run on one Amazon EC2 instance at a time. Application metadata is stored in Amazon S3 and must be retrieved if the instance is restarted. The instance should be automatically restarted or relaunched if performance degrades. Which solution will satisfy these requirements?
A) Create an Amazon CloudWatch alarm to monitor the EC2 instance. When the StatusCheckFailed system alarm is triggered, use the recover action to stop and start the instance. Use a trigger in Amazon S3 to push the metadata to the instance when it is back up and running.
B) Use the auto healing feature in AWS OpsWorks to stop and start the EC2 instance. Use a lifecycle event in OpsWorks to pull the data from Amazon S3 and update it on the instance.
C) Use the Auto Recovery feature in Amazon EC2 to automatically stop and start the EC2 instance in case of a failure. Use a trigger in Amazon S3 to push the metadata to the instance when it is back up and running.
D) Use AWS CloudFormation to create an EC2 instance that includes the user-data property for the EC2 resource. Add a command in user-data to retrieve the application metadata from Amazon S3.
Correct Answer:
Verified
Q218: An application runs on Amazon EC2 instances
Q219: The Development team at an online retailer
Q220: A company wants to implement a CI/CD
Q221: A DevOps engineer notices that all Amazon
Q222: A DevOps team wants to implement their
Q224: A devops team uses AWS CloudFormation to
Q225: A company that runs many workloads on
Q226: A DevOps engineer is troubleshooting deployments to
Q227: A company has mandated a global encryption-at-rest
Q228: A company has migrated its container-based applications
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents