AWS - Data Engineer Associate Study Guide

    3: Data Operations and Support

    This chapter covers how an AWS data engineer automates, observes, and operates the pipelines that move and transform data across the AWS analytics stack. It builds on the ingestion contracts and store designs from Chapters 1 and 2, focusing on orchestration with Amazon MWAA and AWS Step Functions, troubleshooting Apache Airflow and AWS Glue jobs, calling AWS SDKs from automation code, preparing and querying data with AWS Glue DataBrew, Amazon SageMaker Unified Studio, Amazon Athena, Amazon EMR, and Amazon Redshift, and verifying that what lands in the lake or warehouse meets the agreed quality bar through AWS Glue Data Quality.

    Learning Objectives

    By the end of this chapter, you will be able to:

    • Automate batch and streaming data processing with AWS Lambda, Amazon EventBridge, and AWS Step Functions, and emit aggregation, rolling, grouping, and pivoting logic at the right layer.
    • Orchestrate data pipelines with Amazon MWAA and AWS Step Functions, schedule them with Amazon EventBridge, and inspect their logs through Amazon CloudWatch Logs Insights.
    • Troubleshoot Apache Airflow on Amazon MWAA, including DAG parsing errors, worker scaling, and connection issues.
    • Call AWS SDKs from Python, Java, and Bash to operate Amazon S3, Amazon Redshift, AWS Glue, Amazon Athena, and AWS Lambda in pipeline code.
    • Use Amazon EMR, Amazon Redshift, and AWS Glue features to transform data, verify and clean it with AWS Lambda, Amazon Athena, Amazon QuickSight, Jupyter notebooks, and Amazon SageMaker Data Wrangler, and write SQL queries and views.
    • Consume and maintain data APIs (Amazon Redshift Data API, Amazon Athena API, Amazon API Gateway), and route notifications through Amazon SNS for monitoring.
    • Prepare data for transformation through AWS Glue DataBrew recipes and Amazon SageMaker Unified Studio, including data sampling techniques and AWS CloudTrail tracing.
    • Query data in Amazon Athena with provisioned and serverless trade-offs, mitigate data skew, and analyze big-data application logs with Amazon Athena, Amazon EMR, Amazon OpenSearch Service, and Amazon CloudWatch Logs Insights.
    • Run AWS Glue Data Quality rules and investigate data consistency through DataBrew profiles.

    Executive Summary

    • Automation on AWS pivots on the trio of AWS Lambda for short event-driven work, Amazon EventBridge for events and schedules, and AWS Step Functions or Amazon MWAA for stateful multi-step workflows.
    • Observability on the data plane is not a single product. AWS CloudTrail captures who called which API, Amazon CloudWatch Logs captures what each component wrote, AWS Glue and Amazon EMR publish job and step metrics, and CloudWatch alarms wire those signals to Amazon SNS topics.
    • Data quality belongs inside the pipeline, not outside it. AWS Glue Data Quality rules expressed in Data Quality Definition Language (DQDL), combined with DataBrew profile jobs and Lambda gate checks, prevent bad data from reaching consumers.
    • Provisioned and serverless services trade predictability for elasticity. Amazon Athena, AWS Glue, Amazon EMR Serverless, Amazon Redshift Serverless, and AWS Lambda each shift cost shape, cold-start behavior, and concurrency limits; the choice belongs at the workload level, not the platform level.

    Assumptions

    • The reader has completed Chapters 1 and 2 and understands ingestion paths (Amazon Kinesis Data Streams, Amazon Data Firehose, Amazon MSK, AWS Glue, Amazon Redshift COPY) and store choices (Amazon Redshift RA3, Amazon DynamoDB, Amazon S3 with Apache Iceberg).
    • All code samples assume an AWS account configured with appropriate IAM roles, an AWS Region preselected, and AWS CLI v2 installed. Region examples use us-east-1.
    • Fictional account number 111122223333, S3 bucket de-pipeline-data, and IAM role names beginning with role/de- are placeholders.

    Sections in this chapter

    1. Free
    2. Free with account
    3. Free with account
    4. Free with account
    5. Free with account
    6. Free with account
    7. Free with account
    8. Free with account
    9. Free with account