exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 45 discussion

A company hosts its staging website using an Amazon EC2 instance backed with Amazon EBS storage. The company wants to recover quickly with minimal data losses in the event of network connectivity issues or power failures on the EC2 instance.
Which solution will meet these requirements?

  • A. Add the instance to an EC2 Auto Scaling group with the minimum, maximum, and desired capacity set to 1.
  • B. Add the instance to an EC2 Auto Scaling group with a lifecycle hook to detach the EBS volume when the EC2 instance shuts down or terminates.
  • C. Create an Amazon CloudWatch alarm for the StatusCheckFailed System metric and select the EC2 action to recover the instance.
  • D. Create an Amazon CloudWatch alarm for the StatusCheckFailed Instance metric and select the EC2 action to reboot the instance.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
madperro
Highly Voted 1 year, 11 months ago
Selected Answer: C
C is the right answer. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html
upvoted 11 times
...
tartarus23
Highly Voted 1 year, 11 months ago
Selected Answer: C
Explanation: Amazon CloudWatch provides system-wide visibility into resource utilization, application performance, and operational health. If a system status check fails, this implies there's a problem with the underlying EC2 system that may require AWS involvement to repair. The "Recover this instance" action for the system status check automatically recovers the instance if it becomes impaired due to an underlying issue.
upvoted 10 times
...
jamesf
Most Recent 10 months, 1 week ago
Selected Answer: C
C https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html In the event that AWS determines an instance is unavailable due to an underlying hardware issue, there are two mechanisms that you can configure for instance resiliency which can restore availability—simplified automatic recovery and Amazon CloudWatch action based recovery. This process is called instance recovery. The following are examples of underlying hardware issues that might require instance recovery: - Loss of network connectivity - Loss of system power - Software issues on the physical host - Hardware issues on the physical host that impact network reachability
upvoted 2 times
...
c3518fc
1 year, 1 month ago
Selected Answer: C
C. This is the correct solution. By creating a CloudWatch alarm for the StatusCheckFailed System metric and configuring the alarm to trigger the "Recover this instance" action, the EC2 instance will be automatically recovered in the event of a system failure or power outage. This ensures the instance can be quickly recovered with minimal data loss, as the EBS volume remains attached during the recovery process. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html
upvoted 1 times
...
4555894
1 year, 2 months ago
Selected Answer: C
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html
upvoted 1 times
...
thanhnv142
1 year, 3 months ago
C is correct: recover is the right way A and B are irrelevant D: should not reboot in case of power failures
upvoted 1 times
...
yorkicurke
1 year, 6 months ago
Selected Answer: C
My Reason: StatusCheckFailed_System: This check monitors the AWS systems on which your instance runs1. For Example loss of network connectivity, loss of system power, software issues on the physical host, and hardware issues on the physical host that impact network reachability StatusCheckFailed_Instance: This check monitors the software and network configuration of your individual instance. These checks detect problems that require your involvement to repair. If an instance status check fails, it typically means that there’s an issue with the instance, such as a misconfigured network or a problem with the instance’s file system.
upvoted 3 times
...
bakamon
1 year, 11 months ago
Selected Answer: C
Correct Answer is C
upvoted 2 times
...
qan1257
2 years ago
Selected Answer: C
A is incorrect. Simplified automatic recovery is not initiated for instances in an Auto Scaling group. If your instance is part of an Auto Scaling group with health checks enabled, then the instance is replaced when it becomes impaired. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html
upvoted 4 times
...
ele
2 years ago
Selected Answer: C
C with recover action creates identical instance
upvoted 1 times
...
Zoe_zoe
2 years ago
C https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-recover.html There are only 2 ways to recover EC2 instances. Since this instance has EBS volumes, only the CloudWatch action based recovery is applicable.
upvoted 3 times
...
haazybanj
2 years ago
Selected Answer: D
Option D is the correct solution Option C is incorrect because modifying the AWS CloudFormation template requires manual intervention and cannot be automated. Additionally, creating an Amazon CloudWatch alarm to invoke the Lambda function after the failure event occurs doesn't provide an automated way to promote the replica instance. Therefore, Option D is the correct solution.
upvoted 1 times
...
alce2020
2 years, 1 month ago
C is correct
upvoted 1 times
...
jqso234
2 years, 1 month ago
Selected Answer: A
option A is a better choice for this scenario because it ensures that there is always an EC2 instance running to serve the staging website, and the new instance will have the same configuration as the original instance, including the EBS volume, so there will be minimal data loss. Option C may result in some data loss since a new EBS volume will be created, and it may take longer to recover the instance since the EC2 action to recover the instance will need to be triggered by the Amazon CloudWatch alarm.
upvoted 1 times
bcx
1 year, 12 months ago
You would lose the contents on the EBS volume.
upvoted 1 times
ogwu2000
1 year, 10 months ago
How would you launch a new instance if they is a power outage? So, C is correct as you will have to recover and hopefully quickly.
upvoted 1 times
Ffida2214
1 year, 5 months ago
If there is power outage than it is considered as instance failure and cloudwatch alarm can recover from system failure but can't recover from instance failure. https://repost.aws/knowledge-center/automatic-recovery-ec2-cloudwatch I believe option A is quickest recovery, and if Data needed to be backup then option B
upvoted 1 times
...
...
...
...
Dimidrol
2 years, 1 month ago
Selected Answer: C
C for me
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...