Cloud Composer in practice
Airflow (Cloud Composer) · 13 questions
Short notes
Key idea
Cloud Composer is Google's managed Airflow. Google runs the scheduler, workers and web server; you upload DAG files to a Cloud Storage bucket and they appear in the UI.
Syntax
- Create: a Composer environment (version, region, size). It runs on GKE and costs money while it exists.
- Deploy DAGs: copy files to the environment's
dags/folder in its bucket (gcloud composer environments storage dags import). - Python packages: add them in the environment's PyPI settings.
- Variables and connections: through the Airflow UI, gcloud, or Secret Manager.
- Logs: in the UI and Cloud Logging.
Example
A CI job on merge to main copies dags/*.py to the Composer bucket. Within a minute or two the scheduler picks up the new DAG version. The DAG's tasks run BigQuery jobs with the environment's service account.
Traps
- Composer is not free and doesn't scale to zero. Delete practice environments after use.
- Broken imports hide a DAG; check the "import errors" banner in the UI.
- Installing a conflicting package can break the whole environment; test in a dev environment first.
- Keep business logic in SQL or other services, with Composer only orchestrating.
Want the full lesson with step-by-step examples, a project and a certificate? Airflow (Cloud Composer) course, ₹120 →
Questions
5 free questions- Question 1easy
In Cloud Composer, where do DAG files go?
- Question 2medium
What's the safest way to deploy DAG changes to production?
- Question 3medium
What does a DagBag import test catch?
- Question 4medium
How should the team learn that a pipeline failed overnight?
- Question 5hard
load_rawfailed because the partner changed a column's format. You've deployed a fix. How do you reprocess last night's data?
Cloud Composer in practice
Cloud Composer in practice
Cloud Composer in practice
Cloud Composer in practice
Cloud Composer in practice
8 more questions on this topic, with hints, and tests
Sign up free for 21 days of every question and test.