How do you orchestrate BigQuery pipeline workflows using tools like Cloud Composer, Cloud Functions, or Cloud Scheduler?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
How do you orchestrate BigQuery pipeline workflows using tools like `Cloud Composer`, `Cloud Functions`, or `Cloud Scheduler`?
```hint Sort the triggers
Group the pipeline's steps by what starts them: a clock, an event such as a file arriving, or another task finishing.
```
```hint Plan for reruns
Ask what happens when a step fails halfway and is retried, or when someone needs to rerun last month.
```
### Clarifying Questions to Ask
- How many steps does the pipeline have, and how many depend on each other?
- Is the work triggered on a schedule, by arriving data, or both?
- How fresh must the output be, and how often will past dates need to be reprocessed?
- Does the team already run Airflow, and who will operate the orchestration layer?
### What a Strong Answer Covers
- What each tool is suited for, and the trigger or workflow shape that points to it
- How the tools combine into a working pipeline, including a lighter option for simple cases
- Dependencies, retries and backfills, and how tasks are tied to the date they process
- BigQuery writes that stay correct when a step is retried or rerun
- Monitoring, alerting, permissions and the cost of the orchestration layer itself
### Follow-up Questions
- How would you make a daily load safe to retry and to backfill for a past month?
- When would you choose Workflows over Composer?
- A file-triggered function sometimes loads the same file twice. Why does that happen, and how do you fix it?
- How would you add data quality gates so a bad load never reaches dashboards?
Overview: Asks how to orchestrate BigQuery data pipelines with Cloud Composer, Cloud Functions and Cloud Scheduler, and when each one fits. Tests matching tools to workflow shape, handling dependencies, retries and backfills, and keeping BigQuery writes correct on reruns.