πŸ”

PDE β€” questions

Page 6 of 18 Β· 341 total questions.

Topic 1 Β· Question 101

You need to copy millions of sensitive patient records from a relational database to BigQuery. The total size of the database is 10 TB. You need to design a solution that is secure and time-efficient. What should you do?

  • AExport the records from the database as an Avro file. Upload the file to GCS using gsutil, and then load the Avro file into BigQuery using the BigQuery web UI in the GCP Console. (correct answer)
  • BExport the records from the database as an Avro file. Copy the file onto a Transfer Appliance and send it to Google, and then load the Avro file into BigQuery using the BigQuery web UI in the GCP Console.
  • CExport the records from the database into a CSV file. Create a public URL for the CSV file, and then use Storage Transfer Service to move the file to Cloud Storage. Load the CSV file into BigQuery using the BigQuery web UI in the GCP Console.
  • DExport the records from the database as an Avro file. Create a public URL for the Avro file, and then use Storage Transfer Service to move the file to Cloud Storage. Load the Avro file into BigQuery using the BigQuery web UI in the GCP Console.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Export the records from the database as an Avro file. Upload the file to GCS using gsutil, and then load the Avro file into BigQuery using the BigQuery web UI in the GCP Console.

Explanation

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

Topic 1 Β· Question 102

You need to create a near real-time inventory dashboard that reads the main inventory tables in your BigQuery data warehouse. Historical inventory data is stored as inventory balances by item and location. You have several thousand updates to inventory every hour. You want to maximize performance of the dashboard and ensure that the data is accurate. What should you do?

  • ALeverage BigQuery UPDATE statements to update the inventory balances as they are changing. (correct answer)
  • BPartition the inventory balance table by item to reduce the amount of data scanned with each inventory update.
  • CUse the BigQuery streaming the stream changes into a daily inventory movement table. Calculate balances in a view that joins it to the historical inventory balance table. Update the inventory balance table nightly.
  • DUse the BigQuery bulk loader to batch load inventory changes into a daily inventory movement table. Calculate balances in a view that joins it to the historical inventory balance table. Update the inventory balance table nightly.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Leverage BigQuery UPDATE statements to update the inventory balances as they are changing.

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 103

You have a data stored in BigQuery. The data in the BigQuery dataset must be highly available. You need to define a storage, backup, and recovery strategy of this data that minimizes cost. How should you configure the BigQuery table that have a recovery point objective (RPO) of 30 days?

  • ASet the BigQuery dataset to be regional. In the event of an emergency, use a point-in-time snapshot to recover the data.
  • BSet the BigQuery dataset to be regional. Create a scheduled query to make copies of the data to tables suffixed with the time of the backup. In the event of an emergency, use the backup copy of the table. (correct answer)
  • CSet the BigQuery dataset to be multi-regional. In the event of an emergency, use a point-in-time snapshot to recover the data.
  • DSet the BigQuery dataset to be multi-regional. Create a scheduled query to make copies of the data to tables suffixed with the time of the backup. In the event of an emergency, use the backup copy of the table.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Set the BigQuery dataset to be regional. Create a scheduled query to make copies of the data to tables suffixed with the time of the backup. In the event of an emergency, use the backup copy of the table.

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 104

You used Dataprep to create a recipe on a sample of data in a BigQuery table. You want to reuse this recipe on a daily upload of data with the same schema, after the load job with variable execution time completes. What should you do?

  • ACreate a cron schedule in Dataprep.
  • BCreate an App Engine cron job to schedule the execution of the Dataprep job.
  • CExport the recipe as a Dataprep template, and create a job in Cloud Scheduler.
  • DExport the Dataprep job as a Dataflow template, and incorporate it into a Composer job. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Export the Dataprep job as a Dataflow template, and incorporate it into a Composer job.

Explanation

Dataflow runs serverless Apache Beam pipelines for stream and batch data processing with autoscaling. Dataprep visually explores, cleans, and prepares data for analysis with no code.

Topic 1 Β· Question 105

You want to automate execution of a multi-step data pipeline running on Google Cloud. The pipeline includes Dataproc and Dataflow jobs that have multiple dependencies on each other. You want to use managed services where possible, and the pipeline will run every day. Which tool should you use?

  • Acron
  • BCloud Composer (correct answer)
  • CCloud Scheduler
  • DWorkflow Templates on Dataproc
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Cloud Composer

Explanation

Cloud Composer is managed Apache Airflow for orchestrating multi-step data workflows.

Topic 1 Β· Question 106

You are managing a Cloud Dataproc cluster. You need to make a job run faster while minimizing costs, without losing work in progress on your clusters. What should you do?

  • AIncrease the cluster size with more non-preemptible workers.
  • BIncrease the cluster size with preemptible worker nodes, and configure them to forcefully decommission.
  • CIncrease the cluster size with preemptible worker nodes, and use Cloud Stackdriver to trigger a script to preserve work.
  • DIncrease the cluster size with preemptible worker nodes, and configure them to use graceful decommissioning. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Increase the cluster size with preemptible worker nodes, and configure them to use graceful decommissioning.

Explanation

Preemptible/Spot VMs use spare capacity at a large discount for fault-tolerant, interruptible work.

Topic 1 Β· Question 107

You work for a shipping company that uses handheld scanners to read shipping labels. Your company has strict data privacy standards that require scanners to only transmit tracking numbers when events are sent to Kafka topics. A recent software update caused the scanners to accidentally transmit recipients' personally identifiable information (PII) to analytics systems, which violates user privacy rules. You want to quickly build a scalable solution using cloud-native managed services to prevent exposure of PII to the analytics systems. What should you do?

  • ACreate an authorized view in BigQuery to restrict access to tables with sensitive data.
  • BInstall a third-party data validation tool on Compute Engine virtual machines to check the incoming data for sensitive information.
  • CUse Cloud Logging to analyze the data passed through the total pipeline to identify transactions that may contain sensitive information.
  • DBuild a Cloud Function that reads the topics and makes a call to the Cloud Data Loss Prevention (Cloud DLP) API. Use the tagging and confidence levels to either pass or quarantine the data in a bucket for review. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Build a Cloud Function that reads the topics and makes a call to the Cloud Data Loss Prevention (Cloud DLP) API. Use the tagging and confidence levels to either pass or quarantine the data in a bucket for review.

Topic 1 Β· Question 108

You have developed three data processing jobs. One executes a Cloud Dataflow pipeline that transforms data uploaded to Cloud Storage and writes results to BigQuery. The second ingests data from on-premises servers and uploads it to Cloud Storage. The third is a Cloud Dataflow pipeline that gets information from third-party data providers and uploads the information to Cloud Storage. You need to be able to schedule and monitor the execution of these three workflows and manually execute them when needed. What should you do?

  • ACreate a Direct Acyclic Graph in Cloud Composer to schedule and monitor the jobs. (correct answer)
  • BUse Stackdriver Monitoring and set up an alert with a Webhook notification to trigger the jobs.
  • CDevelop an App Engine application to schedule and request the status of the jobs using GCP API calls.
  • DSet up cron jobs in a Compute Engine instance to schedule and monitor the pipelines using GCP API calls.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a Direct Acyclic Graph in Cloud Composer to schedule and monitor the jobs.

Explanation

Cloud Composer is managed Apache Airflow for orchestrating multi-step data workflows.

Topic 1 Β· Question 109 Β· Select all that apply

You have Cloud Functions written in Node.js that pull messages from Cloud Pub/Sub and send the data to BigQuery. You observe that the message processing rate on the Pub/Sub topic is orders of magnitude higher than anticipated, but there is no error logged in Cloud Logging. What are the two most likely causes of this problem? (Choose two.)

  • APublisher throughput quota is too small.
  • BTotal outstanding messages exceed the 10-MB maximum.
  • CError handling in the subscriber code is not handling run-time errors properly.
  • DThe subscriber code cannot keep up with the messages. (correct answer)
  • EThe subscriber code does not acknowledge the messages that it pulls. (correct answer)
Reveal answer & explanation
Correct answer: D, E

The correct answer is D, E. Option D: The subscriber code cannot keep up with the messages. Option E: The subscriber code does not acknowledge the messages that it pulls.

Topic 1 Β· Question 110

You are creating a new pipeline in Google Cloud to stream IoT data from Cloud Pub/Sub through Cloud Dataflow to BigQuery. While previewing the data, you notice that roughly 2% of the data appears to be corrupt. You need to modify the Cloud Dataflow pipeline to filter out this corrupt data. What should you do?

  • AAdd a SideInput that returns a Boolean if the element is corrupt.
  • BAdd a ParDo transform in Cloud Dataflow to discard corrupt elements. (correct answer)
  • CAdd a Partition transform in Cloud Dataflow to separate valid data from corrupt data.
  • DAdd a GroupByKey transform in Cloud Dataflow to group all of the valid data together and discard the rest.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Add a ParDo transform in Cloud Dataflow to discard corrupt elements.

Explanation

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

Topic 1 Β· Question 111

You have historical data covering the last three years in BigQuery and a data pipeline that delivers new data to BigQuery daily. You have noticed that when the Data Science team runs a query filtered on a date column and limited to 30`"90 days of data, the query scans the entire table. You also noticed that your bill is increasing more quickly than you expected. You want to resolve the issue as cost-effectively as possible while maintaining the ability to conduct SQL queries. What should you do?

  • ARe-create the tables using DDL. Partition the tables by a column containing a TIMESTAMP or DATE Type. (correct answer)
  • BRecommend that the Data Science team export the table to a CSV file on Cloud Storage and use Cloud Datalab to explore the data by reading the files directly.
  • CModify your pipeline to maintain the last 30""90 days of data in one table and the longer history in a different table to minimize full table scans over the entire history.
  • DWrite an Apache Beam pipeline that creates a BigQuery table per day. Recommend that the Data Science team use wildcards on the table name suffixes to select the data they need.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Re-create the tables using DDL. Partition the tables by a column containing a TIMESTAMP or DATE Type. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 112

You operate a logistics company, and you want to improve event delivery reliability for vehicle-based sensors. You operate small data centers around the world to capture these events, but leased lines that provide connectivity from your event collection infrastructure to your event processing infrastructure are unreliable, with unpredictable latency. You want to address this issue in the most cost-effective way. What should you do?

  • ADeploy small Kafka clusters in your data centers to buffer events.
  • BHave the data acquisition devices publish data to Cloud Pub/Sub. (correct answer)
  • CEstablish a Cloud Interconnect between all remote data centers and Google.
  • DWrite a Cloud Dataflow pipeline that aggregates all data in session windows.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Have the data acquisition devices publish data to Cloud Pub/Sub.

Explanation

Pub/Sub is a serverless, global messaging service that decouples services and ingests high-volume event streams. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 113

You are a retailer that wants to integrate your online sales capabilities with different in-home assistants, such as Google Home. You need to interpret customer voice commands and issue an order to the backend systems. Which solutions should you choose?

  • ASpeech-to-Text API
  • BCloud Natural Language API
  • CDialogflow Enterprise Edition (correct answer)
  • DAutoML Natural Language
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Dialogflow Enterprise Edition.

Topic 1 Β· Question 114

Your company has a hybrid cloud initiative. You have a complex data pipeline that moves data between cloud provider services and leverages services from each of the cloud providers. Which cloud-native service should you use to orchestrate the entire pipeline?

  • ACloud Dataflow
  • BCloud Composer (correct answer)
  • CCloud Dataprep
  • DCloud Dataproc
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Cloud Composer

Explanation

Cloud Composer is managed Apache Airflow for orchestrating multi-step data workflows.

Topic 1 Β· Question 115

You use a dataset in BigQuery for analysis. You want to provide third-party companies with access to the same dataset. You need to keep the costs of data sharing low and ensure that the data is current. Which solution should you choose?

  • AUse Analytics Hub to control data access, and provide third party companies with access to the dataset. (correct answer)
  • BUse Cloud Scheduler to export the data on a regular basis to Cloud Storage, and provide third-party companies with access to the bucket.
  • CCreate a separate dataset in BigQuery that contains the relevant data to share, and provide third-party companies with access to the new dataset.
  • DCreate a Dataflow job that reads the data in frequent time intervals, and writes it to the relevant BigQuery dataset or Cloud Storage bucket for third-party companies to use.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use Analytics Hub to control data access, and provide third party companies with access to the dataset.

Topic 1 Β· Question 116 Β· Select all that apply

Your company is in the process of migrating its on-premises data warehousing solutions to BigQuery. The existing data warehouse uses trigger-based change data capture (CDC) to apply updates from multiple transactional database sources on a daily basis. With BigQuery, your company hopes to improve its handling of CDC so that changes to the source systems are available to query in BigQuery in near-real time using log-based CDC streams, while also optimizing for the performance of applying changes to the data warehouse. Which two steps should they take to ensure that changes are available in the BigQuery reporting table with minimal latency while reducing compute overhead? (Choose two.)

  • APerform a DML INSERT, UPDATE, or DELETE to replicate each individual CDC record in real time directly on the reporting table.
  • BInsert each new CDC record and corresponding operation type to a staging table in real time. (correct answer)
  • CPeriodically DELETE outdated records from the reporting table.
  • DPeriodically use a DML MERGE to perform several DML INSERT, UPDATE, and DELETE operations at the same time on the reporting table. (correct answer)
  • EInsert each new CDC record and corresponding operation type in real time to the reporting table, and use a materialized view to expose only the newest version of each unique record.
Reveal answer & explanation
Correct answer: B, D

The correct answer is B, D. Option B: Insert each new CDC record and corresponding operation type to a staging table in real time. Option D: Periodically use a DML MERGE to perform several DML INSERT, UPDATE, and DELETE operations at the same time on the reporting table. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 117

You are designing a data processing pipeline. The pipeline must be able to scale automatically as load increases. Messages must be processed at least once and must be ordered within windows of 1 hour. How should you design the solution?

  • AUse Apache Kafka for message ingestion and use Cloud Dataproc for streaming analysis.
  • BUse Apache Kafka for message ingestion and use Cloud Dataflow for streaming analysis.
  • CUse Cloud Pub/Sub for message ingestion and Cloud Dataproc for streaming analysis.
  • DUse Cloud Pub/Sub for message ingestion and Cloud Dataflow for streaming analysis. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use Cloud Pub/Sub for message ingestion and Cloud Dataflow for streaming analysis.

Explanation

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.

Topic 1 Β· Question 118

You need to set access to BigQuery for different departments within your company. Your solution should comply with the following requirements: β€’ Each department should have access only to their data. β€’ Each department will have one or more leads who need to be able to create and update tables and provide them to their team. β€’ Each department has data analysts who need to be able to query but not modify data. How should you set access to the data in BigQuery?

  • ACreate a dataset for each department. Assign the department leads the role of OWNER, and assign the data analysts the role of WRITER on their dataset.
  • BCreate a dataset for each department. Assign the department leads the role of WRITER, and assign the data analysts the role of READER on their dataset. (correct answer)
  • CCreate a table for each department. Assign the department leads the role of Owner, and assign the data analysts the role of Editor on the project the table is in.
  • DCreate a table for each department. Assign the department leads the role of Editor, and assign the data analysts the role of Viewer on the project the table is in.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a dataset for each department. Assign the department leads the role of WRITER, and assign the data analysts the role of READER on their dataset.

Topic 1 Β· Question 119

You operate a database that stores stock trades and an application that retrieves average stock price for a given company over an adjustable window of time. The data is stored in Cloud Bigtable where the datetime of the stock trade is the beginning of the row key. Your application has thousands of concurrent users, and you notice that performance is starting to degrade as more stocks are added. What should you do to improve the performance of your application?

  • AChange the row key syntax in your Cloud Bigtable table to begin with the stock symbol. (correct answer)
  • BChange the row key syntax in your Cloud Bigtable table to begin with a random number per second.
  • CChange the data pipeline to use BigQuery for storing stock trades, and update your application.
  • DUse Cloud Dataflow to write a summary of each day's stock trades to an Avro file on Cloud Storage. Update your application to read from Cloud Storage and Cloud Bigtable to compute the responses.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Change the row key syntax in your Cloud Bigtable table to begin with the stock symbol.

Explanation

Cloud Bigtable is a managed, low-latency NoSQL wide-column store for very high-throughput workloads.

Topic 1 Β· Question 120

You are operating a Cloud Dataflow streaming pipeline. The pipeline aggregates events from a Cloud Pub/Sub subscription source, within a window, and sinks the resulting aggregation to a Cloud Storage bucket. The source has consistent throughput. You want to monitor an alert on behavior of the pipeline with Cloud Stackdriver to ensure that it is processing data. Which Stackdriver alerts should you create?

  • AAn alert based on a decrease of subscription/num_undelivered_messages for the source and a rate of change increase of instance/storage/ used_bytes for the destination
  • BAn alert based on an increase of subscription/num_undelivered_messages for the source and a rate of change decrease of instance/storage/ used_bytes for the destination (correct answer)
  • CAn alert based on a decrease of instance/storage/used_bytes for the source and a rate of change increase of subscription/ num_undelivered_messages for the destination
  • DAn alert based on an increase of instance/storage/used_bytes for the source and a rate of change decrease of subscription/ num_undelivered_messages for the destination
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: An alert based on an increase of subscription/num_undelivered_messages for the source and a rate of change decrease of instance/storage/ used_bytes for the destination This option meets the real-time / low-latency performance requirement.

Showing questions 101–120 of 341 Β· Page 6 of 18