Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
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 24 discussion

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?

  • A. Create an Amazon CloudWatch alarm for the StatusCheckFailed metric. Use the recover action to stop and start the instance. Use an S3 event notification to push the metadata to the instance when the instance is back up and running.
  • B. Configure AWS OpsWorks, and use the auto healing feature to stop and start the instance. Use a lifecycle event in OpsWorks to pull the metadata from Amazon S3 and update it on the instance.
  • C. Use EC2 Auto Recovery to automatically stop and start the instance in case of a failure. Use an S3 event notification to push the metadata to the instance when the instance is back up and running.
  • D. Use AWS CloudFormation to create an EC2 instance that includes the UserData property for the EC2 resource. Add a command in UserData to retrieve the application metadata from Amazon S3.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Jonfernz
Highly Voted 1 year, 2 months ago
Selected Answer: B
Both Amazon CloudWatch's recover action and EC2 Auto Recovery are designed to respond to system status check failures, not instance status check failures. System status check failures indicate issues with the underlying hardware, while instance status check failures are often related to issues within your instance (like an OS-level issue). If the requirement is to handle unresponsiveness due to both system-level and instance-level issues, neither option A nor C would fully meet the requirement. In that case, AWS OpsWorks with auto healing (Option B) could be a better fit since OpsWorks allows you to configure more complex health checks and could recover from both system-level and instance-level issues. So, if you want to handle both types of unresponsiveness, Option B would be the most comprehensive solution.
upvoted 9 times
flaacko
3 months, 1 week ago
May I add that AWS Opswork offers lifecycle events which you can leverage to execute custom actions on the EC2 instance for example retrieving metadata from S3 as the question requested.
upvoted 1 times
...
...
BrusingWayne
Most Recent 4 days, 13 hours ago
Every options are wrong at this moment. Opsworks reached EOL. Other options do not make any sense.
upvoted 1 times
...
Ravi_Bulusu
1 week ago
The best approach is C, using EC2 Auto Recovery to monitor and recover the instance if it becomes unresponsive, combined with S3 event notifications to ensure the application metadata is properly retrieved after the instance is back online.
upvoted 1 times
...
HarryLy
5 months, 2 weeks ago
Selected Answer: B
B seem correct
upvoted 1 times
...
Gomer
5 months, 4 weeks ago
Identical with Question #: 102
upvoted 1 times
...
hoazgazh
7 months, 2 weeks ago
Selected Answer: B
To automatic restart, must pull artifact for proactive
upvoted 1 times
...
thanhnv142
10 months ago
B: is correct: AWS opsworks auto healing will monitor the healthiness of EC2. If there is failure, restart EC2 and pull data from S3 to EC2 A: incorrect because no mention of method to trigger S3 and S3 will not trigger by itself C: incorrect because no mention of method to trigger S3 and S3 will not trigger by itself D: Cloud formation only for deploy, this task is about opswork
upvoted 3 times
...
z_inderjot
11 months, 1 week ago
Selected Answer: B
OpWorks is deprecated now , So will it be part of exam ? What is the point of learning of service that are not , going to use.
upvoted 3 times
...
TheAWSRhino
1 year ago
Selected Answer: B
OpWorks is EOL now, however, I think this is the correct answer currenty.
upvoted 3 times
harithzainudin
11 months, 2 weeks ago
yes indeed. its EOL
upvoted 1 times
...
...
beanxyz
1 year, 2 months ago
Selected Answer: B
A and C are wrong because S3 event notification destination is lambda, sqs and sns topic, you can't directly push metadata to EC2; D is wrong because although user data can retrieve s3 metadata, it can't restart automatically.
upvoted 4 times
...
n_d1
1 year, 5 months ago
Selected Answer: B
B. It doesn't make sense for an S3 event notification to be triggered by an EC2 instance being restarted. The OpsWorks autohealing capability can detect failed instances and replace them. After the auto-healed instance is back online, OpsWorks triggers a Configure lifecycle event on the instance. The metadata from S3 could be retrieved by the lifecycle event with a recipe. https://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-autohealing.html https://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-events.html https://github.com/awsdocs/aws-opsworks-user-guide/blob/master/doc_source/create-custom-configure.md
upvoted 2 times
...
madperro
1 year, 5 months ago
Selected Answer: B
B, not simplest one but the only that meets requirements. For A - how can you push data from S3 to EC2? Data needs to be pulled from EC2.
upvoted 2 times
...
Akaza
1 year, 6 months ago
Selected Answer: A
A for me By creating a CloudWatch alarm for the StatusCheckFailed metric, the system can detect if the instance becomes unresponsive. The recover action can then be triggered to automatically stop and start the instance, ensuring it restarts or relaunches when necessary. Additionally, an S3 event notification can be set up to push the metadata to the instance once it is back up and running. This ensures that the application metadata is retrieved and available after the restart
upvoted 1 times
bcx
1 year, 5 months ago
The second part would not work. An S3 notification event occurs only when actions occur on the object. When you restart the instance, nobody is overwriting the object to trigger the notification. IMHO.
upvoted 3 times
...
...
ParagSanyashiv
1 year, 7 months ago
Selected Answer: B
B seems to be more feasible in this case.
upvoted 2 times
...
Mail1964
1 year, 7 months ago
https://aws.amazon.com/about-aws/whats-new/2022/03/amazon-ec2-default-automatic-recovery/
upvoted 1 times
...
alce2020
1 year, 7 months ago
I'd say the answer is A ..you can configure Amazon CloudWatch to monitor the EC2 instance and trigger an automatic restart or relaunch if it becomes unresponsive. You can set up a CloudWatch alarm to monitor the instance's CPU utilization, network traffic, or other metrics, and define an action to take if the alarm is triggered, such as rebooting the instance or terminating and relaunching it.
upvoted 1 times
aussiehoa
1 year, 3 months ago
"Use an S3 event notification to push the metadata to the instance when the instance is back up and running." makes no sense
upvoted 1 times
...
...
ele
1 year, 7 months ago
Selected Answer: B
A and C both is wrong cause recover is only for system status check failure. So if it's instance status check fails, it will not respond.
upvoted 1 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 ...