DEV Community

Tech Mahato (Arbind)
Tech Mahato (Arbind)

Posted on

AWS Data Engineer Associate (DEA-C01) Notes #1: Data Engineering Fundamentals

I'm preparing for the AWS Certified Data Engineer – Associate (DEA-C01) exam, and I'm writing up each section as I finish it. This first post covers the fundamentals section. There's barely any AWS here, but nearly every later exam question assumes you know this vocabulary.

If you already work with data daily, skim the tables and the "exam angle" bits.

Types of data

Type Shape Examples
Structured Fixed schema, rows and columns RDS tables, clean CSVs
Semi-structured Keys/tags give some structure, schema can vary JSON, XML, log files
Unstructured No schema at all Images, video, PDFs, email bodies

A realistic pipeline handles all three at once: orders in a relational DB, clickstream events as JSON, product images as files.

The 3 Vs

  • Volume: how much data you have. Terabytes a day pushes you toward S3, Redshift or EMR.
  • Velocity: how quickly it arrives. Millisecond IoT readings point toward Kinesis, MSK or Flink.
  • Variety: how many formats and sources. Lots of variety usually means a data lake.

Exam angle: read scenario questions for these signals. "Near real-time" is a velocity question. "Petabytes of history" is a volume question.

Warehouse vs. lake vs. lakehouse

This section matters most for the exam.

Data warehouse Data lake
Schema Schema-on-write Schema-on-read
Pipeline ETL ELT (or just load)
Data Mostly structured Anything
Strength Fast, complex BI queries Cheap, flexible, ML-friendly
AWS example Amazon Redshift Amazon S3 + Glue + Athena

A warehouse usually uses a star or snowflake schema and feeds smaller data marts for individual teams. A lake stores raw data as-is and leaves the schema decision until query time.

In practice most companies use both. Raw data lands in S3, gets refined, and the curated part goes into Redshift.

A lakehouse combines them: cheap lake storage plus warehouse features like ACID transactions and good query performance. On AWS this usually means Apache Iceberg tables on S3, catalogued in Glue, and queried from Athena, EMR or Redshift.

Sources ──► S3 (raw) ──► Glue ETL ──► S3 (curated, Parquet/Iceberg) ──► Athena / Redshift Spectrum
                                                       │
                                                       └──► Redshift (BI marts)
Enter fullscreen mode Exit fullscreen mode

Data mesh is about ownership, not technology

A data mesh means domain teams own their data as products. There's federated governance with central standards, plus self-service infrastructure. It's an operating model, and a lake or warehouse can sit underneath it.

Exam angle: if a question says "each business unit owns and publishes its data, with central governance", the answer is a mesh. On AWS that usually means Lake Formation cross-account sharing or DataZone.

ETL and who runs it

  • Extract from databases, APIs, files, SaaS apps.
  • Transform by deduplicating, fixing types and dates, enriching, aggregating and handling nulls.
  • Load into the warehouse or lake, in batch or streaming.

The course stresses that pipelines have to be automated. Here are the AWS options I'm keeping in my head:

Need Service
Chain Glue crawlers and jobs Glue Workflows
Serverless, multi-service state machine Step Functions
Already have Airflow DAGs Amazon MWAA
Cron schedules or event triggers EventBridge
Small glue code between steps Lambda

Data sources and file formats

JDBC is platform-independent but Java-only. ODBC is the opposite: it works from any language but needs platform-specific drivers.

For formats, one table covers it:

Format Layout When I'd use it
CSV Text, row Small exchanges, spreadsheets
JSON Text, nested APIs, configs, flexible schemas
Avro Binary, row, schema embedded Kafka/streaming, schema evolution
Parquet Binary, columnar, compressed Analytics with Athena, Spark, Redshift Spectrum

Exam angle: "Reduce Athena cost and speed up queries" almost always means convert to Parquet (or ORC), compress, and partition. Athena charges per byte scanned, and columnar formats let it skip the columns a query doesn't use.

Modeling, lineage and schema evolution

  • Star schema: fact tables (events, sales) surrounded by dimension tables (customer, product, date), joined by keys.
  • Data lineage: tracking where data came from and every transformation it went through. The course shows an AWS pattern where a Spline agent on a Glue Spark job captures lineage, and Lambda stores it as a graph in Amazon Neptune.
  • Schema evolution: changing fields without breaking consumers. On AWS that's the Glue Schema Registry. It supports Avro, JSON Schema and Protobuf, and checks compatibility (BACKWARD by default) for Kinesis and Kafka producers.

Performance basics

  • Indexing to avoid full table scans.
  • Partitioning so queries read less data, and so you can process partitions in parallel and manage their lifecycle.
  • Compression (GZIP, LZOP, BZIP2, ZSTD in Redshift). You trade compression ratio against CPU time. Columnar data compresses especially well.

Sampling, skew and data quality

Sampling: random (everyone has equal odds), stratified (sample within each subgroup so every category is represented), systematic (every n-th row).

Data skew is the "celebrity problem". If you partition an IMDb-style clickstream by actor, one superstar's partition melts while the rest sit idle. Ways to fix it:

  1. Salting, i.e. adding a random suffix to hot keys
  2. Adaptive or custom partitioning
  3. Periodic repartitioning
  4. Sampling first to understand the distribution

You'll meet this again with DynamoDB partition keys and Kinesis shard keys.

Data quality comes down to four checks: completeness (nulls, missing fields), consistency (sources agree), accuracy (matches a trusted reference) and integrity (foreign keys and relationships hold). These map directly to Glue Data Quality rules later in the course.

SQL refresher

Conditional aggregation was the most useful pattern for me. You get several counts in one pass instead of several WHERE queries:

SELECT
  COUNT(CASE WHEN salary > 70000 THEN 1 END)                 AS high,
  COUNT(CASE WHEN salary BETWEEN 50000 AND 70000 THEN 1 END) AS medium,
  COUNT(CASE WHEN salary < 50000 THEN 1 END)                 AS low
FROM employees;
Enter fullscreen mode Exit fullscreen mode

The same trick gives you a portable pivot:

SELECT salesperson,
       SUM(CASE WHEN quarter = 'Q1' THEN amount ELSE 0 END) AS q1,
       SUM(CASE WHEN quarter = 'Q2' THEN amount ELSE 0 END) AS q2
FROM sales
GROUP BY salesperson;
Enter fullscreen mode Exit fullscreen mode

Joins, in one line each: INNER returns only matches. LEFT/RIGHT keep every row from one side. FULL keeps every row from both. CROSS returns every combination.

For regex, PostgreSQL uses ~ (case-sensitive) and ~* (case-insensitive):

SELECT * FROM names WHERE name ~* '^(fire|ice)';
Enter fullscreen mode Exit fullscreen mode

One gotcha: Redshift documents only ~ and !~. AWS also warns that POSIX regex is expensive on large tables. For case-insensitive matching there, use ILIKE or REGEXP_* with the 'i' flag.

Git in 30 seconds

  • git fetch downloads changes without merging. git pull fetches and then merges.
  • git revert undoes a change with a new commit, so it's safe on shared branches. git reset --hard throws away local work.
  • git stash, cherry-pick and rebase come up in CI/CD discussions, and git reflog gets you out of trouble.

Key takeaways

  • Schema-on-write means warehouse/ETL. Schema-on-read means lake/ELT. A lakehouse is a lake with ACID transactions and warehouse-level performance.
  • A data mesh is an ownership and governance model, not a product.
  • Parquet/ORC plus partitioning plus compression is the default answer for cheaper, faster analytics on S3.
  • Avro plus Glue Schema Registry is the default answer for schema evolution in streaming.
  • Hot partitions: use high-cardinality keys or salting.
  • Quality dimensions: completeness, consistency, accuracy, integrity.

What's next

Next up is Storage: S3 in depth (storage classes, lifecycle rules, replication, encryption, access points, and the new S3 Tables built on Iceberg), plus EBS, EFS and AWS Backup.

If you're also studying for DEA-C01, tell me in the comments which section you found hardest.

Top comments (0)