πŸ”

PDE β€” questions

Page 7 of 18 Β· 341 total questions.

Topic 1 Β· Question 121

You currently have a single on-premises Kafka cluster in a data center in the us-east region that is responsible for ingesting messages from IoT devices globally. Because large parts of globe have poor internet connectivity, messages sometimes batch at the edge, come in all at once, and cause a spike in load on your Kafka cluster. This is becoming difficult to manage and prohibitively expensive. What is the Google-recommended cloud native architecture for this scenario?

  • AEdge TPUs as sensor devices for storing and transmitting the messages.
  • BCloud Dataflow connected to the Kafka cluster to scale the processing of incoming messages.
  • CAn IoT gateway connected to Cloud Pub/Sub, with Cloud Dataflow to read and process the messages from Cloud Pub/Sub. (correct answer)
  • DA Kafka cluster virtualized on Compute Engine in us-east with Cloud Load Balancing to connect to the devices around the world.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: An IoT gateway connected to Cloud Pub/Sub, with Cloud Dataflow to read and process the messages from Cloud Pub/Sub.

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. This option decouples the components so they scale independently and absorb load spikes.

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

You decided to use Cloud Datastore to ingest vehicle telemetry data in real time. You want to build a storage system that will account for the long-term data growth, while keeping the costs low. You also want to create snapshots of the data periodically, so that you can make a point-in-time (PIT) recovery, or clone a copy of the data for Cloud Datastore in a different environment. You want to archive these snapshots for a long time. Which two methods can accomplish this? (Choose two.)

  • AUse managed export, and store the data in a Cloud Storage bucket using Nearline or Coldline class. (correct answer)
  • BUse managed export, and then import to Cloud Datastore in a separate project under a unique namespace reserved for that export. (correct answer)
  • CUse managed export, and then import the data into a BigQuery table created just for that export, and delete temporary export files.
  • DWrite an application that uses Cloud Datastore client libraries to read all the entities. Treat each entity as a BigQuery table row via BigQuery streaming insert. Assign an export timestamp for each export, and attach it as an extra column for each row. Make sure that the BigQuery table is partitioned using the export timestamp column.
  • EWrite an application that uses Cloud Datastore client libraries to read all the entities. Format the exported data into a JSON file. Apply compression before storing the data in Cloud Source Repositories.
Reveal answer & explanation
Correct answer: A, B

The correct answer is A, B. Option A: Use managed export, and store the data in a Cloud Storage bucket using Nearline or Coldline class. Option B: Use managed export, and then import to Cloud Datastore in a separate project under a unique namespace reserved for that export.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Datastore (Firestore in Datastore mode) is a serverless NoSQL database for user profiles and app state. This option meets the real-time / low-latency performance requirement.

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

You need to create a data pipeline that copies time-series transaction data so that it can be queried from within BigQuery by your data science team for analysis. Every hour, thousands of transactions are updated with a new status. The size of the initial dataset is 1.5 PB, and it will grow by 3 TB per day. The data is heavily structured, and your data science team will build machine learning models based on this data. You want to maximize performance and usability for your data science team. Which two strategies should you adopt? (Choose two.)

  • ADenormalize the data as must as possible. (correct answer)
  • BPreserve the structure of the data as much as possible.
  • CUse BigQuery UPDATE to further reduce the size of the dataset.
  • DDevelop a data pipeline where status updates are appended to BigQuery instead of updated. (correct answer)
  • ECopy a daily snapshot of transaction data to Cloud Storage and store it as an Avro file. Use BigQuery's support for external data sources to query.
Reveal answer & explanation
Correct answer: A, D

The correct answer is A, D. Option A: Denormalize the data as must as possible. Option D: Develop a data pipeline where status updates are appended to BigQuery instead of updated.

Explanation

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

Topic 1 Β· Question 124

You are designing a cloud-native historical data processing system to meet the following conditions: β€’ The data being analyzed is in CSV, Avro, and PDF formats and will be accessed by multiple analysis tools including Dataproc, BigQuery, and Compute Engine. β€’ A batch pipeline moves daily data. β€’ Performance is not a factor in the solution. β€’ The solution design should maximize availability. How should you design data storage for this solution?

  • ACreate a Dataproc cluster with high availability. Store the data in HDFS, and perform analysis as needed.
  • BStore the data in BigQuery. Access the data using the BigQuery Connector on Dataproc and Compute Engine.
  • CStore the data in a regional Cloud Storage bucket. Access the bucket directly using Dataproc, BigQuery, and Compute Engine.
  • DStore the data in a multi-regional Cloud Storage bucket. Access the data directly using Dataproc, BigQuery, and Compute Engine. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Store the data in a multi-regional Cloud Storage bucket. Access the data directly using Dataproc, BigQuery, and Compute Engine.

Explanation

Compute Engine provides configurable virtual machines when you need full control of the OS. 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 125

You have a petabyte of analytics data and need to design a storage and processing platform for it. You must be able to perform data warehouse-style analytics on the data in Google Cloud and expose the dataset as files for batch analysis tools in other cloud providers. What should you do?

  • AStore and process the entire dataset in BigQuery.
  • BStore and process the entire dataset in Bigtable.
  • CStore the full dataset in BigQuery, and store a compressed copy of the data in a Cloud Storage bucket. (correct answer)
  • DStore the warm data as files in Cloud Storage, and store the active data in BigQuery. Keep this ratio as 80% warm and 20% active.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Store the full dataset in BigQuery, and store a compressed copy of the data in a Cloud Storage bucket.

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 126

You work for a manufacturing company that sources up to 750 different components, each from a different supplier. You've collected a labeled dataset that has on average 1000 examples for each unique component. Your team wants to implement an app to help warehouse workers recognize incoming components based on a photo of the component. You want to implement the first working version of this app (as Proof-Of-Concept) within a few working days. What should you do?

  • AUse Cloud Vision AutoML with the existing dataset. (correct answer)
  • BUse Cloud Vision AutoML, but reduce your dataset twice.
  • CUse Cloud Vision API by providing custom labels as recognition hints.
  • DTrain your own image recognition model leveraging transfer learning techniques.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use Cloud Vision AutoML with the existing dataset.

Explanation

AutoML trains high-quality custom models from your data with minimal ML expertise.

Topic 1 Β· Question 127

You are working on a niche product in the image recognition domain. Your team has developed a model that is dominated by custom C++ TensorFlow ops your team has implemented. These ops are used inside your main training loop and are performing bulky matrix multiplications. It currently takes up to several days to train a model. You want to decrease this time significantly and keep the cost low by using an accelerator on Google Cloud. What should you do?

  • AUse Cloud TPUs without any additional adjustment to your code.
  • BUse Cloud TPUs after implementing GPU kernel support for your customs ops.
  • CUse Cloud GPUs after implementing GPU kernel support for your customs ops. (correct answer)
  • DStay on CPUs, and increase the size of the cluster you're training your model on.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use Cloud GPUs after implementing GPU kernel support for your customs ops.

Topic 1 Β· Question 128

You work on a regression problem in a natural language processing domain, and you have 100M labeled examples in your dataset. You have randomly shuffled your data and split your dataset into train and test samples (in a 90/10 ratio). After you trained the neural network and evaluated your model on a test set, you discover that the root-mean-squared error (RMSE) of your model is twice as high on the train set as on the test set. How should you improve the performance of your model?

  • AIncrease the share of the test sample in the train-test split.
  • BTry to collect more data and increase the size of your dataset.
  • CTry out regularization techniques (e.g., dropout of batch normalization) to avoid overfitting.
  • DIncrease the complexity of your model by, e.g., introducing an additional layer or increase sizing the size of vocabularies or n-grams used. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Increase the complexity of your model by, e.g., introducing an additional layer or increase sizing the size of vocabularies or n-grams used.

Topic 1 Β· Question 129

You use BigQuery as your centralized analytics platform. New data is loaded every day, and an ETL pipeline modifies the original data and prepares it for the final users. This ETL pipeline is regularly modified and can generate errors, but sometimes the errors are detected only after 2 weeks. You need to provide a method to recover from these errors, and your backups should be optimized for storage costs. How should you organize your data in BigQuery and store your backups?

  • AOrganize your data in a single table, export, and compress and store the BigQuery data in Cloud Storage.
  • BOrganize your data in separate tables for each month, and export, compress, and store the data in Cloud Storage.
  • COrganize your data in separate tables for each month, and duplicate your data on a separate dataset in BigQuery.
  • DOrganize your data in separate tables for each month, and use snapshot decorators to restore the table to a time prior to the corruption. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Organize your data in separate tables for each month, and use snapshot decorators to restore the table to a time prior to the corruption.

Topic 1 Β· Question 130

The marketing team at your organization provides regular updates of a segment of your customer dataset. The marketing team has given you a CSV with 1 million records that must be updated in BigQuery. When you use the UPDATE statement in BigQuery, you receive a quotaExceeded error. What should you do?

  • AReduce the number of records updated each day to stay within the BigQuery UPDATE DML statement limit.
  • BIncrease the BigQuery UPDATE DML statement limit in the Quota management section of the Google Cloud Platform Console.
  • CSplit the source CSV file into smaller CSV files in Cloud Storage to reduce the number of BigQuery UPDATE DML statements per BigQuery job.
  • DImport the new records from the CSV file into a new BigQuery table. Create a BigQuery job that merges the new records with the existing records and writes the results to a new BigQuery table. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Import the new records from the CSV file into a new BigQuery table. Create a BigQuery job that merges the new records with the existing records and writes the results to a new BigQuery table.

Explanation

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

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

As your organization expands its usage of GCP, many teams have started to create their own projects. Projects are further multiplied to accommodate different stages of deployments and target audiences. Each project requires unique access control configurations. The central IT team needs to have access to all projects. Furthermore, data from Cloud Storage buckets and BigQuery datasets must be shared for use in other projects in an ad hoc way. You want to simplify access control management by minimizing the number of policies. Which two steps should you take? (Choose two.)

  • AUse Cloud Deployment Manager to automate access provision.
  • BIntroduce resource hierarchy to leverage access control policy inheritance. (correct answer)
  • CCreate distinct groups for various teams, and specify groups in Cloud IAM policies. (correct answer)
  • DOnly use service accounts when sharing data for Cloud Storage buckets and BigQuery datasets.
  • EFor each Cloud Storage bucket or BigQuery dataset, decide which projects need access. Find all the active members who have access to these projects, and create a Cloud IAM policy to grant access to all these users.
Reveal answer & explanation
Correct answer: B, C

The correct answer is B, C. Option B: Introduce resource hierarchy to leverage access control policy inheritance. Option C: Create distinct groups for various teams, and specify groups in Cloud IAM policies.

Explanation

Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources.

Topic 1 Β· Question 132

Your United States-based company has created an application for assessing and responding to user actions. The primary table's data volume grows by 250,000 records per second. Many third parties use your application's APIs to build the functionality into their own frontend applications. Your application's APIs should comply with the following requirements: β€’ Single global endpoint β€’ ANSI SQL support β€’ Consistent access to the most up-to-date data What should you do?

  • AImplement BigQuery with no region selected for storage or processing.
  • BImplement Cloud Spanner with the leader in North America and read-only replicas in Asia and Europe. (correct answer)
  • CImplement Cloud SQL for PostgreSQL with the master in North America and read replicas in Asia and Europe.
  • DImplement Bigtable with the primary cluster in North America and secondary clusters in Asia and Europe.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Implement Cloud Spanner with the leader in North America and read-only replicas in Asia and Europe.

Explanation

Cloud Spanner is a horizontally scalable, strongly consistent relational database with global reach.

Topic 1 Β· Question 133

A data scientist has created a BigQuery ML model and asks you to create an ML pipeline to serve predictions. You have a REST API application with the requirement to serve predictions for an individual user ID with latency under 100 milliseconds. You use the following query to generate predictions: SELECT predicted_label, user_id FROM ML.PREDICT (MODEL 'dataset.model', table user_features). How should you create the ML pipeline?

  • AAdd a WHERE clause to the query, and grant the BigQuery Data Viewer role to the application service account.
  • BCreate an Authorized View with the provided query. Share the dataset that contains the view with the application service account.
  • CCreate a Dataflow pipeline using BigQueryIO to read results from the query. Grant the Dataflow Worker role to the application service account.
  • DCreate a Dataflow pipeline using BigQueryIO to read predictions for all users from the query. Write the results to Bigtable using BigtableIO. Grant the Bigtable Reader role to the application service account so that the application can read predictions for individual users from Bigtable. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create a Dataflow pipeline using BigQueryIO to read predictions for all users from the query. Write the results to Bigtable using BigtableIO. Grant the Bigtable Reader role to the application service account so that t...

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. 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 134

You are building an application to share financial market data with consumers, who will receive data feeds. Data is collected from the markets in real time. Consumers will receive the data in the following ways: β€’ Real-time event stream β€’ ANSI SQL access to real-time stream and historical data β€’ Batch historical exports Which solution should you use?

  • ACloud Dataflow, Cloud SQL, Cloud Spanner
  • BCloud Pub/Sub, Cloud Storage, BigQuery (correct answer)
  • CCloud Dataproc, Cloud Dataflow, BigQuery
  • DCloud Pub/Sub, Cloud Dataproc, Cloud SQL
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Cloud Pub/Sub, Cloud Storage, BigQuery

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. Pub/Sub is a serverless, global messaging service that decouples services and ingests high-volume event streams. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 135

You are building a new application that you need to collect data from in a scalable way. Data arrives continuously from the application throughout the day, and you expect to generate approximately 150 GB of JSON data per day by the end of the year. Your requirements are: β€’ Decoupling producer from consumer β€’ Space and cost-efficient storage of the raw ingested data, which is to be stored indefinitely β€’ Near real-time SQL query β€’ Maintain at least 2 years of historical data, which will be queried with SQL Which pipeline should you use to meet these requirements?

  • ACreate an application that provides an API. Write a tool to poll the API and write data to Cloud Storage as gzipped JSON files.
  • BCreate an application that writes to a Cloud SQL database to store the data. Set up periodic exports of the database to write to Cloud Storage and load into BigQuery.
  • CCreate an application that publishes events to Cloud Pub/Sub, and create Spark jobs on Cloud Dataproc to convert the JSON data to Avro format, stored on HDFS on Persistent Disk.
  • DCreate an application that publishes events to Cloud Pub/Sub, and create a Cloud Dataflow pipeline that transforms the JSON event payloads to Avro, writing the data to Cloud Storage and BigQuery. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create an application that publishes events to Cloud Pub/Sub, and create a Cloud Dataflow pipeline that transforms the JSON event payloads to Avro, writing the data to Cloud Storage and BigQuery.

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. 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 136 Β· Select all that apply

You are running a pipeline in Dataflow that receives messages from a Pub/Sub topic and writes the results to a BigQuery dataset in the EU. Currently, your pipeline is located in europe-west4 and has a maximum of 3 workers, instance type n1-standard-1. You notice that during peak periods, your pipeline is struggling to process records in a timely fashion, when all 3 workers are at maximum CPU utilization. Which two actions can you take to increase performance of your pipeline? (Choose two.)

  • AIncrease the number of max workers (correct answer)
  • BUse a larger instance type for your Dataflow workers (correct answer)
  • CChange the zone of your Dataflow pipeline to run in us-central1
  • DCreate a temporary table in Bigtable that will act as a buffer for new data. Create a new step in your pipeline to write to this table first, and then create a new pipeline to write from Bigtable to BigQuery
  • ECreate a temporary table in Cloud Spanner that will act as a buffer for new data. Create a new step in your pipeline to write to this table first, and then create a new pipeline to write from Cloud Spanner to BigQuery
Reveal answer & explanation
Correct answer: A, B

The correct answer is A, B. Option A: Increase the number of max workers Option B: Use a larger instance type for your Dataflow workers

Explanation

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

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

You have a data pipeline with a Dataflow job that aggregates and writes time series metrics to Bigtable. You notice that data is slow to update in Bigtable. This data feeds a dashboard used by thousands of users across the organization. You need to support additional concurrent users and reduce the amount of time required to write the data. Which two actions should you take? (Choose two.)

  • AConfigure your Dataflow pipeline to use local execution
  • BIncrease the maximum number of Dataflow workers by setting maxNumWorkers in PipelineOptions (correct answer)
  • CIncrease the number of nodes in the Bigtable cluster (correct answer)
  • DModify your Dataflow pipeline to use the Flatten transform before writing to Bigtable
  • EModify your Dataflow pipeline to use the CoGroupByKey transform before writing to Bigtable
Reveal answer & explanation
Correct answer: B, C

The correct answer is B, C. Option B: Increase the maximum number of Dataflow workers by setting maxNumWorkers in PipelineOptions Option C: Increase the number of nodes in the Bigtable cluster

Explanation

Cloud Bigtable is a managed, low-latency NoSQL wide-column store for very high-throughput workloads. Dataflow runs serverless Apache Beam pipelines for stream and batch data processing with autoscaling.

Topic 1 Β· Question 138

You have several Spark jobs that run on a Cloud Dataproc cluster on a schedule. Some of the jobs run in sequence, and some of the jobs run concurrently. You need to automate this process. What should you do?

  • ACreate a Cloud Dataproc Workflow Template
  • BCreate an initialization action to execute the jobs
  • CCreate a Directed Acyclic Graph in Cloud Composer (correct answer)
  • DCreate a Bash script that uses the Cloud SDK to create a cluster, execute jobs, and then tear down the cluster
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a Directed Acyclic Graph in Cloud Composer

Explanation

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

Topic 1 Β· Question 139

You are building a new data pipeline to share data between two different types of applications: jobs generators and job runners. Your solution must scale to accommodate increases in usage and must accommodate the addition of new applications without negatively affecting the performance of existing ones. What should you do?

  • ACreate an API using App Engine to receive and send messages to the applications
  • BUse a Cloud Pub/Sub topic to publish jobs, and use subscriptions to execute them (correct answer)
  • CCreate a table on Cloud SQL, and insert and delete rows with the job information
  • DCreate a table on Cloud Spanner, and insert and delete rows with the job information
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use a Cloud Pub/Sub topic to publish jobs, and use subscriptions to execute them

Explanation

Pub/Sub is a serverless, global messaging service that decouples services and ingests high-volume event streams.

Topic 1 Β· Question 140

You need to create a new transaction table in Cloud Spanner that stores product sales data. You are deciding what to use as a primary key. From a performance perspective, which strategy should you choose?

  • AThe current epoch time
  • BA concatenation of the product name and the current epoch time
  • CA random universally unique identifier number (version 4 UUID) (correct answer)
  • DThe original order identification number from the sales system, which is a monotonically increasing integer
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: A random universally unique identifier number (version 4 UUID).

Showing questions 121–140 of 341 Β· Page 7 of 18