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.
A data engineering team is designing a high-throughput batch transformation pipeline in BigQuery to process billions of customer interaction records daily. The pipeline needs to parse complex semi-structured payloads, determine the customer's most recent interaction event attributes per session without complex joins, and return structured objects containing arrays of historical actions.
The solution must run natively at scale within BigQuery, maximize query execution performance, avoid external concurrency throttling, and support caching and complex types like ARRAY and STRUCT.
Which declarative processing approach should the team implement?
Native GoogleSQL User-Defined Functions (UDFs) allow developers to write reusable scalar and table-valued transformation logic in standard SQL. When combined with advanced analytical and aggregate functions such as MAX_BY (or ANY_VALUE(... HAVING MAX ...)), BigQuery can efficiently evaluate complex row-level transformations and time-based attribute selections in a distributed fashion.
STRUCT and repeated ARRAY fields.MAX_BY function retrieves the value of a target column corresponding to the maximum value of another column (such as event_timestamp) within an aggregation or window frame, eliminating the need for self-joins or nested ranking subqueries.STRUCT, ARRAY, JSON, and native date/time data types.Native GoogleSQL UDFs combined with advanced aggregate functions execute entirely in-engine with native slot allocation, supporting full SQL type hierarchies (STRUCT, ARRAY) and deterministic query result caching.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.