Prepare and test your skills

Prepare and test your skills

Free sample question, answered and explained below. The Professional Data Engineer practice bank has 1,353 more like it. Try 10 free: instant score, no account.
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?
This approach uses an external ETL pipeline where BigQuery tables are exported to Cloud Storage, ingested and transformed using an Apache Spark cluster on Cloud Dataproc, and subsequently reloaded into BigQuery.
The workload required heavy non-SQL distributed machine learning algorithms or complex graph analytics that cannot be executed in SQL or BigQuery ML.
Legacy SQL UDFs represent the older SQL dialect in BigQuery, which allowed embedding JavaScript functions into query definitions prior to the introduction of standard GoogleSQL.
MAX_BY, rich JSON functions, and standardized analytic window functions available in GoogleSQL.Maintaining an existing, unmigrated legacy data pipeline that has not yet been modernized to standard GoogleSQL.
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.
BigQuery Remote Functions extend SQL capabilities by allowing GoogleSQL queries to call external HTTP endpoints hosted on Cloud Run or Cloud Run functions to run logic implemented in languages such as Python, Java, or Go.
STRUCT, ARRAY, INTERVAL, or GEOGRAPHY as input arguments or return types.STRING, BYTES, NUMERIC, DATETIME, JSON, etc.).The pipeline required third-party proprietary libraries, external machine learning model inference, or integration with external REST APIs that cannot be compiled or expressed in SQL or JavaScript.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated