‹ All DOP-C02 questions

DOP-C02 Practice Question 7: Cross Account Log Centralization

AWS Certified DevOps Engineer – Professional (DOP-C02) · Test 1 · question 7 of 10

Monitoring and Loggingmedium

Forty application accounts each write structured application logs to CloudWatch Logs. A central Security account must receive a continuous, near-real-time copy of every ERROR-level log event from all forty accounts and land it in one Amazon S3 bucket for long-term analysis. The solution must not require a scheduled job, must not require the Security account to hold credentials in the application accounts, and must let the Security team revoke a single account's access without touching the other thirty-nine.

Which design meets these requirements?

Select one answer
Show answer and explanation

Answer:

  • A. In the Security account, create an Amazon Data Firehose delivery stream to the S3 bucket and a CloudWatch Logs destination that wraps it, with a destination access policy naming the application accounts; in each application account, create a subscription filter on the log group with an ERROR filter pattern that points at that destination ARN

This is the standard cross-account log data sharing pattern. The recipient account creates a CloudWatch Logs *destination* (PutDestination) that encapsulates the delivery stream, and attaches a *destination access policy* (PutDestinationPolicy) listing which sender accounts may call PutSubscriptionFilter against it. Each sender account then creates a subscription filter on its log group, using the destination ARN as the target and a filter pattern so only ERROR events are shipped. Delivery is event-driven and continuous, so there is no scheduled job; the trust lives in a resource policy in the Security account, so no cross-account credentials are handed out; and revoking one account is a single edit to that destination policy, which is what the last constraint is testing. Note that the log group and the destination must be in the same Region, though Firehose can deliver onward to a bucket elsewhere.

Option B misunderstands what EventBridge carries. CloudWatch Logs does not emit log events to EventBridge (EventBridge sees API and service *events*, not the contents of log streams), so there is nothing for the rule to match. EventBridge also has no native S3 delivery target of the kind described.

Option C works but violates two explicit constraints: it is a polling job on a schedule, and it requires cross-account role assumption managed across forty accounts. Repeatedly calling FilterLogEvents at scale is also throttle-prone and lossy compared to subscription delivery.

Option D fails the near-real-time requirement outright. CreateExportTask is a batch operation, one task at a time per account, unsuitable for continuous delivery, and it cannot target a bucket on an hourly automatic schedule without additional orchestration. Filtering after the fact with Object Lambda also means every non-ERROR event is still stored and paid for.

Reference: Cross-account cross-Region log data sharing using Firehose

Practice Test 1 ›

Study guides for DOP-C02

AWS Service Control Policies Explained: SCPs and DenialsAWS service control policies explained: how SCPs cap permissions, why admins still get access denied, inheritance, deny vs allow lists and the exam traps.
How AI Is Changing Software Jobs: Where to PrepareHow AI is changing software jobs: what history shows, the evidence on junior developers, what Klarna learned, new AI roles and five domains to prepare for.
How AWS Certification Exams Work: Scoring and RenewalHow AWS certification exams work: levels, booking, question types, unscored questions, scaled scores, pass marks, validity and how recertification works.
What Is Amazon RDS? Multi-AZ, Read Replicas and BackupsWhat is Amazon RDS? Engines, Multi-AZ, read replicas, backups, RDS Proxy, Aurora and pricing explained, with the traps that AWS exams set around each one.
Best DevOps certification: AWS, Azure, Google or CKAThe best DevOps certification for your stack: AWS DOP-C02, Azure AZ-400, Google Cloud DevOps Engineer and CKA compared on cost, level and prerequisites.
What Is AWS Lambda? Triggers, Concurrency and Cold StartsWhat is AWS Lambda? How functions run, cold starts, triggers vs event source mappings, concurrency, layers, aliases, pricing and the exam traps.
AWS CloudOps Engineer Associate (SOA-C03) exam guideAWS Certified CloudOps Engineer – Associate (SOA-C03) replaced SysOps Administrator. Format, cost, the five domains, what changed and how to prepare.
Which AWS certification should you get? 2026 roadmapWhich AWS certification to get first, by role and experience, with each exam's status in October 2026, what is changing, and prices in USD and INR.
What Is Amazon EC2? Instances, AMIs, EBS and Auto ScalingAmazon EC2 explained: instances, AMIs, instance types, security groups, EBS, Auto Scaling groups and pricing options, with the traps AWS exams set.
SQS vs SNS vs EventBridge on AWSWhen to use an SQS queue, an SNS topic or an EventBridge bus, plus fan-out, FIFO ordering, visibility timeouts and dead-letter queues for AWS exams.