A Practical Learning and Technical Reference | AWS Data Engineering | Hands-On Implementation
Introduction
Throughout my professional career, I have worked extensively with database architecture, database administration, cloud database platforms, data migrations, performance optimization, and data management.
With my recent transition into the role of Data Engineering Lead, I am expanding my focus towards end-to-end data engineering, including data ingestion, transformation, streaming architectures, orchestration, data platforms, and analytics.
As part of this professional transition, I decided to prepare for the AWS Certified Data Engineer – Associate (DEA-C01) certification.
Many of the concepts and technologies covered in this certification are already familiar to me through my professional experience and previous project implementations. However, preparing for the certification provides an opportunity to revisit these topics from the AWS exam perspective, understand the specific capabilities of AWS services, explore areas that require deeper knowledge, and validate my understanding against the official examination objectives.
Rather than limiting the preparation to theoretical study, I am combining existing technical knowledge with practical AWS exercises.
Why am I documenting this journey?
I wanted to create a structured technical reference that can also help other professionals preparing for the AWS Data Engineer certification.
This series will cover:
AWS services and their practical use cases.
Hands-on implementation using the AWS Console and sample datasets.
End-to-end data engineering architecture.
Important configurations and troubleshooting experiences.
Comparisons between AWS services and their use cases.
Additional concepts relevant to the official DEA-C01 examination objectives.
Practical tips for building cost-conscious learning environments.
The intention is to make this a useful reference for database administrators, database architects, cloud engineers, and data engineers who want to strengthen their AWS data engineering knowledge.
1. Understanding DEA-C01 Domain 1
Domain 1 is Data Ingestion and Transformation, representing 34% of the DEA-C01 examination.
The domain focuses on four major areas:
Perform data ingestion.
Transform and process data.
Orchestrate data pipelines.
Apply programming concepts.
AWS services covered
Amazon S3
AWS Glue
AWS Glue Data Catalog
AWS Glue Crawlers
Amazon Athena
AWS Step Functions
Amazon EventBridge
Amazon Kinesis Data Streams
Amazon Kinesis Data Firehose
AWS Lambda
Amazon MSK
AWS Database Migration Service (DMS)
2. Project 1 – Building an End-to-End Data Engineering Pipeline
To validate the concepts practically, I created a sample retail data engineering pipeline using Amazon S3, AWS Glue, Amazon Athena, Kinesis, Lambda, and Step Functions.
Architecture
Batch data pipeline
S3 Raw Data → Glue Crawler → Glue Data Catalog → Glue ETL → S3 Curated Data → Amazon Athena
Streaming data pipeline
Kinesis Data Streams → AWS Lambda / Kinesis Data Firehose → Amazon S3
Workflow orchestration
Amazon EventBridge Scheduler → AWS Step Functions → AWS Glue ETL Job
The objective was to understand how batch and streaming data can be ingested, transformed, orchestrated, and made available for analytics.
3. Hands-On Implementation
Step 1: Create an Amazon S3 Data Lake
Created an Amazon S3 bucket with separate folders for raw data, curated data, quarantine records, scripts, and Athena query results.
Bucket name: retail-data-engineering-datablogs
Folder structure:
retail-data-engineering-datablogs/
│
├── raw/
│ ├── orders/
│ ├── customers/
│ └── products/
│
├── curated/
│ ├── orders/
│ ├── customers/
│ └── products/
│
├── quarantine/
├── scripts/
├── athena-results/
└── streaming/Security configuration:
S3 Block Public Access enabled.
Server-side encryption enabled using SSE-S3.
Separate folders for raw, curated, and rejected records.
Key learning: A data lake separates source data from transformed analytical data. Organizing data into logical zones helps with governance, processing, and access management.
Step 2: AWS Glue Crawler and Data Catalog
Created an AWS Glue database named retail_catalog and a crawler named retail-orders-crawler.
The crawler scanned the raw orders folder and automatically created a table in the AWS Glue Data Catalog.
Key learning:
Glue Crawlers discover schemas from supported data sources.
AWS Glue Data Catalog stores metadata about datasets.
The Data Catalog makes datasets discoverable to services such as Athena and Glue ETL.
A crawler discovers metadata; it does not perform the actual ETL transformation.
Step 3: Query Data Using Amazon Athena
Configured Athena query results to use the S3 athena-results/ location.
Selected the AwsDataCatalog catalog and retail_catalog database.
Practised the following SQL operations:
SHOW TABLESDESCRIBESHOW CREATE TABLESELECTqueriesCOUNTand aggregationRevenue analysis
Duplicate-record checks
The original sample dataset contained 10 records with total revenue of ₹22,750.
Key learning: Amazon Athena is a serverless query service that allows SQL-based analysis of data stored in Amazon S3 without managing database infrastructure.
Step 4: Build an AWS Glue ETL Job Using PySpark
Created a PySpark ETL job to process retail orders.
The transformation included:
Reading CSV files from Amazon S3.
Validating incoming records.
Handling invalid dates and numeric values.
Removing duplicate order IDs.
Separating invalid records into a quarantine location.
Writing valid records in Parquet format.
Organizing output using date-based partitions.
Test dataset results:
| Metric | Expected result |
|---|---|
| Input records | 19 |
| Valid records | 10 |
| Invalid records | 9 |
| Valid revenue | ₹22,750 |
An important troubleshooting lesson was handling Spark 4 ANSI date parsing.
Using try_to_date() and try_cast() helped prevent job failure when invalid dates and numeric values were encountered.
Key learning:
AWS Glue provides managed ETL capabilities.
PySpark supports distributed data transformations.
Parquet is a columnar format suitable for analytical workloads.
Partitioning can reduce the amount of data scanned.
Quarantine processing helps isolate invalid data instead of losing it.
Step 5: Incremental Processing with AWS Glue Job Bookmarks
Created a separate incremental Glue job named retail-orders-incremental-v2.
Uploaded two batches of order data:
| Batch | Records | Revenue |
|---|---|---|
| Batch 001 | 3 | ₹10,000 |
| Batch 002 | 4 | ₹15,800 |
| Total | 7 | ₹25,800 |
Implemented incremental processing using AWS Glue DynamicFrames and Job Bookmarks.
Important concepts:
Glue Job Bookmarks track previously processed data for supported sources.
DynamicFrames can use transformation contexts to support bookmark tracking.
job.commit()commits the bookmark state.Job parameters make source, curated, and quarantine paths reusable.
Idempotent output handling helps prevent duplicate results during reruns.
Key learning: Incremental processing avoids repeatedly processing previously handled data and helps improve pipeline efficiency.
Step 6: Workflow Orchestration Using Step Functions and EventBridge
Created a Step Functions state machine named retail-data-pipeline-workflow.
The workflow starts and monitors the Glue job using synchronous execution, with retry and failure handling.
Also configured an EventBridge Scheduler named retail-daily-pipeline-schedule to trigger the workflow daily at 6:00 AM IST.
Concepts covered:
Workflow orchestration.
Sequential task execution.
Glue job integration.
Retry configuration.
Failure handling using Catch.
Scheduled workflow execution.
Key learning:
AWS Step Functions orchestrates multi-step workflows.
Amazon EventBridge Scheduler starts workflows based on a schedule.
Retry and error-handling mechanisms improve workflow resilience.
Step 7: Streaming Data with Amazon Kinesis and AWS Lambda
Created a Kinesis Data Stream named retail-orders-stream.
Configuration:
Capacity mode: On-demand.
Data retention: 24 hours.
Test records submitted using AWS CloudShell.
Created a Lambda function named retail-orders-stream-processor to process incoming records.
Configured the Kinesis event source mapping and the required IAM permissions.
Also reviewed partial batch failure handling using ReportBatchItemFailures.
Key learning:
Kinesis Data Streams provides a real-time streaming platform.
Partition keys determine how records are distributed across shards.
Records with the same partition key are routed to the same shard.
Lambda can consume stream records and execute custom processing logic.
Partial batch failure reporting helps handle failed records during stream processing.
Step 8: Deliver Streaming Data to S3 Using Kinesis Data Firehose
Created a Firehose delivery stream named retail-orders-firehose.
Configuration:
| Setting | Value |
|---|---|
| Source | Kinesis Data Streams |
| Destination | Amazon S3 |
| S3 prefix | streaming/orders/ |
| Error prefix | streaming/errors/ |
| Buffering size | 1 MB |
| Buffering interval | 60 seconds |
Tested the delivery by sending additional order records into Kinesis and validating the output in Amazon S3.
Key learning:
Kinesis Data Firehose provides managed streaming data delivery.
Firehose automatically buffers records before delivery.
It supports destinations such as S3 and other supported services.
Lambda can be used for optional record transformation.
Dynamic partitioning can organize delivered data based on record attributes when configured.
Important distinction:
Kinesis Data Streams: Used when custom real-time consumers and processing logic are required.
Kinesis Data Firehose: Used for managed delivery of streaming records to supported destinations with minimal operational overhead.
Step 9: Amazon MSK – Kafka Fundamentals
Reviewed Amazon Managed Streaming for Apache Kafka (MSK) concepts without creating a live cluster, keeping the learning environment cost-conscious.
Topics covered:
Kafka brokers and clusters.
Topics and partitions.
Offsets and consumer groups.
Partition keys and message ordering.
Replication factor.
MSK Provisioned vs. MSK Serverless.
MSK Connect.
AWS Glue Schema Registry.
Important concepts:
Kafka topics contain partitions.
Messages with the same partition key are routed to the same partition.
Ordering is maintained within a partition.
A partition is assigned to at most one active consumer within a consumer group at a time.
MSK Connect supports Kafka source and sink integrations.
Glue Schema Registry supports schema management and evolution for supported formats.
Key learning: Amazon MSK provides managed Kafka infrastructure for event streaming and integration with data engineering platforms.
4. Additional Domain 1 Concepts Reviewed
The following concepts are also part of the official Domain 1 objectives. They were reviewed as technical and exam-preparation topics; they were not all implemented as separate hands-on labs.
4.1 Advanced Data Ingestion Patterns
API-based ingestion
Data can be ingested from external APIs using services and applications such as:
AWS Lambda.
Amazon API Gateway.
AWS Glue connectors and custom connectors.
Python-based API clients.
Important considerations include API authentication, pagination, request limits, retries, and rate limiting.
S3 event notifications and EventBridge
Amazon S3 event notifications can trigger processing when objects are created or modified.
Example:
S3 Object Created → Lambda → Data Validation → Processing
Amazon EventBridge can also route events to supported targets and coordinate event-driven workflows.
IP allowlisting
Some external data sources restrict connectivity to approved IP addresses.
When designing ingestion pipelines, consider network routing, NAT gateways, security groups, and source-side IP allowlisting requirements.
Throttling and rate limits
Ingestion systems must handle API limits, service quotas, and downstream processing capacity.
Common approaches include:
Retry with exponential backoff.
Buffering.
Batching.
Rate limiting.
Dead-letter queues where supported.
Streaming fan-in and fan-out
Fan-in combines events from multiple producers into a processing pipeline.
Fan-out distributes events to multiple downstream consumers.
Replayability
A reliable pipeline should allow data to be reprocessed when failures occur.
Examples include retaining source files in S3, using supported Kinesis retention and replay mechanisms, and designing idempotent processing.
Stateful and stateless processing
Stateless processing handles each record independently.
Stateful processing maintains context across records, such as running totals, sessions, or time windows.
4.2 Transformation Service Selection
Different AWS services are suited to different transformation requirements.
| Service | Typical use case |
|---|---|
| AWS Glue | Serverless ETL and data integration |
| Amazon EMR | Distributed processing using Spark, Hadoop, and related frameworks |
| AWS Lambda | Event-driven and lightweight transformations |
| Amazon Redshift | SQL-based data transformation and analytics |
| Amazon ECS / EKS | Container-based processing workloads |
JDBC and ODBC connections
JDBC and ODBC allow applications and data processing services to connect to relational data sources.
When configuring connections, consider credentials, network access, drivers, connection limits, and encryption.
Data APIs
API-based data access allows applications and external systems to retrieve or submit data without directly connecting to underlying databases.
API Gateway and Lambda are common building blocks for serverless API architectures.
Volume, velocity, and variety
The three important dimensions of data engineering are:
Volume: Amount of data.
Velocity: Speed at which data arrives and needs processing.
Variety: Different formats and structures of data.
These dimensions help determine the right AWS ingestion and processing architecture.
LLM-based data processing
Large language models can support data processing use cases such as classification, extraction, summarization, and enrichment.
When integrating LLMs into data pipelines, consider data quality, cost, latency, security, and validation of generated results.
4.3 Production Pipeline Orchestration
In addition to Step Functions and EventBridge, other orchestration options include:
AWS Glue Workflows.
Amazon Managed Workflows for Apache Airflow (MWAA).
AWS Lambda.
Amazon EventBridge.
Important production considerations:
Availability and fault tolerance
Design pipelines to handle service failures, transient errors, and downstream unavailability.
Scalability
Choose suitable worker configurations, parallelism, concurrency, and buffering based on workload requirements.
Notifications
Amazon SNS and Amazon SQS can help with notifications, message buffering, and decoupling between pipeline components.
Monitoring
Use Amazon CloudWatch metrics, logs, and alarms to monitor job failures, processing delays, throttling, and resource utilization.
4.4 Programming and Deployment Practices
Production data engineering requires more than writing ETL scripts.
Programming languages and scripting
Python.
SQL.
Scala.
Java.
R.
Bash.
PowerShell.
Code optimization
Avoid unnecessary data shuffling.
Use suitable partitioning.
Reduce repeated reads.
Select efficient file formats.
Optimize transformations and joins.
Lambda performance
Understand Lambda concurrency, execution time, memory configuration, retry behaviour, and performance optimization.
Testing and version control
Maintain source code in Git.
Use development and production environments.
Test transformations with sample datasets.
Validate output counts and data quality.
Maintain logs and error records.
Infrastructure as Code
Understand the role of:
AWS CloudFormation.
AWS CDK.
AWS SAM.
These tools help define, deploy, and maintain AWS infrastructure consistently.
CI/CD
Continuous integration and continuous delivery help automate testing and deployment of data pipelines and infrastructure changes.
Distributed computing
Understand parallel processing, partitioning, data shuffling, fault tolerance, and distributed execution.
Data structures and algorithms
Core programming knowledge includes arrays, lists, dictionaries, sets, sorting, searching, and basic algorithmic complexity.
5. Lessons Learned
The hands-on exercises helped reinforce several important concepts:
Amazon S3 provides the foundation for a scalable data lake.
AWS Glue Crawlers and the Data Catalog simplify schema discovery and metadata management.
AWS Glue is useful for serverless ETL and data transformation.
Glue Job Bookmarks help implement incremental processing.
Parquet and partitioning improve analytical query efficiency.
Quarantine processing helps isolate invalid data.
Step Functions simplifies workflow orchestration and error handling.
EventBridge Scheduler supports scheduled pipeline execution.
Kinesis Data Streams and Firehose solve different streaming requirements.
AWS DMS supports database replication using Full Load and CDC.
Amazon MSK provides managed Kafka capabilities.
Production pipelines require monitoring, security, retries, and cost optimization.
6. Cost-Conscious Learning Approach
I used small sample datasets and avoided expensive managed infrastructure wherever possible.
Some of the practices followed:
Used small datasets for Glue ETL.
Avoided creating an Amazon MSK cluster for concept revision.
Used Kinesis on-demand for streaming exercises.
Monitored AWS resource usage.
Used a small number of workers for Glue jobs.
Planned to disable scheduled executions after testing.
Planned to remove resources that were no longer required.
Important: AWS resources can continue generating charges even when they are not actively used. Always check current AWS pricing and verify that test resources, schedules, and other billable components are disabled or deleted when no longer needed.
7. Domain 1 Learning Summary
| Area | Learning outcome |
|---|---|
| Batch ingestion | S3, Glue Crawlers and Data Catalog |
| ETL processing | Glue PySpark and DynamicFrames |
| Incremental processing | Glue Job Bookmarks |
| Data analytics | Amazon Athena |
| File optimization | Parquet and partitioning |
| Workflow orchestration | Step Functions and EventBridge |
| Streaming ingestion | Kinesis Data Streams |
| Streaming delivery | Kinesis Data Firehose |
| Event processing | AWS Lambda |
| Kafka fundamentals | Amazon MSK |
| Database migration | AWS DMS and CDC |
| Governance concepts | AWS Lake Formation |
This project provided practical experience with the core building blocks of an AWS data engineering pipeline. The additional reference topics broaden the preparation to cover the wider Domain 1 objectives.
Conclusion
Preparing for the AWS Certified Data Engineer – Associate certification is an opportunity to align my existing database and cloud experience with the broader responsibilities of data engineering leadership.
Although many of these technologies and concepts are already part of my professional experience, revisiting them through the official AWS examination objectives helps strengthen my understanding of AWS-specific implementations, architectural choices, service capabilities, and best practices.
The hands-on exercises also provide an opportunity to validate concepts, explore different services, and document practical implementation details.
I hope this learning series will serve as a useful technical reference for other professionals preparing for the DEA-C01 certification or moving from database administration and architecture into data engineering.
Domain 1 completed: Data Ingestion and Transformation.
Next in the series:
Domain 2 – Data Store Management
This article reflects my professional learning, hands-on exercises, and exam preparation. It is an independent technical reference and is not an official AWS training document.
Author: Data Engineering Lead










0 Comments