Courseiva
Incident and Event ResponseeasyMultiple ChoiceObjective-mapped

DOP-C02 Incident and Event Response Practice Question

A DevOps engineer receives an alert that an Amazon S3 bucket has become publicly accessible. The engineer needs to identify who made the bucket public. Which AWS service should the engineer use to find the API call that changed the bucket policy?

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

AWS CloudTrail

CloudTrail records all S3 API calls, including bucket policy changes. Option A is wrong because CloudWatch monitors metrics. Option C is wrong because Config records configuration changes but not the identity. Option D is wrong because GuardDuty detects threats but doesn't log API calls.

Answer analysis

Option-by-option breakdown

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

  • Amazon CloudWatch Logs

    Why it's wrong here

    Amazon CloudWatch Logs is not the correct service because it serves as a centralized log ingestion and monitoring platform for application logs, system logs, and custom metrics, not as an API activity tracker. Although S3 server access logs can be streamed into CloudWatch Logs, those record client requests to objects (like GET/PUT) and lack the IAM principal identity, source IP, and full request parameters that are needed to determine who performed an administrative API action such as deleting a bucket or modifying its policy. An audit trail of management-plane calls requires CloudTrail, not CloudWatch Logs.

  • AWS CloudTrail

    Why this is correct

    AWS CloudTrail is the correct answer because it provides a complete audit history of API activity across AWS, including actions performed on S3 buckets such as CreateBucket, PutBucketPolicy, and DeleteBucket. For every management event, CloudTrail captures the IAM user or role, the source IP address, the request parameters, and the response returned, enabling you to answer exactly who did what and when. CloudTrail can also be configured to log data events for object-level S3 operations (GetObject, PutObject) for deeper forensic analysis.

  • AWS Config

    Why it's wrong here

    AWS Config is incorrect because it focuses on recording resource configuration changes and maintaining a chronological history of those configurations, such as the previous and new values of an S3 bucket policy. While Config can detect that a change occurred and even create a configuration item, it does not attribute that change to a specific IAM principal; the identity information is only available in the CloudTrail event that accompanies the change. Config is a configuration management and compliance tool, not an API call logger.

  • Amazon GuardDuty

    Why it's wrong here

    Amazon GuardDuty is incorrect because it is a threat detection service that uses existing log sources, including CloudTrail event history, VPC Flow Logs, and DNS logs, to identify malicious activity and anomalies. It does not generate its own API call audit log; rather, it consumes CloudTrail data and provides findings when it detects unusual behavior, such as a user accessing an S3 bucket from an anomalous location. To retrieve a definitive record of who performed a specific API action, you would still need to query CloudTrail directly, not GuardDuty.

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

One of 251 original DOP-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.