Skip to content
AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep

Lesson 4 of 6 · 12 min

x
4/6

Monitoring and Logging (15%)

Video lesson: DOP-C02 Domain 4: Monitoring and Logging

Domain 4 is 15% of the scored content of the AWS Certified DevOps Engineer – Professional (DOP-C02) exam. AWS facts were checked against current AWS documentation in November 2026.

TaskStatement
4.1Configure the collection, aggregation, and storage of logs and metrics
4.2Audit, monitor, and analyze logs and metrics to detect issues
4.3Automate monitoring and event management of complex environments

Overview

Domain 4: Monitoring and Logging AWS Certified DevOps Engineer – Professional (DOP-C02): collect, analyze and automate on telemetry

Welcome to Domain 4 of the AWS Certified DevOps Engineer Professional exam, DOP-C02: Monitoring and Logging. It is 15 percent of the scored content, about 10 of the 65 scored questions.

Task 4.1 is collecting, aggregating and storing logs and metrics: CloudWatch metrics and the agent, log retention and encryption, subscriptions and metric streams.

Task 4.2 is auditing and analyzing: anomaly detection, Logs Insights and Athena, tracing, Config rules, CloudTrail and dashboards.

Task 4.3 is automating monitoring and events: EventBridge and S3 events, alarm actions, health checks, auto scaling and agent deployment.

For tracing, OpenTelemetry is now the path: the X-Ray S D Ks are in maintenance mode.

Telemetry is sensitive data: encrypt it and limit who collects and reads it.

The key: every important signal should trigger an alarm, an event or an automated fix.

Exam key takeaway: Domain 4 tests collecting telemetry securely, streaming and storing it at the right cost, analyzing it to find issues, and wiring alarms and events to automatic actions.

4.1 Configure the collection, aggregation, and storage of logs and metrics

Collecting Metrics Task 4.1 · Namespaces, dimensions, resolution and custom metrics

ConceptDetailExam Angle
Namespace, name, dimensionsA metric is identified by all threeAlarm dimensions must match exactly
ResolutionStandard 1 minute; high resolution to 1 secondHigh-resolution alarms at 10 s
CloudWatch agentMemory, disk, processes, logs; on-prem tooConfig in Parameter Store, installed via SSM
Custom metricsPutMetricData or embedded metric formatEMF: metrics inside structured logs
Container and PrometheusContainer Insights; Managed PrometheusGrafana dashboards on top
Metric streamsNear real-time export via Data FirehoseTo S3 or third-party tools

Task 4.1 starts with metrics. A CloudWatch metric is identified by its namespace, name and dimensions, so an alarm must use exactly the same dimensions.

Standard resolution is one minute; high-resolution custom metrics go down to one second, with alarms every ten seconds.

The CloudWatch agent adds memory, disk and process metrics and log files, on EC2 and on premises, configured from Parameter Store and installed with Systems Manager.

Applications publish custom metrics with PutMetricData, or with the embedded metric format inside structured logs.

Container Insights covers E C S and E K S, and Amazon Managed Service for Prometheus stores Prometheus metrics, visualized in Amazon Managed Grafana.

Metric streams export metrics continuously through Amazon Data Firehose to S3 or third-party monitoring tools.

Exam key takeaway: Match namespace and dimensions, use high resolution when seconds matter, add memory and disk with the agent, publish custom or EMF metrics, use Container Insights and Prometheus, stream metrics out.

Log Pipelines and Storage Task 4.1 · Ingest, route, protect and age logs

  • Log groups: Task 4.1 continues with logs. Set retention on every log group, and use the Infrequent Access log class for logs you rarely query.
  • Metric filters: Metric filters turn log patterns, such as error lines, into metrics you can alarm on.
  • Subscription filters: Subscription filters stream logs in near real time to Kinesis Data Streams, Data Firehose, Lambda or OpenSearch, including account-level and cross-account destinations.
  • Encryption: Encrypt log groups with a K M S key whose key policy allows the CloudWatch Logs service principal; data in transit uses T L S.
  • Long-term storage: For long-term storage, deliver logs to S3 through Firehose and age them with lifecycle rules to Glacier storage classes.
  • Collection permissions: Collectors need permissions: an instance profile with the CloudWatch agent policy, and destination policies that let other accounts send logs.

Exam key takeaway: Set retention and log classes, convert patterns with metric filters, stream with subscriptions, encrypt with KMS, archive to S3 with lifecycle, and grant collectors least privilege.

4.2 Audit, monitor, and analyze logs and metrics to detect issues

Analyzing Logs and Metrics Task 4.2 · Pick the analysis tool for the question

QuestionToolNote
Is this metric abnormal for the time of day?CloudWatch anomaly detectionLearns patterns and seasonality
What do the last hour's logs show?CloudWatch Logs InsightsQuery, aggregate, visualize
What happened in months of logs in S3?Amazon AthenaSQL over partitioned data
Where is the request slow?AWS X-Ray traces via ADOTService map, segments, annotations
Who changed this resource?CloudTrail and Config historyAPI caller; configuration timeline
Streaming analysis right now?Kinesis Data Streams consumersReal-time processing of logs

Task 4.2 is analysis. To ask whether a metric is abnormal for the time of day, use an anomaly detection alarm.

To query recent logs, use CloudWatch Logs Insights, which also has pattern analysis and log anomaly detection.

To query months of logs in S3, such as CloudTrail or load balancer logs, use Athena over partitioned data.

To find where a request is slow, use distributed tracing with X-Ray, instrumented with the A W S Distro for OpenTelemetry, for E C S, E K S, A P I Gateway and Lambda.

To find who changed a resource, use CloudTrail for the A P I call and Config for the configuration timeline.

For real-time analysis of log streams, use Kinesis Data Streams with Lambda or other consumers.

Exam key takeaway: Anomaly detection for unusual metrics, Logs Insights for recent logs, Athena for archives, X-Ray with ADOT for latency, CloudTrail and Config for changes, Kinesis for live streams.

Detecting Issues and Visualizing Task 4.2 · Common signals, alarms and dashboards

  • Common metrics: Know the common signals: EC2 C P U, load balancer five hundred errors, queue backlog, database connections and Lambda errors and throttles.
  • Alarms: Alarms can use static thresholds, anomaly bands, metric math or composite logic, tuned with M out of N datapoints and missing-data treatment.
  • AWS Config rules: AWS Config rules evaluate resource configuration continuously and can remediate noncompliance.
  • Amazon Inspector: Amazon Inspector scans EC2, container images and Lambda continuously; the assessment templates in the guide belonged to Inspector Classic, retired in May 2026.
  • Dashboards: CloudWatch dashboards combine metrics and alarms across accounts and Regions, and Quick Sight, now part of Amazon Quick Suite, builds business visualizations.
  • Application Signals: CloudWatch Application Signals adds service maps and S L Os, alongside Synthetics canaries and real user monitoring.

Exam key takeaway: Know common signals, choose the right alarm type and tuning, evaluate with Config, scan with current Inspector, build cross-account dashboards and Quick Sight views, and track SLOs.

4.3 Automate monitoring and event management of complex environments

Automating Monitoring and Events Task 4.3 · From a signal to an action

SignalRouteAction
CloudWatch alarmAlarm actions or EventBridgeSNS, Lambda, EC2 recover, scaling
AWS service eventEventBridge rule with a patternLambda, SSM Automation, Step Functions
New log file in S3S3 Event Notification or EventBridgeLambda loads it to OpenSearch or Logs
Unhealthy targetALB target group or Route 53 checkStop traffic; Auto Scaling replaces
Noncompliant resourceAWS Config ruleAutomatic remediation runbook
New instance without agentsState Manager associationInstalls SSM and CloudWatch agents

Task 4.3 is automation. Alarms act directly, notifying S N S, scaling, or recovering an EC2 instance, or through EventBridge to Lambda and runbooks.

Service events, such as instance state changes, match EventBridge rule patterns and invoke Lambda, Automation runbooks or Step Functions.

A new log file in S3 triggers an event that runs Lambda to process it or deliver it to OpenSearch or CloudWatch Logs.

Health checks on load balancer target groups and Route 53 stop traffic to unhealthy targets, and Auto Scaling replaces them.

A noncompliant resource triggers a Config rule with an automatic remediation runbook.

A new instance without agents gets them from a State Manager association that installs and configures the S S M and CloudWatch agents.

Exam key takeaway: Alarms act directly or via EventBridge, service events trigger runbooks, S3 events process logs, health checks drive replacement, Config remediates, and State Manager installs agents.

Review

Exam Distractors: What to Reject Answers that miss data, cost too much, or never act

  1. Detailed monitoring to get memory metrics. The CloudWatch agent.
  2. Never-expire retention on every log group. Retention plus S3 archive.
  3. A static threshold for a strongly daily pattern. Anomaly detection alarm.
  4. New tracing built on the X-Ray SDK. OpenTelemetry with ADOT.
  5. Inspector assessment templates for new scans. Current Inspector, continuous scanning.
  6. A dashboard someone watches to catch failures. Alarms and events that act.

Exam key takeaway: Reject detailed monitoring for memory, never-expire retention, static thresholds for daily patterns, X-Ray SDKs for new code, Inspector Classic templates, and dashboards as alerting.

Where current AWS differs from the exam guide

  • Amazon Inspector Classic, whose "assessment templates" skill 4.2 names, reached end of support on May 20, 2026; current Inspector scans continuously.
  • The AWS X-Ray SDKs and daemon are in maintenance mode since February 25, 2026; use OpenTelemetry.
  • Amazon Kinesis Data Firehose is now Amazon Data Firehose, and QuickSight is part of Amazon Quick Suite.

References

  1. AWS Certified DevOps Engineer – Professional exam page — checked Nov 30, 2026

Check your understanding

  • Stream all logs from 30 accounts to one Kinesis stream.Show answer

    Answer

    Cross-account subscription destination.
  • Count ERROR lines and alarm above 50 per minute.Show answer

    Answer

    Metric filter and alarm.
  • Send all metrics to a third-party tool in near real time.Show answer

    Answer

    CloudWatch metric streams.
  • Query a year of ALB access logs in S3 with SQL.Show answer

    Answer

    Amazon Athena.
  • Encrypt a log group with the team's own key.Show answer

    Answer

    KMS key with a logs key policy.
Previous

Progress is saved in this browser.

Next Lesson