AWS Training
Modules Listen Certification

← Data Engineer IV — Role Review

DE4 Cheat sheet — the Data Engineer IV stack on one page

Every figure verified 2026-10-30 against the page cited in the matching lesson. Re-verify before quoting in a support case or an interview; the ⚠️ items are flagged in the lessons.

Batch: Glue vs EMR vs Lambda (lesson 1)

AWS Glue EMR (EC2 / Serverless) Lambda
Unit DPU = 4 vCPU + 16 GB. G.1X = 1 DPU, G.2X = 2, G.4X = 4, G.8X = 8 Instance fleets (max 5 instance types per fleet) / Serverless workers 128–10,240 MB memory, ~1 vCPU per 1,769 MB
Timeout Default 2,880 min (Glue ≤4.0), 480 min (5.0+), max 10,080 Serverless BATCH job max 10,080 min; 0 no longer allowed 900 s, not adjustable
Concurrency MaxConcurrentRuns default 1 → ConcurrentRunsExceededException Managed scaling, EMR 5.30.0+, YARN apps only, primary node never scales Account concurrency
Idempotency hook Job bookmarks: S3 by last-modified, JDBC by gapless PK, saved at job.commit(). Reset "does not clean the target files" Serverless StartJobRun requires clientToken (1–64 chars) Design it yourself (S3 events are at-least-once)
Metastore One Data Catalog per account per Region, "drop-in replacement for the Apache Hive Metastore" EMR 5.8.0+ via spark-hive-site / AWSGlueDataCatalogHiveClientFactory; cross-account hive.metastore.glue.catalogid —

Glue JobRunState: STARTING | RUNNING | STOPPING | STOPPED | SUCCEEDED | FAILED | TIMEOUT | ERROR | WAITING | EXPIRED. Glue 5.1 is the default version (Spark 3.5.6 / Python 3.11); Glue 6.0 = Spark 4.1.1 / Python 3.13. Lambda payload: 6 MB sync, 1 MB async; /tmp 512–10,240 MB; 250 MB unzipped package. Spot TimeoutAction (SWITCH_TO_ON_DEMAND | TERMINATE_CLUSTER) applies to provisioning only, not resizing.

Streaming: Confluent Kafka Connect (lesson 2)

S3 sink, the numbers that decide exactly-once

Setting Value Why it matters
Partitioner Must be deterministic for exactly-once Wallclock timestamp extractor is the default and is not
rotate.interval.ms / rotate.schedule.interval.ms default -1 ⚠️ scheduled rotation "is nondeterministic and will invalidate exactly-once"; timezone required to use it
flush.size no default self-managed; Cloud default 1,000, min 1,000 (non-Dedicated) / 1 (Dedicated) Small files vs latency
s3.part.size 26,214,400 Multipart upload size
Cloud task limit 1 task ≤ 100 partitions (1 with FieldPartitioner) Sizing tasks.max

Postgres CDC source V2: pgoutput only, tasks.max = 1 hard, snapshot modes initial | initial_only | no_data, RDS Proxy unsupported.

MSK Connect vs Confluent Cloud: MSK Connect runs Kafka Connect 2.7.1 or 3.7.x; MCU = 1 vCPU + 4 GiB; quotas 100 plugins / 100 worker configs / 60 workers / 10 workers per connector — adjustable. MSK brokers: 90 per account, 30 (ZooKeeper) / 60 (KRaft) per cluster — adjustable. ⚠️ No published Confluent Cloud per-cluster connector quota found.

Query: Athena and Redshift (lesson 3)

Athena

Athena quota Value Adjustable
Active DML queries 200 (us-east-1) / 20 (other Regions) ✅
DML query timeout 30 min ✅
DDL query timeout 600 min ❌
Workgroups per account 1,000 ❌
Query string length 262,144 bytes ❌

Redshift

Monitoring: CloudWatch (lesson 4)

Period Retention
< 60 s (high-res) 3 hours
60 s 15 days
300 s 63 days
3,600 s 455 days

Alert on, batch: job FAILED/TIMEOUT event; run duration vs baseline; "no success in N hours" (needs notBreaching thinking, or an EventBridge heartbeat); numFailedTasks. Alert on, streaming: consumer lag / IteratorAge; connector task state; DLQ topic message rate; sink flush latency.

Terraform (lesson 5)

Governance: Lake Formation, IAM, KMS (lesson 6)

The seams an interviewer probes

  1. Connect partitioner → S3 layout → Athena partition pruning → cost.
  2. MaxConcurrentRuns = 1 + an EventBridge schedule that fires while the job runs → ConcurrentRunsExceededException, no alarm unless you alert on the event.
  3. Lake Formation grant that "doesn't work" → IAMAllowedPrincipals still Super, or the Glue role lacks PassRole, or IAM denies S3.
  4. Alarm never fired → TreatMissingData default missing on a job that never started.
  5. Terraform apply from a laptop vs CI → state lock contention, drift, and prevent_destroy not covering removed config.