AWS Data Engineer DEA-C01 · Data Ingestion and Transformation · hard

A data engineering team is migrating 85 existing open-source Apache Airflow DAGs (written in Python using custom operators) from self-managed EC2 servers to AWS without rewriting the workflows into JSON state machines. Which two practices are required when deploying these DAGs to Amazon Managed Workflows for Apache Airflow (MWAA)? (Select two.)

Published · Last updated · checked before publication — how we verify questions

Options

  • ARewrite all 85 Python DAGs into Amazon States Language JSON
  • BUpload the Python DAG files and requirements.txt to Amazon S3Correct answer
  • CStore the DAG scripts inside an Amazon DynamoDB key-value table
  • DEnable S3 Versioning on the S3 bucket hosting the MWAA DAGsCorrect answer

Answers: B. Upload the Python DAG files and requirements.txt to Amazon S3; D. Enable S3 Versioning on the S3 bucket hosting the MWAA DAGs

Amazon MWAA is a managed service that runs open-source Apache Airflow, so existing Python DAGs can be migrated as they are without being converted to another workflow language. MWAA reads its DAG code from an Amazon S3 bucket that you designate when you create the environment. The Python DAG files go in a dags folder, and any extra Python dependencies are listed in a requirements.txt file stored in the same bucket. Custom operators are packaged in a plugins.zip file. The bucket must also have versioning enabled, because MWAA tracks the S3 object version of the DAGs folder, requirements file and plugins file, and it uses those versions to decide which file to load when you update the environment. The most common trap is to confuse MWAA with AWS Step Functions and assume that workflows must be rewritten in Amazon States Language. Another trap is to forget the versioning requirement, which is easy to miss because the bucket works for storing files without it.

Why the other options are wrong

  • A. Rewrite all 85 Python DAGs into Amazon States Language JSON — Amazon States Language is the JSON-based definition language used by AWS Step Functions state machines. MWAA runs native Python Airflow DAGs, and the question explicitly says the team does not want to rewrite its workflows, so no conversion is required.
  • C. Store the DAG scripts inside an Amazon DynamoDB key-value table — Amazon DynamoDB is a NoSQL key-value and document database and is not a source from which MWAA loads DAGs. MWAA reads DAG files, requirements.txt and plugins.zip only from the Amazon S3 bucket configured for the environment.

All Data Ingestion and Transformation questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.