Courseiva
Security Logging and MonitoringmediumMultiple ChoiceObjective-mapped

SCS-C02 Security Logging and Monitoring Practice Question

A company uses AWS CloudTrail to log API activity across multiple accounts. The security team wants to ensure that any S3 bucket created with public read access is detected within minutes. Which solution is MOST efficient?

⚠ Common exam trap

Test-takers frequently choose AWS Config rules (Option B) because they associate Config with compliance checks, but they overlook the latency of Config evaluations versus the near-real-time capability of EventBridge for API-driven detection.

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

Create an Amazon EventBridge rule that matches CloudTrail CreateBucket API calls and triggers a Lambda function that inspects the bucket's public access settings and alerts if public.

It uses an Amazon EventBridge rule to capture the CloudTrail `CreateBucket` API call in near real-time, then triggers a Lambda function to immediately inspect the bucket's public access settings. This approach detects public buckets within minutes without polling or batch processing, making it the most efficient solution for the stated requirement.

Answer analysis

Option-by-option breakdown

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

  • Create an Amazon EventBridge rule that matches CloudTrail CreateBucket API calls and triggers a Lambda function that inspects the bucket's public access settings and alerts if public.

    Why this is correct

    An EventBridge rule can pattern-match CloudTrail API events as they are emitted, meaning a CreateBucket call with a public access configuration triggers the Lambda function within seconds of the API completing. The Lambda can then use GetPublicAccessBlock, GetBucketPolicyStatus, or GetBucketAcl to determine whether the bucket is actually public and immediately alert a security team, making this the only option that combines near-real-time detection with direct inspection of the resulting bucket configuration.

  • Use AWS Config rules to check S3 bucket public access settings and trigger an AWS Lambda function to send alerts.

    Why it's wrong here

    AWS Config rules evaluate resources on a continuous basis, but the evaluation cadence is either periodic (default 24 hours) or triggered by configuration changes recorded by AWS Config, which can take several minutes to be processed. Even with a change-triggered rule, there is no guarantee that the alert fires within minutes of the original CreateBucket API call, and AWS Config does not directly act on CloudTrail events, so this approach introduces unacceptable latency for a real-time security alerting requirement.

  • Use S3 server access logs and run a daily script to parse the logs for PutBucketAcl actions.

    Why it's wrong here

    S3 server access logs are best-effort and often delivered with significant delay (sometimes hours), and they record low-level request details on the bucket itself rather than AWS API activity in CloudTrail. Running a daily script to parse these logs for PutBucketAcl actions means that a newly public bucket could remain exposed for up to a day before detection, and the log delivery itself may be incomplete or delayed, making this option both slow and unreliable for immediate alerting.

  • Enable CloudTrail log file validation and use Athena to query logs hourly for CreateBucket events with public ACLs.

    Why it's wrong here

    CloudTrail log file validation is a cryptographic integrity mechanism that verifies log files were not modified; it has nothing to do with detecting events or triggering workflow. While Athena can query CloudTrail logs stored in S3, CloudTrail logs are typically delivered every 5 minutes or longer, and running a query hourly means a bucket could be publicly accessible for up to 60 minutes before an alert is generated, which fails the near-real-time requirement of the scenario.

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 SCS-C02 question is part of Courseiva's 376-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 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.