Courseiva

Google Professional Data Engineer (PDE) — Questions 226300

890 questions total · 12pages · All types, answers revealed

Page 3

Page 4 of 12

Page 5
226
Multi-Selecthard

A company is migrating on-premises Apache Kafka workloads to Google Cloud. They want to minimize changes to existing producer and consumer applications while leveraging managed services. Which TWO services should they consider? (Choose 2)

Select 2 answers
A.BigQuery
B.Cloud Pub/Sub
C.Dataproc with Apache Kafka
D.Confluent Cloud on Google Cloud
E.Cloud Dataflow
AnswersC, D

Managed Kafka cluster on Dataproc; compatible with existing applications.

Why this answer

Kafka on Dataproc provides a managed Kafka cluster that is fully compatible, minimizing application changes. Confluent Cloud on Google Cloud can be used but is not a Google-managed service; however, it is a viable partner solution. Pub/Sub is not Kafka API-compatible.

Dataflow is not a replacement for Kafka. BigQuery is a data warehouse, not a streaming broker.

227
Drag & Dropmedium

Drag and drop the steps to create a Cloud Bigtable instance and table using the CLI into the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

Bigtable instances contain clusters; tables are created within instances and must have column families.

228
MCQmedium

A team wants to enforce data quality rules on BigQuery tables using Dataplex. They need to run column-level checks for null values and row-level checks for value ranges on a schedule. Which Dataplex feature should they use?

A.Dataplex Data Profiling
B.BigQuery stored procedures with scheduled queries
C.Dataplex Data Quality Tasks
D.Cloud DLP inspection jobs
AnswerC

Data Quality Tasks accept custom SQL rules and can be scheduled.

Why this answer

Dataplex Data Quality Tasks allow defining SQL-based rules (row and column) and scheduling scans.

229
MCQmedium

A company wants to move data from an on-premises MySQL database to BigQuery for analytics. They need to capture all changes (inserts, updates, deletes) in near real-time and also perform an initial historical load. Which approach meets these requirements with minimal operational overhead?

A.Use a Dataflow pipeline with a JDBC source to read the entire table periodically
B.Use Datastream to backfill historical data and then stream CDC changes to BigQuery
C.Use a one-time export to CSV and load into BigQuery, then set up a cron job to export incremental changes
D.Use Cloud SQL as an intermediary and enable binary logging, then stream to Pub/Sub via a custom connector
AnswerB

Datastream handles both backfill and CDC seamlessly.

Why this answer

Datastream can perform a backfill of historical data and then stream CDC changes from MySQL to BigQuery in near real-time, providing a single service for both tasks.

230
MCQmedium

A company wants to use Pub/Sub Lite to reduce costs for a high-throughput, low-latency streaming pipeline. However, they have a requirement to retain messages for up to 7 days for reprocessing. Which Pub/Sub Lite configuration supports this retention?

A.Set the retention duration on the Pub/Sub Lite topic to 7 days
B.Set the retention duration on the Pub/Sub Lite subscription to 7 days
C.Enable exactly-once delivery on the Pub/Sub Lite topic to retain messages for 7 days
D.Use a Pub/Sub Lite reservation with 7-day retention
AnswerA

Pub/Sub Lite topics allow setting message retention duration up to 7 days. Messages are retained in the topic's storage and can be re-delivered to subscriptions within that period.

Why this answer

Pub/Sub Lite topics are the only entity where retention duration is configured; messages are retained in the topic's storage for the specified duration, allowing subscribers to replay messages within that window. Setting the retention duration to 7 days on the topic ensures messages are available for reprocessing for up to 7 days, meeting the requirement.

Exam trap

Google often tests the distinction between topic-level and subscription-level retention in Pub/Sub Lite, where candidates mistakenly assume subscriptions control retention (as in standard Pub/Sub) rather than the topic itself.

How to eliminate wrong answers

Option B is wrong because Pub/Sub Lite subscriptions do not have a configurable retention duration; retention is set at the topic level, not the subscription. Option C is wrong because exactly-once delivery is a delivery semantics feature that prevents duplicate processing but does not control message retention duration. Option D is wrong because a Pub/Sub Lite reservation is used to provision and manage capacity (throughput) across topics, not to set retention policies.

231
Multi-Selectmedium

A data engineer needs to monitor a Pub/Sub-based streaming pipeline. Which two Cloud Monitoring metrics should be used to detect a backlog of unprocessed messages? (Choose two.)

Select 2 answers
A.subscription/oldest_unacked_message_age
B.topic/byte_cost
C.subscription/num_undelivered_messages
D.topic/send_request_count
E.subscription/ack_message_count
AnswersA, C

This metric shows the age of the oldest unacknowledged message, indicating backlog depth.

Why this answer

The 'subscription/num_undelivered_messages' metric shows the number of messages not yet acknowledged, and 'subscription/oldest_unacked_message_age' indicates how long messages have been waiting. Both help detect backlog.

232
Multi-Selecthard

A company is migrating their on-premises Apache Spark jobs to Google Cloud Dataproc. They want to minimize operational overhead and cost for jobs that run only a few times per day. Which TWO strategies should they adopt? (Choose TWO.)

Select 2 answers
A.Configure HDFS replication factor to 3 to ensure data durability during cluster restarts.
B.Rewrite the Spark jobs as Dataflow pipelines to take advantage of serverless processing.
C.Store all data in Cloud Storage instead of HDFS, and use the Cloud Storage connector to access it.
D.Create an ephemeral Dataproc cluster for each job and delete it after completion.
E.Use a small persistent cluster that runs continuously and submit jobs to it.
AnswersC, D

Correct. Storing data in Cloud Storage decouples storage from compute, enabling ephemeral clusters. The Cloud Storage connector provides Hadoop-compatible access, eliminating HDFS overhead and reducing cost because storage is billed separately and persists beyond cluster lifetime.

Why this answer

Storing data in Cloud Storage decouples storage from compute, allowing ephemeral clusters to be spun up and down without data loss. The Cloud Storage connector provides Hadoop-compatible file system access, eliminating the need for HDFS replication and reducing costs by avoiding persistent cluster storage. Option D is correct because ephemeral Dataproc clusters are created per job and deleted after completion, which minimizes cost and operational overhead for intermittent workloads, as there is no need to maintain a persistent cluster.

Options A and B are incorrect: A proposes HDFS replication, which is unnecessary when using Cloud Storage, and B suggests rewriting jobs as Dataflow pipelines, which is not a required strategy for the stated goal of minimizing overhead for existing Spark jobs. Option E is incorrect because a persistent cluster incurs continuous costs and operational overhead, which is not optimal for jobs that run only a few times per day.

Exam trap

A common mistake is to think that a persistent cluster is needed for data durability or to avoid job startup latency. However, for jobs that run only a few times per day, ephemeral clusters with Cloud Storage are more cost-effective and operationally simpler.

233
MCQeasy

Your team wants to continuously monitor a deployed model's performance in production. They need to detect when the model's predictions become unreliable due to changes in the real world (e.g., new customer behavior). Which Vertex AI service should they use?

A.Vertex AI Explainable AI
B.Vertex AI Experiments
C.Vertex AI Model Monitoring
D.Vertex AI Prediction
AnswerC

Model Monitoring continuously checks for skew, drift, and performance issues.

Why this answer

Vertex AI Model Monitoring is the correct choice because it is specifically designed to continuously track a deployed model's prediction quality over time, detecting issues like data drift, feature drift, and prediction skew that indicate the model's reliability is degrading due to changes in the real world. It automatically compares incoming prediction data against a baseline training dataset and alerts when statistical distributions shift beyond configurable thresholds, enabling proactive retraining or intervention.

Exam trap

Google Cloud often tests the distinction between services that 'serve' predictions (Vertex AI Prediction) versus those that 'monitor' predictions (Vertex AI Model Monitoring), leading candidates to mistakenly choose the prediction service when the question asks about detecting unreliability.

How to eliminate wrong answers

Option A is wrong because Vertex AI Explainable AI provides feature attributions and explanations for individual predictions, but it does not continuously monitor model performance or detect drift in production. Option B is wrong because Vertex AI Experiments is used for tracking and comparing machine learning experiments during model development, not for monitoring deployed models in production. Option D is wrong because Vertex AI Prediction is the service that hosts and serves the model for online predictions, but it has no built-in monitoring capabilities for detecting performance degradation or data drift.

234
Multi-Selecthard

A company uses Dataflow to process data with Apache Beam in Python. The pipeline reads from Pub/Sub, applies a ParDo that calls an external API for enrichment, and writes to BigQuery. The external API has rate limits and occasionally fails. To improve reliability, which THREE strategies should be implemented? (Choose 3)

Select 3 answers
A.Switch from Python to Java SDK for better performance
B.Increase the number of Dataflow workers to reduce load per worker
C.Batch multiple requests to the external API using a side input
D.Implement retry logic with exponential backoff in the external API call
E.Use a dead letter pattern to write failed records to a separate sink
AnswersC, D, E

Batching reduces the number of API calls, helping with rate limits.

Why this answer

Retry logic with exponential backoff, a dead letter queue for failed records, and batching requests reduce API pressure and handle failures gracefully.

235
MCQmedium

A company wants to design a data pipeline for real-time fraud detection. The system must process streaming financial transactions, enrich them with user profiles from a lookup table, and flag suspicious activities within seconds. Which architecture pattern would be MOST suitable?

A.Pub/Sub combined with Cloud Functions for stateless processing
B.Kappa architecture using a single stream processing framework like Apache Beam
C.Batch processing with hourly micro-batches using Dataflow
D.Lambda architecture with a batch layer for historical analysis and a speed layer for real-time processing
AnswerB

Kappa processes everything as a stream, suitable for real-time fraud detection with enrichment from a side input.

Why this answer

Kappa architecture uses a single stream processing engine to handle both real-time and batch reprocessing, simplifying the pipeline. Lambda architecture requires maintaining separate batch and streaming layers, increasing complexity. The scenario only requires real-time processing with enrichment, so Kappa is more appropriate.

236
MCQhard

In the Vertex AI Pipeline component YAML exhibit, the component is designed to evaluate a model and produce metrics. If the threshold_accuracy is set to 0.85, what is the expected behavior of this component?

A.It will output the evaluation metrics, and the pipeline can use them for conditional decisions
B.It will deploy the model if the accuracy meets the threshold
C.It will ignore the threshold_accuracy input if not provided
D.It will fail if the model accuracy is below 0.85
AnswerA

The component outputs metrics for downstream use.

Why this answer

In Vertex AI Pipelines, a component's YAML definition specifies inputs, outputs, and implementation. Setting `threshold_accuracy` to 0.85 defines a parameter that the component can use internally, but by itself it does not trigger deployment or cause failure. The component's expected behavior is to output evaluation metrics, and the pipeline can then use those metrics in conditional logic (e.g., via `Condition` or `if/else` tasks) to decide subsequent steps, such as model deployment or retraining.

Exam trap

Google Cloud often tests the misconception that setting a threshold in a component's YAML automatically enforces that threshold (e.g., causing failure or deployment), when in reality the YAML only defines the interface and the component's code must explicitly implement such logic.

How to eliminate wrong answers

Option B is wrong because Vertex AI Pipeline components do not inherently deploy models; deployment is a separate step typically handled by a deployment component or a pipeline condition that triggers a deployment task. Option C is wrong because if `threshold_accuracy` is not provided, the component will either use a default value defined in the YAML or fail validation, depending on whether the input is required; it does not simply ignore it. Option D is wrong because the component does not fail when accuracy is below the threshold; it merely outputs the metrics, and the pipeline logic (e.g., a conditional branch) must be explicitly configured to handle such cases.

237
MCQmedium

A company needs to process streaming sensor data from millions of devices with sub-second latency, apply transformations, and write results to BigQuery for real-time dashboards. The data volume varies, and they want to avoid managing servers. Which service should they use?

A.Cloud Data Fusion
B.Dataflow
C.Dataproc
D.Dataprep
AnswerB

Dataflow is serverless, supports streaming, and integrates with BigQuery.

Why this answer

Dataflow is a fully managed, serverless stream and batch processing service that can handle high-throughput streaming with sub-second latency.

238
MCQeasy

You need to run a one-time data transformation job on a small CSV file (100 MB) using a visual, code-free interface. Which Google Cloud service is designed for this?

A.Dataflow
B.Cloud Data Fusion
C.Dataprep
D.Dataproc
AnswerC

Dataprep provides visual wrangling for data exploration and transformation.

Why this answer

Dataprep (Trifacta) is a visual data wrangling tool for exploring and transforming data without code. It's ideal for ad-hoc, small to medium datasets.

239
MCQmedium

Refer to the exhibit. A developer sees this log entry when trying to get a prediction. What is the most likely cause?

A.The model ID is incorrect
B.The model version is not deployed
C.The endpoint does not exist
D.The project ID is wrong
AnswerB

A model version must be deployed to an endpoint to serve predictions; 'not found' suggests it is not deployed.

Why this answer

The log entry indicates that the model version specified in the request is not currently deployed to the serving infrastructure. In Google Cloud's Vertex AI, a model version must be explicitly deployed to an endpoint before it can serve predictions; attempting to predict against a non-deployed version returns an error. This is the most likely cause because the error message directly references the model version's deployment status.

Exam trap

Google Cloud often tests the distinction between model registry operations (uploading, versioning) and serving operations (deploying, predicting), trapping candidates who assume any model version in the registry is automatically available for predictions.

How to eliminate wrong answers

Option A is wrong because an incorrect model ID would typically result in a 'Model not found' or 'Invalid model' error, not a deployment status error. Option C is wrong because a non-existent endpoint would produce a 'Endpoint not found' or 'Resource not found' error, not a version deployment issue. Option D is wrong because a wrong project ID would cause an authentication or permission error (e.g., 'Project not found' or 'Permission denied'), not a model version deployment error.

240
MCQeasy

Refer to the exhibit. A subscriber is unable to pull messages from the topic. What is the most likely cause?

A.The service account has the subscriber role but the topic is not configured correctly.
B.The service account needs roles/pubsub.viewer to list subscriptions.
C.No subscription has been created for the topic.
D.The service account lacks roles/pubsub.publisher.
AnswerC

A subscription is required to pull messages; the topic only provides the ability to publish.

Why this answer

In Google Cloud Pub/Sub, a topic is a named resource to which messages are sent by publishers. Subscribers must create a subscription (pull or push) to receive messages from that topic. If no subscription exists, the subscriber cannot pull any messages because there is no delivery endpoint or pull queue attached to the topic.

Option C correctly identifies this missing subscription as the root cause.

Exam trap

Google Cloud often tests the distinction between topics and subscriptions, trapping candidates who assume that having a topic and a subscriber role is sufficient to receive messages, when in fact a subscription must be explicitly created.

How to eliminate wrong answers

Option A is wrong because the service account having the subscriber role (roles/pubsub.subscriber) is sufficient to pull messages; the topic configuration (e.g., schema, message retention) does not prevent pulling if a subscription exists. Option B is wrong because roles/pubsub.viewer only grants read access to list topics and subscriptions, not to pull messages; the subscriber role already includes the permission to list subscriptions (pubsub.subscriptions.list). Option D is wrong because roles/pubsub.publisher is required only to publish messages to a topic, not to pull messages; the subscriber role is the correct permission for pulling.

241
Multi-Selecthard

A company uses Cloud Pub/Sub with pull subscriptions to process orders. The application requires at-least-once delivery and the ability to process orders in order per customer_id. Which THREE features should they configure? (Choose three.)

Select 3 answers
A.Configure a dead letter topic
B.Use a push subscription with a HTTPS endpoint
C.Enable ordering keys on the topic
D.Enable message ordering on the subscription
E.Set the subscription's ackDeadline to 600 seconds
AnswersA, C, D

Allows failed messages to be stored without blocking subsequent messages.

Why this answer

A dead letter topic is correct because it allows undeliverable messages to be moved to a separate topic after all delivery attempts are exhausted, preventing message loss while still enabling at-least-once delivery semantics. This ensures that problematic messages do not block the processing of subsequent messages in the same ordering key group, which is critical when message ordering is enabled.

Exam trap

A common misconception is that push subscriptions can support message ordering, but in reality, only pull subscriptions with ordering enabled can guarantee per-key order, and push subscriptions always deliver messages unordered.

242
MCQeasy

A company is running a Cloud Dataflow streaming pipeline that aggregates events in 1-minute windows. They notice that the watermark is lagging significantly behind real-time. What is the most likely cause?

A.A hot key is causing data skew.
B.The window duration is too short.
C.The pipeline was recently updated.
D.The allowed lateness is set too high.
AnswerA

Hot key causes processing delays.

Why this answer

A hot key causes data skew, which means a disproportionate amount of data is assigned to a single key. In Cloud Dataflow, this leads to a single worker processing the bulk of the events, creating a processing bottleneck. The watermark, which tracks the progress of event-time processing, cannot advance until all data for a given window is processed, so the skewed key delays watermark progression significantly behind real-time.

Exam trap

Google Cloud often tests the misconception that watermark lag is caused by configuration settings like window duration or allowed lateness, rather than by data-level issues like hot keys that create processing bottlenecks.

How to eliminate wrong answers

Option B is wrong because a short window duration does not inherently cause watermark lag; it may increase computational overhead but does not prevent the watermark from advancing based on data arrival. Option C is wrong because a pipeline update (e.g., via a new job version) does not cause persistent watermark lag; it may cause a brief reprocessing delay but not a sustained lag. Option D is wrong because setting allowed lateness too high only affects how long the pipeline waits for late data after the watermark passes; it does not cause the watermark itself to lag behind real-time.

243
MCQeasy

Your team wants to share a BigQuery dataset with another project while ensuring that users from that project can only query specific tables. Which BigQuery feature should you use?

A.Create an authorised view in your dataset and share the view with the other project
B.Use a materialised view and share the underlying table
C.Grant the BigQuery Data Viewer role to the other project's service account
D.Export the table to Cloud Storage and share the bucket
AnswerA

Authorised views allow fine-grained access control by sharing only the view's results.

Why this answer

Authorised views allow you to share query results with users in other projects without giving them direct access to the underlying tables.

244
MCQmedium

A data scientist is using AutoML Tables to build a classification model for predicting customer churn. The dataset is highly imbalanced (only 1% churn). Which strategy should they use to handle the class imbalance within AutoML Tables?

A.Manually apply SMOTE to the training data before uploading to AutoML Tables.
B.No action needed; AutoML Tables automatically handles class imbalance by adjusting class weights.
C.Enable the 'enable_class_imbalance_handling' flag during training.
D.Set the 'class_weight' parameter in the AutoML Tables training configuration to 'balanced'.
AnswerB

Correct.

Why this answer

AutoML Tables automatically computes class weights and applies them during training to handle imbalanced data. You do not need to manually apply SMOTE or change the training budget; AutoML Tables handles it out of the box.

245
MCQmedium

A financial services company uses Cloud Composer to orchestrate daily batch jobs. One job extracts data from MongoDB to Cloud Storage, then loads into BigQuery, and finally runs a Dataflow pipeline for aggregations. The Dataflow job fails intermittently. They want to automatically restart only the failed Dataflow job without re-running the earlier extraction and load. Which Airflow operator configuration should they use?

A.Implement a SlaMiss sensor
B.Use a DAG with depends_on_past=True
C.Set retries=2 on the Dataflow operator
D.Set trigger_rule='one_success' for downstream tasks
AnswerC

Retries automatically re-run the failed task without affecting upstream tasks.

Why this answer

Setting retries=2 on the Dataflow operator instructs Airflow to automatically restart only that specific task upon failure, without affecting upstream tasks (MongoDB extraction, BigQuery load). This isolates the retry to the Dataflow job, preserving the earlier completed work and avoiding redundant data movement.

Exam trap

Google Cloud often tests the distinction between task-level retry mechanisms and dependency/trigger rules, so the trap here is confusing `retries` (which restarts the failed task) with `trigger_rule` or `depends_on_past` (which only affect task scheduling or downstream execution).

How to eliminate wrong answers

Option A is wrong because SlaMiss sensors are used to detect when tasks have not completed within a defined SLA window, not to trigger automatic retries of failed tasks. Option B is wrong because depends_on_past=True enforces sequential execution order across DAG runs (e.g., today’s task waits for yesterday’s success), but does not provide automatic retry on failure within the same run. Option D is wrong because trigger_rule='one_success' controls downstream task execution based on upstream task outcomes (e.g., if one upstream succeeds, proceed), but does not restart a failed task; it only affects task dependencies.

246
MCQeasy

A data engineer notices that Spark jobs on the Dataproc cluster shown often fail with executor lost errors. What is the most likely reason?

A.All 10 workers are preemptible and can be reclaimed by Compute Engine at any time.
B.The master node has only 4 vCPUs, which may be insufficient for job coordination.
C.The cluster is in a single zone, so a zone failure could cause all workers to shut down.
D.Autoscaling is enabled and scaling down is causing workers to be removed during job execution.
AnswerA

Preemptible VMs can be terminated within 24 hours; Spark executors fail when workers are preempted.

Why this answer

Preemptible VMs in Google Compute Engine can be terminated at any time due to resource contention or other factors, with only 30 seconds notice. If all 10 worker nodes are preemptible, Spark executors running on them will be frequently lost, causing job failures. This is the most direct cause of 'executor lost' errors in a Dataproc cluster.

Exam trap

The trap here is that candidates may overlook the 'all 10 workers are preemptible' detail and instead focus on common misconfigurations like single-zone risk or autoscaling, but the explicit mention of preemptible VMs is the key indicator of frequent, unpredictable executor loss.

How to eliminate wrong answers

Option B is wrong because the master node's vCPUs (4) are typically sufficient for job coordination; executor lost errors are not caused by insufficient master resources but by worker instability. Option C is wrong because a single-zone cluster does not cause frequent executor losses; zone failures are rare and would cause complete cluster failure, not intermittent executor lost errors. Option D is wrong because autoscaling removes workers gracefully, allowing Spark to reschedule tasks before termination; it does not cause the abrupt 'executor lost' errors seen here.

247
MCQhard

A team uses Vertex AI Feature Store for real-time features. They notice that features are frequently missing during prediction serving. What is the best practice to handle missing features?

A.Retrain the model to handle missing values
B.Impute missing values in the serving function
C.Use a default value in the feature store definition
D.Drop the prediction request
AnswerC

Feature store allows defining default values for missing features.

Why this answer

Vertex AI Feature Store allows you to define a default value for each feature at the time of feature store creation or feature definition. When a feature value is missing during serving, the feature store automatically returns this default value instead of failing or returning null. This ensures that the serving function always receives a valid feature value without requiring custom imputation logic or model retraining.

Exam trap

Google Cloud often tests the misconception that missing values should be handled by the model or serving code, but the correct approach is to leverage the feature store's built-in default value capability to ensure consistency and low latency.

How to eliminate wrong answers

Option A is wrong because retraining the model to handle missing values does not address the root cause of missing features during serving; it only adapts the model to potentially missing inputs, but the feature store should guarantee a value is present. Option B is wrong because imputing missing values in the serving function introduces latency and custom logic that should be handled at the feature store level; Vertex AI Feature Store provides built-in default value support to avoid this. Option D is wrong because dropping the prediction request is a drastic measure that leads to poor user experience and loss of business value; the feature store should gracefully handle missing features with defaults.

248
MCQeasy

A data engineer needs to process large CSV files (hundreds of GB) stored in Cloud Storage using Spark on a Dataproc cluster. The job performs a series of transformations and aggregations. Which configuration is most cost-effective and operationally efficient?

A.Use a cluster with 10 high-memory (n1-highmem-8) VMs as workers to improve shuffle performance.
B.Use a cluster with a standard master node and 10 preemptible worker nodes (n1-standard-4).
C.Use a single-node cluster with a high-memory machine type.
D.Use a cluster with 10 standard (n1-standard-4) VMs as master and worker nodes, all non-preemptible.
AnswerB

Preemptible workers are cost-effective and suitable for fault-tolerant jobs like Spark.

Why this answer

Preemptible workers are significantly cheaper (about 80% discount) and ideal for batch processing of large CSV files where fault tolerance is built into Spark via RDD lineage. Using standard nodes for the master ensures cluster stability, while preemptible workers handle the distributed transformations and aggregations cost-effectively. This configuration balances cost and operational efficiency for ephemeral, fault-tolerant workloads.

Exam trap

Google Cloud often tests the misconception that preemptible VMs are unreliable for all workloads, but in Spark batch processing with fault tolerance, they are both cost-effective and operationally efficient, unlike stateful or latency-sensitive applications.

How to eliminate wrong answers

Option A is wrong because using high-memory VMs (n1-highmem-8) for all workers increases cost unnecessarily; shuffle performance is better addressed by tuning Spark parameters (e.g., spark.shuffle.partitions) and using SSDs, not by over-provisioning memory. Option C is wrong because a single-node cluster cannot process hundreds of GB of data efficiently due to lack of parallelism and memory constraints, and it violates the distributed processing paradigm of Spark. Option D is wrong because using all non-preemptible standard VMs (n1-standard-4) for both master and workers eliminates the cost savings of preemptible instances, and having a separate master node is unnecessary for small clusters—the driver can run on a worker—but the main issue is the higher cost without fault-tolerance benefits.

249
MCQhard

You are designing a Dataflow pipeline that needs to exactly-once process events from Pub/Sub and write to BigQuery using the Storage Write API. The pipeline may restart and could reprocess some messages. What setting ensures exactly-once semantics for the output?

A.Use the legacy streaming inserts with insertId for deduplication
B.Use at-least-once delivery on Pub/Sub and idempotent writes to BigQuery
C.Use the Storage Write API in buffered mode with deduplication logic
D.Use the Storage Write API in committed mode and enable exactly-once semantic in Dataflow
AnswerD

Committed mode guarantees exactly-once writes, and Dataflow can coordinate with Pub/Sub to avoid duplicates.

Why this answer

The Storage Write API supports exactly-once semantics when used with the 'committed' mode, which ensures each record is written exactly once. The pipeline also needs to use Pub/Sub with message IDs and deduplication. The other options either do not provide exactly-once or are unreliable.

250
MCQhard

A data engineer is designing a Dataflow pipeline that reads from a Kafka topic (using Pub/Sub for Kafka) and writes to BigQuery. The data schema may change over time, with new fields appearing. The engineer wants to handle schema drift automatically without failing the pipeline. Which approach should the engineer use?

A.Use a Dataflow side input that reads the latest schema from a file and updates the BigQuery schema accordingly.
B.Define a UDF in Dataflow that dynamically adjusts the output schema.
C.Store the entire record as a single JSON string column in BigQuery and parse it later.
D.Configure the Dataflow pipeline to use BigQuery's schema autodetect option for each insert.
AnswerC

This is a common pattern: store raw data in a JSON column (with a flexible schema), and handle schema evolution by adding new fields as nested columns or using SQL to extract them later.

Why this answer

Storing the entire record as a single JSON string column in BigQuery allows the pipeline to accept any schema changes without requiring schema modifications at write time. This approach decouples the ingestion from schema evolution, enabling the data to be parsed later using BigQuery's JSON functions (e.g., JSON_EXTRACT) or by loading into a separate schema-on-read layer. It avoids pipeline failures caused by mismatched fields or type changes.

Exam trap

A common misconception is that BigQuery's schema autodetect works with streaming inserts, but it is only available for batch load jobs, leading candidates to incorrectly choose option D.

How to eliminate wrong answers

Option A is wrong because using a side input to read a schema file introduces external dependency and latency; the schema update would not be atomic with the incoming data, and the pipeline would still need to handle schema mismatches during the window when the file is being updated. Option B is wrong because a UDF in Dataflow operates on individual elements but cannot alter the BigQuery output table schema dynamically; the output schema must be fixed at pipeline construction time, so a UDF cannot add new columns to BigQuery on the fly. Option D is wrong because BigQuery's schema autodetect option is only available for load jobs (e.g., from GCS) and is not supported for streaming inserts via the Storage Write API or tabledata.insertAll; even if it were, autodetect would fail on the first record with a new field if the table schema is not updated first.

251
Multi-Selectmedium

A company is migrating their on-premises Hadoop workloads to Google Cloud. They want to use Dataproc for data processing and need to minimize costs for non-critical batch jobs that can tolerate interruptions. Which TWO configurations should they use?

Select 2 answers
A.Use preemptible instances for worker nodes
B.Enable high-availability mode
C.Use standard (non-preemptible) instances for all nodes
D.Use single-node clusters for small jobs
E.Use Dataproc on GKE
AnswersA, D

Preemptible VMs are cheaper and suitable for fault-tolerant batch jobs.

Why this answer

Preemptible instances are cheaper and can be preempted, suitable for fault-tolerant batch jobs. Single-node clusters are cost-effective for small jobs.

252
MCQmedium

A company is using Pub/Sub to ingest clickstream events. They need to ensure that events are delivered to a subscriber at least once, but duplicates can be tolerated. They also need to filter events by type before processing. Which subscription configuration should be used?

A.Pull subscription with exactly-once delivery enabled
B.Push subscription with no filter
C.Pull subscription with a filter on event type attribute
D.Push subscription with a dead letter topic
AnswerC

Pull subscriptions allow the subscriber to control message flow. Filtering on attributes ensures only matching messages are delivered. At-least-once is default.

Why this answer

Pub/Sub provides at-least-once delivery for both pull and push subscriptions. Filtering by attributes is supported at subscription level. Pull subscriptions are typically used when the subscriber controls the pace.

Push subscriptions are also possible, but the question does not specify delivery method preference. The key is to enable message filtering on the subscription.

253
MCQmedium

A machine learning team wants to deploy a new model version for canary testing, where only 5% of traffic is routed to the new version. Which Vertex AI endpoint configuration supports this?

A.Have the client application randomly select which model to call with 5% probability.
B.Deploy the new version to a separate endpoint and direct 5% of users via a load balancer.
C.Configure the endpoint with traffic split: 95% to old version, 5% to new version.
D.Use an A/B testing framework outside of Vertex AI to compare results.
AnswerC

Vertex AI endpoints allow splitting traffic between deployed models; the platform handles routing.

Why this answer

Vertex AI endpoints natively support traffic splitting, allowing you to route a specified percentage of requests to different model versions deployed on the same endpoint. By configuring a traffic split of 95% to the old version and 5% to the new version, you can perform canary testing without additional infrastructure or client-side logic. This is the correct and simplest approach within Vertex AI.

Exam trap

The trap here is that candidates may think canary testing requires external tools or client-side logic, but Vertex AI's built-in traffic splitting is the intended and simplest method for this purpose.

How to eliminate wrong answers

Option A is wrong because it requires modifying the client application to implement random selection, which is error-prone, not managed by Vertex AI, and does not provide centralized traffic management or monitoring. Option B is wrong because deploying to a separate endpoint and using an external load balancer adds unnecessary complexity and bypasses Vertex AI's built-in traffic splitting capabilities, which are designed for this exact use case. Option D is wrong because using an external A/B testing framework outside Vertex AI would require custom integration and does not leverage Vertex AI's native traffic split feature, which is simpler and more reliable for canary deployments.

254
MCQeasy

A company has a BigQuery dataset containing sensitive customer data. They want to share a subset of this data with external partners, ensuring that partners can only see specific columns and rows. Which BigQuery feature should they use?

A.Materialized views
B.Authorized views
C.Clustered tables
D.Dataset-level access controls
AnswerB

Authorized views allow you to grant access to a view that selects specific columns and rows, without giving direct access to the base table.

Why this answer

Authorized views allow you to share a query (view) that filters columns and rows, while granting access to the view only, not the underlying tables.

255
MCQmedium

A data engineering team needs to build a data integration pipeline that involves connecting to multiple sources, performing data transformations with visual editing, and then running custom machine learning algorithms. The team has both data analysts and data scientists. Which approach is most suitable?

A.Use Cloud Composer to orchestrate both Data Fusion and Dataproc
B.Use only Cloud Dataproc for all steps
C.Use only Cloud Data Fusion for all steps
D.Use Cloud Data Fusion for the initial ingestion and transformations, then export the data to Cloud Dataproc for the ML algorithms
AnswerD

This leverages the strengths of both services: visual integration and custom ML.

Why this answer

It leverages Cloud Data Fusion's visual, no-code interface for data ingestion and transformation, which is ideal for data analysts, and then exports the prepared data to Cloud Dataproc, which provides native support for custom machine learning algorithms using Spark or Hadoop, meeting the data scientists' needs. This separation of concerns optimizes the pipeline for both user groups and avoids forcing all tasks into a single tool that may not excel at both visual ETL and custom ML.

Exam trap

Google Cloud often tests the misconception that a single tool can handle both visual ETL and custom ML, leading candidates to choose Cloud Data Fusion alone (Option C) without realizing it lacks native support for running custom algorithms like Spark MLlib or TensorFlow.

How to eliminate wrong answers

Option A is wrong because Cloud Composer is an orchestration tool (based on Apache Airflow) that manages workflow dependencies and scheduling, but it does not perform data transformations or run ML algorithms itself; using it to orchestrate both Data Fusion and Dataproc adds unnecessary complexity and does not directly address the need for visual editing or custom ML execution. Option B is wrong because Cloud Dataproc is a managed Spark/Hadoop service that requires coding for data transformations, which does not provide the visual editing capabilities needed by data analysts, and it would force all team members to write code, reducing productivity. Option C is wrong because Cloud Data Fusion is designed for visual ETL and data integration but lacks native support for running custom machine learning algorithms; it can only trigger external services like Dataproc for such tasks, making it insufficient for the ML step.

256
Multi-Selecteasy

A data engineer is setting up CI/CD for a machine learning model using Cloud Build and Vertex AI. Which two components are essential? (Select 2)

Select 2 answers
A.Cloud Storage for datasets
B.Container Registry for model images
C.Cloud Source Repositories
D.Vertex AI Endpoints for deployment
E.Cloud Functions for triggers
AnswersB, D

Model images must be stored and versioned in a registry like Container Registry to deploy to Vertex AI.

Why this answer

Container Registry (option B) is essential because it stores the Docker container images that encapsulate the trained model and its dependencies, which Cloud Build builds and pushes to the registry. Vertex AI Endpoints (option D) is essential because it provides the managed serving infrastructure to deploy the model image and expose it as a REST API for online predictions, enabling the CI/CD pipeline to automatically update the endpoint with new model versions.

Exam trap

Google often tests the distinction between 'essential' and 'optional' components; candidates mistakenly select Cloud Storage (A) because they think datasets are required for CI/CD, but the pipeline only needs the model image and a deployment target, not the raw training data.

257
Multi-Selecteasy

A data engineer is using Vertex AI Workbench to develop a custom ML model. They want to store and version datasets, track experiments, and register models. Which three Vertex AI services should they use? (Choose THREE)

Select 3 answers
A.Vertex AI Model Registry
B.Vertex AI Dataset
C.Vertex AI Feature Store
D.Vertex AI Matching Engine
E.Vertex AI Experiments
AnswersA, B, E

For registering and versioning models.

Why this answer

Vertex AI Dataset stores and manages datasets. Vertex AI Experiments tracks ML experiments. Vertex AI Model Registry stores and versions trained models.

258
MCQeasy

A company wants to stream data from Cloud Pub/Sub into BigQuery with minimal latency. They have a small team and limited operational resources. Which approach is best?

A.Write a custom application on Compute Engine that polls Pub/Sub and writes to BigQuery.
B.Create a Dataproc cluster running a Spark Streaming job.
C.Create a Cloud Function that writes to BigQuery.
D.Use a Dataflow pipeline with a BigQuery subscription.
AnswerD

Serverless and low maintenance.

Why this answer

A Dataflow pipeline with a BigQuery subscription provides a fully managed, serverless streaming solution that directly ingests messages from Pub/Sub and writes them to BigQuery with minimal latency. Dataflow handles autoscaling, checkpointing, and exactly-once semantics, which aligns with the team's limited operational resources. The BigQuery subscription (via the Pub/Sub to BigQuery template) eliminates the need for custom code or cluster management, ensuring low-latency streaming without operational overhead.

Exam trap

Google Cloud often tests the misconception that a simple serverless function (Cloud Function) is sufficient for streaming workloads, but candidates overlook that Cloud Functions are designed for event-driven, short-lived tasks and lack the state management, exactly-once guarantees, and sustained throughput needed for continuous data ingestion into BigQuery.

How to eliminate wrong answers

Option A is wrong because writing a custom application on Compute Engine requires the team to manage polling logic, handle failures, and scale instances manually, which contradicts the requirement for minimal operational resources and introduces unnecessary latency and complexity. Option B is wrong because creating a Dataproc cluster running a Spark Streaming job introduces significant operational overhead for cluster provisioning, scaling, and maintenance, and Spark Streaming typically has higher latency (seconds) compared to Dataflow's millisecond-level streaming, making it suboptimal for minimal latency. Option C is wrong because a Cloud Function that writes to BigQuery is not designed for continuous streaming; Cloud Functions have a maximum timeout of 9 minutes (or 60 minutes with 2nd gen) and are triggered per event, which can lead to throttling, out-of-order writes, and lack of exactly-once semantics, making it unsuitable for sustained, low-latency streaming into BigQuery.

259
Multi-Selectmedium

A company deploys a TensorFlow model on Vertex AI for online predictions. They want to monitor model performance in production to detect degradation. Which TWO practices should they implement? (Choose 2.)

Select 2 answers
A.Use a separate endpoint for shadow testing new model versions.
B.Log prediction requests and responses to Cloud Logging and analyze distribution metrics.
C.Set up Cloud Monitoring alerts for high prediction latency.
D.Schedule daily retraining of the model regardless of monitoring alerts.
E.Enable Vertex AI Model Monitoring for feature drift and skew detection on the deployed model.
AnswersB, E

Analyzing request distributions can detect changes in input data patterns that may affect model performance.

Why this answer

Logging prediction requests and responses to Cloud Logging allows you to analyze distribution metrics (e.g., mean, variance, quantiles) over time. This enables detection of data drift or performance degradation by comparing live distributions against baseline distributions, which is a standard monitoring practice for production ML models.

Exam trap

Google Cloud often tests the distinction between monitoring for model degradation (data drift/skew) versus monitoring for operational issues (latency, errors), leading candidates to confuse infrastructure alerts with model performance monitoring.

260
MCQeasy

A team needs to store transactional data for an e-commerce application that requires ACID transactions, automatic backups, and point-in-time recovery. The expected workload is under 10,000 QPS. Which database should they choose?

A.Cloud Bigtable
B.Cloud SQL
C.Firestore
D.Cloud Spanner
AnswerB

Correct choice: ACID, backups, PITR, fits OLTP under 10k QPS.

Why this answer

Cloud SQL is the correct choice because it provides fully managed relational databases (MySQL, PostgreSQL, SQL Server) with built-in ACID transaction support, automated backups, and point-in-time recovery (PITR) via binary logs or write-ahead logs. The workload of under 10,000 QPS is well within Cloud SQL's performance envelope, making it a cost-effective and operationally simple solution for transactional e-commerce data.

Exam trap

The trap here is that candidates often choose Cloud Spanner for any workload requiring ACID transactions and high availability, overlooking that Cloud SQL is sufficient and more cost-effective for sub-10,000 QPS workloads, and that Cloud Spanner's global distribution and strong consistency come with a significant price premium.

How to eliminate wrong answers

Option A is wrong because Cloud Bigtable is a NoSQL, wide-column database designed for high-throughput analytical workloads (millions of QPS) and does not support ACID transactions or SQL queries, making it unsuitable for transactional e-commerce data. Option C is wrong because Firestore is a NoSQL document database that, while supporting transactions, does not offer the full ACID guarantees across multiple documents in the same way as a relational database, and its automatic backup and PITR capabilities are limited compared to Cloud SQL. Option D is wrong because Cloud Spanner is a globally distributed, horizontally scalable relational database that supports ACID transactions and PITR, but it is overkill and significantly more expensive for a workload under 10,000 QPS, which can be handled more cost-effectively by Cloud SQL.

261
MCQeasy

You are responsible for monitoring a production ML model on Vertex AI. The model predicts loan approval probability. The business team reports that the model's predictions are becoming less accurate over the last week. You check the model's monitoring dashboard and see that the prediction distribution has changed significantly. What is the most likely issue?

A.The model is suffering from overfitting to the training data.
B.There is a bug in the model's preprocessing code.
C.There is data drift in the input features.
D.The model is experiencing concept drift.
AnswerD

Concept drift means the underlying relationship between features and target has changed, causing prediction distribution to shift and accuracy to drop.

Why this answer

Concept drift occurs when the underlying relationship between input features and the target variable changes over time, causing the model's predictions to become less accurate even if the input data distribution remains stable. In this scenario, the prediction distribution has changed significantly, which is a hallmark of concept drift, as the model's learned decision boundary no longer reflects the current real-world patterns. Vertex AI's monitoring dashboard can track prediction distribution shifts, and this symptom points to concept drift rather than data drift.

Exam trap

Google Cloud often tests the distinction between data drift and concept drift, and the trap here is that candidates see 'prediction distribution has changed' and incorrectly assume it must be data drift, when in fact a change in prediction distribution without a change in input features is a classic sign of concept drift.

How to eliminate wrong answers

Option A is wrong because overfitting to the training data is a static issue that would manifest as poor generalization from the start, not as a sudden degradation in accuracy over the last week; overfitting does not cause a change in prediction distribution over time. Option B is wrong because a bug in the model's preprocessing code would likely cause consistent, systematic errors or failures, not a gradual shift in prediction distribution over a week; preprocessing bugs are typically static and would be caught during deployment. Option C is wrong because data drift refers to changes in the input feature distribution, which would be detected by monitoring input feature statistics, not directly by a change in prediction distribution; the question states the prediction distribution has changed, which is more directly tied to concept drift.

262
MCQmedium

A data engineer needs to train a linear regression model in BigQuery ML using a table with 10 million rows. The model will predict sales based on features like advertising spend, seasonality, and store location. Which SQL statement should they use to create and train the model?

A.CREATE MODEL mymodel AS SELECT * FROM sales_data WITH LINEAR REGRESSION
B.CREATE MODEL mymodel OPTIONS(model_type='LINEAR_REG') AS SELECT * FROM sales_data
C.CREATE OR REPLACE MODEL mymodel OPTIONS(model_type='LINEAR_REGRESSION') AS SELECT * FROM sales_data
D.CREATE MODEL mymodel OPTIONS(model_type='linear_reg') AS SELECT * FROM sales_data
AnswerB

Correct syntax for linear regression in BigQuery ML.

Why this answer

In BigQuery ML, the CREATE MODEL statement with option MODEL_TYPE='LINEAR_REG' creates a linear regression model. The training data is specified in the AS SELECT clause.

263
MCQmedium

After deploying a model, the team notices that predictions are significantly different from training data distribution. What should they do?

A.Update the model endpoint
B.Review the training data pipeline
C.Set up Vertex AI Model Monitoring for skew detection
D.Retrain the model with new data
AnswerC

Model Monitoring provides continuous tracking of distribution differences.

Why this answer

Vertex AI Model Monitoring is specifically designed to detect skew between training data and serving data, including prediction drift. When predictions differ significantly from the training distribution, this indicates a skew or drift issue that Model Monitoring can alert on, enabling proactive investigation. Updating the endpoint or retraining without diagnosis would not address the root cause, and reviewing the pipeline alone does not provide ongoing detection.

Exam trap

Google Cloud often tests the distinction between reactive troubleshooting (reviewing pipelines, retraining) and proactive monitoring (skew detection), tempting candidates to choose a fix like retraining instead of the monitoring solution that detects the issue first.

How to eliminate wrong answers

Option A is wrong because updating the model endpoint does not diagnose or resolve the distribution mismatch; it only changes the serving target without addressing the underlying data or model behavior. Option B is wrong because reviewing the training data pipeline is a reactive, one-time investigation step, whereas the question describes a deployed model scenario where continuous monitoring is needed to detect and alert on skew in real time. Option D is wrong because retraining with new data without first understanding the cause of the skew may introduce new biases or fail to fix the issue; monitoring should be used to detect and diagnose before retraining.

264
MCQeasy

An online retailer uses BigQuery for analytics. They have a time-series table with 5 billion rows and new data arrives every day. They want to optimize query performance and reduce costs by ensuring that queries scan only the partitions they need. Which table design should they use?

A.Use a table partitioned on the timestamp column.
B.Use a table clustered on the timestamp column.
C.Use a table with no partitioning but use LIMIT in queries.
D.Use a table partitioned by ingestion time with a partition expiration.
AnswerA

Allows queries to scan only relevant time-range partitions.

Why this answer

Partitioning on the timestamp column allows BigQuery to perform partition pruning, so queries with filters on that column only scan the relevant partitions. This directly reduces the amount of data read, lowering both query cost (pay-per-byte) and improving performance. For a 5-billion-row table with daily data arrival, time-unit partitioning is the standard design to meet the stated goals.

Exam trap

Google Cloud often tests the distinction between partitioning (which prunes data at the storage level) and clustering (which only sorts data within a partition or table), leading candidates to mistakenly believe clustering alone can reduce bytes scanned for time-range queries.

How to eliminate wrong answers

Option B is wrong because clustering only sorts data within partitions or within the table, but does not enable partition pruning; without partitioning, queries still scan the entire table unless a filter matches the clustering key, and clustering alone does not reduce the bytes billed to only the needed time range. Option C is wrong because using LIMIT does not reduce the amount of data scanned; BigQuery still reads all bytes from the entire table before applying the LIMIT, so costs remain high and performance is not improved. Option D is wrong because partitioning by ingestion time (using _PARTITIONTIME or _PARTITIONDATE) only works for append-only streaming or load jobs and does not allow querying on an arbitrary timestamp column; also, partition expiration would delete old data automatically, but the requirement is to scan only needed partitions, not to expire them.

265
Multi-Selectmedium

You need to monitor the health of a Pub/Sub subscription that feeds into a Dataflow pipeline. Which TWO Cloud Monitoring metrics are most relevant to detect if messages are not being acknowledged promptly? (Choose 2)

Select 2 answers
A.subscription/num_outstanding_messages
B.subscription/oldest_unacked_message_age
C.topic/send_request_count
D.subscription/ack_message_count
E.subscription/num_undelivered_messages
AnswersB, E

This metric indicates how long messages have been waiting for acknowledgment.

Why this answer

The metric `subscription/num_undelivered_messages` indicates the number of messages not yet delivered/acknowledged. `subscription/oldest_unacked_message_age` shows the age of the oldest unacknowledged message, indicating backlogs.

266
MCQeasy

A data analyst wants to rank products by sales within each category. They need to assign a unique rank to each product, with no gaps in the ranking numbers (i.e., ties should have different ranks). Which window function should they use?

A.NTILE()
B.ROW_NUMBER()
C.RANK()
D.DENSE_RANK()
AnswerB

ROW_NUMBER() assigns a unique sequential number to each row, so ties get different ranks without gaps.

Why this answer

ROW_NUMBER() assigns a unique sequential integer to each row within a partition, starting at 1, regardless of ties. RANK() would give the same rank to ties and skip numbers, so it would introduce gaps.

267
MCQmedium

A team wants to transfer data from an on-premises Hadoop cluster to Cloud Storage for processing. The cluster is located in a remote area with limited bandwidth. They need to transfer 500 TB of data. Which service should they use?

A.Transfer Appliance
B.BigQuery Data Transfer Service
C.Storage Transfer Service
D.Dataproc with gsutil
AnswerA

Offline physical appliance for large data transfers; ideal for remote areas with low bandwidth.

Why this answer

Transfer Appliance is designed for petabyte-scale offline transfers when bandwidth is limited.

268
MCQhard

An organization is implementing a data lake on Google Cloud using Cloud Storage. They need to process both batch and streaming data with a unified pipeline. The team has experience with Apache Beam. Which architecture should they use to minimize operational overhead?

A.Kappa architecture with Cloud Dataflow using the same pipeline for batch and streaming
B.Use Cloud Dataproc for batch and Cloud Dataflow for streaming
C.Lambda architecture with Cloud Dataflow for batch and Cloud Pub/Sub for streaming
D.Use Cloud Data Fusion for both batch and streaming
AnswerA

Kappa architecture uses a single streaming pipeline; Dataflow can handle both by replaying data.

Why this answer

Kappa architecture uses a single streaming pipeline for both batch and streaming, simplifying operations. Dataflow implements Beam and supports both modes.

269
MCQmedium

A data engineer needs to create a BigQuery table that is partitioned by ingestion time and clustered by customer_id and transaction_date. They also want to limit access so that only users from a specific domain can query the table. Which approach should they use?

A.Create the table with partitioning only, then use a materialized view to restrict access
B.Create the table without clustering, use row-level security to filter by domain, and grant access to the table
C.Create the table with partitioning and clustering, then create an authorized view on the table and grant the view access to the domain users
D.Create the table with partitioning and clustering, then grant bigquery.dataViewer to the domain via IAM at the dataset level
AnswerC

Authorized views allow controlled access without granting direct table access.

Why this answer

Authorized views allow sharing query results with specific users/groups without giving direct table access. Clustering and partitioning are defined at table creation. IAM roles at dataset level are too broad.

Row-level security filters rows but doesn't restrict domain.

270
MCQhard

A financial services company needs to explain predictions from a complex ensemble model for regulatory compliance. Which Vertex AI service should they use?

A.Vertex AI Explainable AI
B.Vertex AI Vizier
C.Vertex AI Feature Store
D.Vertex AI Prediction
AnswerA

Provides explanations via feature attributions.

Why this answer

Vertex AI Explainable AI is the correct service because it provides feature attributions and other explainability techniques (e.g., Shapley value approximations, integrated gradients) that help interpret predictions from complex ensemble models. This is essential for regulatory compliance, where the company must demonstrate how input features influence each prediction, ensuring transparency and auditability.

Exam trap

Google Cloud often tests the distinction between services that optimize or deploy models versus those that interpret them, so the trap here is assuming that Vertex AI Prediction includes built-in explainability, when in fact it only serves predictions and requires a separate Explainable AI request for attributions.

How to eliminate wrong answers

Option B (Vertex AI Vizier) is wrong because it is a hyperparameter tuning and optimization service, not designed for explaining model predictions. Option C (Vertex AI Feature Store) is wrong because it serves as a centralized repository for feature management and serving, not for generating post-hoc explanations of model outputs. Option D (Vertex AI Prediction) is wrong because it handles model deployment and online/batch inference requests, but does not natively provide interpretability or attribution explanations for individual predictions.

271
MCQmedium

A company needs to process high-throughput streaming data with low latency. They are considering Cloud Pub/Sub for ingestion and Cloud Dataflow for processing. However, they are concerned about cost. Which alternative to Cloud Pub/Sub would reduce costs while still meeting the throughput requirements?

A.Cloud Pub/Sub with pull subscriptions
B.Cloud Tasks
C.Cloud Pub/Sub Lite
D.Cloud Pub/Sub with push subscriptions
AnswerC

Pub/Sub Lite offers lower cost for high-volume streaming with regional availability.

Why this answer

Pub/Sub Lite is a cost-effective alternative for high-throughput streaming when you don't need global availability or some advanced features of Pub/Sub.

272
MCQmedium

A company wants to ingest data from an on-premises Oracle database into BigQuery in near real-time with minimal latency. The database has a high volume of inserts and updates. Which service should they use?

A.Datastream
B.BigQuery Data Transfer Service
C.Pub/Sub
D.Storage Transfer Service
AnswerA

Datastream streams change data from Oracle, MySQL, PostgreSQL to BigQuery or GCS in near real-time.

Why this answer

Datastream is designed for CDC from Oracle and other sources to BigQuery or GCS in near real-time.

273
MCQhard

Refer to the exhibit. A data scientist notices that the evaluation component rarely passes the threshold, causing the pipeline to fail often. What should they do to improve efficiency?

A.Reduce the training dataset size
B.Add a conditional component that only runs evaluation if training metrics are above a certain level
C.Remove the evaluation component
D.Increase the threshold value
AnswerB

Conditional execution saves cost and time by skipping evaluation on underperforming models.

Why this answer

Adding a conditional component that only runs evaluation when training metrics exceed a certain threshold prevents unnecessary evaluation runs on poorly performing models. This reduces pipeline failures by ensuring that evaluation, which may be resource-intensive or prone to failure with low-quality inputs, is only triggered when the model has demonstrated sufficient training performance. This approach optimizes resource usage and pipeline reliability without sacrificing the evaluation step entirely.

Exam trap

Google Cloud often tests the misconception that simply adjusting thresholds or removing components is the solution, when the correct approach is to add conditional logic to gate resource-intensive steps based on upstream quality metrics.

How to eliminate wrong answers

Option A is wrong because reducing the training dataset size would likely degrade model quality and does not address the root cause of evaluation failures; it may even increase variance and instability. Option C is wrong because removing the evaluation component entirely would eliminate the ability to validate model performance, which is critical for ensuring model quality and compliance in production pipelines. Option D is wrong because increasing the threshold value would make it even harder for the evaluation component to pass, exacerbating the failure rate rather than improving efficiency.

274
MCQmedium

A company uses BigQuery ML to create a classification model. The model is used for batch prediction on a weekly basis. After six months, the data distribution shifts, and model accuracy drops. Which approach should the company take to maintain model performance?

A.Use Cloud Dataflow to preprocess the data and then update the model with new features.
B.Perform hyperparameter tuning on the original training data.
C.Apply model quantization to reduce model size and improve inference speed.
D.Schedule automatic retraining of the model using the most recent three months of data.
AnswerD

Retraining on recent data adapts to distribution shift.

Why this answer

The model's accuracy drop is due to data distribution shift (concept drift). Scheduling automatic retraining using the most recent three months of data ensures the model adapts to the new patterns without manual intervention. BigQuery ML supports scheduled queries and automatic model retraining via the `CREATE OR REPLACE MODEL` statement, making this approach both practical and aligned with MLOps best practices for batch prediction pipelines.

Exam trap

Google Cloud often tests the misconception that hyperparameter tuning or feature engineering alone can fix data drift, when in fact only retraining on fresh data addresses the shift.

How to eliminate wrong answers

Option A is wrong because Cloud Dataflow is a data processing tool, not a solution for retraining; preprocessing and adding new features does not address the distribution shift unless the model is retrained on the new data. Option B is wrong because hyperparameter tuning on the original training data optimizes the model for the old distribution, not the shifted one, and will not recover accuracy. Option C is wrong because model quantization reduces model size and speeds up inference but does not improve accuracy or address data drift; it may even slightly degrade performance.

275
Multi-Selecteasy

Which TWO are valid approaches to handle late-arriving data in a Cloud Dataflow streaming pipeline?

Select 2 answers
A.Change to processing time windows instead of event time windows
B.Set allowed lateness on the window
C.Use a side input with a fixed window to join late data
D.Discard any events that arrive after the window closes
E.Use a trigger that fires every second
AnswersB, C

Allowed lateness tells the pipeline how long to wait for late data.

Why this answer

Setting allowed lateness on a window in Cloud Dataflow allows the pipeline to wait for late-arriving data within a specified duration after the watermark passes the window end. This is a standard mechanism to handle out-of-order or delayed events without discarding them, ensuring completeness of windowed aggregations.

Exam trap

Google Cloud often tests the misconception that processing time windows are a valid substitute for handling late data, but they fundamentally change the semantics from event-time to processing-time, which is not a proper solution for late-arriving events.

276
Multi-Selecthard

A data team needs to transfer 200 TB of data from Amazon S3 to GCS. The transfer must be incremental, and they need to monitor the transfer progress. Which THREE components should they use?

Select 3 answers
A.Cloud Monitoring
B.IAM service account
C.Dataflow
D.Transfer Appliance
E.Storage Transfer Service
AnswersA, B, E

Provides dashboards and alerts for transfer progress.

Why this answer

Storage Transfer Service (STS) can transfer from S3 to GCS with incremental sync. Cloud Monitoring tracks progress. Service account for permissions.

277
Multi-Selectmedium

Which TWO actions should you take to ensure model reliability in a production Vertex AI Endpoint?

Select 2 answers
A.Use only batch predictions to avoid real-time issues
B.Monitor prediction accuracy in production with logging and alerts
C.Disable request/response logging to reduce latency
D.Use a single model endpoint for all traffic
E.Gradually shift traffic to new model versions (canary deployment)
AnswersB, E

Detects model degradation.

Why this answer

Monitoring prediction accuracy with logging and alerts (B) is essential for detecting model drift, data drift, and performance degradation in production. Vertex AI provides model monitoring features that automatically log prediction requests and responses, compute statistics, and trigger alerts when skew or drift thresholds are breached, enabling proactive remediation.

Exam trap

Google Cloud often tests the misconception that disabling logging improves reliability by reducing latency, when in fact it removes the observability needed to detect and diagnose failures, which is a core tenet of MLOps reliability.

278
MCQeasy

A data science team needs to ensure that a deployed Vertex AI model can handle varying traffic patterns with minimal latency and cost. What should they do?

A.Use Vertex AI Prediction with autoscaling
B.Use batch prediction instead of online
C.Pre-warm all instances
D.Deploy to a single large machine type
AnswerA

Autoscaling adjusts replicas based on traffic, balancing latency and cost.

Why this answer

Vertex AI Prediction with autoscaling dynamically adjusts the number of serving instances based on incoming traffic, ensuring minimal latency during spikes and cost efficiency during lulls. This is the recommended approach for handling variable traffic patterns in production, as it leverages Google Cloud's managed infrastructure to scale from zero to thousands of nodes automatically.

Exam trap

Google Cloud often tests the misconception that batch prediction can substitute for online serving in variable traffic scenarios, but the key distinction is that batch prediction lacks real-time latency guarantees and cannot scale dynamically per request.

How to eliminate wrong answers

Option B is wrong because batch prediction is designed for asynchronous, large-scale offline inference on static datasets, not for real-time traffic with varying patterns; it cannot handle low-latency online requests. Option C is wrong because pre-warming all instances defeats the purpose of autoscaling, leading to constant high cost regardless of actual traffic, and is not a dynamic solution. Option D is wrong because deploying to a single large machine type creates a single point of failure and cannot scale horizontally to handle traffic spikes, resulting in either over-provisioning cost or latency under load.

279
MCQmedium

A retail company uses Cloud Dataflow for a streaming pipeline that aggregates sales events from thousands of stores. The pipeline writes aggregated results to BigQuery every 5 minutes. Recently, the Dataflow job has been restarting multiple times a day with the error: 'Worker ran out of memory' in the logs. The streaming engine is enabled. The pipeline uses keyed state (ParDo with stateful processing) to maintain per-store counters. The average event size is 2KB, and the throughput is 2,000 events/sec. You need to resolve the out-of-memory issues without losing data. What should you do?

A.Disable stateful processing and use side inputs from BigQuery to get per-store aggregates.
B.Modify the pipeline to use sliding windows with a shorter duration to reduce the state size.
C.Increase the number of workers in the pipeline configuration and ensure the maximum worker count is set higher to allow better distribution of state.
D.Reduce the number of workers to limit the overhead of data shuffling.
AnswerC

More workers spread the stateful processing and reduce memory per worker.

Why this answer

Increasing the number of workers distributes the keyed state (per-store counters) across more VMs, reducing the memory pressure on each individual worker. With streaming engine enabled, state is still held in worker memory for low-latency access, so adding workers is the direct way to scale the state footprint. This avoids data loss because the pipeline continues processing with exactly-once semantics and state is preserved via checkpointing.

Exam trap

The trap here is that candidates may confuse window-based state (which can be reduced by shortening windows) with keyed state (which is independent of window duration), leading them to incorrectly choose option B.

How to eliminate wrong answers

Option A is wrong because disabling stateful processing and using side inputs from BigQuery would introduce significant latency and inconsistency (BigQuery is not designed for real-time per-record lookups), and it would break the streaming aggregation logic. Option B is wrong because sliding windows do not reduce state size for keyed state (ParDo with stateful processing uses per-key state, not windowed state); changing window duration has no effect on the memory used by the per-store counters. Option D is wrong because reducing the number of workers would concentrate more state on fewer VMs, worsening the out-of-memory issue and increasing the risk of worker crashes.

280
MCQmedium

A retail company uses Vertex AI Pipelines to automate monthly retraining of a recommendation model. The pipeline consists of three steps: (1) extract data from BigQuery, (2) train a TensorFlow model on Vertex AI Training, (3) upload the model to Vertex AI Model Registry and deploy to an endpoint if performance metrics improve. Recently, the pipeline has been failing at step 2 with the error: 'The job was cancelled by the system because it exceeded the maximum training time of 3600 seconds.' You have confirmed that the training code is correct and the data size has not changed significantly. What should you do to fix this pipeline failure? A) Reconfigure the pipeline to use a larger machine type for training. B) Set the training timeout to 7200 seconds in the pipeline configuration. C) Reduce the training dataset size by sampling fewer rows. D) Switch from TensorFlow to a simpler model framework.

A.Reduce the training dataset size by sampling fewer rows.
B.Set the training timeout to 7200 seconds in the pipeline configuration.
C.Switch from TensorFlow to a simpler model framework.
D.Reconfigure the pipeline to use a larger machine type for training.
AnswerB

Increasing the timeout accommodates the training duration within the expected limits.

Why this answer

The default timeout for a training job in Vertex AI Pipelines is 3600 seconds; increasing the timeout allows the job to complete. Option A (larger machine) may help but is not a direct fix for timeout. Option C (reducing data) degrades model quality.

Option D (changing framework) is drastic and unnecessary.

281
MCQhard

A company uses Vertex AI Feature Store for serving features to both training and prediction. The team notices that predictions made shortly after training use different feature values, causing a training-serving skew. What is the most effective way to prevent this skew?

A.Configure the Feature Store to use point-in-time lookup using the training timestamp
B.Retrain the model more frequently to adapt to the new feature distributions
C.Use batch prediction instead of online prediction to ensure consistent features
D.Ensure that the training and prediction environments use identical compute resources
AnswerA

Point-in-time lookup ensures that the same feature values used during training are used during serving.

Why this answer

Point-in-time lookup ensures that feature values used during training are exactly the same as those used during prediction by retrieving the feature value as it existed at the training timestamp. This directly addresses training-serving skew caused by time-dependent feature changes, which is a common issue in Vertex AI Feature Store when features are updated after training.

Exam trap

A common pitfall is assuming that retraining more frequently or switching prediction methods can resolve training-serving skew. The root cause is temporal inconsistency in feature values, which requires point-in-time lookups to ensure the same feature values are used during training and prediction.

How to eliminate wrong answers

Option B is wrong because retraining more frequently does not prevent the skew; it only reduces the window of time during which stale features are used, but the fundamental mismatch between training-time and prediction-time feature values remains. Option C is wrong because batch prediction does not inherently use consistent features; it still retrieves the latest feature values unless point-in-time lookup is explicitly configured, and it does not solve the skew for online serving scenarios. Option D is wrong because identical compute resources have no impact on feature value consistency; the skew arises from feature value changes over time, not from hardware differences.

282
MCQeasy

Which BigQuery feature allows you to query data directly from Cloud Storage without loading it into BigQuery storage?

A.BigQuery Omni
B.BigQuery ML
C.Federated queries
D.External tables
AnswerD

External tables in BigQuery reference data in GCS and can be queried directly.

Why this answer

BigQuery Omni is for multi-cloud, not external tables. External tables allow querying data in GCS.

283
MCQmedium

A company wants to migrate their on-premises Teradata data warehouse to BigQuery. They need an automated, one-time transfer of historical data (10 TB) and ongoing incremental daily syncs. Which Google Cloud service should they use?

A.BigQuery Data Transfer Service for Teradata
B.Dataflow custom pipeline
C.Storage Transfer Service
D.Datastream
AnswerA

This service is designed to schedule and automate transfers from Teradata to BigQuery, both initial and incremental.

Why this answer

BigQuery Data Transfer Service supports Teradata as a source for both one-time and scheduled transfers. Storage Transfer Service is for file-based transfers. Datastream is for CDC, not Teradata.

Dataflow could be custom-built but Data Transfer Service is purpose-built for this scenario.

284
MCQhard

A manufacturing company wants to detect anomalies in sensor data from thousands of IoT devices in real time. The data is streaming into Pub/Sub. The best solution should use a machine learning model served from AI Platform that scores sensor readings aggregated over 5-minute windows. Which pipeline design meets these requirements?

A.Use Cloud Dataproc with Spark Streaming to aggregate data, and use a Spark ML model embedded in the pipeline
B.Use BigQuery streaming inserts and run scheduled queries that call the ML model
C.Use Cloud Dataflow with sliding windows to aggregate sensor readings every 5 minutes, then call a trained model hosted on AI Platform Prediction for each window
D.Use Cloud Functions triggered by Pub/Sub to process each sensor reading individually
AnswerC

Dataflow handles streaming and windowing natively, and AI Platform Prediction provides low-latency model serving.

Why this answer

Cloud Dataflow's sliding windows natively handle the 5-minute aggregation requirement for streaming data, and its ability to call external services via a DoFn allows integration with AI Platform Prediction for real-time model scoring. This design aligns with the need for low-latency, scalable processing of Pub/Sub streams without managing infrastructure.

Exam trap

Google Cloud often tests the distinction between stream processing (Dataflow) and batch-oriented services (BigQuery scheduled queries), and the trap here is assuming that BigQuery's streaming inserts combined with scheduled queries can achieve real-time aggregation, when in fact scheduled queries introduce minutes of delay and are not window-aware for sliding time intervals.

How to eliminate wrong answers

Option A is wrong because Cloud Dataproc with Spark Streaming requires managing a cluster and embedding a Spark ML model in the pipeline, which adds operational overhead and does not leverage AI Platform's managed prediction service as specified. Option B is wrong because BigQuery streaming inserts and scheduled queries introduce latency (scheduled queries run at intervals, not in real time) and are not designed for per-window scoring of streaming data. Option D is wrong because Cloud Functions triggered by Pub/Sub process each sensor reading individually, which cannot aggregate data over 5-minute windows as required.

285
Multi-Selecteasy

You are using Cloud Workflows to orchestrate a series of API calls. You need to handle errors and retries. Which THREE features of Cloud Workflows can you use? (Choose THREE.)

Select 3 answers
A.Use try/except blocks to catch and handle errors.
B.Integrate with Cloud Load Balancing for high availability.
C.Use conditional branches (if-else) based on step results.
D.Define a retry policy on a step.
E.Enable automatic logging for each step.
AnswersA, C, D

Workflows supports try-except-else-finally constructs.

Why this answer

Cloud Workflows supports steps with retry policies, try/except blocks for error handling, and conditional (if-else) logic for branching. It does not have built-in built-in step-level logging (logging is done via Cloud Logging), and there is no built-in load balancer integration.

286
MCQeasy

A data pipeline processes streaming data with Dataflow. The team notices occasional data duplication in BigQuery. What is the best approach to ensure exactly-once processing?

A.Use Pub/Sub with at-least-once delivery and deduplicate in BigQuery using a unique identifier.
B.Configure Dataflow with exactly-once sinks using file staging and deduplication.
C.Use Cloud Functions to deduplicate messages before they enter the pipeline.
D.Enable idempotent writes in BigQuery.
AnswerB

Dataflow's exactly-once sink mechanism ensures each record is written exactly once, preventing duplicates.

Why this answer

Dataflow's exactly-once sinks use a two-phase commit protocol with file staging and deduplication to ensure that each record is written exactly once to the sink, even if the pipeline retries. This approach handles the inherent at-least-once delivery from Pub/Sub by staging output files and committing them atomically, preventing duplicates in BigQuery without relying on downstream deduplication.

Exam trap

The trap here is that candidates often assume deduplication at the destination (BigQuery) is sufficient, but the key insight is that exactly-once processing must be enforced at the pipeline level (Dataflow) using mechanisms like file staging and atomic commit to avoid race conditions and state inconsistencies across distributed workers.

How to eliminate wrong answers

Option A is wrong because relying on deduplication in BigQuery using a unique identifier is not a pipeline-level guarantee; it shifts the burden to the storage layer and can fail if the deduplication key is not properly maintained or if the same record arrives in different batches. Option C is wrong because Cloud Functions are stateless and cannot reliably deduplicate messages across a distributed streaming pipeline; they would need external state management, which introduces latency and complexity without solving the core issue of exactly-once processing. Option D is wrong because BigQuery does not support idempotent writes natively; it can handle duplicate rows if you use a merge or upsert pattern, but that requires additional logic and does not provide exactly-once semantics from the pipeline itself.

287
MCQhard

A Dataflow streaming pipeline that uses global windows and triggers every 5 seconds is experiencing increasing lag and high system latency. The pipeline reads from Pub/Sub, transforms data with a ParDo, and writes to BigQuery. Which action is most likely to reduce lag?

A.Use a session window to group related events.
B.Replace the global window with a sliding window of 1 minute.
C.Change the trigger to processing time instead of event time.
D.Increase the number of workers manually.
AnswerB

A sliding window reduces the number of elements per trigger and improves latency by distributing state across workers.

Why this answer

B is correct because sliding windows of 1 minute allow the pipeline to process data in overlapping fixed-size windows, which can reduce the buildup of data in memory compared to global windows. Global windows with frequent triggers (every 5 seconds) can cause unbounded state growth and high latency as the pipeline must maintain state for all elements until the trigger fires, whereas sliding windows naturally bound the data per window and enable more efficient watermark and trigger management in Dataflow.

Exam trap

Google Cloud often tests the misconception that increasing workers or changing trigger timing alone can fix lag caused by inappropriate windowing strategy, when the real issue is that global windows with frequent triggers create unbounded state that overwhelms the pipeline's memory and shuffle capacity.

How to eliminate wrong answers

Option A is wrong because session windows group events based on inactivity gaps, which does not address the core issue of unbounded state from global windows and can actually increase state size if sessions are long. Option C is wrong because changing the trigger to processing time instead of event time does not reduce lag; it may cause data to be processed based on when it arrives rather than when it occurred, potentially increasing latency due to watermark misalignment and still requiring global window state. Option D is wrong because manually increasing the number of workers can help with throughput but does not fix the fundamental design flaw of using global windows with frequent triggers, which leads to excessive state accumulation and shuffling; autoscaling in Dataflow already handles worker count based on backlog.

288
MCQhard

A company runs large batch prediction jobs on Vertex AI every day. They want to minimize costs while ensuring the jobs complete within a 4-hour window. The model requires significant memory. What is the most cost-effective approach?

A.Use Cloud TPUs to accelerate predictions
B.Use a smaller machine type (e.g., n1-standard-4) to reduce cost
C.Use preemptible VMs with a machine type that meets memory requirements
D.Use standard VMs and reduce parallelization
AnswerC

Preemptible VMs are much cheaper and restartable, suitable for batch jobs.

Why this answer

Preemptible VMs (now called Spot VMs) are significantly cheaper than standard VMs (up to 60-80% discount) and are ideal for fault-tolerant batch prediction jobs that can handle interruptions. Since the job has a 4-hour window and the model requires significant memory, using preemptible VMs with a machine type that meets the memory requirements minimizes cost while allowing the job to complete if restarted within the time limit.

Exam trap

Google Cloud often tests the misconception that preemptible VMs are unreliable for any production workload, but the trap here is that batch prediction jobs are inherently fault-tolerant and can leverage preemptible VMs to drastically reduce costs without violating the completion window.

How to eliminate wrong answers

Option A is wrong because Cloud TPUs are specialized hardware for training and inference of large models, but they are more expensive and not necessary for batch prediction; they also do not directly address the memory requirement or cost minimization for a 4-hour window. Option B is wrong because using a smaller machine type (e.g., n1-standard-4) would likely cause out-of-memory errors or severe performance degradation since the model requires significant memory, making the job fail or exceed the 4-hour window. Option D is wrong because reducing parallelization would increase job duration, potentially exceeding the 4-hour window, and standard VMs are more expensive than preemptible VMs, so this approach does not minimize costs.

289
MCQmedium

A financial company needs to process batch trades data daily and ensure that if a transformation step fails, the entire daily run is retried from the beginning. Which design pattern is appropriate?

A.Use idempotent writes with checkpointing
B.Use an orchestrator like Cloud Composer with retry logic
C.Retry the failed step only
D.Use a transactional staging area
AnswerB

Cloud Composer (Airflow) allows defining DAGs with retry policies on the entire pipeline, ensuring full restart on failure.

Why this answer

The requirement states that if any transformation step fails, the entire daily run must be retried from the beginning. An orchestrator like Cloud Composer (Apache Airflow) provides native DAG-level retry logic that can be configured to restart the entire workflow on failure, ensuring atomicity of the batch run. This pattern is essential for maintaining data consistency when partial processing cannot be tolerated.

Exam trap

Google Cloud often tests the misconception that checkpointing or idempotent writes are sufficient for full-run retries, but the trap is that checkpointing enables partial resumption, not the complete restart from scratch that the question explicitly demands.

How to eliminate wrong answers

Option A is wrong because idempotent writes with checkpointing allow resumption from the last successful checkpoint, which contradicts the requirement to retry the entire run from the beginning; checkpointing is designed for partial retries, not full restarts. Option C is wrong because retrying only the failed step would leave the daily run in an inconsistent state, as earlier steps may have already committed partial results that cannot be rolled back without a full restart. Option D is wrong because a transactional staging area ensures atomic writes but does not provide orchestration or retry logic to restart the entire pipeline from the start upon failure.

290
MCQmedium

A company uses Cloud Composer (Airflow) to orchestrate a daily batch job that runs a custom Python script on a Compute Engine instance. The process is slow because the instance takes 2 minutes to boot. How can you reduce the total runtime?

A.Switch to Dataproc Serverless to avoid VM boot time
B.Use a larger machine type for faster provisioning
C.Create a custom image with the script and dependencies pre-installed
D.Use a GPU-accelerated instance to speed up the script
AnswerC

Custom image reduces boot time by avoiding package installs.

Why this answer

Creating a custom image with the script and dependencies pre-installed eliminates the need to install packages or configure the environment at boot time. In Cloud Composer, when a Compute Engine instance is provisioned via a BashOperator or SSHOperator, the boot process includes OS initialization and package installation. A custom image bypasses these steps, reducing boot time from minutes to seconds, directly addressing the 2-minute boot delay.

Exam trap

The trap here is that candidates may assume 'faster provisioning' means a larger machine type (Option B) or a serverless service (Option A), but the question specifically targets the boot time caused by environment setup, which is solved by pre-installing dependencies in a custom image.

How to eliminate wrong answers

Option A is wrong because Dataproc Serverless is designed for Apache Spark and Hadoop workloads, not for running arbitrary Python scripts on a single Compute Engine instance; it introduces overhead for job submission and cluster management that is not suitable for this use case. Option B is wrong because a larger machine type does not reduce boot time; boot time is dominated by OS initialization and package installation, not by CPU or memory size. Option D is wrong because GPU-accelerated instances are intended for compute-intensive tasks like machine learning or rendering, not for reducing boot time; the script's slowness is due to boot delay, not computational performance.

291
MCQhard

A data pipeline uses Cloud Data Fusion to perform ETL jobs. The pipeline reads from BigQuery, transforms data using Wrangler, and writes to Cloud Storage. The team notices that the pipeline runs slower than expected. They suspect the Data Fusion instance is under-provisioned. Which action should be taken to improve performance?

A.Add more Dataproc Metastore instances
B.Change the Data Fusion instance type from Basic to Enterprise
C.Enable Data Fusion accelerator for BigQuery
D.Rewrite the pipeline using Cloud Dataprep instead
AnswerB

Enterprise edition provides a larger default Dataproc cluster and more powerful execution environment, improving performance for heavy ETL workloads.

Why this answer

Cloud Data Fusion uses Dataproc clusters for execution. The instance type (basic, standard, enterprise) determines the Dataproc cluster configuration. Upgrading to a higher edition or increasing the number of worker nodes directly improves throughput.

Wrangler transforms are executed on the Dataproc cluster, so more workers help.

292
MCQhard

A data scientist developed a model using custom training on Vertex AI. They want to automate the entire training-to-deployment process. Which service should they use?

A.Cloud Composer
B.Vertex AI Pipelines
C.Cloud Build
D.Cloud Functions
AnswerB

Vertex AI Pipelines is purpose-built for ML pipeline orchestration.

Why this answer

Vertex AI Pipelines is the correct choice because it provides a fully managed, serverless orchestration service specifically designed to automate ML workflows, including custom training, hyperparameter tuning, evaluation, and deployment. It integrates natively with Vertex AI services and supports Kubeflow Pipelines SDK or TFX for defining reproducible, end-to-end pipelines, making it the ideal solution for automating the entire training-to-deployment process.

Exam trap

The trap here is that candidates often confuse general-purpose orchestration (Cloud Composer) with ML-specific pipeline orchestration (Vertex AI Pipelines), overlooking that Vertex AI Pipelines provides built-in ML artifact tracking and native integration with Vertex AI training and prediction services.

How to eliminate wrong answers

Option A is wrong because Cloud Composer is a workflow orchestration service based on Apache Airflow, which is more general-purpose and requires custom operators or hooks to interact with Vertex AI, adding unnecessary complexity and not providing native ML pipeline capabilities. Option C is wrong because Cloud Build is a CI/CD service focused on building, testing, and deploying software artifacts (e.g., containers), not on orchestrating ML training workflows or managing model deployment steps like evaluation and versioning. Option D is wrong because Cloud Functions is a serverless compute service for event-driven, short-lived functions, which lacks the state management, sequencing, and artifact tracking needed for multi-step ML pipelines.

293
MCQmedium

A Dataflow pipeline is processing a high-volume streaming data stream. The job is lagging behind by 30 minutes, and the Dataflow monitoring UI shows high system latency with low CPU utilization. Which action should be taken to improve throughput?

A.Enable Streaming Engine
B.Increase the number of workers
C.Enable Dataflow Shuffle
D.Disable hot key detection
AnswerC

Dataflow Shuffle offloads shuffle operations to a managed service, reducing worker overhead and improving throughput when shuffle is the bottleneck.

Why this answer

High system latency with low CPU utilization indicates a bottleneck in data shuffling, not in processing capacity. Enabling Dataflow Shuffle offloads the shuffle operation to Google-managed resources, reducing disk I/O and network overhead, which directly improves throughput in streaming pipelines.

Exam trap

Google Cloud often tests the misconception that low CPU utilization always means more workers are needed, but the trap here is that shuffle bottlenecks cause high latency without saturating CPU, so the correct fix is to offload shuffle operations rather than scale workers.

How to eliminate wrong answers

Option A is wrong because Streaming Engine is designed to reduce streaming latency by moving state management from workers to backend services, but the issue here is low CPU utilization and high latency due to shuffle bottlenecks, not state management. Option B is wrong because increasing workers would add more processing capacity, but with low CPU utilization, the bottleneck is elsewhere (shuffle), so more workers would not resolve the shuffle contention and could increase cost without benefit. Option D is wrong because disabling hot key detection would remove the ability to identify and optimize for skewed keys, which could worsen the shuffle bottleneck; hot key detection helps in redistributing load, not causing the latency issue.

294
MCQmedium

A team uses Vertex AI Pipelines to automate retraining of a model every month. The pipeline includes data preprocessing, training, and deployment steps. After a recent update, the pipeline fails intermittently with a timeout error during the deployment step. What is the most likely cause?

A.The service account used by the pipeline lacks permissions to deploy the model
B.The trained model size has increased due to more data, causing the deployment step to time out
C.The pipeline is configured to run steps in parallel, leading to resource contention
D.BigQuery query quotas are being exceeded during data preprocessing
AnswerB

Larger models take longer to upload and deploy, potentially exceeding timeout limits.

Why this answer

A model with increased size due to training on more data can cause the deployment step to time out if the deployment infrastructure has a timeout limit. Option A (insufficient permissions) would cause persistent errors, not intermittent. Option C (parallel step execution) typically causes resource contention, not specifically timeout on deployment.

Option D (BigQuery quotas) would affect preprocessing, not the deployment step.

295
MCQeasy

Which Google Cloud service is a fully managed relational database for MySQL, PostgreSQL, and SQL Server, offering automatic replication and backups?

A.Cloud Spanner
B.AlloyDB
C.Bigtable
D.Cloud SQL
AnswerD

Correct: Cloud SQL supports MySQL, PostgreSQL, and SQL Server with automatic backups and replication.

Why this answer

Cloud SQL is the correct answer because it is Google Cloud's fully managed relational database service that supports MySQL, PostgreSQL, and SQL Server. It provides automatic replication across zones and automated backups, making it the ideal choice for traditional relational database workloads without the need for manual administration.

Exam trap

The trap here is that candidates often confuse Cloud SQL with Cloud Spanner because both are relational databases, but Cloud Spanner is designed for global scale and does not support MySQL, PostgreSQL, or SQL Server compatibility.

How to eliminate wrong answers

Option A is wrong because Cloud Spanner is a globally distributed, horizontally scalable relational database service that supports strong consistency and SQL, but it is not a fully managed service for MySQL, PostgreSQL, or SQL Server; it uses its own proprietary SQL dialect and is designed for sharded, multi-region deployments. Option B is wrong because AlloyDB is a fully managed PostgreSQL-compatible database service optimized for high performance and transactional workloads, but it does not support MySQL or SQL Server. Option C is wrong because Bigtable is a fully managed, scalable NoSQL wide-column database service, not a relational database, and it does not support MySQL, PostgreSQL, or SQL Server.

296
MCQmedium

A company wants to build a data lake on Cloud Storage for raw, curated, and processed data zones. They need to enforce data governance including column-level security and row-level filtering for BigQuery queries. Which solution should they use?

A.BigLake tables over Cloud Storage
B.BigQuery external tables reading from GCS
C.Dataproc with Spark SQL
D.Cloud Storage with IAM and VPC Service Controls
AnswerA

BigLake provides fine-grained access control (column-level and row-level security) via BigQuery, along with a unified lakehouse.

Why this answer

BigLake tables provide a unified governance layer over Cloud Storage data, enabling fine-grained access control such as column-level security and row-level filtering directly on BigQuery queries. This is achieved by integrating BigQuery's access control policies with the external data stored in GCS, without needing to move data into BigQuery native storage. The other options either lack these granular security features or require complex workarounds.

Exam trap

Google often tests the misconception that BigQuery external tables (Option B) can support the same fine-grained security as BigLake, but they cannot because external tables lack the integrated policy engine for column and row-level controls.

How to eliminate wrong answers

Option B is wrong because BigQuery external tables reading from GCS only support table-level IAM permissions and cannot enforce column-level security or row-level filtering; they treat the external data as a flat file without fine-grained access controls. Option C is wrong because Dataproc with Spark SQL does not natively provide column-level or row-level security on Cloud Storage data; it requires manual implementation via Spark's security APIs and does not integrate with BigQuery's governance model. Option D is wrong because Cloud Storage with IAM and VPC Service Controls only provides bucket- and object-level access control and network perimeter security, but cannot enforce column-level or row-level filtering on queries executed in BigQuery.

297
MCQhard

A company uses Cloud Composer (Airflow) to orchestrate a data pipeline. One DAG has many tasks that run in parallel and dependencies that span multiple days. Recently, the DAG started failing with 'DagRun already exists' errors. What is the most likely cause?

A.The DAG has a large number of tasks, overwhelming the Airflow scheduler.
B.The DAG has max_active_runs_per_dag set to a low number, causing overlapping runs to be rejected.
C.The DAG's schedule interval is too short, causing task instances to be created with duplicate run IDs.
D.The DAG has a depends_on_past set to True, causing upstream failures to block new runs.
AnswerB

If max_active_runs_per_dag is too low, a new DAG run cannot start while the previous one is active.

Why this answer

The 'DagRun already exists' error occurs when Airflow attempts to create a new DAG run for a logical date that already has an active or completed run, and the DAG's concurrency settings prevent overlapping runs. Setting max_active_runs_per_dag to a low number (e.g., 1) restricts the number of concurrent runs, so if a previous run hasn't finished or been cleared, a new run for the same or overlapping schedule interval is rejected with this error. This is the most likely cause given the DAG has dependencies spanning multiple days, which can cause runs to overlap if not properly configured.

Exam trap

Google Cloud often tests the distinction between DAG-level concurrency settings (max_active_runs_per_dag) and task-level parallelism (e.g., pool, task concurrency), leading candidates to confuse the 'DagRun already exists' error with scheduler overload or task dependency issues.

How to eliminate wrong answers

Option A is wrong because a large number of tasks may cause scheduler performance issues or resource exhaustion, but it does not directly produce a 'DagRun already exists' error; that error is related to DAG run creation, not task-level parallelism. Option C is wrong because a short schedule interval does not create duplicate run IDs; Airflow uses the logical date (execution_date) as the run ID, and each scheduled interval produces a unique logical date, so duplicate run IDs would only occur if the same logical date is triggered twice (e.g., via manual backfill or API). Option D is wrong because depends_on_past=True causes tasks to wait for previous task instances to succeed, but it does not prevent the creation of new DAG runs; the 'DagRun already exists' error occurs at the DAG run level, not at the task dependency level.

298
MCQeasy

A team has trained a model using AutoML Tables. They want to deploy it for batch predictions on a schedule. What is the simplest approach?

A.Write a Cloud Function triggered by Cloud Scheduler
B.Export model to Cloud Storage and use Dataflow
C.Deploy to App Engine
D.Use Vertex AI Batch Prediction with a scheduled pipeline
AnswerD

Vertex AI Batch Prediction is the native, simplest way to perform batch predictions on a schedule.

Why this answer

Vertex AI Batch Prediction is the simplest approach because it is a managed service that directly supports batch predictions on AutoML Tables models without requiring additional infrastructure. By wrapping it in a scheduled Vertex AI pipeline, you can automate the entire workflow—triggering predictions on a schedule, handling input/output to Cloud Storage, and managing compute resources—all within the Vertex AI ecosystem, minimizing operational overhead.

Exam trap

Google Cloud often tests the misconception that you must export an AutoML model to use it outside Vertex AI, but the simplest path is to use Vertex AI's native batch prediction service, which avoids the overhead of custom infrastructure like Dataflow or Cloud Functions.

How to eliminate wrong answers

Option A is wrong because Cloud Functions are designed for lightweight, event-driven tasks and lack native support for AutoML Tables model serving; you would need to manually load the model and handle scaling, which adds complexity and is not the simplest approach. Option B is wrong because exporting the model to Cloud Storage and using Dataflow introduces unnecessary steps—Dataflow requires writing a custom pipeline to load the exported model and perform predictions, whereas Vertex AI Batch Prediction handles this natively. Option C is wrong because App Engine is a platform for hosting web applications, not designed for batch prediction workloads; it would require building a custom prediction service and managing scaling, which is more complex than using Vertex AI's built-in batch prediction.

299
MCQmedium

You are designing a batch data pipeline that runs daily to ingest data from an on-premises database into BigQuery. The ingestion volume is approximately 50 GB per day. The data must be available in BigQuery by 6 AM each day. The on-premises database supports change data capture (CDC) via logs. Which approach minimizes operational cost and complexity?

A.Use Cloud Dataproc with Spark Streaming to ingest CDC logs
B.Use Pub/Sub with a Dataflow streaming pipeline
C.Use Cloud Data Fusion with a batch pipeline
D.Use Cloud Dataflow with a JDBC source in batch mode to read CDC logs and write to BigQuery
AnswerD

Dataflow can read from JDBC in batch mode, handle CDC, and write to BigQuery. It is fully managed and cost-effective for this volume.

Why this answer

Using Dataflow with a JDBC source to read CDC logs in batch mode is straightforward and cost-effective for daily 50 GB loads. Dataproc could also work but requires cluster management. Pub/Sub with Dataflow would be more complex and costly for a daily batch.

Data Fusion adds a visual layer but is overkill for this simple batch ingestion.

300
Multi-Selecthard

A company uses Cloud Data Fusion for ETL pipelines. They need to transform sensitive data (PII) by masking certain columns before writing to BigQuery. They also need to ensure the pipeline can be monitored and restarted from failure points. Which THREE features should they use?

Select 3 answers
A.Use Cloud Composer to schedule and retry the pipeline
B.Create a Dataproc Metastore service to store pipeline metadata
C.Enable pipeline monitoring with alerts in Cloud Data Fusion
D.Configure pipeline checkpointing to allow restart from failure
E.Use Wrangler transformations to apply masking directives
AnswersC, D, E

Cloud Data Fusion provides monitoring dashboards and alerting for pipeline status, including failures.

Why this answer

Data Fusion Wrangler provides a step-by-step recipe for transformations, including masking. Pipeline monitoring and restart from failure are supported by the orchestration framework and checkpointing. Dataproc Metastore is for Hive metadata, not relevant.

Data Fusion Studio is the UI, not a feature for monitoring. Cloud Composer is for workflow orchestration, not needed if Data Fusion handles it.

Page 3

Page 4 of 12

Page 5