Courseiva
Monitoring and LoggingmediumMultiple ChoiceObjective-mapped

DOP-C02 Monitoring and Logging Practice Question

A company uses AWS CloudTrail to log API activity across multiple accounts. The security team needs to ensure that all CloudTrail logs are delivered to a centralized S3 bucket in the audit account, and that any log file validation failures trigger an immediate notification. What should the engineer do to meet this requirement?

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

Enable CloudTrail log file validation and create a CloudWatch alarm on the DigestDeliveryFailed metric

Enabling CloudTrail log file validation triggers the generation of digest files that contain hash values for verifying log file integrity. CloudTrail also emits the DigestDeliveryFailed metric to CloudWatch when a digest file delivery fails. Creating a CloudWatch alarm on this metric allows you to send immediate notifications via SNS when a validation failure occurs. Option B (Lambda function) is unnecessary because CloudTrail already provides the necessary metrics for this alerting. Option C (SNS notifications for all events) would generate excessive notifications and does not directly address log file validation failures. Option D (CloudWatch Logs and metric filter) is not the standard approach; CloudTrail directly emits the DigestDeliveryFailed metric, which is simpler and more reliable.

Answer analysis

Option-by-option breakdown

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

  • Enable CloudTrail log file validation and create a CloudWatch alarm on the DigestDeliveryFailed metric

    Why this is correct

    CloudTrail's built-in log file validation creates hash-chained digest files that are digitally signed with a private key, and you can verify them with the public key published by AWS. The CloudTrail service emits the DigestDeliveryFailed metric to CloudWatch when it cannot deliver a digest file, which is often the first sign of tampering or a delivery problem. Creating a CloudWatch alarm on this metric gives you immediate, proactive notification without building custom code.

  • Create a Lambda function that checks the integrity of logs and publishes to SNS

    Why it's wrong here

    Writing a Lambda function to verify log integrity is an anti-pattern here because CloudTrail already ships native, cryptographically signed digest files for validation, so you would be duplicating functionality at significant cost and complexity. You would need to implement the digest verification algorithm, securely manage AWS's public key, and then publish to SNS yourself, all of which introduces risk of errors. Additionally, a Lambda cannot natively monitor for digest delivery failures from CloudTrail, so a critical part of the detection loop would still require extra work.

  • Configure CloudTrail to deliver logs to the S3 bucket and enable SNS notifications for all events

    Why it's wrong here

    CloudTrail does write log files to S3, but it does not natively publish SNS notifications for every API event; SNS integration requires a separate bucket event notification, and those notifications simply indicate object creation, not integrity or validation status. Enabling SNS for all events would generate a high volume of noisy messages that give you no information about log authenticity or tampering. The correct built-in mechanism to be alerted on validation problems is the CloudTrail CloudWatch metric, not SNS for raw events.

  • Send CloudTrail logs to CloudWatch Logs and create a metric filter for validation errors

    Why it's wrong here

    While CloudTrail can stream events to CloudWatch Logs, log file validation operates entirely on the S3 digest files and is completely independent of the CloudWatch Logs delivery path. The validation outcome is not recorded as a field or message within the log events, so a metric filter would have nothing to match; there are no 'validation error' entries to filter on. Even if you filtered for something else, you would still be missing the actual alerting mechanism: the DigestDeliveryFailed metric emitted by CloudTrail.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

This DOP-C02 question is part of Courseiva's 1,013-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.