DOP-C02 Domain 4: Monitoring, Logging, and Incident Response

JSON logs on EC2 include PII. A third party must troubleshoot application events without PII and without SSH to production. Which solution is MOST cost-effective?

Multiple choice — select one answer

Answer choices

  1. a. CodePipeline CloudWatch events and notifications
  2. b. CloudWatch agent directly to Amazon Data Firehose; Lambda transformation drops non-event lines; deliver to S3. (not recommended for production workloads)
  3. c. Central syslog on EC2; AWS Batch copies filtered logs to Amazon S3 once per day. (not recommended for production workloads)
  4. d. CloudWatch agent to CloudWatch Logs; subscription filter and Lambda write only application events to Amazon S3; grant the vendor S3 access.

Architectural breakdown & explanation

Subscription filters can strip PII; S3 is cost-effective for episodic vendor review without always-on search infrastructure.

Correct answer(s): d. CloudWatch agent to CloudWatch Logs; subscription filter and Lambda write only application events to Amazon S3; grant the vendor S3 access.

Exam domain: Domain 4: Monitoring, Logging, and Incident Response (18% weight on the official guide).

Official documentation & study links

Practice this certification

This page is one question from the AWS Certified DevOps Engineer – Professional bank. Run a full timed practice exam with domain-weighted random questions in your browser.