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 20 discussion

A company's DevOps engineer uses AWS Systems Manager to perform maintenance tasks during maintenance windows. The company has a few Amazon EC2 instances that require a restart after notifications from AWS Health. The DevOps engineer needs to implement an automated solution to remediate these notifications. The DevOps engineer creates an Amazon EventBridge rule.
How should the DevOps engineer configure the EventBridge rule to meet these requirements?

  • A. Configure an event source of AWS Health, a service of EC2. and an event type that indicates instance maintenance. Target a Systems Manager document to restart the EC2 instance.
  • B. Configure an event source of Systems Manager and an event type that indicates a maintenance window. Target a Systems Manager document to restart the EC2 instance.
  • C. Configure an event source of AWS Health, a service of EC2, and an event type that indicates instance maintenance. Target a newly created AWS Lambda function that registers an automation task to restart the EC2 instance during a maintenance window.
  • D. Configure an event source of EC2 and an event type that indicates instance maintenance. Target a newly created AWS Lambda function that registers an automation task to restart the EC2 instance during a maintenance window.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
MarDog
Highly Voted 1 year, 6 months ago
And AWS Training and Certification has A as the correct answer in the practice exam.
upvoted 29 times
...
Seoyong
Highly Voted 1 year, 4 months ago
Selected Answer: A
It doesn't need to invoke Lambda. There is a SSM document , RestartEC2Instance https://docs.aws.amazon.com/health/latest/ug/cloudwatch-events-health.html
upvoted 7 times
...
VerRi
Most Recent 1 month, 3 weeks ago
Selected Answer: A
Bad wording. The SSM document here means the automation document (Runbook), not the Command document. EventBridge + SSM Automation (automation document aka Runbook) is a good practice
upvoted 1 times
...
jamesf
5 months ago
Selected Answer: A
A Using SSM document to restart EC2 Instance. Not require to invoke Lambda. https://docs.aws.amazon.com/health/latest/ug/cloudwatch-events-health.html#automating-instance-actions
upvoted 1 times
...
trungtd
5 months, 3 weeks ago
Selected Answer: A
No need to invoke Lambda.
upvoted 1 times
...
xdkonorek2
6 months ago
Selected Answer: C
I'm hesitant between A and C but I'm voting C 1) SSM document is not a valid target, valid targets for SSM are: Automation, Run Command, OpsItem 2) If company is already using maitenance windows devops engineer should use them instead of restarting instances immediately
upvoted 1 times
flaacko
4 months, 1 week ago
From the question, the company is already using SSM so there is really no need to create a custom Lambda function. SSM is a valid target action for EventBridge events. You can trigger the running of the AWS-RestartEC2Instance automation document with an EventBridge event which means SSM documents are a valid target.
upvoted 1 times
...
...
4bc91ae
7 months ago
Selected Answer: A
easiest way to do this
upvoted 1 times
...
Gomer
7 months ago
Selected Answer: A
SSM Runbook: AWS-RestartEC2Instance (restart one or more EC2 instances)
upvoted 1 times
Gomer
7 months ago
In reading through some of the responses I think "maintenance windows" (plural) doesn't imply scheduling through Lambda. A DevOps engineer can disable automation during production hours. The scenario is unclear if they want this running all the time, or just enabled to run ONLY in a maintenance window. What I'm sure of is they are wanting the SSM runbook as the answer. In the real world, if productin EC2 instance has a health issue, you might just very well want to reboot it automatically if that truly fixes the problem. Nuff said.
upvoted 1 times
...
...
bont
7 months, 1 week ago
The answer is C because A. This option is incorrect because AWS Health notifications do not trigger Systems Manager maintenance windows directly. Additionally, Systems Manager documents cannot restart EC2 instances directly; they need to be executed through other services like Systems Manager Automation or AWS Lambda.
upvoted 1 times
...
zijo
10 months ago
Answer is A. You can create a maintenance window in AWS SSM and associate the EventBridge rule with the maintenance window. No need to customize the solution with lambda.
upvoted 3 times
vn_thanhtung
8 months, 1 week ago
A say Target a"Systems Manager document" not support by EB => need to use Lambda => Answer is C https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-targets.html
upvoted 1 times
vn_thanhtung
7 months, 1 week ago
A Systems Manager document defines the actions that Systems Manager performs on your managed instances. An automation document is a type of Systems Manager document that's used to perform common maintenance and deployment tasks. This includes creating or updating an Amazon Machine Image (AMI). This topic outlines how to create, edit, publish, and delete automation documents with AWS Toolkit. sorry my mistake, ans is A
upvoted 1 times
...
...
...
kyuhuck
10 months, 1 week ago
Selected Answer: C
Thus, Option C is the most accurate and effective solution for automating EC2 instance restarts in response to AWS Health notifications, leveraging the combined capabilities of AWS Health, Amazon EventBridge, AWS Lambda, and AWS Systems Manager.
upvoted 1 times
01037
7 months, 2 weeks ago
Why does Lambda have to be involved?
upvoted 2 times
...
...
vortegon
11 months ago
Selected Answer: A
https://docs.aws.amazon.com/health/latest/ug/cloudwatch-events-health.html#automating-instance-actions
upvoted 4 times
...
thanhnv142
11 months ago
A is correct: B: AWS health should be the event source, not system manager C and D: should not use lambda if already have System manager
upvoted 2 times
...
a54b16f
11 months, 2 weeks ago
The system is already using SSM to manage EC2 instances, why would you create another solution and use Lambda ? The maintenance window is added to confuse people. The event is from AWS health and need attention immediately. option A fits perfectly.
upvoted 3 times
...
mehmetsungur
1 year ago
https://docs.aws.amazon.com/health/latest/ug/cloudwatch-events-health.html#automating-instance-actions
upvoted 2 times
...
koenigParas2324
1 year, 1 month ago
Selected Answer: A
Option A appears to be the most suitable: Configuring AWS Health as the event source ensures notifications related to EC2 instances are captured. Targeting a Systems Manager document to restart the EC2 instance aligns with Systems Manager's capabilities for automated tasks like instance restarts. Option B focuses on Systems Manager events related to maintenance windows, which might not directly align with notifications triggered by AWS Health for EC2 instance maintenance.
upvoted 3 times
...
zolthar_z
1 year, 1 month ago
Selected Answer: A
Answer is A, lets breakdown the question. The first part is the DevOps uses system manager for maintenance windows (ok, normal approach) Second part of the question, some EC2 instances requires a restart after AWS Health notification (So, If there is a AWS Health notification the EC2 instance needs a restart), third part of the question, the DevOps should solve the part 2 problem automatically (but it doesn't say when, only a restart is needed), so .. the first part of the question is a catfish, you need to solve the problem automatically an the best way to do it is the A option,
upvoted 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago