datablogs

AWS Certified Data Engineer – Associate: Domain 2 – Data Store Management

A Hands-on Learning Journey with AWS Data Services

Data storage is one of the most important aspects of building scalable and reliable data engineering solutions. Choosing the right storage service, designing efficient data models, managing metadata, optimizing query performance and ensuring data durability are essential skills for every data engineer.

As part of my preparation for the AWS Certified Data Engineer – Associate (DEA-C01) certification, I explored Domain 2 – Data Store Management, which carries 26% of the exam weight.

Rather than focusing only on theory, I worked through practical exercises using AWS services and built examples around a retail data engineering use case.

1. Amazon DynamoDB – NoSQL Data Store Management

DynamoDB is a fully managed NoSQL database designed for high-performance key-value and document workloads.

Topics covered

  • Table creation and primary key design.

  • Partition keys and sort keys.

  • PutItem, GetItem, Query and Scan operations.

  • Global Secondary Indexes (GSI) and Local Secondary Indexes (LSI).

  • DynamoDB capacity modes: On-demand and Provisioned.

  • Time to Live (TTL) for automatic data expiration.

  • DynamoDB Streams and Lambda integration.

  • On-demand backups and point-in-time recovery.

  • Exporting DynamoDB data to Amazon S3.

  • PartiQL for SQL-like operations.

  • DynamoDB Global Tables for multi-Region replication.

Hands-on implementation

Created a retail_orders table with:

  • Partition key: customer_id

  • Sort key: order_id

  • GSI: order-id-index

Practised retrieving customer orders, querying indexes, updating records using PartiQL, and capturing data changes through DynamoDB Streams with AWS Lambda.

Also explored backup, restore and export operations.









2. Amazon Redshift – Data Warehousing and Analytics

Amazon Redshift is a cloud data warehouse designed for analytical workloads, complex queries, aggregations and large-scale reporting.

Topics covered

  • Redshift Serverless architecture.

  • Namespaces, workgroups and RPUs.

  • Loading data from S3 using COPY.

  • Exporting query results using UNLOAD.

  • Distribution styles: AUTO, EVEN, KEY and ALL.

  • Sort keys: Compound, Interleaved and AUTO.

  • Redshift Spectrum and external schemas.

  • Materialized Views and refresh strategies.

  • Federated queries.

  • Workload Management (WLM).

  • Concurrency Scaling and Short Query Acceleration.

  • EXPLAIN, ANALYZE and VACUUM.

  • Query monitoring and performance optimization.

  • Snapshots, recovery and encryption.

  • Redshift Data Sharing.

  • Roles, permissions, row-level and column-level security.

Hands-on implementation

Created a Redshift Serverless environment with:

  • Namespace: retail-redshift-ns

  • Workgroup: retail-redshift-wg

  • Database: retaildb

Loaded curated Parquet data from Amazon S3 into Redshift using COPY.

Explored different distribution and sort key strategies and compared how they influence query execution.

Configured Redshift Spectrum to query external data registered in AWS Glue Data Catalog, including joining external S3 data with local Redshift tables.

Created a materialized view to precompute customer-level revenue aggregations.

Also explored data sharing, workload management and monitoring.





3. Amazon S3 – Data Lake Storage Management

Amazon S3 is a foundational storage service for modern AWS data lakes.

Topics covered

  • S3 storage classes:

    • Standard

    • Intelligent-Tiering

    • Standard-IA

    • One Zone-IA

    • Glacier Instant Retrieval

    • Glacier Flexible Retrieval

    • Glacier Deep Archive

  • S3 Lifecycle policies.

  • Versioning and delete markers.

  • Cross-Region Replication (CRR).

  • Same-Region Replication (SRR).

  • S3 Object Lock: Governance and Compliance modes.

  • Data retention and permanent deletion.

  • Partitioning strategies.

  • Parquet, CSV, JSON and ORC formats.

  • Compression techniques.

  • Small-file problem and compaction.

  • Partition pruning and predicate pushdown.

Practical learning

Explored lifecycle policies for transitioning older data into lower-cost storage classes.

Studied how S3 Versioning protects against accidental deletion and how Object Lock provides WORM-based retention.

Also explored partitioned Parquet datasets using year, month and day folder structures.

Understanding the difference between logical partitions and physical Parquet columns is particularly important when querying partitioned data through Athena and Redshift Spectrum.

4. AWS Glue Data Catalog and Metadata Management

The AWS Glue Data Catalog provides centralized metadata management for data stored across different locations and formats.

Topics covered

  • Glue Data Catalog databases and tables.

  • Glue Crawlers and schema discovery.

  • Partition synchronization.

  • Glue connections.

  • Technical metadata catalogs.

  • SageMaker Catalog and business data catalogs.

  • AWS Glue Schema Registry.

  • Schema compatibility:

    • BACKWARD

    • FORWARD

    • FULL

    • NONE

Hands-on implementation

Used the existing retail_catalog database and explored the orders table.

Reviewed how Glue Crawlers discover schemas and register metadata.

Also explored how partition metadata must be synchronized for Athena to recognize newly added S3 partitions.

Studied Glue Schema Registry for streaming applications using Avro, JSON Schema and Protobuf.

5. AWS Lake Formation – Data Lake Security and Governance

Lake Formation provides centralized governance and fine-grained permissions for data lakes.

Topics covered

  • IAM permissions versus Lake Formation permissions.

  • Database and table-level access.

  • Column-level permissions.

  • Row-level and cell-level security concepts.

  • Data location permissions.

  • Cross-account data access.

  • LF-Tags and tag-based access control.

Practical implementation

Created a Finance-oriented IAM role named RetailFinanceReadOnlyRole.

Explored granting SELECT and DESCRIBE permissions on Glue Catalog resources.

Also explored LF-Tag-based access using a Department tag with values such as Finance, Marketing and Sales.

The key learning was understanding how IAM and Lake Formation work together to control access to data lake resources.

6. Apache Iceberg – Open Table Formats

Apache Iceberg is an open table format designed for large analytical datasets.

It adds table-level metadata and transactional capabilities on top of data files stored in object storage.

Topics covered

  • Iceberg architecture.

  • Metadata files, manifests and snapshots.

  • ACID transactions.

  • Schema evolution.

  • Partition evolution.

  • Time travel.

  • Snapshot expiration.

  • Orphan file management.

  • Integration with Athena, Glue and other analytical engines.

Hands-on implementation

Created an Iceberg table in Athena:

retail_catalog.iceberg_orders

Inserted sample retail order records and explored schema evolution by adding a new column.

Queried table history and snapshots and practised time-travel queries to retrieve historical table states.

This demonstrated how Iceberg manages changes without relying only on the underlying Parquet files.

7. Vector Search – HNSW and IVF

Vector search is increasingly important for AI-powered applications, semantic search and retrieval-augmented generation (RAG).

Explored two common approximate nearest-neighbor indexing techniques:

HNSW – Hierarchical Navigable Small World

  • Graph-based vector indexing.

  • Efficient approximate nearest-neighbor searches.

  • Parameters include m, ef_construction and ef_search.

IVF – Inverted File Index

  • Groups vectors into clusters.

  • Searches selected clusters instead of the entire dataset.

  • Parameters include lists and probes.

Also explored PostgreSQL pgvector examples for creating HNSW and IVF indexes and performing similarity searches.

The choice between these approaches depends on search latency, recall, memory consumption and dataset size.

8. Other Important Data Store Concepts

Additional topics covered as part of Domain 2:

AreaKey concepts
Storage selectionRedshift, RDS, DynamoDB, EMR, MemoryDB
Data migrationAWS Transfer Family
Remote data accessRedshift Spectrum and federated queries
Data resiliencyS3 replication, RDS Multi-AZ, DynamoDB PITR
Data deletionS3 object versions, DynamoDB TTL and retention
Schema conversionAWS DMS Schema Conversion
Data lineageSageMaker ML Lineage Tracking and Catalog
Data optimizationIndexing, partitioning and compression
VectorizationEmbeddings and Amazon Bedrock Knowledge Bases
Database lockingRedshift and RDS transaction management

Key Takeaways

Domain 2 reinforced several important data engineering principles:

  1. Select storage services based on workload characteristics, access patterns, latency and cost.

  2. Design database keys and indexes around actual application access patterns.

  3. Optimize analytical workloads through distribution styles, sort keys, partitioning and compression.

  4. Use metadata catalogs to make data discoverable and accessible across services.

  5. Implement fine-grained security and governance using Lake Formation.

  6. Apply appropriate retention, backup and recovery strategies.

  7. Understand modern open table formats such as Apache Iceberg.

  8. Explore vector indexing and semantic search concepts as part of modern data platforms.

What's Next?

With Domain 2 covered through theory, practical exercises and scenario-based assessment, the next step in my DEA-C01 preparation is:

Domain 3 – Data Operations and Support (22%)

The focus will shift towards monitoring, troubleshooting, orchestration, automation, operational reliability and supporting production data pipelines.

Learning through implementation, validating concepts and solving real-world scenarios continues to be my preferred approach to preparing for AWS certifications.

#AWS #AWSDataEngineer #AWSCertification #AmazonRedshift #AmazonDynamoDB #AWSGlue #AmazonS3 #LakeFormation #ApacheIceberg #DataEngineering #CloudDataEngineering


0 Comments