Reading and Understanding Data Schemas Questions
Be able to look at a data schema (table structure) and understand what data is available and how tables relate. At the start of the assessment, you'll be given a schema. Spend a minute understanding it before writing queries. Understand primary keys, foreign keys, and data types.
HardTechnical
33 practiced
In a warehouse using SCD Type 2 dimensions you notice queries joining facts to dimension tables by effective ranges are slow. Propose schema and query strategies to optimize common analytical patterns that need the 'dimension attributes at event time', including indexing, surrogate keys, and pre-computed snapshots.
HardTechnical
28 practiced
For a near-real-time dashboard that requires sub-second response for simple counts and sums, discuss schema trade-offs between normalized OLTP-style tables and denormalized pre-aggregated tables. Cover freshness, write amplification, storage cost, and maintenance complexity in your recommendation.
MediumTechnical
23 practiced
You're given a denormalized reporting table that flattens customer, order, and product information for fast queries. Describe how you would verify that the flattened table is correct compared to normalized source tables, detect inconsistencies, and decide whether to rebuild or repair the denormalized table.
MediumTechnical
31 practiced
A BigQuery table events(event_id STRING, user_id STRING, event_ts TIMESTAMP, payload JSON) stores nested JSON in payload with structure like:{"product": {"id": "p1", "category": "c1"}, "price": 19.99, "attributes": [{"key":"color","value":"red"}, ...]}Write a BigQuery SQL snippet that extracts product_id, product_category, price and explodes attributes into rows as attribute_key, attribute_value.
EasyTechnical
25 practiced
You receive a schema where customer.email and customer.phone_number are nullable. You're asked to prepare a dashboard showing active users by preferred contact channel (email, phone, none). How would you interpret the nullability in the schema, handle nulls during analysis, and implement the logic in SQL for reporting counts per channel?
Unlock Full Question Bank
Get access to hundreds of Reading and Understanding Data Schemas interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.