🔍

PDE — questions

Page 15 of 18 · 341 total questions.

Topic 1 · Question 282

You are using a Dataflow streaming job to read messages from a message bus that does not support exactly-once delivery. Your job then applies some transformations, and loads the result into BigQuery. You want to ensure that your data is being streamed into BigQuery with exactly-once delivery semantics. You expect your ingestion throughput into BigQuery to be about 1.5 GB per second. What should you do?

  • AUse the BigQuery Storage Write API and ensure that your target BigQuery table is regional.
  • BUse the BigQuery Storage Write API and ensure that your target BigQuery table is multiregional. (correct answer)
  • CUse the BigQuery Streaming API and ensure that your target BigQuery table is regional.
  • DUse the BigQuery Streaming API and ensure that your target BigQuery table is multiregional.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use the BigQuery Storage Write API and ensure that your target BigQuery table is multiregional.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. This option meets the real-time / low-latency performance requirement.

Topic 1 · Question 283

You have created an external table for Apache Hive partitioned data that resides in a Cloud Storage bucket, which contains a large number of files. You notice that queries against this table are slow. You want to improve the performance of these queries. What should you do?

  • AChange the storage class of the Hive partitioned data objects from Coldline to Standard.
  • BCreate an individual external table for each Hive partition by using a common table name prefix. Use wildcard table queries to reference the partitioned data.
  • CUpgrade the external table to a BigLake table. Enable metadata caching for the table. (correct answer)
  • DMigrate the Hive partitioned data objects to a multi-region Cloud Storage bucket.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Upgrade the external table to a BigLake table. Enable metadata caching for the table.

Topic 1 · Question 284

You have a network of 1000 sensors. The sensors generate time series data: one metric per sensor per second, along with a timestamp. You already have 1 TB of data, and expect the data to grow by 1 GB every day. You need to access this data in two ways. The first access pattern requires retrieving the metric from one specific sensor stored at a specific timestamp, with a median single-digit millisecond latency. The second access pattern requires running complex analytic queries on the data, including joins, once a day. How should you store this data?

  • AStore your data in BigQuery. Concatenate the sensor ID and timestamp, and use it as the primary key.
  • BStore your data in Bigtable. Concatenate the sensor ID and timestamp and use it as the row key. Perform an export to BigQuery every day. (correct answer)
  • CStore your data in Bigtable. Concatenate the sensor ID and metric, and use it as the row key. Perform an export to BigQuery every day.
  • DStore your data in BigQuery. Use the metric as a primary key.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Store your data in Bigtable. Concatenate the sensor ID and timestamp and use it as the row key. Perform an export to BigQuery every day.

Explanation

Cloud Bigtable is a managed, low-latency NoSQL wide-column store for very high-throughput workloads. BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 · Question 285

You have 100 GB of data stored in a BigQuery table. This data is outdated and will only be accessed one or two times a year for analytics with SQL. For backup purposes, you want to store this data to be immutable for 3 years. You want to minimize storage costs. What should you do?

  • A1. Create a BigQuery table clone.2. Query the clone when you need to perform analytics.
  • B1. Create a BigQuery table snapshot.2. Restore the snapshot when you need to perform analytics.
  • C1. Perform a BigQuery export to a Cloud Storage bucket with archive storage class.2. Enable versioning on the bucket.3. Create a BigQuery external table on the exported files.
  • D1. Perform a BigQuery export to a Cloud Storage bucket with archive storage class.2. Set a locked retention policy on the bucket.3. Create a BigQuery external table on the exported files. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: 1. Perform a BigQuery export to a Cloud Storage bucket with archive storage class.2. Set a locked retention policy on the bucket.3. Create a BigQuery external table on the exported files.

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 286

You have thousands of Apache Spark jobs running in your on-premises Apache Hadoop cluster. You want to migrate the jobs to Google Cloud. You want to use managed services to run your jobs instead of maintaining a long-lived Hadoop cluster yourself. You have a tight timeline and want to keep code changes to a minimum. What should you do?

  • AMove your data to BigQuery. Convert your Spark scripts to a SQL-based processing approach.
  • BRewrite your jobs in Apache Beam. Run your jobs in Dataflow.
  • CCopy your data to Compute Engine disks. Manage and run your jobs directly on those instances.
  • DMove your data to Cloud Storage. Run your jobs on Dataproc. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Move your data to Cloud Storage. Run your jobs on Dataproc.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Dataproc runs managed Spark and Hadoop clusters for big-data processing.

Topic 1 · Question 287

You are administering shared BigQuery datasets that contain views used by multiple teams in your organization. The marketing team is concerned about the variability of their monthly BigQuery analytics spend using the on-demand billing model. You need to help the marketing team establish a consistent BigQuery analytics spend each month. What should you do?

  • ACreate a BigQuery Enterprise reservation with a baseline of 250 slots and autoscaling set to 500 for the marketing team, and bill them back accordingly.
  • BEstablish a BigQuery quota for the marketing team, and limit the maximum number of bytes scanned each day.
  • CCreate a BigQuery reservation with a baseline of 500 slots with no autoscaling for the marketing team, and bill them back accordingly. (correct answer)
  • DCreate a BigQuery Standard pay-as-you go reservation with a baseline of 0 slots and autoscaling set to 500 for the marketing team, and bill them back accordingly.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a BigQuery reservation with a baseline of 500 slots with no autoscaling for the marketing team, and bill them back accordingly.

Explanation

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

Topic 1 · Question 288

You are part of a healthcare organization where data is organized and managed by respective data owners in various storage services. As a result of this decentralized ecosystem, discovering and managing data has become difficult. You need to quickly identify and implement a cost-optimized solution to assist your organization with the following: • Data management and discovery • Data lineage tracking • Data quality validation How should you build the solution?

  • AUse BigLake to convert the current solution into a data lake architecture.
  • BBuild a new data discovery tool on Google Kubernetes Engine that helps with new source onboarding and data lineage tracking.
  • CUse BigQuery to track data lineage, and use Dataprep to manage data and perform data quality validation.
  • DUse Dataplex to manage data, track data lineage, and perform data quality validation. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use Dataplex to manage data, track data lineage, and perform data quality validation.

Explanation

Dataplex centrally manages, governs, and organizes data across a data lakehouse.

Topic 1 · Question 289

You have data located in BigQuery that is used to generate reports for your company. You have noticed some weekly executive report fields do not correspond to format according to company standards. For example, report errors include different telephone formats and different country code identifiers. This is a frequent issue, so you need to create a recurring job to normalize the data. You want a quick solution that requires no coding. What should you do?

  • AUse Cloud Data Fusion and Wrangler to normalize the data, and set up a recurring job. (correct answer)
  • BUse Dataflow SQL to create a job that normalizes the data, and that after the first run of the job, schedule the pipeline to execute recurrently.
  • CCreate a Spark job and submit it to Dataproc Serverless.
  • DUse BigQuery and GoogleSQL to normalize the data, and schedule recurring queries in BigQuery.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use Cloud Data Fusion and Wrangler to normalize the data, and set up a recurring job.

Explanation

Cloud Data Fusion builds ETL/ELT pipelines visually with little code.

Topic 1 · Question 290

You are designing a messaging system by using Pub/Sub to process clickstream data with an event-driven consumer app that relies on a push subscription. You need to configure the messaging system that is reliable enough to handle temporary downtime of the consumer app. You also need the messaging system to store the input messages that cannot be consumed by the subscriber. The system needs to retry failed messages gradually, avoiding overloading the consumer app, and store the failed messages after a maximum of 10 retries in a topic. How should you configure the Pub/Sub subscription?

  • AIncrease the acknowledgement deadline to 10 minutes.
  • BUse immediate redelivery as the subscription retry policy, and configure dead lettering to a different topic with maximum delivery attempts set to 10.
  • CUse exponential backoff as the subscription retry policy, and configure dead lettering to the same source topic with maximum delivery attempts set to 10.
  • DUse exponential backoff as the subscription retry policy, and configure dead lettering to a different topic with maximum delivery attempts set to 10. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use exponential backoff as the subscription retry policy, and configure dead lettering to a different topic with maximum delivery attempts set to 10.

Topic 1 · Question 291

You designed a data warehouse in BigQuery to analyze sales data. You want a self-serving, low-maintenance, and cost- effective solution to share the sales dataset to other business units in your organization. What should you do?

  • ACreate an Analytics Hub private exchange, and publish the sales dataset. (correct answer)
  • BEnable the other business units’ projects to access the authorized views of the sales dataset.
  • CCreate and share views with the users in the other business units.
  • DUse the BigQuery Data Transfer Service to create a schedule that copies the sales dataset to the other business units’ projects.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create an Analytics Hub private exchange, and publish the sales dataset.

Topic 1 · Question 292

You have terabytes of customer behavioral data streaming from Google Analytics into BigQuery daily. Your customers’ information, such as their preferences, is hosted on a Cloud SQL for MySQL database. Your CRM database is hosted on a Cloud SQL for PostgreSQL instance. The marketing team wants to use your customers’ information from the two databases and the customer behavioral data to create marketing campaigns for yearly active customers. You need to ensure that the marketing team can run the campaigns over 100 times a day on typical days and up to 300 during sales. At the same time, you want to keep the load on the Cloud SQL databases to a minimum. What should you do?

  • ACreate BigQuery connections to both Cloud SQL databases. Use BigQuery federated queries on the two databases and the Google Analytics data on BigQuery to run these queries.
  • BCreate a job on Apache Spark with Dataproc Serverless to query both Cloud SQL databases and the Google Analytics data on BigQuery for these queries.
  • CCreate streams in Datastream to replicate the required tables from both Cloud SQL databases to BigQuery for these queries. (correct answer)
  • DCreate a Dataproc cluster with Trino to establish connections to both Cloud SQL databases and BigQuery, to execute the queries.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create streams in Datastream to replicate the required tables from both Cloud SQL databases to BigQuery for these queries.

Explanation

Cloud SQL is a managed relational database (MySQL/PostgreSQL/SQL Server) that handles patching, backups, and failover. BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Datastream provides serverless change-data-capture and replication into Google Cloud. This option meets the real-time / low-latency performance requirement.

Topic 1 · Question 293

Your organization is modernizing their IT services and migrating to Google Cloud. You need to organize the data that will be stored in Cloud Storage and BigQuery. You need to enable a data mesh approach to share the data between sales, product design, and marketing departments. What should you do?

  • A1. Create a project for storage of the data for each of your departments.2. Enable each department to create Cloud Storage buckets and BigQuery datasets.3. Create user groups for authorized readers for each bucket and dataset.4. Enable the IT team to administer the user groups to add or remove users as the departments’ request.
  • B1. Create multiple projects for storage of the data for each of your departments’ applications.2. Enable each department to create Cloud Storage buckets and BigQuery datasets.3. Publish the data that each department shared in Analytics Hub.4. Enable all departments to discover and subscribe to the data they need in Analytics Hub.
  • C1. Create a project for storage of the data for your organization.2. Create a central Cloud Storage bucket with three folders to store the files for each department.3. Create a central BigQuery dataset with tables prefixed with the department name.4. Give viewer rights for the storage project for the users of your departments.
  • D1. Create multiple projects for storage of the data for each of your departments’ applications.2. Enable each department to create Cloud Storage buckets and BigQuery datasets.3. In Dataplex, map each department to a data lake and the Cloud Storage buckets, and map the BigQuery datasets to zones.4. Enable each department to own and share the data of their data lakes. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: 1. Create multiple projects for storage of the data for each of your departments’ applications.2. Enable each department to create Cloud Storage buckets and BigQuery datasets.3. In Dataplex, map each department to a d...

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.

Topic 1 · Question 294

You work for a large ecommerce company. You are using Pub/Sub to ingest the clickstream data to Google Cloud for analytics. You observe that when a new subscriber connects to an existing topic to analyze data, they are unable to subscribe to older data. For an upcoming yearly sale event in two months, you need a solution that, once implemented, will enable any new subscriber to read the last 30 days of data. What should you do?

  • ACreate a new topic, and publish the last 30 days of data each time a new subscriber connects to an existing topic.
  • BSet the topic retention policy to 30 days. (correct answer)
  • CSet the subscriber retention policy to 30 days.
  • DAsk the source system to re-push the data to Pub/Sub, and subscribe to it.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Set the topic retention policy to 30 days.

Topic 1 · Question 295

You are designing the architecture to process your data from Cloud Storage to BigQuery by using Dataflow. The network team provided you with the Shared VPC network and subnetwork to be used by your pipelines. You need to enable the deployment of the pipeline on the Shared VPC network. What should you do?

  • AAssign the compute.networkUser role to the Dataflow service agent. (correct answer)
  • BAssign the compute.networkUser role to the service account that executes the Dataflow pipeline.
  • CAssign the dataflow.admin role to the Dataflow service agent.
  • DAssign the dataflow.admin role to the service account that executes the Dataflow pipeline.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Assign the compute.networkUser role to the Dataflow service agent.

Explanation

Dataflow runs serverless Apache Beam pipelines for stream and batch data processing with autoscaling.

Topic 1 · Question 296

Your infrastructure team has set up an interconnect link between Google Cloud and the on-premises network. You are designing a high-throughput streaming pipeline to ingest data in streaming from an Apache Kafka cluster hosted on- premises. You want to store the data in BigQuery, with as minimal latency as possible. What should you do?

  • ASetup a Kafka Connect bridge between Kafka and Pub/Sub. Use a Google-provided Dataflow template to read the data from Pub/Sub, and write the data to BigQuery.
  • BUse a proxy host in the VPC in Google Cloud connecting to Kafka. Write a Dataflow pipeline, read data from the proxy host, and write the data to BigQuery.
  • CUse Dataflow, write a pipeline that reads the data from Kafka, and writes the data to BigQuery. (correct answer)
  • DSetup a Kafka Connect bridge between Kafka and Pub/Sub. Write a Dataflow pipeline, read the data from Pub/Sub, and write the data to BigQuery.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use Dataflow, write a pipeline that reads the data from Kafka, and writes the data to BigQuery.

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. This option meets the real-time / low-latency performance requirement.

Topic 1 · Question 297

You migrated your on-premises Apache Hadoop Distributed File System (HDFS) data lake to Cloud Storage. The data scientist team needs to process the data by using Apache Spark and SQL. Security policies need to be enforced at the column level. You need a cost-effective solution that can scale into a data mesh. What should you do?

  • A1. Deploy a long-living Dataproc cluster with Apache Hive and Ranger enabled.2. Configure Ranger for column level security.3. Process with Dataproc Spark or Hive SQL.
  • B1. Define a BigLake table.2. Create a taxonomy of policy tags in Data Catalog.3. Add policy tags to columns.4. Process with the Spark-BigQuery connector or BigQuery SQL. (correct answer)
  • C1. Load the data to BigQuery tables.2. Create a taxonomy of policy tags in Data Catalog.3. Add policy tags to columns.4. Process with the Spark-BigQuery connector or BigQuery SQL.
  • D1. Apply an Identity and Access Management (IAM) policy at the file level in Cloud Storage.2. Define a BigQuery external table for SQL processing.3. Use Dataproc Spark to process the Cloud Storage files.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: 1. Define a BigLake table.2. Create a taxonomy of policy tags in Data Catalog.3. Add policy tags to columns.4. Process with the Spark-BigQuery connector or BigQuery SQL.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Data Catalog provides metadata management and discovery across data assets. This option delivers the requirement at the lowest cost.

Topic 1 · Question 298

One of your encryption keys stored in Cloud Key Management Service (Cloud KMS) was exposed. You need to re- encrypt all of your CMEK-protected Cloud Storage data that used that key, and then delete the compromised key. You also want to reduce the risk of objects getting written without customer-managed encryption key (CMEK) protection in the future. What should you do?

  • ARotate the Cloud KMS key version. Continue to use the same Cloud Storage bucket.
  • BCreate a new Cloud KMS key. Set the default CMEK key on the existing Cloud Storage bucket to the new one.
  • CCreate a new Cloud KMS key. Create a new Cloud Storage bucket. Copy all objects from the old bucket to the new one bucket while specifying the new Cloud KMS key in the copy command.
  • DCreate a new Cloud KMS key. Create a new Cloud Storage bucket configured to use the new key as the default CMEK key. Copy all objects from the old bucket to the new bucket without specifying a key. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create a new Cloud KMS key. Create a new Cloud Storage bucket configured to use the new key as the default CMEK key. Copy all objects from the old bucket to the new bucket without specifying a key.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Cloud KMS manages encryption keys and integrates with Google Cloud services for encryption.

Topic 1 · Question 299

You have an upstream process that writes data to Cloud Storage. This data is then read by an Apache Spark job that runs on Dataproc. These jobs are run in the us-central1 region, but the data could be stored anywhere in the United States. You need to have a recovery process in place in case of a catastrophic single region failure. You need an approach with a maximum of 15 minutes of data loss (RPO=15 mins). You want to ensure that there is minimal latency when reading the data. What should you do?

  • A1. Create two regional Cloud Storage buckets, one in the us-central1 region and one in the us-south1 region.2. Have the upstream process write data to the us-central1 bucket. Use the Storage Transfer Service to copy data hourly from the us-central1 bucket to the us-south1 bucket.3. Run the Dataproc cluster in a zone in the us-central1 region, reading from the bucket in that region.4. In case of regional failure, redeploy your Dataproc clusters to the us-south1 region and read from the bucket in that region instead.
  • B1. Create a Cloud Storage bucket in the US multi-region.2. Run the Dataproc cluster in a zone in the us-central1 region, reading data from the US multi-region bucket.3. In case of a regional failure, redeploy the Dataproc cluster to the us-central2 region and continue reading from the same bucket.
  • C1. Create a dual-region Cloud Storage bucket in the us-central1 and us-south1 regions.2. Enable turbo replication.3. Run the Dataproc cluster in a zone in the us-central1 region, reading from the bucket in the us-south1 region.4. In case of a regional failure, redeploy your Dataproc cluster to the us-south1 region and continue reading from the same bucket.
  • D1. Create a dual-region Cloud Storage bucket in the us-central1 and us-south1 regions.2. Enable turbo replication.3. Run the Dataproc cluster in a zone in the us-central1 region, reading from the bucket in the same region.4. In case of a regional failure, redeploy the Dataproc clusters to the us-south1 region and read from the same bucket. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: 1. Create a dual-region Cloud Storage bucket in the us-central1 and us-south1 regions.2. Enable turbo replication.3. Run the Dataproc cluster in a zone in the us-central1 region, reading from the bucket in the same re...

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Dataproc runs managed Spark and Hadoop clusters for big-data processing.

Topic 1 · Question 300

You currently have transactional data stored on-premises in a PostgreSQL database. To modernize your data environment, you want to run transactional workloads and support analytics needs with a single database. You need to move to Google Cloud without changing database management systems, and minimize cost and complexity. What should you do?

  • AMigrate and modernize your database with Cloud Spanner.
  • BMigrate your workloads to AlloyDB for PostgreSQL. (correct answer)
  • CMigrate to BigQuery to optimize analytics.
  • DMigrate your PostgreSQL database to Cloud SQL for PostgreSQL.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Migrate your workloads to AlloyDB for PostgreSQL.

Explanation

AlloyDB is a managed PostgreSQL-compatible database for demanding transactional and analytical workloads. This option delivers the requirement at the lowest cost.

Topic 1 · Question 301

You are architecting a data transformation solution for BigQuery. Your developers are proficient with SQL and want to use the ELT development technique. In addition, your developers need an intuitive coding environment and the ability to manage SQL as code. You need to identify a solution for your developers to build these pipelines. What should you do?

  • AUse Dataform to build, manage, and schedule SQL pipelines. (correct answer)
  • BUse Dataflow jobs to read data from Pub/Sub, transform the data, and load the data to BigQuery.
  • CUse Data Fusion to build and execute ETL pipelines.
  • DUse Cloud Composer to load data and run SQL pipelines by using the BigQuery job operators.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use Dataform to build, manage, and schedule SQL pipelines.

Showing questions 281300 of 341 · Page 15 of 18