What are the common ways to load data into BigQuery, and when would you pick each?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
What are the common ways to load data into BigQuery, and when would you pick each?
Think about sources such as files in Cloud Storage, application events, other BigQuery tables and third-party SaaS tools.
```hint Sort by freshness
Line the options up by how fresh the data must be (hours, minutes, seconds) and by where the data starts.
```
```hint Check the bill
Some ingestion paths are free and others are billed by data volume or by the bytes a query processes. Quotas differ too.
```
### What a Strong Answer Covers
- Batch load jobs: sources, file formats, cost, and the latency they suit
- Streaming ingestion and how it differs in cost, latency and delivery guarantees
- Writing query results into tables for transformations inside BigQuery
- Managed transfers and pipelines for SaaS sources, other clouds, databases and heavy transformations
- A clear way to choose among them based on latency, volume, source and cost
### Follow-up Questions
- Events arrive at 50,000 per second and a dashboard must update within a minute. Which path do you choose, and how do you handle duplicate rows?
- A nightly job reloads a full 2 TB table. How would you make it incremental?
- When would you query files in Cloud Storage through an external table instead of loading them?
- How would you replicate an operational PostgreSQL database into BigQuery with low lag?
Overview: Asks you to compare the main ways of getting data into BigQuery, from files and application events to other tables and SaaS tools, and to say when each fits. Tests how you weigh latency, cost, quotas, delivery guarantees and the data source when designing ingestion.