Let’s Get Certified
Module 12 / 20 · Monitoring and logging

Keep telemetry usable across accounts

Match each signal to a collection path, retention policy and query.

Keep telemetry usable across accounts

A service emits application logs, request metrics and administrative events for different questions. Collect guest memory and custom log files with the CloudWatch agent or a supported integration. Give the collector scoped publishing permissions. Include revision, account, Region and correlation ID in structured records while excluding secrets. Avoid unique request IDs as metric dimensions because each dimension combination creates another time series.

Use subscriptions to stream matching log events for downstream processing. Set retention by log group and keep required long-lived records in a controlled archive. Validate delivery from a known event through the central destination. Cross-account visibility into telemetry and a durable central copy solve different requirements.

Worked case 1

An engineer adds individual order IDs as metric dimensions to find one failed order. What should change?

Check your reasoning

Put the order correlation field in structured logs and use bounded dimensions such as service and operation on the metric.

Worked case 2

A central dashboard displays metrics, but audit staff need retained original events. What should be verified?

Check your reasoning

Trace delivery to the archive, its retention and access controls. Visibility in a dashboard alone does not establish a retained copy.

CloudWatch Logs subscriptions

Official DOP-C02 skills for this topic

Related lesson in AWS Certified Developer – Associate. Instrument the service boundary.

Practice with the recording

A log subscription sends events to a central destination, but only one account’s messages arrive with unusable timestamps. How can you isolate the fault?

Check your reasoning

Submit a time-stamped synthetic event and compare the application timestamp, ingestion timestamp and destination record. Inspect the source agent’s parser and time zone before changing the cross-account subscription. Retain the original event while validating the fix.

sthithapragna · DOP-C02 full course · 4:20:26

Knowledge check

Keep telemetry usable across accounts quiz

Answer 3 questions. Check each answer for an explanation.