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

The security team depends on AWS CloudTrail to detect sensitive security issues in the company’s AWS account. The DevOps engineer needs a solution to auto-remediate CloudTrail being turned off in an AWS account.

What solution ensures the LEAST amount of downtime for the CloudTrail log deliveries?

  • A. Create an Amazon EventBridge rule for the CloudTrail StopLogging event. Create an AWS Lambda function that uses the AWS SDK to call StartLogging on the ARN of the resource in which StopLogging was called. Add the Lambda function ARN as a target to the EventBridge rule.
  • B. Deploy the AWS-managed CloudTrail-enabled AWS Config rule, set with a periodic interval of 1 hour. Create an Amazon EventBridge rule for AWS Config rules compliance change. Create an AWS Lambda function that uses the AWS SDK to call StartLogging on the ARN of the resource in which StopLogging was called. Add the Lambda function ARN as a target to the EventBridge rule.
  • C. Create an Amazon EventBridge rule for a scheduled event every 5 minutes. Create an AWS Lambda function that uses the AWS SDK to call StartLogging on a CloudTrail trail in the AWS account. Add the Lambda function ARN as a target to the EventBridge rule.
  • D. Launch a t2.nano instance with a script running every 5 minutes that uses the AWS SDK to query CloudTrail in the current account. If the CloudTrail trail is disabled, have the script re-enable the trail.
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
rhinozD
Highly Voted 1 year, 4 months ago
Selected Answer: A
A. old but gold link: https://aws.amazon.com/blogs/mt/monitor-changes-and-auto-enable-logging-in-aws-cloudtrail/
upvoted 15 times
daburahjail
1 year, 1 month ago
Good job, buddy
upvoted 2 times
...
...
c3518fc
Most Recent 6 months, 1 week ago
Selected Answer: A
This solution ensures the least amount of downtime for CloudTrail log deliveries when auto-remediating CloudTrail being turned off. Here's why: Event-Driven Automation: By creating an Amazon EventBridge rule for the CloudTrail StopLogging event, the remediation process is triggered immediately when CloudTrail logging is stopped, minimizing the downtime. Targeted Remediation: The Lambda function uses the AWS SDK to call StartLogging on the specific CloudTrail trail ARN where the StopLogging event occurred. This targeted approach ensures that logging is re-enabled for the affected trail without impacting other trails or introducing unnecessary overhead. Low Latency: EventBridge rules and Lambda functions are designed to be highly responsive, ensuring that the remediation action is initiated with minimal delay after the StopLogging event occurs.
upvoted 2 times
...
WhyIronMan
6 months, 3 weeks ago
Selected Answer: A
A. is correct Details are everything during an investigation
upvoted 1 times
...
thanhnv142
8 months, 3 weeks ago
A is correct: <The DevOps engineer needs a solution to auto-remediate CloudTrail being turned off> means we should turn on it again if we detect that it is turn-off. AWS config rule or Eventbridge would be considered. < the LEAST amount of downtime> means we should choose A because this minimizes downtime B: this option utilizes an AWS config rule, which is good. But it sets the rule with a periodic interval of 1 hours, which would introduce a lot of downtime C: this option utilizes evenbridge, but the event to trigger eventbridge is undetermined D: Should not use a custom script to do the task
upvoted 2 times
...
HugoFM
11 months ago
Selected Answer: A
A its quicker and the solution is asking for the leeast amount of downtime
upvoted 2 times
...
YR4591
12 months ago
Selected Answer: A
"LEAST amount of downtime" = A cloudwatch event is near real time. Al the other options are not.
upvoted 1 times
...
RVivek
1 year, 1 month ago
Selected Answer: A
Both A and B will work. However the question mentions leatst Cloutrial down time. Option A is correct beacuse the remiation is triggred immeiately . Option B can be delayed a it uns once in ever hour
upvoted 1 times
...
Seoyong
1 year, 2 months ago
I don't think stoplogging is CloudTrail being turned off. You can stop logging anytime - https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-turning-off-logging.html But it doesn't means CloudTrail being turned off
upvoted 1 times
...
Seoyong
1 year, 2 months ago
Selected Answer: B
cloudtrail-enabled rule will check CloudTrail being turned off.
upvoted 1 times
WhyIronMan
6 months, 3 weeks ago
Please notice that the question says "LEAST amount of downtime" while B is possible it says "set with a periodic interval of 1 hour." which can basically take 1h to enable CloudTrail again with causes a lot of downtime
upvoted 2 times
...
...
OrganizedChaos25
1 year, 5 months ago
I got A as my answer
upvoted 2 times
...
Mail1964
1 year, 5 months ago
The requirement is - What solution ensures the LEAST amount of downtime for the CloudTrail log deliveries? For me that means reacting to AWS events. AWS config rule with 1 hr schedule does not meet the criteria in my opinion.
upvoted 2 times
...
2pk
1 year, 5 months ago
Selected Answer: A
Answer A, This solution is the most appropriate as it listens to the StopLogging event and automatically starts logging immediately. This approach eliminates the need to wait for a scheduled interval, thereby reducing the amount of downtime and ensuring the security team can detect security issues in real-time. Option B is incorrect as it uses AWS Config rules to detect CloudTrail stoppage, which might not be an immediate solution to this issue
upvoted 3 times
...
devnv
1 year, 5 months ago
A is the right answer
upvoted 2 times
...
ParagSanyashiv
1 year, 5 months ago
Selected Answer: A
A is correct.
upvoted 2 times
...
Jeanphi72
1 year, 5 months ago
Selected Answer: B
B for me
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago