Courseiva
Security Logging and MonitoringhardMultiple ChoiceObjective-mapped

SCS-C02 Security Logging and Monitoring Practice Question

A company has enabled AWS CloudTrail in all accounts and regions, with log file validation enabled. The security team needs to verify that a specific log file has not been modified since it was delivered. Which action should be taken?

⚠ Common exam trap

Many exam-takers confuse data integrity verification (hash comparison) with data protection mechanisms like encryption or object lock, which prevent or obscure modification but do not prove that a file has remained unchanged since its creation.

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 the AWS CLI `validate-logs` command with the digest file from the S3 bucket.

CloudTrail log file validation creates a hash of each log file and stores it in a digest file. To verify that a specific log file has not been altered since delivery, you must use the AWS CLI `validate-logs` command, which compares the hash in the digest file against the current hash of the log file. This command also validates the digital signature of the digest file itself, ensuring end-to-end integrity.

Answer analysis

Option-by-option breakdown

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

  • Query the log files using Amazon CloudWatch Logs Insights.

    Why it's wrong here

    CloudWatch Logs Insights is a query engine that analyzes structured log data ingested into CloudWatch Logs; it cannot access the CloudTrail digest files stored in S3, nor does it compute or compare cryptographic hashes across log files. Because integrity validation relies on verifying a digital signature and content hash from a digest file, using a log query tool is irrelevant to that purpose and cannot detect tampering. Even if CloudTrail is configured to stream events to CloudWatch Logs, Insights only searches event text—it has no mechanism to validate the chain of custody or authenticity of the S3 objects.

  • Enable S3 server-side encryption with AWS KMS (SSE-KMS) on the CloudTrail bucket.

    Why it's wrong here

    Enabling SSE-KMS encrypts objects at rest, protecting the confidentiality of the log data from unauthorized read access, but it does not provide any integrity checks. Integrity verification requires a trustworthy hash of the object's content (like SHA-256) plus a digital signature to prove the hash hasn't been altered; encryption alone does not prevent a privileged party from rewriting log objects before or after encryption. Furthermore, SSE-KMS manages keys but does not offer a per-object tamper-evident digest, so this control addresses a different security objective entirely.

  • Enable S3 Object Lock on the bucket to prevent modifications.

    Why it's wrong here

    S3 Object Lock enforces retention policies to prevent object deletion or modification, typically for governance or compliance requirements, but it cannot prove an object was unmodified at the time of locking. Any integrity verification must compare the current object content against a trusted baseline—for CloudTrail this baseline is the SHA-256 hash embedded in a separate digest file and signed by AWS's public key. Object Lock only prevents writes after the lock is applied; it does not validate whether the log file matches the expected hash or whether the file was tampered with before the lock became active.

  • Use the AWS CLI `validate-logs` command with the digest file from the S3 bucket.

    Why this is correct

    The `aws cloudtrail validate-logs` command implements CloudTrail's integrity validation by reading the digest files delivered to the S3 bucket. Each digest file contains the SHA-256 hash of the log files and a digital signature generated with AWS's private key; the CLI retrieves the corresponding public key from AWS, verifies the signature, and then recomputes the hash of each log file to compare against the digest. This process cryptographically confirms that log files were not altered or removed during delivery, providing a tamper-evident chain from the moment CloudTrail wrote the file.

About these practice questions

Courseiva writes every SCS-C02 question from scratch — 376 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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 SCS-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 SCS-C02 exam.