Question 1,074 of 1,740
Monitoring and LoggingeasyMultiple ChoiceObjective-mapped

Quick Answer

The answer is Amazon CloudWatch Events (EventBridge), which enables CloudTrail real-time monitoring with EventBridge by allowing you to create a rule that matches specific API calls like StopLogging or UpdateTrail. This is correct because CloudTrail itself logs API activity but cannot natively trigger alerts on its own configuration changes; EventBridge fills that gap by acting as a real-time event bus that evaluates CloudTrail events as they occur and immediately invokes downstream actions such as SNS notifications or Lambda functions. On the AWS Certified DevOps Engineer Professional DOP-C02 exam, this scenario tests your understanding of how to chain AWS services for security monitoring—a common trap is to assume CloudTrail alone provides alerting, but it only delivers logs to S3 or CloudWatch Logs, not real-time reactions. Memory tip: think “Trail changes need a Bridge” — CloudTrail logs the action, EventBridge bridges it to an alert.

DOP-C02 Monitoring and Logging Practice Question

This DOP-C02 practice question tests your understanding of monitoring and logging. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company uses AWS CloudTrail to log API activity in their AWS account. They need to ensure that any changes to CloudTrail configuration itself are detected and alerted upon in real time. Which service should they use?

Question 1easymultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use Amazon CloudWatch Events (EventBridge) to create a rule matching the StopLogging or UpdateTrail API calls.

Amazon CloudWatch Events (EventBridge) can monitor CloudTrail API calls in real time by creating a rule that matches specific API calls such as StopLogging or UpdateTrail. When these calls are made, the rule triggers an action (e.g., SNS notification or Lambda function) to alert administrators immediately. This provides the real-time detection required for changes to CloudTrail configuration itself.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use Amazon CloudWatch Events (EventBridge) to create a rule matching the StopLogging or UpdateTrail API calls.

    Why this is correct

    CloudWatch Events can trigger notifications in real time for specific API calls.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Enable AWS Config rules to monitor CloudTrail configuration changes.

    Why it's wrong here

    AWS Config evaluates changes periodically, not in real time.

  • Use Amazon CloudWatch Logs Insights to query CloudTrail logs for changes.

    Why it's wrong here

    Logs Insights is for querying, not real-time alerting.

  • Enable Amazon GuardDuty to detect changes to CloudTrail.

    Why it's wrong here

    GuardDuty is not designed for CloudTrail configuration monitoring.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse AWS Config (which is for compliance and configuration history) with real-time event-driven alerting, or they think GuardDuty covers all security monitoring, but neither provides the specific real-time API call detection that EventBridge offers.

Detailed technical explanation

How to think about this question

Under the hood, CloudTrail itself logs all API calls to CloudTrail (including StopLogging and UpdateTrail) as management events. By default, these events are delivered to CloudWatch Logs, where EventBridge rules can match the event pattern (e.g., source: 'aws.cloudtrail', detail-type: 'AWS API Call via CloudTrail', detail.eventName: ['StopLogging', 'UpdateTrail']). This enables near-instantaneous alerting via SNS or Lambda, which is critical because an attacker who disables CloudTrail logging would otherwise leave no trace of their actions.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related DOP-C02 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free DOP-C02 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this DOP-C02 question test?

Monitoring and Logging — This question tests Monitoring and Logging — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Use Amazon CloudWatch Events (EventBridge) to create a rule matching the StopLogging or UpdateTrail API calls. — Amazon CloudWatch Events (EventBridge) can monitor CloudTrail API calls in real time by creating a rule that matches specific API calls such as StopLogging or UpdateTrail. When these calls are made, the rule triggers an action (e.g., SNS notification or Lambda function) to alert administrators immediately. This provides the real-time detection required for changes to CloudTrail configuration itself.

What should I do if I get this DOP-C02 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

3 more ways this is tested on DOP-C02

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A company wants to receive a notification when an AWS IAM user creates a new access key. Which AWS service should be used to capture this event and trigger a notification?

easy
  • A.Amazon GuardDuty
  • B.AWS CloudTrail with CloudWatch Events
  • C.Amazon CloudWatch
  • D.AWS Config

Why B: AWS CloudTrail captures API activity, including the CreateAccessKey event when an IAM user creates a new access key. By sending these events to Amazon CloudWatch Events (now part of Amazon EventBridge), you can define a rule that triggers a notification via SNS, Lambda, or other targets. This combination provides the real-time event-driven notification the company requires.

Variation 2. A company uses AWS CloudTrail to log all API calls in their AWS account. They need to ensure that any changes to CloudTrail configuration (such as disabling the trail or modifying the log file validation) are immediately detected and trigger an automated response. Which solution should the DevOps engineer implement?

medium
  • A.Enable Amazon GuardDuty and configure it to monitor CloudTrail logs for suspicious activity.
  • B.Create an Amazon EventBridge rule that matches CloudTrail API calls like StopLogging or UpdateTrail and triggers an SNS topic.
  • C.Use AWS Config rules with remediation actions to detect and revert changes to CloudTrail.
  • D.Use AWS Trusted Advisor to check CloudTrail configuration and send alerts via email.

Why B: Option D is correct because CloudTrail itself logs changes to its configuration, so a CloudWatch Events (now Amazon EventBridge) rule can be created to match API calls that modify CloudTrail (e.g., StopLogging, UpdateTrail) and trigger an SNS notification or Lambda for automated response. Option A is wrong because Config rules can detect configuration drift but are not real-time. Option B is wrong because GuardDuty focuses on security threats, not CloudTrail configuration changes. Option C is wrong because Trusted Advisor does not monitor CloudTrail changes.

Variation 3. A DevOps team needs to monitor failed API calls in their AWS account. They want to receive notifications when specific IAM actions, such as DeleteBucket, fail. Which service should they use?

medium
  • A.AWS CloudTrail and Amazon EventBridge.
  • B.AWS Config rules.
  • C.Amazon S3 server access logs.
  • D.CloudWatch Logs and metric filters.

Why A: Option D is correct because CloudTrail logs API calls, and CloudWatch Events (now Amazon EventBridge) can be used to create rules that match specific API calls and trigger notifications. Option A is wrong because CloudWatch does not directly capture API calls. Option B is wrong because Config monitors resource configuration, not API calls. Option C is wrong because S3 access logs are for object-level operations.

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This DOP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DOP-C02 exam.