πŸ”

PDE β€” questions

Page 17 of 18 Β· 341 total questions.

Topic 1 Β· Question 322

Your company wants to implement a Retrieval-Augmented Generation (RAG) system to allow employees to query an extensive knowledge base of internal documents, such as policy manuals and project reports. You need to prepare this unstructured text for embedding to be used in the RAG system. What should you do to ensure the system can retrieve the most relevant information?

  • AUse Cloud Data Loss Prevention (Cloud DLP) to scan and redact sensitive information within the documents before processing.
  • BStore the documents as compressed files in a traditional relational database to enable more efficient storage and retrieval.
  • CConvert the unstructured documents into high-dimensional numerical vectors that capture the semantic meaning and relationships of the text. (correct answer)
  • DIndex each word from the documents into a search engine to enable keyword-based search.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Convert the unstructured documents into high-dimensional numerical vectors that capture the semantic meaning and relationships of the text.

Topic 1 Β· Question 323

You need to load a dataset with multiple terabytes of clickstream data into BigQuery. The data arrives each day as compressed JSON files in a Cloud Storage bucket. You need a low-cost, programmatic, and scalable solution to load the data into BigQuery. What should you do?

  • ACreate an external table in BigQuery pointing to the Cloud Storage bucket and run the INSERT INTO ... SELECT * FROM external_table command. (correct answer)
  • BUse the BigQuery Data Transfer Service from Cloud Storage.
  • CCreate a Cloud Run function to run a Python script to read and parse each JSON file, and use the BigQuery streaming insert API.
  • DUse Cloud Data Fusion to create a pipeline to load the JSON files into BigQuery.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create an external table in BigQuery pointing to the Cloud Storage bucket and run the INSERT INTO... SELECT * FROM external_table command.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 Β· Question 324

Your Cloud Storage data lake has raw, processed, and historical data in different buckets. Data older than two years is rarely accessed, and all data must be retained for no longer than seven years. You are concerned about rising storage costs. How should you control costs for the historical data bucket?

  • AWrite a script on a Compute Engine instance, triggered daily by Cloud Scheduler, to scan all objects and delete any older than seven years.
  • BConfigure an Object Lifecycle Management rule to transition objects older than two years to the Archive storage class and eventually delete them after seven years. (correct answer)
  • CEnable the Autoclass feature on your Cloud Storage buckets and select Opt-in to object transitions to Coldline and Archive storage classes.
  • DReplicate the buckets to a different region with lower storage costs and configure an Object Lifecycle Management rule to delete objects after seven years.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Configure an Object Lifecycle Management rule to transition objects older than two years to the Archive storage class and eventually delete them after seven years.

Topic 1 Β· Question 325

Your data science team needs to perform interactive SQL queries on large datasets stored in Apache Parquet format within a Cloud Storage bucket. The team is familiar with Apache Hive and wants to leverage existing HiveQL queries. You need to provide an environment for the team to run their interactive HiveQL queries directly against the data in Cloud Storage. You want to keep operational overhead to a minimum. What should you do?

  • AInstall and configure an Apache Hadoop and Hive cluster manually on a group of Compute Engine instances.
  • BLoad the Parquet data into a BigQuery native table and use the BigQuery Connector for Hive to run the queries.
  • CConfigure BigQuery with an external table definition pointing to the Parquet files.
  • DDeploy a Dataproc cluster with Hive services enabled. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Deploy a Dataproc cluster with Hive services enabled.

Explanation

Dataproc runs managed Spark and Hadoop clusters for big-data processing.

Topic 1 Β· Question 326

You analyze user clickstream data to personalize content recommendations. The data arrives continuously and needs to be processed with low latency, including transformations such as sessionization (grouping clicks by user within a time window) and aggregation of user activity. You need to identify a scalable solution to handle millions of events each second and be resilient to late-arriving data. What should you do?

  • AUse Firebase Realtime Database for ingestion and storage, and Cloud Run functions for processing and analytics.
  • BUse Cloud Data Fusion for ingestion and transformation, and Cloud SQL for storage and analytics.
  • CUse Pub/Sub for ingestion, Dataflow with Apache Beam for processing, and BigQuery for storage and analytics. (correct answer)
  • DUse Cloud Storage for ingestion, Dataproc with Apache Spark for batch processing, and BigQuery for storage and analytics.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use Pub/Sub for ingestion, Dataflow with Apache Beam for processing, and BigQuery for storage and analytics.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Dataflow runs serverless Apache Beam pipelines for stream and batch data processing with autoscaling. Pub/Sub is a serverless, global messaging service that decouples services and ingests high-volume event streams. By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 327

You are designing BigQuery tables for large volumes of clickstream event data. Your data analyst team will most frequently query by specific event date ranges and filter by the user ID UUID. You want to optimize table structure for query cost and performance. What should you do?

  • APartition the table by the user ID column and cluster the table by the event date column.
  • BCreate an ingestion-time partitioned table and cluster it by the user ID column.
  • CCluster the table by both the event date and the user ID columns.
  • DPartition the table by the event date column and cluster the table by user ID column. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Partition the table by the event date column and cluster the table by user ID column.

Topic 1 Β· Question 328

You need to orchestrate a pipeline with several Google Cloud services: a batch Dataflow job, then a BigQuery query job followed by a Vertex AI batch prediction. The logic is sequential. You want a lightweight, serverless orchestration solution with minimal operational overhead. What service should you use?

  • ASelect Cloud Composer.
  • BSelect Compute Engine with cron.
  • CSelect Dataproc with Apache Oozie.
  • DSelect Cloud Workflows. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Select Cloud Workflows.

Topic 1 Β· Question 329

You have a data analyst team member who needs to analyze data by using BigQuery. The data analyst wants to create a data pipeline that would load 200 CSV files with an average size of 15MB from a Cloud Storage bucket into BigQuery daily. The data needs to be ingested and transformed before being accessed in BigQuery for analysis. You need to recommend a fully managed, no-code solution for the data analyst. What should you do?

  • ACreate a Cloud Run function and schedule it to run daily using Cloud Scheduler to load the data into BigQuery.
  • BUse the BigQuery Data Transfer Service to load files from Cloud Storage to BigQuery, create a BigQuery job which transforms the data using BigQuery SQL and schedule it to run daily.
  • CBuild a custom Apache Beam pipeline and run it on Dataflow to load the file from Cloud Storage to BigQuery and schedule it to run daily using Cloud Composer.
  • DCreate a pipeline by using BigQuery pipelines and schedule it to load the data into BigQuery daily. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create a pipeline by using BigQuery pipelines and schedule it to load the data into BigQuery daily.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 Β· Question 330

You are designing a stateful data processing pipeline that reads data from a Cloud Storage bucket and writes transformed data to a BigQuery table. The pipeline must be highly available and resilient to zonal failures within the us-central1 region. You need to configure a Dataflow pipeline ensuring minimal disruption during a zonal outage. What should you do?

  • ALaunch the Dataflow job with the --region=us-central1 parameter. (correct answer)
  • BDeploy the Dataflow job to a single zone within us-central1 and configure it to use a regional persistent disk to store its state.
  • CDeploy the Dataflow job to a single zone within us-central1 and use a multi-regional Cloud Storage bucket to store its state.
  • DLaunch the Dataflow job with the --zone=us-central1a parameter.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Launch the Dataflow job with the --region=us-central1 parameter.

Explanation

Dataflow runs serverless Apache Beam pipelines for stream and batch data processing with autoscaling. By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 331

Your team has created several BigQuery curated datasets containing anonymized industry benchmark data. You want to make these datasets easily discoverable and accessible for querying by external partner companies within their own Google Cloud projects. You need a secure and scalable solution. What should you do?

  • APublish the datasets as listings within BigQuery sharing (Analytics Hub). (correct answer)
  • BExport the datasets to partner-specific Cloud Storage buckets.
  • CCreate authorized views for each dataset and grant access to each partner.
  • DGrant the roles/bigquery.dataViewer IAM role to the partner group email addresses on the datasets.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Publish the datasets as listings within BigQuery sharing (Analytics Hub).

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 Β· Question 332

Your organization stores highly personal data in BigQuery and needs to comply with strict data privacy regulations. You need to ensure that sensitive data values are rendered unreadable whenever an employee leaves the organization. What should you do?

  • AUse column-level access controls with policy tags and revoke viewer permissions when employees leave the organization.
  • BUse dynamic data masking and revoke viewer permissions when employees leave the organization.
  • CUse customer-managed encryption keys (CMEK) and delete keys when employees leave the organization.
  • DUse AEAD functions and delete keys when employees leave the organization. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use AEAD functions and delete keys when employees leave the organization.

Topic 1 Β· Question 333

You monitor and optimize the BigQuery instance for your team. You notice that a particular daily report that uses a large JOIN operation is consistently slow. You want to examine the query's execution plan to identify potential performance bottlenecks within the JOIN as quickly as possible. What should you do?

  • AUse the bg query --dry_run command to review the estimated number of bytes read and review query syntax.
  • BRun a query on the INFORMATION_SCHEMA.JOBS_BY_PROJECT view filtering by the job_ID and analyze total_bytes_processed.
  • CReview the BigQuery audit logs in Cloud Logging.
  • DLeverage BigQuery's Query History view and analyze the execution graph. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Leverage BigQuery's Query History view and analyze the execution graph.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 Β· Question 334

Your company stores vital operational sales data in a BigQuery dataset in us-central1. Your company requires a disaster recovery plan to restore this data to us-east1 with a recovery point objective (RPO) of 24 hours and a recovery time objective (RTO) of 4 hours if us-central1 experiences an outage. You need to implement the disaster recovery plan while keeping costs and complexity to a minimum. What should you do?

  • ASet up continuous queries and Pub/Sub to stream data changes from BigQuery tables in us-central1 to us-east1.
  • BManually export data to a CSV file in a multi-regional Cloud Storage bucket daily and use bq load to restore to us-east1.
  • CConfigure BigQuery cross-region dataset replication from ns-central1 to us-east1. (correct answer)
  • DTake daily BigQuery table snapshots in us-central1.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Configure BigQuery cross-region dataset replication from ns-central1 to us-east1.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 335

You are developing a fraud detection model using BigQuery ML. You have a raw transaction dataset and need to create new features such as the average_transaction_amount_last_24_hours and time_since_last_transaction. These features require aggregation and time-window calculations on the existing data. The goal is to ensure that these features are consistently applied during both model training and prediction without manual intervention. You need to prepare these features efficiently for your model. What should you do?

  • AImplement a Cloud Run function that triggers on new transactions, calculates the features, and inserts them into a feature store before model serving.
  • BExport the BigQuery data to Cloud Storage, perform feature engineering using a custom Python script in a Dataflow job, and then re-import the engineered features into BigQuery.
  • CUse the TRANSFORM clause within the CREATE MODEL statement, leveraging SQL functions for aggregations and time-based calculations. (correct answer)
  • DCreate a separate BigQuery table containing pre-computed features using complex SQL queries and join this table with the raw data during model training and serving.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use the TRANSFORM clause within the CREATE MODEL statement, leveraging SQL functions for aggregations and time-based calculations.

Topic 1 Β· Question 336

Your organization has thousands of images stored in Cloud Storage. The organization's data analysts need to categorize these images upon analyzing the image content and store the results in a structured format for integration with other BigQuery datasets. You need a solution that allows the analysts to perform this task with the least amount of coding. What should you do?

  • AUse the Gemini 2.5 Pro model in Vertex AI to analyze the images and store the results in BigQuery.
  • BUse the ML.UNDERSTAND_TEXT function along with object tables to analyze the images, and store the JSON output in a Cloud Storage bucket.
  • CUse Vertex AI Vision API to analyze the images and store the results in BigQuery.
  • DUse the ML.GENERATE_TEXT function along with object tables to analyze the images and store the JSON output in a BigQuery table. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use the ML.GENERATE_TEXT function along with object tables to analyze the images and store the JSON output in a BigQuery table.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 Β· Question 337

You are building a system to process financial transactions. The system must handle a high throughput of concurrent user operations and each operation requires low-latency reads and writes to individual records. You need to identify a storage solution that guarantees ACID compliance for the processed transactions. You want a Google Cloud managed service. What should you do?

  • ASelect Bigtable.
  • BSelect BigQuery.
  • CSelect Cloud Storage.
  • DSelect Spanner. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Select Spanner.

Explanation

Cloud Spanner is a horizontally scalable, strongly consistent relational database with global reach. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 338

You are preparing data to serve a sales demand prediction model. The training data undergoes several pre-processing steps, including scaling numerical features and one-hot encoding categorical features. The model is deployed on Vertex AI Endpoints. You need to prevent training-serving skew and ensure accurate predictions in production. You want a solution that is easy to implement. What should you do?

  • AImplement a custom handler within the Vertex AI Endpoint to automatically perform data transformations before the model makes a prediction.
  • BReplicate the exact same pre-processing logic in the inference pipeline that was used during model training. (correct answer)
  • CStore the raw, unprocessed data in a separate Cloud Storage bucket exclusively for serving.
  • DEnsure the serving data is a smaller, random sample of the training data.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Replicate the exact same pre-processing logic in the inference pipeline that was used during model training.

Topic 1 Β· Question 339

Your retail company is concerned about their BigQuery analytics spend. The company runs several queries that require the use of the same aggregation for the store ID and real-time sales volume. You need to implement the optimal solution that minimizes analytics spend and returns faster results. What should you do?

  • ACreate a new table from a CSV file with the repeated aggregation for the other queries to reference for faster processing.
  • BCreate a materialized view to minimize repetitive computations. (correct answer)
  • CUse join acceleration with primary and foreign keys to increase query joining to live data.
  • DLeverage partitioning to minimize the number of bytes read.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a materialized view to minimize repetitive computations. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 340

You are defining the data governance strategy for a new BigQuery table with medical and financial data. You want a scalable solution that ensures the clinical researchers can access patient medical data without financial information, while allowing the accounting team to access only financial data with minimal patient identifiers. What should you do?

  • AImplement column-level security policies in BigQuery tables with IAM permissions. (correct answer)
  • BCreate separate tables for personally identifiable information (PII), financial data, and anonymized medical data. Use IAM permissions to control access to each table.
  • CImplement row-level security policies in BigQuery tables with IAM permissions.
  • DCreate separate datasets with authorized views exposing only approved data.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Implement column-level security policies in BigQuery tables with IAM permissions.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources.

Topic 1 Β· Question 341

You are designing a data lake on Google Cloud to store vast amounts of customer interaction data from various sources, such as websites, mobile apps, and social media. You need to ensure that this data, which arrives in different formats, is consistently cataloged and easy for data analysts to discover and use. You also want to perform basic data quality checks and transformations before the data is consumed by downstream applications. You need an automated and managed data governance solution. What should you do?

  • AUse Cloud Storage as the central repository. Use Vertex AI to classify and process the data and perform data quality checks.
  • BStream all the data directly into BigQuery, where it is automatically cataloged and governed.
  • CUse Cloud Storage and BigQuery as repositories. Use Dataplex Universal Catalog for metadata discovery, data quality checks, and transformations. (correct answer)
  • DUse Cloud Storage as the central repository. Use a Cloud Run function to catalog, transform the data, and perform data quality checks.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use Cloud Storage and BigQuery as repositories. Use Dataplex Universal Catalog for metadata discovery, data quality checks, and transformations.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Dataplex centrally manages, governs, and organizes data across a data lakehouse.

Showing questions 321–340 of 341 Β· Page 17 of 18