0
0
Apache Airflowdevops~20 mins

Managed Airflow (MWAA, Cloud Composer, Astronomer) - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Managed Airflow Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Managed Airflow Services

Which of the following statements correctly describes a key advantage of using Managed Airflow services like MWAA, Cloud Composer, or Astronomer?

AThey require manual installation and management of Airflow components on your own servers.
BThey prevent you from customizing DAGs or plugins in any way.
CThey only support running Airflow on local machines, not in the cloud.
DThey automatically handle Airflow infrastructure, scaling, and upgrades for you.
Attempts:
2 left
💡 Hint

Think about what 'managed' means in cloud services.

💻 Command Output
intermediate
2:00remaining
Checking MWAA Environment Status

You run the AWS CLI command to list MWAA environments:

aws mwaa list-environments --region us-east-1

What is the expected output format of this command?

A{"Environments": ["prod-airflow", "dev-airflow"]}
B["prod-airflow", "dev-airflow"]
C{"EnvironmentNames": ["prod-airflow", "dev-airflow"]}
D{"Envs": ["prod-airflow", "dev-airflow"]}
Attempts:
2 left
💡 Hint

Check AWS CLI documentation for MWAA list-environments output keys.

Configuration
advanced
2:30remaining
Configuring Airflow Connections in Cloud Composer

Which of the following is the correct way to add a new connection to Airflow in Google Cloud Composer using the gcloud CLI?

Agcloud composer environments run ENVIRONMENT_NAME --location LOCATION connections add --conn_id my_conn --conn_type mysql --conn_host 127.0.0.1 --conn_port 3306
Bgcloud composer environments run ENVIRONMENT_NAME --location LOCATION connections -- add --conn_id my_conn --conn_type mysql --conn_host 127.0.0.1 --conn_port 3306
Cgcloud composer environments run ENVIRONMENT_NAME --location LOCATION connections --add --conn_id my_conn --conn_type mysql --conn_host 127.0.0.1 --conn_port 3306
Dgcloud composer environments run ENVIRONMENT_NAME --location LOCATION connections -- add --conn_id=my_conn --conn_type=mysql --conn_host=127.0.0.1 --conn_port=3306
Attempts:
2 left
💡 Hint

Remember the syntax for running Airflow CLI commands through gcloud composer environments run.

Troubleshoot
advanced
2:30remaining
Diagnosing DAG Deployment Issues in Astronomer

You deployed a new DAG to Astronomer, but it does not appear in the Airflow UI. Which of the following is the most likely cause?

AAstronomer does not support custom DAGs.
BThe DAG was deployed but Airflow UI caches the old list and needs a browser refresh.
CThe DAG file has a syntax error causing it to fail parsing.
DThe DAG file was placed in the plugins folder instead of the DAGs folder.
Attempts:
2 left
💡 Hint

Think about what happens if Airflow cannot parse a DAG file.

🔀 Workflow
expert
3:00remaining
Automating MWAA Environment Updates

You want to automate updating the Airflow configuration options in an MWAA environment using AWS CLI. Which sequence of commands correctly updates the environment's Airflow configuration options and then triggers the environment update?

Aaws mwaa update-environment --name my-env --airflow-configuration-options '{"core.dag_concurrency":"10"}'
Baws mwaa update-environment --name my-env --airflow-configuration-options core.dag_concurrency=10 && aws mwaa get-environment --name my-env
Caws mwaa update-environment --name my-env --airflow-configuration-options '{"core.dag_concurrency":10}'
Daws mwaa update-environment --name my-env --airflow-configuration-options {"core.dag_concurrency":"10"} && aws mwaa get-environment --name my-env
Attempts:
2 left
💡 Hint

Check the correct JSON format and quoting for the --airflow-configuration-options parameter.