Explain the concept of BigQuery federated queries and when you would use them versus loading data.

Quick Overview

Asks what BigQuery federated queries are and when to query external data in place instead of loading it into native storage. Tests understanding of external tables, EXTERNAL_QUERY, freshness, performance, cost and load on source systems.

Explain the concept of BigQuery federated queries and when you would use them versus loading data.

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

Explain the concept of BigQuery federated queries and when you would use them versus loading data. ```hint Compare the two paths Think about where the data is read at query time, which system does the work, and what BigQuery's own storage optimizations need in order to apply. ``` ### What a Strong Answer Covers - What a federated query is, the mechanisms BigQuery offers for it, and which sources each one reaches - When freshness needs or infrequent access favor querying data in place - Why repeated, heavy analytical queries favor loading into native storage - The cost of federation in query latency, load on the source system and cost predictability - A concrete example or decision rule for choosing between the two ### Follow-up Questions - Analysts start running federated queries against the production Cloud SQL database every few minutes. What would you change? - How would you make a query on an external table over Cloud Storage cheaper and faster? - When would you replace federation with a replication pipeline, and what does that change about freshness? - Does a join between a native table and a federated source see a consistent snapshot of both? Why does it matter?

Overview: Asks what BigQuery federated queries are and when to query external data in place instead of loading it into native storage. Tests understanding of external tables, EXTERNAL_QUERY, freshness, performance, cost and load on source systems.

General logo
General
Nov 24, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

Explain the concept of BigQuery federated queries and when you would use them versus loading data.

What a Strong Answer Covers Guidance

  • What a federated query is, the mechanisms BigQuery offers for it, and which sources each one reaches
  • When freshness needs or infrequent access favor querying data in place
  • Why repeated, heavy analytical queries favor loading into native storage
  • The cost of federation in query latency, load on the source system and cost predictability
  • A concrete example or decision rule for choosing between the two

Follow-up Questions Guidance

  • Analysts start running federated queries against the production Cloud SQL database every few minutes. What would you change?
  • How would you make a query on an external table over Cloud Storage cheaper and faster?
  • When would you replace federation with a replication pipeline, and what does that change about freshness?
  • Does a join between a native table and a federated source see a consistent snapshot of both? Why does it matter?