Amazon DEA-C01: Data Pipeline Monitoring and Troubleshooting — Study Guide

Part of the Amazon Data Engineer Associate DEA-C01 — Study Guide. Practice with verified answers in the Amazon exam hub, or take timed practice tests on ExamRoll.io.

Data pipeline monitoring and troubleshooting is critical to ensure timely, accurate delivery of streaming and batch data across AWS. This domain covers the telemetry, alerting, and diagnostic techniques for services like Kinesis, Firehose, Glue, DMS, Lambda, and the AWS audit trails that support incident investigation. Effective monitoring reduces Mean Time To Detect/Recover by exposing consumer lag, job resource pressure, delivery latency, and unauthorized access. The following sections give concrete signals, CLI/console patterns, and decision criteria to operate and remediate production data flows.

CloudWatch metrics and alarms for data services

CloudWatch is the primary telemetry plane: create metric filters, dashboards, and alarms for key service metrics and integrate alarms with SNS, EventBridge, or Systems Manager for automated remediation. Use aws cloudwatch put-metric-alarm to create alarms programmatically; typical flags include –metric-name, –namespace, –statistic (or –extended-stat), –threshold, –evaluation-periods, and –comparison-operator. For dashboards, push custom metrics (e.g., from Glue job metadata) using aws cloudwatch put-metric-data with a namespace like “MyCompany/DataPipeline”.

Focus on these actionable metrics and patterns:

Decision criteria for alerting:

Glue job monitoring and error handling

Glue emits metrics to CloudWatch and writes logs to /aws-glue/jobs/output (job run logs) and /aws-glue/jobs/error (errors). Use CloudWatch Logs Insights to query job runs: run queries via console or aws logs start-query with a query string such as fields @timestamp, @message | filter @message like /ERROR/ | sort @timestamp desc | limit 20. Track BytesRead, BytesWritten, RecordsProcessed, and DPUHrs from the Glue job run metrics—DPUHrs correlates directly to cost and job parallelism.

Common Glue failure modes and remediation:

Decision trade-offs:

Kinesis and Firehose monitoring

Kinesis Consumer Lag: rely on GetRecords.IteratorAgeMilliseconds to detect how far consumers are behind. If IteratorAgeMilliseconds is consistently high:

Use aws kinesis describe-stream to inspect shard count and aws cloudwatch get-metric-statistics for IteratorAgeMilliseconds. When comparing remediation options, consider:

Firehose delivery metrics: DeliveryToS3.DataFreshness quantifies delivery latency; typical buffering_delay settings are 60–900 seconds and will hold records until either bufferSize or bufferInterval is reached. If DeliveryToS3.DataFreshness is high:

Remember Firehose buffering semantics: the service intentionally delays up to the buffer interval; reduce buffer interval to lower latency at cost of more frequent S3 writes.

CloudTrail and data access auditing

CloudTrail provides API activity and, optionally, data events for S3 and Lambda which are not enabled by default. To capture object-level S3 events, explicitly enable data events on the CloudTrail via console or aws cloudtrail create-trail –include-global-service-events and add S3 data resources. Without enabling S3 data events you will not see GetObject/PutObject in CloudTrail, which is a common gap during investigations.

Use CloudTrail logs combined with CloudWatch Logs Insights to correlate operational metrics (e.g., Glue job logs) with access events. Query patterns:

DMS replication tasks also publish CloudWatch metrics: monitor FullLoadRows for initial copy completeness, CDCLatencyMilliseconds to detect replication lag, and AppliedChanges to ensure transactions are being applied on the target. Alarm on CDCLatencyMilliseconds exceeding business SLAs and low AppliedChanges after an increase in full load rows.

Common Pitfalls and Decision Criteria

Practical Problem: Use-Case Scenario

Acme Analytics runs real-time clickstream ingestion via Kinesis, enriches events using Glue ETL jobs, persists stale batches via Firehose to S3, and replicates legacy DBs with DMS. They observe end-to-end delays: consumer lag on Kinesis, Glue job OOMs, and Firehose showing large DeliveryToS3.DataFreshness.

  1. Profile Kinesis consumers: pull GetRecords.IteratorAgeMilliseconds metric, inspect consumer logs, and run a Kinesis enhanced fan-out vs shard-scaling cost analysis.
  2. Examine Glue job CloudWatch metrics and Logs Insights for OOM stack traces; test repartitioning + pushdown predicate locally or in a smaller job; only then increase DPU/worker type if needed.
  3. Inspect Firehose buffer settings (BufferIntervalInSeconds) and DeliveryToS3.DataFreshness; reduce buffer interval for critical SLOs and validate S3 write permissions/KMS.
  4. Configure CloudWatch composite alarms combining IteratorAgeMilliseconds, Glue job error rate, and Firehose DataFreshness; deliver alerts to an on-call SNS topic and trigger a runbook via EventBridge.
  5. Enable CloudTrail S3 data events and correlate GetObject/PutObject events to Glue job start times and DMS applied changes to detect unauthorized or delayed access.

This approach follows AWS best practices: monitor the right service metrics at the correct granularity, prefer targeted code and configuration fixes before scaling resources, and ensure audit-level logging is explicitly enabled to enable fast root-cause analysis and automated remediation.


Data Security · All domains · Cost Optimization for Data Workloads

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Amazon →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product