Professional Data Engineer on Google Cloud Platform Dataflow Practice Questions
The free Professional Data Engineer on Google Cloud Platform questions that deal with dataflow, with answers and explanations. The full bank and the timed practice test cover every topic the exam asks about.
Question #3
You are designing a basket abandonment system for an ecommerce company. The system will send a message to a user based on these rules: No interaction by the user on the site for 1 hour Has added more than $30 worth of products to the basket Has not completed a transaction You use Google Cloud Dataflow to process the data and decide if a message should be sent. How should you design the pipeline?
Correct answer: C
Explanation
A session window with a 60-minute gap closes exactly when a user has been inactive for an hour, grouping each user's activity so the basket contents and lack of a transaction can be evaluated at that moment.
Question #4
You have Google Cloud Dataflow streaming pipeline running with a Google Cloud Pub/Sub subscription as the source. You need to make an update to the code that will make the new Cloud Dataflow pipeline incompatible with the current version. You do not want to lose any data when making this update. What should you do?
Correct answer: D
Explanation
An incompatible change cannot use the in-place update, so the new pipeline runs on its own subscription while the old one keeps draining the original; only after the new job is consuming is the old pipeline cancelled, so no messages are lost.
Question #6
You are working on a sensitive project involving private user data. You have set up a project on Google Cloud Platform to house your work internally. An external consultant is going to assist with coding a complex transformation in a Google Cloud Dataflow pipeline for your project. How should you maintain users’ privacy?
Correct answer: D
Explanation
A de-identified sample in its own project lets the consultant build and test the pipeline without ever seeing personal data. Viewer or Dataflow Developer roles would still expose the production dataset, and sharing a service account breaks accountability.
Question #8
Your company is running their first dynamic campaign, serving different offers by analyzing real-time data during the holiday season. The data scientists are collecting terabytes of data that rapidly grows every hour during their 30-day campaign. They are using Google Cloud Dataflow to preprocess the data and collect the feature (signals) data that is needed for the machine learning model in Google Cloud Bigtable. The team is observing suboptimal performance with reads and writes of their initial load of 10 TB of data. They want to improve this performance while minimizing cost. What should they do?
Correct answer: A
Explanation
Bigtable performance depends on spreading traffic across the row key space; a schema whose keys distribute reads and writes evenly removes the hotspotting that a single or sequential key creates, without adding nodes.
Question #10
Your company is performing data preprocessing for a learning algorithm in Google Cloud Dataflow. Numerous data logs are being are being generated during this step, and the team wants to analyze them. Due to the dynamic nature of the campaign, the data is growing exponentially every hour. The data scientists have written the following code to read the data for a new key features in the logs. BigQueryIO.Read .named(“ReadLogData”) .from(“clouddataflow-readonly:samples.log_data”) You want to improve the performance of this data read. What should you do?
Correct answer: B
Explanation
Using .fromQuery to select just the needed columns avoids reading the whole table, which dominates the cost of this read. Table reference objects and schema classes do not change how much data BigQuery returns.
Continue with Professional Data Engineer on Google Cloud Platform
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in Professional Data Engineer on Google Cloud Platform, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
All Professional Data Engineer on Google Cloud Platform practice questions →
