CertNote/ Commute Study Notes
Roadmap
KOEN
CLF-C02 · FoundationalCloud Practitioner - Foundational
DVA-C02 · AssociateDeveloper - Associate
SAA-C03 · AssociateSolutions Architect - Associate
SOA-C02 · AssociateCloudOps Engineer - Associate
SAP-C02 · ProfessionalSolutions Architect - Professional
DOP-C02 · ProfessionalDevOps Engineer - Professional
Linux Master 2 · 2급KAIT Linux Master - Level 2
SCS-C03 · SpecialtySecurity - Specialty
Linux Master 1 · 1급KAIT Linux Master - Level 1
MLA-C01 · AssociateMachine Learning Engineer - Associate
AIF-C01 · FoundationalAI Practitioner - Foundational
DEA-C01 · AssociateData Engineer - Associate
  • Week 1
    • 1.What Is Data Engineering
    • 2.Batch vs Streaming
    • 3.A Bird's-Eye View of AWS Data Services
    • 4.Data Formats and Modeling
    • 5.Week 1 Comprehensive Review
  • Week 2
  • Week 3
  • Week 4
  • Week 5
  • Week 6
  • Week 7
  • Week 8
    • 1.Pipeline Monitoring: CloudWatch Metrics, Logs, and Alarms
    • 2.Data Quality and Validation: Glue Data Quality and Quality Gates
    • 3.Logging, Audit, and Troubleshooting: CloudTrail and Failure Recovery
    • 4.Cost and Performance Operations: Monitoring, Sizing, Auto Scaling
    • 5.Week 8 Comprehensive Review: Data Operations and Support Recap
  • Week 9
  • Week 10
MLS-C01 · SpecialtyMachine Learning - Specialty
SQLD · 개발자SQL Developer (SQLD)

© CertNote · 주간랩스

  • About
  • Changelog
  • Contact
  • Terms
  • Privacy
← DEA-C01/Week 8/Day 5

Based on the DEA-C01 exam guide·Report an error

DEA-C01· AssociateWeek 8 · Day 5~25 min read

Day 5 - Week 8 Comprehensive Review: Data Operations and Support Recap

📌 Key Takeaways

  • Operations problems split into four questions: Is it healthy right now? (CloudWatch) / Is the data right? (Glue Data Quality) / Why, and who broke it? (logs and CloudTrail) / How much does it cost? (cost tools).
  • "Who did it" is CloudTrail; "how the system behaved" is CloudWatch Logs and Metrics. The key streaming-lag metric is IteratorAgeMilliseconds.
  • The quality rule language is DQDL, and for data whose volume varies you add anomaly detection. Block and quarantine anything below the standard with a Step Functions Choice state.
  • Retry only idempotent work, with exponential backoff and jitter. Move repeated failures to a DLQ and redrive after fixing the cause.
  • Look at cost with allocation tags, handle variation with auto scaling, and handle the baseline with sizing and commitments. Sizing comes first.

The Operations Map Through Four Questions

This week covered the stage where a pipeline, once "built," is "operated." The four days' topics are not separate; they are the four questions an operator asks in turn while going through a single incident.

                     Pipeline in operation
                            │
   ┌──────────────┬─────────┴────────┬───────────────┐
 Is it healthy?   Is the data right?  Why/who broke it?  What does it cost?
   (Day 1)          (Day 2)            (Day 3)           (Day 4)
   │                │                  │                 │
 CloudWatch       Glue Data          CloudWatch Logs   Cost allocation tags
 metrics, alarms  Quality            CloudTrail        Cost Explorer
 EMF, composite   DQDL, anomaly      Retry/Catch, DLQ  Budgets, anomaly
 alarms           detection                            detection
  • The first two questions on the left are detection, the third is diagnosis and recovery, and the fourth is sustainability. When reading a problem, first decide which of the four the question is asking, and you can narrow the choices.
  • A common wrong-answer structure is "a tool from the wrong column." It makes you pick CloudWatch Logs for "who deleted it" and CloudTrail for "detect a cost spike."

Signal → Tool Mapping

What you want to knowWhere to lookEasy wrong choice
Is the consumer falling behindGetRecords.IteratorAgeMilliseconds (Maximum)IncomingBytes (just the inbound volume)
Are writes being rejectedWriteProvisionedThroughputExceededIterator age (a read-side metric)
Why is a Glue job slowShuffle, heap, and executor metrics; driver and executor logsCloudTrail
Is EMR idleConsecutive IsIdle values, auto-termination policyAppsRunning at a single point in time
Is the incoming data trustworthyGlue Data Quality score and rule resultsCloudWatch metrics (tell you only whether the job succeeded)
Who changed the table or policyCloudTrail management eventsCloudWatch Logs
Who read the objectCloudTrail data events (you turn them on)Management events
Which team spent how muchActivated cost allocation tags + Cost ExplorerBudgets
A cost spike different from usualCost Anomaly DetectionBudgets (looks only at the threshold you set)
  • "The job succeeded" and "the data is right" are different facts. A job can read an empty file and still succeed. That is why monitoring (Day 1) cannot substitute for quality validation (Day 2).

Distinguishing Look-Alikes

Records and logs

DistinctionCloudWatch LogsCloudTrail management eventsCloudTrail data eventsS3 server access logs
Question answeredWhat was printedWho changed the configurationWho touched the dataWhat requests arrived at the bucket
Default stateVaries by serviceOn (90-day lookup)OffOff
Unique useStack tracesAuditingObject-level auditingAuthentication failures, lifecycle actions

Three features that catch "different from usual"

DistinctionTargetDay
CloudWatch Anomaly DetectionOperational metrics (lag, error rate)Day 2
Glue Data Quality anomaly detectionData statistics (row count, completeness)Day 2
Cost Anomaly DetectionCostDay 4
  • All three solve the same problem that "it is hard for a person to set a threshold." When all three appear together in the choices, pick by what is anomalous.

Four mechanisms for handling failure

MechanismTargetBehavior
RetryTransient errorsTry again with increasing intervals
CatchErrors retries did not resolveBranch to another state (quarantine, notification)
DLQMessages that failed repeatedlyPull out of the queue and keep separately
Validation gateExecution succeeded but quality fell shortBlock progress to the next stage
  • The first three are mechanisms for when the execution fails; the fourth is for when the execution succeeded but the result is wrong.

Features that adjust capacity automatically

FeatureWhat it increasesWhat the user sets
Glue Auto ScalingWorkers during a job runMaximum number of workers
EMR Managed ScalingCore and task nodesMinimum and maximum, On-Demand limit, core limit
Kinesis on-demandShardsNothing (only the mode choice)
Redshift Concurrency ScalingTemporary query clustersQueue mode, upper bound on cluster count

Week 8 Numbers and Defaults on One Page

AreaItemValue
CloudWatchMetric resolutionStandard 1 minute, high resolution 1 second (custom metrics only)
CloudWatchMetric retention15 days at 1-minute, 63 days at 5-minute, 455 days at 1-hour granularity
CloudWatchDefault missing-data handlingmissing (INSUFFICIENT_DATA if everything is empty)
CloudWatchHigh-resolution alarm period10 or 30 seconds
GlueJob metric reporting interval30 seconds
GlueJob timeout default2,880 minutes for 4.0 and below, 480 minutes for 5.0 and above
GlueAutomatic retries0 to 10 times; a timed-out job is not restarted
GlueReal-time logsDefault in 5.0; for 4.0 and below, turn on continuous logging
EMRMetric reporting interval5 minutes (cannot be changed)
KinesisStream metrics1 minute, free. Shard metrics are a paid option
Glue DQMinimum data for anomaly detection3 data points
Glue DQRuleset limits2,000 rules, 65KB
CloudTrailEvent history90 days of management events
Step FunctionsRetry defaultsInterval 1 second, 3 attempts, multiplier 2.0, no jitter
Lambda asynchronousRetries on function error2 (after 1 minute, after 2 minutes)
SQSVisibility timeoutDefault 30 seconds, maximum 12 hours
Cost tagsPropagation delayUp to 24 hours; backfill up to 12 months
AthenaMinimum per-query scan limit10MB
  • Two values have changed recently: the default Glue job timeout (48 hours → 8 hours from 5.0) and whether cost allocation tags apply retroactively (not possible → backfill possible). Exam material may present the old values.

Integrated Scenario: Operating a Nightly Order ETL

00:00 EventBridge schedule → Step Functions pipeline starts
  1) Glue ingestion job (real-time logs + Auto Scaling + job metrics)
  2) Glue Data Quality evaluation (DQDL + anomaly detection)
       └─ Critical rule fails or score < 0.95 → quarantine bucket + SNS + stop
  3) EMR transform (core On-Demand, task Spot, Managed Scaling)
  4) Load to curated + Athena validation query
 
Cost operations:
  - Project/Environment tags on every resource, activated in the management account
  - Budgets 80% alert, Cost Anomaly Detection for spike detection
  - Monthly Cost Explorer review to readjust sizing

Following One Incident Through the Four Questions

Suppose something went wrong on the same pipeline before dawn. The four days' content connects in chronological order.

TimeWhat happenedWhat is usedDay
02:10A composite alarm fires (job failure rate + processed count 0)Composite alarm, TreatMissingData=breachingDay 1
02:12In the Step Functions execution graph, you confirm the quality evaluation step branched to failureLook at the orchestrator firstDay 3
02:15Rule results: RowCount is 40% of usual, IsComplete "customer_id" failsDQ rule results and anomaly observationDay 2
02:20You check the failed rows in the quarantine bucket: customer_id is NULL for every order from one regionRow-level results + failure reasonsDay 2
02:30Source extraction job log: the table to join could not be foundCloudWatch LogsDay 1, 3
02:35CloudTrail: the previous evening, a role changed a catalog table with UpdateTableManagement eventsDay 3
03:00After restoring the table definition, reprocess only that date partition, and redrive the failed executionIdempotent reprocessing, redriveDay 2, 3
Next dayBecause of the reprocessing, that day's Glue cost is double the usual. Check the anomaly detection alert; the budget was not exceededCost Anomaly Detection vs BudgetsDay 4
  • The alarm fired at 02:10 because missing-data handling had been set on the processed count metric. With the default, a person would have found it in the morning.
  • Curated was not contaminated at 02:15 because the gate was before the load. Without the gate, what happened after 02:30 would have been "investigating the extent of contamination."
  • The reprocessing at 03:00 did not create duplicates because the load was a partition overwrite.

Common Pitfalls

  • A quiet alarm is not evidence of health. If the metric stops, an alarm with the default setting does not fire.
  • The quality score is not a row ratio. It is the ratio of rules that passed, so judge critical rules separately from the score.
  • Anomaly detection does not work from day one. Statistics must accumulate, and an anomalous value caught once is learned as normal unless you exclude it.
  • Even with CloudTrail on, object access is not recorded. Data events are a separate setting.
  • Jitter in Step Functions is off by default. Backoff alone does not scatter concurrent retries.
  • The DLQ of a standard queue does not restart the retention period. Set DLQ retention longer than the source queue's.
  • A tag does not show up in cost unless activated, even if attached. In an organization, that is the management account's job.
  • An Athena workgroup alert does not stop queries. Only the per-query limit does.
  • Raising the scaling upper bound does not reduce the usual cost. Redo the baseline.

Question Clue → Answer Lookup Table

Question clueAnswer
"Who deleted it" + "how far the consumer lagged"CloudTrail + IteratorAgeMilliseconds
"Behavior when the quality score is below the threshold"Block with Choice, quarantine, notify
"Principle when switching task nodes to Spot"Keep core nodes on a stable option
"Precondition for automatic retries"The task is idempotent
"Auto scaling is on but the usual cost is excessive"Check baseline sizing
"The pipeline stopped but there was no alert"Missing-data handling, alarm on a heartbeat-style metric
"Reprocess failed messages in the queue after fixing the cause"DLQ redrive
"Detect spikes when a budget threshold is hard to set"Cost Anomaly Detection

Next week is data security and governance. We start with access control in IAM and Lake Formation.

📖 Glossary

  • Observability: The degree to which you can tell from the outside what is happening inside a system through metrics, logs, and traces.
  • Symptom-based alarm: An alarm placed not on a resource number such as CPU but on a phenomenon users experience, such as lag or failure rate.
  • Validation gate: A point that does not pass data whose quality falls short of the standard to the next stage.
  • Quarantine bucket: A place that collects data that failed the gate, together with the failure reasons.
  • Idempotent reprocessing: Reprocessing where running the same interval several times gives the same result as running it once.
  • redrive: Putting failed messages or executions back on the processing path after fixing the cause.
  • Baseline: The base capacity fitted to the normal load. Distinguish it from the variation that scaling absorbs.
  • Runbook: A procedure document that records what to check and what action to take, in what order, when a particular failure occurs.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

Which combination of tools is correct for finding out "who deleted the prod Glue table yesterday" and "how far behind the Kinesis consumer was last night," respectively?

Question 2

What is the recommended pipeline behavior when the Glue Data Quality score is below the threshold in a nightly ETL?

Question 3

Which principle is the most appropriate to apply together when switching EMR task nodes to Spot to reduce cost?

Question 4

When configuring an external API call task with frequent transient errors to be retried automatically, which condition must be satisfied for safety?

Question 5

Even after introducing automatic scaling, the baseline cost is still excessive. What should be checked first?

PreviousCost and Performance Operations: Monitoring, Sizing, Auto ScalingWeek 8 · Day 4Next Access Control: IAM and Lake Formation PermissionsWeek 9 · Day 1

Official references

  • DEA-C01 official exam page(opens in a new tab)
  • Amazon CloudWatch documentation(opens in a new tab)
  • AWS CloudTrail documentation(opens in a new tab)
  • AWS Glue documentation(opens in a new tab)
  • AWS Step Functions documentation(opens in a new tab)
  • Amazon EMR documentation(opens in a new tab)

On this page

  • Key Takeaways
  • The Operations Map Through Four Questions
  • Signal → Tool Mapping
  • Distinguishing Look-Alikes
  • Week 8 Numbers and Defaults on One Page
  • Integrated Scenario: Operating a Nightly Order ETL
  • Following One Incident Through the Four Questions
  • Common Pitfalls
  • Question Clue → Answer Lookup Table
  • Glossary
  • Practice Questions