devHọc Dev

Week 1 - Day 1: Exam Overview and Data Foundations (Data Lake/Warehouse/Lakehouse, Data Formats, IAM & Lake Formation Basics)

Week 1 – Day 1

This lesson combines 4 topics: Introduction to the AWS DEA-C01 exam, Data Lake vs Data Warehouse vs Lakehouse, Data Formats, Compression and Partitioning, IAM and Lake Formation Basics for Data.

Learning Objectives

  • Understand the structure, format, and requirements of the DEA-C01 exam
  • Know the 4 main domains and their score weightings
  • Know the core groups of AWS services for a Data Engineer
  • Have a clear roadmap for the 3-week (12-day) study plan
  • Distinguish data lake, data warehouse, and lakehouse — when to use which
  • Understand why S3 is the foundation of a data lake on AWS
  • Know the standard data lake architecture: zones (raw/curated), catalog, query engine
  • Know the components of a modern lakehouse: open table formats (Iceberg), S3 Tables
  • Distinguish row-based (CSV, JSON, Avro) and columnar (Parquet, ORC) formats
  • Choose the right format per use case: analytics, streaming, exchange
  • Understand compression codecs (Snappy, GZIP, ZSTD, BZIP2) and splittability
  • Know partitioning and bucketing on S3 to reduce data scanned
  • Quick IAM review: policy evaluation, roles, resource-based policies in a data context
  • Understand the IAM Role pattern for data services (Glue, Lambda, Redshift, Firehose)
  • Know the Lake Formation permission model and how it differs from IAM-only
  • Write basic S3 bucket policies / IAM policies for a data pipeline

Part 1: Introduction to the AWS DEA-C01 Exam

1. DEA-C01 Exam Overview

Who should take it

The DEA-C01 exam (AWS Certified Data Engineer — Associate) is a good fit for:

  • Data engineers with 2-3 years of data engineering experience and 1-2 years hands-on with AWS (recommended)
  • Developers/Analytics engineers who want to move into data on AWS
  • People who already hold SAA-C03 and want to go deeper into analytics/data pipelines

Exam structure

  • Duration: 130 minutes (~2 minutes/question)
  • Number of questions: 65 (50 scored, 15 unscored that AWS uses for testing)
  • Question types: Multiple choice (1 answer) and Multiple response (2+ answers)
  • Passing score: 720/1000 (scaled score from 100-1000)
  • Exam fee: $150 USD
  • Delivery: Online proctored (Pearson VUE) or at a testing center
  • Certification validity: 3 years
  • The exam officially launched in March 2024 — it is AWS's newest Associate-level data certification

2. The Four Main Domains

Domain 1: Data Ingestion and Transformation (34%)

The largest domain — the core of the exam:

  • Batch ingestion: AWS Glue (crawlers, jobs, bookmarks), AWS DMS, DataSync, Transfer Family, AppFlow
  • Streaming ingestion: Kinesis Data Streams, Amazon Data Firehose, MSK, Managed Service for Apache Flink
  • Transformation: Glue ETL (Spark), EMR/EMR Serverless, Lambda
  • Orchestration: Step Functions, MWAA (Airflow), Glue Workflows, EventBridge

Domain 2: Data Store Management (26%)

  • Choosing a data store per use case: S3, Redshift, DynamoDB, RDS/Aurora, OpenSearch
  • Data catalog: Glue Data Catalog, crawlers, schema
  • Data lifecycle: S3 storage classes, lifecycle policies, TTL
  • Data modeling: partitioning, distribution/sort keys, file formats (Parquet, ORC, Avro)

Domain 3: Data Operations and Support (22%)

  • Monitoring/logging: CloudWatch, CloudTrail, Glue job metrics
  • Data quality: AWS Glue Data Quality, DQDL rules
  • Automation, error handling, retry, idempotency in pipelines
  • Data analysis: Athena, QuickSight (awareness level)

Domain 4: Data Security and Governance (18%)

  • IAM for data services, Lake Formation permissions, LF-tags
  • Encryption: KMS, at-rest/in-transit, S3 encryption options
  • Sensitive data: Macie, masking, tokenization
  • Audit: CloudTrail, AWS Config, logging

3. Core Service Map

DEA-C01ServiceMap:├──Ingestion│├──Batch:Glue,DMS,DataSync,TransferFamily,AppFlow│└──Streaming:KinesisDataStreams,AmazonDataFirehose,│MSK/MSKServerless,ManagedServiceforApacheFlink├──Transformation│├──GlueETL(Spark,Pythonshell),GlueDataBrew│├──EMR/EMRServerless(Spark,Hive,Presto/Trino)│└──Lambda(lightweightETL,event-driven)├──Orchestration│├──StepFunctions,EventBridge(rules+Scheduler)│└──MWAA(Airflow),GlueWorkflows├──DataStores│├──S3(datalake),Redshift(+Serverless,Spectrum)│├──DynamoDB,RDS/Aurora,OpenSearchService│└──Athena(queryengineonS3)├──Operations│├──CloudWatch(metrics,logs,alarms),CloudTrail│└──GlueDataQuality,lineage(SageMaker/DataZone,OpenLineage)└──Security&Governance├──IAM,LakeFormation(LF-tags,cross-account)├──KMS,SecretsManager,ParameterStore└──Macie,Config,AuditManager

Note the new names (important for the exam):

Old nameCurrent name
Kinesis Data AnalyticsAmazon Managed Service for Apache Flink (renamed 8/2023)
Kinesis Data FirehoseAmazon Data Firehose (renamed 2/2024)
AWS Glue 2.0/3.0Current Glue is 4.0 / 5.0+ (Glue 5.0 = Spark 3.5, Python 3.11)

4. Exam Keywords

Associate questions often hinge on the keyword at the end of the question:

KeywordAnswer direction
most cost-effectiveS3 + Athena instead of Redshift; Spot/Flex for batch; Serverless for intermittent workloads
least operational overheadManaged/serverless: Glue, Firehose, Redshift Serverless, EMR Serverless, DynamoDB
near real-timeFirehose (buffer of seconds), Kinesis + Lambda
real-time (sub-second)Kinesis Data Streams + consumer, Managed Service for Apache Flink
most secureKMS CMK, IAM Role (no hard-coded keys), Lake Formation fine-grained
minimal code changesEquivalent lift-and-shift: MSK for Kafka, DMS for database migration
exactly-once / no duplicatesIdempotency, Flink checkpointing, Glue bookmarks

5. The 3-Week (12-Day) Roadmap

Each day combines 3–5 related topics into Parts; each week ends with a quiz.

WeekDayTopicMain domain
11Foundations: exam, data lake, data formats, IAM/Lake Formation basicsD2, D4
12Batch ingestion: Glue Catalog, Glue Jobs, DMS, DataSync, Transfer Family, AppFlowD1
13Streaming ingestion: Kinesis, Firehose, MSK, FlinkD1
14Transformation & orchestration: Glue ETL, EMR, Lambda, Step Functions, MWAAD1
15Week 1 review quizD1
21Data stores: Redshift, Athena, DynamoDB, OpenSearchD2
22Operations: monitoring, data quality, lineage, cost, error handlingD3
23Security & governance: KMS, advanced Lake Formation, Macie, privacy, auditD4
24Week 2 review quizD2, D3, D4
31Review of all 4 domains + exam-day tipsAll
32-32 practice examsAll

How to study each day

  1. Read the lesson (~45-60 minutes)
  2. Answer the Review Questions before looking at the answers
  3. Do the Hands-on Exercises on the AWS Free Tier when possible (remember to clean up resources to avoid charges)
  4. Take the quiz at the end of the week; for each question you miss, review that exact day and Part

6. DEA-C01 Compared with Other Certifications

SAA-C03DEA-C01(Old) DAS-C01
LevelAssociateAssociateSpecialty (retired 4/2024)
FocusGeneral architectureEnd-to-end data pipelinesDeep analytics
Depth on data servicesAwarenessOperations + designVery deep
Coding awarenessLittleYes (basic SQL, Python/Spark)Yes

DEA-C01 takes over the entry role for data after AWS retired the Data Analytics Specialty certification (DAS-C01).

Part 2: Data Lake vs Data Warehouse vs Lakehouse

1. Three Models for Storing Analytical Data

Data Warehouse

A store for structured data, with the schema designed before loading (schema-on-write), optimized for SQL analytics/BI.

  • Data is already cleaned and normalized (star/snowflake schema)
  • High query performance, supports concurrent users
  • On AWS: Amazon Redshift (provisioned or Serverless)
  • Higher storage cost than object storage; less flexible with semi-structured/unstructured data

Data Lake

A store for all kinds of data (structured, semi-structured, unstructured) in raw form, with the schema applied at read time (schema-on-read).

  • Cheap storage, virtually unlimited scale
  • On AWS: Amazon S3 + AWS Glue Data Catalog + query engine (Athena, Redshift Spectrum, EMR)
  • Risk of a "data swamp" without catalog, quality, and governance

Lakehouse

Combines both: data lives on object storage (like a data lake) but a table format provides warehouse features: ACID transactions, schema evolution, time travel, upsert/delete.

  • Open table formats: Apache Iceberg, Apache Hudi, Delta Lake
  • On AWS: S3 + Iceberg tables (queried via Athena/Glue/EMR/Redshift), or Amazon S3 Tables (managed Iceberg, launched 12/2024)

Comparison table

Data WarehouseData LakeLakehouse
SchemaSchema-on-writeSchema-on-readSchema-on-read + evolution
Data typesStructuredAll typesAll types
ACID transactionsYesNoYes (table format)
Storage costHighLow (S3)Low (S3)
Update/Delete rowsYesHard (rewrite files)Yes (merge-on-read/copy-on-write)
AWS serviceRedshiftS3 + Glue + AthenaS3 + Iceberg / S3 Tables
Use caseBI, dashboards, heavy SQLRaw storage, ML, diverse workloadsData lake that needs ACID + upsert

Exam keyword: "need to UPDATE/DELETE individual records in an S3 data lake" → Apache Iceberg (or Hudi/Delta). "High-performance SQL analytics, many concurrent BI users" → Redshift.

2. S3 — the Foundation of the Data Lake

Why S3?

  • Durability 99.999999999% (11 nines), unlimited scale
  • Separates storage and compute: many engines (Athena, Redshift Spectrum, EMR, Glue) read the same data
  • A variety of storage classes to optimize cost by access pattern
  • Deep integration with Glue Catalog, Lake Formation (governance), KMS (encryption)

Storage classes that matter for data engineering

ClassUse caseNote
S3 StandardHot data, frequently accessedDefault
S3 Intelligent-TieringUnpredictable access patternMoves tiers automatically, small monitoring fee
S3 Standard-IAInfrequent access, needs immediate retrievalPer-GB retrieval fee, min 30 days
S3 Glacier Instant RetrievalArchive that still needs ms readsMin 90 days
S3 Glacier Flexible RetrievalArchive, minutes-to-hours acceptableMin 90 days
S3 Glacier Deep ArchiveLong-term archive (compliance)Retrieval 12-48h, min 180 days
S3 Express One ZoneSingle-digit ms latency, 1 AZFor ultra-fast workloads, not HA

Lifecycle policy: automatically transitions classes by object age (e.g., raw data 90 days → IA, 365 days → Glacier) — a classic "most cost-effective" question.

3. Standard Data Lake Architecture on AWS

┌──────────────────────────────────────────────────────────────┐│DATASOURCES││RDBMSSaaSappsStreamingFiles/Logs│└──────┬────────────┬───────────────┬───────────────┬──────────┘│DMS│AppFlow│Kinesis/│DataSync/│││Firehose│TransferFamily▼▼▼▼┌──────────────────────────────────────────────────────────────┐│S3DATALAKE││┌──────────┐┌───────────┐┌──────────────┐│││rawzone│──►│curated/│──►│analytics/││││(as-is)││cleaned││presentation│││└──────────┘└───────────┘└──────────────┘││(GlueETL/EMRtransformsbetweenzones)│└──────────────────────┬───────────────────────────────────────┘│schemaregisteredin▼┌──────────────────┐│GlueDataCatalog│◄──LakeFormation(permissions)└────────┬─────────┘│metadata┌───────────────┼───────────────────┐▼▼▼┌─────────┐┌────────────────┐┌──────────────┐│Athena││Redshift││EMR/Glue││(SQL)││Spectrum││(Spark)│└─────────┘└────────────────┘└──────────────┘

Typical zones (layers)

  1. Raw (bronze): original data from the source, immutable — used to reprocess when needed
  2. Curated/Cleaned (silver): validated, deduplicated, normalized, converted to Parquet
  3. Analytics/Presentation (gold): pre-aggregated and pre-joined for BI/ML needs

Each zone is usually its own prefix or bucket: s3://company-datalake-raw/, s3://company-datalake-curated/...

4. Lakehouse on AWS: Apache Iceberg

What does Iceberg solve on S3?

  • ACID transactions: safe for many writers/readers
  • Row-level update/delete/merge: MERGE INTO via Athena/Spark
  • Schema evolution: add/rename/drop columns without rewriting data
  • Time travel: query past snapshots (FOR TIMESTAMP AS OF)
  • Hidden partitioning: no need for manual partition columns in queries

Support on AWS (2026)

  • Athena: create/query/MERGE INTO Iceberg tables (engine v3)
  • Glue: Glue 4.0/5.0 natively supports Iceberg, Hudi, Delta Lake
  • Redshift: queries Iceberg tables in the Glue Catalog
  • Amazon S3 Tables: a new bucket type that manages Iceberg automatically (compaction, snapshot cleanup) — "least operational overhead" for Iceberg

5. Which Model to Choose? (decision guide)

Needhigh-performanceSQLBI,highconcurrency,structureddata?└─►Redshift(warehouse)Storeallkindsofdata,manyenginesreading,lowcost?└─►S3datalake+GlueCatalog+AthenaDatalakebutneedUPDATE/DELETE,ACID,timetravel?└─►IcebergonS3(orS3Tables)Bothneeds?(commoninpractice)└─►Combinedarchitecture:S3lake(raw/curated)+Redshift(martsservingBI),SpectrumreadsS3directly

Part 3: Data Formats, Compression and Partitioning

1. Row-based vs Columnar

Data:(id,name,amount)(1,"An",100),(2,"Binh",200),(3,"Chi",300)ROW-BASED(CSV/JSON/Avro)COLUMNAR(Parquet/ORC)┌──────────────────────┐┌──────────────────────┐│1,An,100││id:1,2,3││2,Binh,200││name:An,Binh,Chi││3,Chi,300││amount:100,200,300│└──────────────────────┘└──────────────────────┘Readthewholerowtoget1columnReadonlythecolumnsneeded→goodforwrite/streaming→goodforanalytics
  • Analytics (SELECT a few columns, aggregate over millions of rows) → columnar: scan only the needed columns, better compression (same-typed data sits together), statistics (min/max) to skip blocks (predicate pushdown)
  • Continuous writes / reading whole records (streaming, message exchange) → row-based

2. Each Format

CSV

  • Text, simple, every tool can read it; no schema, no data types, complex escaping
  • Queries on Athena scan the entire file → expensive and slow
  • Use only in the raw zone / for exchange with legacy systems

JSON (and JSON Lines)

  • Semi-structured, nested; common for APIs/logs
  • Athena can read it (SerDe) but still scans a lot; convert to Parquet in the curated zone
  • JSON Lines (one object per line) is friendlier to distributed processing than one giant JSON array

Apache Avro

  • Row-based, binary, with an accompanying schema (schema embedded in the file / schema registry)
  • Strong at schema evolution — a common standard for streaming (Kafka/MSK + AWS Glue Schema Registry)
  • Splittable; a good landing format for streaming data before converting to columnar

Apache Parquet

  • Columnar, binary, the default in the Spark/Athena/Glue ecosystem
  • Compresses and encodes per column; stores statistics per row group → predicate pushdown
  • The recommended format for analytics on S3 — most "most cost-effective query" answers involve "convert to Parquet"

Apache ORC

  • Columnar like Parquet, optimized for the Hive ecosystem; has lightweight indexes (bloom filters) in the file
  • On AWS, Parquet is more common; the exam usually treats Parquet/ORC as equivalent columnar formats

Comparison table

CSVJSONAvroParquetORC
TypeRow, textRow, textRow, binaryColumnarColumnar
SchemaNoNo (self-describing)Yes, good evolutionYes (embedded)Yes (embedded)
Compression efficiencyPoorPoorFairGoodGood
SplittableYes (uncompressed)Per lineYesYesYes
Use caseSimple exchangeAPI/logStreaming, KafkaS3 analyticsAnalytics (Hive)

3. Compression codecs

CodecCompression ratioSpeedSplittable?Notes
SnappyMediumVery fastNo (standalone)*Default for Parquet/ORC
GZIPHighSlowerNoA .csv.gz file cannot be split across workers
ZSTDHighFastNo (standalone)*Best balance today, supported by Glue/Athena
BZIP2Very highVery slowYesRarely used, only when you need splittable text
LZOMediumFastYes (if indexed)Legacy Hadoop ecosystem

* Important: with Parquet/ORC, splittability comes from the file structure (row groups/stripes), so Parquet + Snappy can still be processed in parallel. The "GZIP is not splittable" problem only matters for text files (CSV/JSON): a 10GB .gz file can be read by only 1 worker → bottleneck.

Exam tip: "large gzip-compressed CSV files, Spark job slow" → the cause is that GZIP is not splittable; solution: split into smaller files, use BZIP2, or (best) convert to Parquet.

4. Partitioning on S3

Concept

Organize data in key=value directories (Hive-style) so the query engine can skip (prune) irrelevant partitions:

s3://datalake/sales/├──year=2025/│├──month=12/││├──day=30/part-0001.parquet││└──day=31/part-0002.parquet└──year=2026/└──month=01/└──day=01/part-0003.parquet
-- Only scans partition year=2026/month=01 (partition pruning)
SELECT SUM(amount) FROM sales
WHERE year = '2026' AND month = '01';

Principles for choosing a partition key

  • Pick columns that often appear in WHERE: usually date (year/month/day), region, tenant
  • Avoid high-cardinality columns (e.g., user_id with millions of values) → too many small partitions, slowing both metadata and queries
  • Avoid too many small files (< 128MB); merge files (compaction) periodically — the optimal file size for S3 analytics is ~128MB-1GB
  • Partition projection (Athena): computes partitions from a pattern instead of storing them in the Glue Catalog — no more running MSCK REPAIR TABLE/crawlers for new partitions

Bucketing

Splits the data in each partition into N buckets by the hash of a column (e.g., user_id). Use it when a filter column has cardinality too high to be a partition; it makes joins/filters more efficient. Athena/Glue/Spark all support it.

5. Converting Formats on AWS — Which Way?

ScenarioTool
Batch ETL converting CSV/JSON → ParquetGlue ETL job (Spark)
Streaming: convert JSON → Parquet while writing to S3Amazon Data Firehose (record format conversion, needs a schema in the Glue Catalog)
Ad-hoc, one-off, with SQLAthena CTAS (CREATE TABLE AS SELECT ... STORED AS PARQUET)
Inside a self-managed Spark pipelineEMR
-- Athena CTAS: convert + partition + compress in 1 SQL statement
CREATE TABLE curated.sales_parquet
WITH (
  format = 'PARQUET',
  write_compression = 'SNAPPY',
  external_location = 's3://datalake-curated/sales/',
  partitioned_by = ARRAY['year', 'month']
) AS
SELECT id, name, amount, year, month FROM raw.sales_csv;

Part 4: IAM and Lake Formation Basics for Data

1. Quick IAM Review (data perspective)

Policy evaluation

Request→ExplicitDENY?──yes─►DENY│no▼ExplicitALLOW?──yes─►ALLOW│no▼DefaultDENY(implicit)
  • Explicit Deny always wins — remember this when debugging "why does the Glue job get AccessDenied even though it is Allowed"
  • For cross-account: both sides must allow (identity policy on the caller side + resource policy on the resource side)

IAM Role — the standard pattern for every data service

Never hard-code access keys. Each service assumes a role via a trust policy:

ServiceTypical roleTrust principal
Glue job/crawlerGlueServiceRole (read S3, write catalog, logs)glue.amazonaws.com
LambdaExecution rolelambda.amazonaws.com
RedshiftRole for COPY/UNLOAD from S3, Spectrumredshift.amazonaws.com
FirehoseRole to write S3/OpenSearch, invoke the Lambda transformfirehose.amazonaws.com
EMRService role + EC2 instance profileelasticmapreduce.amazonaws.com
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Principal": { "Service": "glue.amazonaws.com" },
    "Action": "sts:AssumeRole"
  }]
}

Example policy for a Glue job reading raw, writing curated

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "ReadRaw",
      "Effect": "Allow",
      "Action": ["s3:GetObject", "s3:ListBucket"],
      "Resource": [
        "arn:aws:s3:::datalake-raw",
        "arn:aws:s3:::datalake-raw/*"
      ]
    },
    {
      "Sid": "WriteCurated",
      "Effect": "Allow",
      "Action": ["s3:PutObject"],
      "Resource": "arn:aws:s3:::datalake-curated/sales/*"
    }
  ]
}

A frequently tested point: s3:ListBucket applies to the bucket ARN, while GetObject/PutObject applies to the object ARN (/*). Mixing these up is the classic cause of AccessDenied.

2. Limits of IAM-only for a Data Lake

With plain IAM + S3 bucket policies:

  • Permissions are granted per bucket/prefix/object — no notion of database/table/column
  • You want to allow "read the sales table but hide the email column" → not possible
  • Each engine (Athena, Redshift Spectrum, EMR, Glue) needs its own S3 + Catalog permission setup → easily drifts out of sync
  • Cross-account sharing via bucket policies is complex and coarse

→ AWS Lake Formation solves this: a centralized permission layer using the semantics of database / table / column / row / cell on the Glue Data Catalog.

3. Lake Formation — the Basic Model

Architecture

┌─────────────────────────────┐Datalake│LakeFormation│admin───────►│(permissions:DB/table/││column/row+LF-tags)│└────────────┬────────────────┘│enforcedonaccessvia┌────────────────┼─────────────────┐▼▼▼AthenaRedshiftSpectrumGlue/EMR└────────────────┼─────────────────┘▼GlueDataCatalog+S3(registeredlocation)

Setup steps

  1. Register S3 location: register the bucket/prefix with Lake Formation, along with an IAM role that LF uses to issue credentials on your behalf (vended credentials)
  2. Data lake administrator: the user/role that administers permissions
  3. Grant permissions: GRANT SELECT ON TABLE sales TO <principal> — by database, table, column (include/exclude), or data filter (row-level)
  4. When a query engine (Athena/Spectrum/EMR/Glue) accesses data, LF checks permissions and issues temporary credentials scoped to exactly the allowed data

IAMAllowedPrincipals — compatibility mode

By default a new catalog has the IAMAllowedPrincipals group = "whoever IAM allows, Lake Formation lets through" (backward compatible). For LF to truly enforce fine-grained permissions: revoke IAMAllowedPrincipals on that database/table. This is the usual cause of "we granted LF permissions but everyone can still read it".

Quick comparison

IAM + bucket policyLake Formation
Permission unitBucket/prefix/objectDatabase/table/column/row/cell
Centralized multi-engine managementNoYes
Column-level securityNoYes
Row-level (data filters)NoYes
Cross-account sharingComplex bucket policiesGrant + AWS RAM, simpler
Best fitSimple internal pipelinesData lakes with many teams/engines

(LF-tags and cross-account in detail are covered in Week 2 Day 3.)

4. Common Permission Patterns on the Exam

  1. Analysts may see only some columns → Lake Formation column-level permissions (exclude PII columns), not IAM
  2. Each country team sees only its own country's rows → Lake Formation data filter (row-level security)
  3. Glue job AccessDenied when writing to S3 → check the job's role: missing s3:PutObject on the right prefix, or the bucket uses KMS and the role lacks kms:GenerateDataKey/kms:Decrypt
  4. Cross-account bucket read → the bucket policy (account A) allows the principal in account B and the identity policy in account B allows the action — missing either one fails
  5. Credentials in code → always wrong; the correct answer is an IAM Role (or Secrets Manager for external DB credentials)

Review Questions

  1. Which domain has the highest weighting in DEA-C01, and which topic groups does it include?

    Show answer

    Domain 1: Data Ingestion and Transformation (34%). It includes: batch ingestion (Glue, DMS, DataSync, AppFlow), streaming ingestion (Kinesis Data Streams, Amazon Data Firehose, MSK, Managed Service for Apache Flink), transformation (Glue ETL, EMR, Lambda), and orchestration (Step Functions, MWAA, Glue Workflows, EventBridge).

  2. What are the current official names of Kinesis Data Analytics and Kinesis Data Firehose?

    Show answer

    Kinesis Data Analytics → Amazon Managed Service for Apache Flink (renamed 8/2023). Kinesis Data Firehose → Amazon Data Firehose (renamed 2/2024). The exam and new docs use the new names; many older materials still use the old ones, so you need to recognize both.

  3. A question asking for "least operational overhead" usually points to which group of solutions?

    Show answer

    The managed/serverless group: Glue (instead of a self-managed EMR cluster), Amazon Data Firehose (instead of writing your own consumer), Redshift Serverless, EMR Serverless, DynamoDB, Athena. Principle: the less infrastructure you have to operate yourself (provision, patch, scale), the lower the operational overhead — even if the unit cost may be higher.

  4. What are the passing score and the number of scored questions in DEA-C01?

    Show answer

    720/1000; 65 questions, of which 50 are scored and 15 are unscored (used by AWS for testing; you don't know which ones). Duration 130 minutes — about 2 minutes per question.

  5. When do you choose "real-time" (Kinesis Data Streams) over "near real-time" (Amazon Data Firehose)?

    Show answer

    Kinesis Data Streams when you need sub-second processing, multiple consumers re-reading data (replay), or custom processing logic. Amazon Data Firehose when you only need to deliver data into S3/Redshift/OpenSearch with a latency of seconds to minutes (buffering) and don't want to manage consumers — Firehose is a fully managed delivery service and does not store data for replay.

  6. How does schema-on-read differ from schema-on-write, and which model uses which?

    Show answer

    Schema-on-write (data warehouse): the schema is defined first, and data must match it to be loaded — ensures quality but is less flexible. Schema-on-read (data lake): raw data is stored, and the schema is applied only at query time (via Glue Catalog/Athena) — flexible and fast to load, but quality must be controlled by separate processes. A lakehouse uses schema-on-read plus the controlled schema evolution of a table format.

  7. A team needs to run UPDATE and DELETE on individual records in an S3 data lake with low storage cost. Solution?

    Show answer

    Use an open table format — Apache Iceberg (or Hudi/Delta Lake) on S3. Iceberg supports MERGE INTO/UPDATE/DELETE via Athena or Spark with ACID guarantees, while the data stays on S3 (cheap). Moving everything to Redshift also enables UPDATE/DELETE but with higher storage cost — not the "most cost-effective" answer when the question emphasizes a data lake.

  8. Log data has an unpredictable access pattern (some files are read often, others not for months). Which storage class fits best?

    Show answer

    S3 Intelligent-Tiering — automatically moves objects between access tiers based on the actual pattern, with no retrieval fee, only a small per-object monitoring fee. Standard-IA or Glacier only fit when the pattern is known in advance (combined with a lifecycle policy).

  9. Why does a data lake architecture separate the raw zone and the curated zone?

    Show answer

    The raw zone keeps the original, immutable data — the "source of truth" for reprocessing when transform logic changes or a bug is found. The curated zone holds cleaned, deduplicated data converted to a columnar format (Parquet) for efficient queries. Separating zones helps: (1) never lose the original data, (2) apply different permissions per zone (Lake Formation), (3) optimize lifecycle separately (raw → Glacier sooner).

  10. What role does Redshift Spectrum play in a combined lake + warehouse architecture?

Show answer

Spectrum lets Redshift query data directly on S3 (via external tables registered in the Glue Data Catalog) without loading it into Redshift. As a result: hot/aggregated data lives in Redshift (high performance), historical/large-volume data lives on S3 (cheap), and you can JOIN both in a single SQL statement.

  1. Why does Parquet reduce Athena cost compared with CSV for the same query?
Show answer

Athena charges by amount of data scanned ($5/TB). Parquet reduces scanning through: (1) columnar — only reads the columns in SELECT/WHERE, (2) efficient compression — same-typed data compresses better, (3) statistics per row group — skips blocks that don't match the condition (predicate pushdown). In practice it often cuts data scanned by 90%+ compared with CSV.

  1. A streaming pipeline through MSK needs a format with good schema evolution. What do you choose?
Show answer

Avro combined with the AWS Glue Schema Registry. Avro is row-based binary with a separate schema, supporting backward/forward compatibility when producers/consumers upgrade the schema at different times. Parquet is columnar — good for analytics at rest, but not suited to serializing individual streaming messages.

  1. A Spark job reading a single 20GB GZIP-compressed CSV file is very slow even though the cluster has many workers. Cause and fix?
Show answer

GZIP is not splittable — the whole file can be read and decompressed by only 1 executor while the other workers sit idle. Fix: split the source into many smaller files (~128MB-1GB), use a splittable codec (BZIP2 for text), or best, convert to Parquet + Snappy (splittable thanks to row groups, and faster for analytics).

  1. Which columns should and shouldn't you choose as the partition key on S3?
Show answer

Should: columns that often appear in WHERE and have moderate cardinality — date (year/month/day), region, event type. Shouldn't: high-cardinality columns (user_id, order_id), because they produce millions of small partitions → small files, slow metadata, slower queries. For high-cardinality columns you need to filter/join on, use bucketing instead of partitioning.

  1. What problem does Athena partition projection solve?
Show answer

Normally every new partition on S3 must be registered in the Glue Catalog (run a crawler, MSCK REPAIR TABLE, or ALTER TABLE ADD PARTITION) before Athena can see it. Partition projection declares a pattern (e.g., date range, format) in the table properties so Athena infers partitions automatically at query time — no catalog updates for new partitions, and less metadata latency for tables with a very large number of partitions.

  1. You need to quickly convert an existing CSV table in the Glue Catalog to Parquet without writing code. What is the "least effort" approach?
Show answer

Athena CTAS — one SQL statement CREATE TABLE ... WITH (format='PARQUET', ...) AS SELECT ... converts the format, compresses, and partitions, and the result is automatically registered in the Glue Catalog. No need to write or operate a Glue/Spark job.

  1. A Glue job gets AccessDenied when writing to an SSE-KMS encrypted bucket even though the policy has s3:PutObject. What is missing?
Show answer

KMS permissions on the bucket's key are missing: at minimum kms:GenerateDataKey (to encrypt on write) and kms:Decrypt (on read). With SSE-KMS, every object operation calls KMS with the caller's credentials — the key policy or the IAM policy of the Glue role must allow these actions on the correct key ARN.

  1. Requirement: analysts may query the customers table but must not see the email and phone columns. Which service do you use?
Show answer

Lake Formation column-level permissions — grant SELECT on the table with a column list that excludes email, phone. IAM/S3 policies cannot enforce per column because they only understand objects. Athena/Redshift Spectrum/EMR all honor LF permissions when the table belongs to a registered location.

  1. You granted Lake Formation SELECT to one analyst, but another user who was not granted can still query the table. Why?
Show answer

The database/table still has the IAMAllowedPrincipals group attached (the default compatibility mode): anyone allowed by IAM to use Glue/Athena/S3 can still access it, and LF is not truly enforcing. You need to revoke IAMAllowedPrincipals on that resource (and adjust the Data Catalog settings for new DBs) to switch fully to the Lake Formation model.

  1. What is the difference between s3:ListBucket and s3:GetObject in terms of Resource in a policy?
Show answer

s3:ListBucket is an action on the bucket → Resource is arn:aws:s3:::bucket-name. s3:GetObject/s3:PutObject are actions on objects → Resource is arn:aws:s3:::bucket-name/* (or a specific prefix). Mixing the two into the wrong Resource is the most common cause of AccessDenied in data pipelines.

  1. An application needs to read the password of an on-premises database in a Glue connection. Where is the best practice to store it?
Show answer

AWS Secrets Manager — stores credentials encrypted with KMS, grants read access via the Glue IAM role, and supports automatic rotation. Glue connections integrate directly with Secrets Manager. Don't put passwords in job parameters, scripts, or plain-text environment variables. (SSM Parameter Store SecureString is a cheaper option when you don't need automatic rotation.)

Hands-on Exercises

Part 1: Introduction to the AWS DEA-C01 Exam

  • Download the official DEA-C01 Exam Guide and read the in-scope/out-of-scope services section
  • Create an AWS Free Tier account (if you don't have one) + enable MFA for the root user
  • Sign up for the free 20-question sample set on AWS Skill Builder
  • List the services in the Service Map in section 3 that you have never used — those are your study focus

Part 2: Data Lake vs Data Warehouse vs Lakehouse

  • Create buckets datalake-<name>-raw and datalake-<name>-curated, upload 1 sample CSV file to raw
  • Configure a lifecycle rule: transition the raw/ prefix to Standard-IA after 30 days
  • Read the reference architecture Data lakes on AWS
  • Read the introduction to Amazon S3 Tables and note 2 differences from self-managed Iceberg

Part 3: Data Formats, Compression and Partitioning

  • Upload 1 CSV file to S3, use Athena to create an external table and query it — record the "Data scanned"
  • Run CTAS to convert it to Parquet (Snappy), run the same SQL again — compare data scanned
  • Create a year=/month= directory structure on S3 and try queries with/without partition conditions
  • Read Athena partition projection

Part 4: IAM and Lake Formation Basics for Data

  • Create an IAM role for Glue with trust policy glue.amazonaws.com + a policy to read/write the 2 buckets from the previous exercise
  • Enable Lake Formation in the lab account, register the S3 location of the curated bucket
  • Grant SELECT on a table to a test IAM user, try querying via Athena
  • Read Lake Formation permissions overview

References


Next lesson →