professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
Your organization uses a Looker dashboard connected to BigQuery to analyze sales performance. The dashboard displays the current month's data and relies on a query that joins a massive sales_fact table with multiple smaller dimension tables.
Users are reporting high dashboard latency, and the repeated execution of these complex joins is driving up analytical costs. You need to optimize the data layout and leverage BigQuery BI Engine to minimize query latency and reduce costs.
What should you do?
Create a logical view that joins the tables and partition the base sales_fact table by the sales date. Configure a BI Engine reservation and add the logical view to the preferred tables list.
Create a materialized view that pre-joins the tables and partition it by the sales date. Configure a BI Engine reservation and add both the materialized view and its base tables to the preferred tables list.
Create a materialized view that pre-joins the tables and partition it by the sales date. Configure a BI Engine reservation and add only the materialized view to the preferred tables list.
Export the joined data to a BigLake Iceberg table and partition it by the sales date. Configure a BI Engine reservation and add the BigLake Iceberg table to the preferred tables list.
Create a logical view that joins the tables and partition the base sales_fact table by the sales date. Configure a BI Engine reservation and add the logical view to the preferred tables list.
Create a materialized view that pre-joins the tables and partition it by the sales date. Configure a BI Engine reservation and add both the materialized view and its base tables to the preferred tables list.
BigQuery BI Engine is a fast, in-memory analysis service that accelerates SQL queries by intelligently caching frequently used data. Materialized views are precomputed views that periodically cache the results of a query, such as complex joins or aggregations.
BI Engine works best with pre-joined or pre-aggregated data. Using a materialized view to flatten the data structure is the recommended best practice for optimizing performance. Furthermore, BigQuery requires that both the materialized view and its base tables be designated as preferred tables for the acceleration to occur, making this the only technically correct configuration.
Create a materialized view that pre-joins the tables and partition it by the sales date. Configure a BI Engine reservation and add only the materialized view to the preferred tables list.
Export the joined data to a BigLake Iceberg table and partition it by the sales date. Configure a BI Engine reservation and add the BigLake Iceberg table to the preferred tables list.