Google Cloud Professional Data Engineer practice questions
Free practice, with shuffled choices and an explanation behind every answer. A little practice, a clearer next step.
Loading your practice…
From the videos
These questions come from the course videos. Information as of November 2026.
Professional Data Engineer sample questions
10 of the 179 questions, as plain text. Start a session above for shuffled choices, a score and the reason behind every choice.
Developers need realistic test data in the development project, but production rows contain personal data. What should the data engineer provide?
- De-identified copies in the development project
- Read access to the production tables
- Development jobs inside the production project
- One service account for every environment
Show the answer
De-identified copies in the development project
Environments stay separate, and data outside production is masked or de-identified. “Read access to the production tables” would expose real personal data to every developer. “Development jobs inside the production project” would mix the environments, so a test could break production. And “One service account for every environment” would give every environment the same access.
Analysts must join BigQuery trips with the current rows of a Cloud SQL table, without copying that table. What should they use?
- A nightly export of the Cloud SQL table
- A federated query to Cloud SQL
- Database Migration Service
- A Pub/Sub topic for the table
Show the answer
A federated query to Cloud SQL
A federated query reads the Cloud SQL table at query time, with no copy. “A nightly export of the Cloud SQL table” would be up to a day old, and adds a copy. “Database Migration Service” is for moving a database, not for querying it. And “A Pub/Sub topic for the table” would not let SQL read the table at all.
Trips store their stops in a nested, repeated field. Analysts must count the stops of each trip by type. What should the query do?
- Unnest the stops array
- Join a separate stops table
- Copy the table into a flat version
- Use a federated query
Show the answer
Unnest the stops array
Unnesting the repeated field turns each stop into a row that the query can group and count. “Join a separate stops table” would need a table that the nested design avoids. “Copy the table into a flat version” would duplicate the data for one query. And “Use a federated query” is for data outside BigQuery.
Planners want to forecast daily trips per city for the next month, with SQL. Which model fits?
- A k-means model on the daily trips
- A vector index on the trips table
- A logistic regression model, per city
- A time series model in BigQuery ML
Show the answer
A time series model in BigQuery ML
BigQuery ML supports time series forecasting with SQL. “A k-means model on the daily trips” would group rows into clusters, not forecast values. “A vector index on the trips table” only speeds up vector search. And “A logistic regression model, per city” would predict a class, not future values.
A subscriber bug wrote wrong values for six hours, and the messages were acknowledged. The subscription retains acknowledged messages. What should the data engineer do?
- Create a new subscription
- Lengthen the acknowledgment deadline
- Seek back to a time before the bug
- Add a dead-letter topic
Show the answer
Seek back to a time before the bug
Seeking to a past time marks later messages as unacknowledged, so they are delivered again. “Create a new subscription” would only receive messages published after it exists. “Lengthen the acknowledgment deadline” would not bring back messages that were acknowledged. And “Add a dead-letter topic” only collects messages that keep failing.
Researchers need the time between each rider’s trips, but exact dates could identify riders. Which de-identification technique fits?
- Bucketing every date into its year
- Masking each date with symbols
- Deleting the date columns
- Date shifting, per rider
Show the answer
Date shifting, per rider
Date shifting moves all of a rider's dates by the same random amount, so the intervals stay intact. “Bucketing every date into its year” would lose the time between trips within the same year. “Masking each date with symbols” would remove the dates completely, and every interval with them. And “Deleting the date columns” would leave no dates at all to compute intervals.
Events of each scooter must be processed in order, while different scooters can be processed in parallel. What should the publisher set?
- One separate topic for each scooter
- A single subscriber thread for all events
- An ordering key set to the scooter ID
- Exactly-once delivery
Show the answer
An ordering key set to the scooter ID
Messages with the same ordering key are delivered in order, while different keys flow in parallel. “One separate topic for each scooter” would create thousands of topics to manage. “A single subscriber thread for all events” would process every scooter one message at a time. And “Exactly-once delivery” is about repeated delivery, not the order of messages.
Each domain team built its own networks and keys, with different settings, and audits keep failing. What should the platform provide?
- Freedom for each domain to keep its setup
- One project for every domain
- No encryption keys at all
- Shared networks, keys, and policies
Show the answer
Shared networks, keys, and policies
Shared foundations are built once, centrally, so every domain uses the same settings. “Freedom for each domain to keep its setup” would keep the inconsistent settings that fail audits. “One project for every domain” would remove domain ownership and separate control. And “No encryption keys at all” would weaken security instead of fixing it.
Hundreds of views in a reporting dataset must read a source dataset, without users getting access to the source. What should the data engineer do?
- Authorize the reporting dataset
- Grant users Data Viewer on the source
- Copy the source tables into the reports
- Add policy tags to every column
Show the answer
Authorize the reporting dataset
An authorized dataset lets all of its views read the source, while users only see the views. “Grant users Data Viewer on the source” would give users the source tables directly. “Copy the source tables into the reports” would duplicate the data, and the copies would drift. And “Add policy tags to every column” only restricts columns, and does not let views read the source.
A DAG starts hundreds of tasks that call an external API, which accepts only five calls at once. What should the data engineer use?
- Retries set to zero
- An Airflow pool with five slots
- A sensor on the API
- Sub-DAGs that group all the calls
Show the answer
An Airflow pool with five slots
A pool limits how many tasks run at the same time, to protect a quota or a system. “Retries set to zero” would stop each run at the first failure. “A sensor on the API” only waits for an artifact, and limits nothing. And “Sub-DAGs that group all the calls” is a deprecated way to group tasks, and limits nothing.
Original practice questions written for Cert Espresso, not real exam questions.