wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Google Professional Data Engineer - All Questions

Total questions: 321

Worksheet time: 3hrs 51mins

Name
Class
Date
1.

Your company built a TensorFlow neutral-network model with a large number of neurons and layers. The model fits well for the training data. However, when tested against new data, it performs poorly. What method can you employ to address this?

a)

Threading

b)

Serialization

c)

Dropout Methods

d)

Dimensionality Reduction

2.

You are building a model to make clothing recommendations. You know a user's fashion preference is likely to change over time, so you build a data pipeline to stream new data back to the model as it becomes available. How should you use this data to train the model?

a)

Continuously retrain the model on just the new data.

b)

Continuously retrain the model on a combination of existing data and the new data.

c)

Train on the existing data while using the new data as your test set.

d)

Train on the new data while using the existing data as your test set.

3.

You designed a database for patient records as a pilot project to cover a few hundred patients in three clinics. Your design used a single database table to represent all patients and their visits, and you used self-joins to generate reports. The server resource utilization was at 50%. Since then, the scope of the project has expanded. The database must now store 100 times more patient records. You can no longer run the reports, because they either take too long or they encounter errors with insufficient compute resources. How should you adjust the database design?

a)

Add capacity (memory and disk space) to the database server by the order of 200.

b)

Shard the tables into smaller ones based on date ranges, and only generate reports with prespecified date ranges.

c)

Normalize the master patient-record table into the patient table and the visits table, and create other necessary tables to avoid self-join.

d)

Partition the table into smaller tables, with one for each clinic. Run queries against the smaller table pairs, and use unions for consolidated reports.

4.

You create an important report for your large team in Google Data Studio 360. The report uses Google BigQuery as its data source. You notice that visualizations are not showing data that is less than 1 hour old. What should you do?

a)

Disable caching by editing the report settings.

b)

Disable caching in BigQuery by editing table details.

c)

Refresh your browser tab showing the visualizations.

d)

Clear your browser history for the past hour then reload the tab showing the virtualizations.

5.

An external customer provides you with a daily dump of data from their database. The data flows into Google Cloud Storage GCS as comma-separated values (CSV) files. You want to analyze this data in Google BigQuery, but the data could have rows that are formatted incorrectly or corrupted. How should you build this pipeline?

a)

Use federated data sources, and check data in the SQL query.

b)

Enable BigQuery monitoring in Google Stackdriver and create an alert.

c)

Import the data into BigQuery using the gcloud CLI and set max_bad_records to 0.

d)

Run a Google Cloud Dataflow batch pipeline to import the data into BigQuery, and push errors to another dead-letter table for analysis.

6.

Your weather app queries a database every 15 minutes to get the current temperature. The frontend is powered by Google App Engine and serve millions of users. How should you design the frontend to respond to a database failure?

a)

Issue a command to restart the database servers.

b)

Retry the query with exponential backoff, up to a cap of 15 minutes.

c)

Retry the query every second until it comes back online to minimize staleness of data.

d)

Reduce the query frequency to once every hour until the database comes back online.

7.

You are creating a model to predict housing prices. Due to budget constraints, you must run it on a single resource-constrained virtual machine. Which learning algorithm should you use?

a)

Linear regression

b)

Logistic classification

c)

Recurrent neural network

d)

Feedforward neural network

8.

You are building new real-time data warehouse for your company and will use Google BigQuery streaming inserts. There is no guarantee that data will only be sent in once but you do have a unique ID for each row of data and an event timestamp. You want to ensure that duplicates are not included while interactively querying data. Which query type should you use?

a)

Include ORDER BY DESK on timestamp column and LIMIT to 1.

b)

Use GROUP BY on the unique ID column and timestamp column and SUM on the values.

c)

Use the LAG window function with PARTITION by unique ID along with WHERE LAG IS NOT NULL.

d)

Use the ROW_NUMBER window function with PARTITION by unique ID along with WHERE row equals 1.

9.

Your company is using WILDCARD tables to query data across multiple tables with similar names. The SQL statement is currently failing with the following error:

#Syntax error: Expected end of statement but got "-" at [4:11]

SELECT age

FROM bigquery-public-data.noaa_gsod.gsod

WHERE age != 99

AND_TABLE_SUFFIX = '1929'

ORDER BY age DESC


Which table name will make the SQL statement work correctly?

a)

'bigquery-public-data.noaa_gsod.gsod'

b)

bigquery-public-data.noaa_gsod.gsod*

c)

'bigquery-public-data.noaa_gsod.gsod'*

d)

'bigquery-public-data.noaa_gsod.gsod*`

10.

Your company is in a highly regulated industry. One of your requirements is to ensure individual users have access only to the minimum amount of information required to do their jobs. You want to enforce this requirement with Google BigQuery. Which three approaches can you take? (Choose three.)

a)

Use Google Stackdriver Audit Logging to determine policy violations.

b)

Restrict access to tables by role.

c)

Ensure that the data is encrypted at all times.

d)

Restrict BigQuery API access to approved users.

e)

Segregate data across multiple tables or databases.

11.

You are working on optimizing BigQuery for a query that is run repeatedly on a single table. The data queried is about 1 GB, and some rows are expected to change about 10 times every hour. You have optimized the SQL statements as much as possible. You want to further optimize the query's performance. What should you do?

a)

Create a materialized view based on the table, and query that view.

b)

Enable caching of the queried data so that subsequent queries are faster.

c)

Create a scheduled query, and run it a few minutes before the report has to be created.

d)

Reserve a larger number of slots in advance so that you have maximum compute power to execute the query.

12.

Several years ago, you built a machine learning model for an ecommerce company. Your model made good predictions. Then a global pandemic occurred, lockdowns were imposed, and many people started working from home. Now the quality of your model has degraded. You want to improve the quality of your model and prevent future performance degradation. What should you do?

a)

Retrain the model with data from the first 30 days of the lockdown.

b)

Monitor data until usage patterns normalize, and then retrain the model.

c)

Retrain the model with data from the last 30 days. After one year, return to the older model.

d)

Retrain the model with data from the last 30 days. Add a step to continuously monitor model input data for changes, and retrain the model.

13.

A new member of your development team works remotely. The developer will write code locally on their laptop, which will connect to a MySQL instance on Cloud SQL. The instance has an external (public) IP address. You want to follow Google-recommended practices when you give access to Cloud SQL to the new team member. What should you do?

a)

Ask the developer for their laptop's IP address, and add it to the authorized networks list.

b)

Remove the external IP address, and replace it with an internal IP address. Add only the IP address for the remote developer's laptop to the authorized list.

c)

Give instance access permissions in Identity and Access Management (IAM), and have the developer run Cloud SQL Auth proxy to connect to a MySQL instance.

d)

Give instance access permissions in Identity and Access Management (IAM), change the access to "private service access" for security, and allow the developer to access Cloud SQL from their laptop.

14.

Your Cloud Spanner database stores customer address information that is frequently accessed by the marketing team. When a customer enters the country and the state where they live, this information is stored in different tables connected by a foreign key. The current architecture has performance issues. You want to follow Google-recommended practices to improve performance. What should you do?

a)

Create interleaved tables, and store states under the countries.

b)

Denormalize the data, and have a row for each state with its corresponding country.

c)

Retain the existing architecture, but use short, two-letter codes for the countries and states.

d)

Combine the countries in a single cell's text, for example "country:state1,state2, …" and when required, split the data.

15.

Your company runs its business-critical system on PostgreSQL. The system is accessed simultaneously from many locations around the world and supports millions of customers. Your database administration team manages the redundancy and scaling manually. You want to migrate the database to Google Cloud. You need a solution that will provide global scale and availability and require minimal maintenance. What should you do?

a)

Migrate to BigQuery.

b)

Migrate to Cloud Spanner.

c)

Migrate to a Cloud SQL for PostgreSQL instance.

d)

Migrate to bare metal machines with PostgreSQL installed.

16.

Your company collects data about customers to regularly check their health vitals. You have millions of customers around the world. Data is ingested at an average rate of two events per 10 seconds per user. You need to be able to visualize data in Bigtable on a per user basis. You need to construct the Bigtable key so that the operations are performant. What should you do?

a)

Construct the key as user-id#device-id#activity-id#timestamp.

b)

Construct the key as timestamp#user-id#device-id#activity-id.

c)

Construct the key as timestamp#device-id#activity-id#user-id.

d)

Construct the key as user-id#timestamp#device-id#activity-id.

17.

Your company is hiring several business analysts who are new to BigQuery. The analysts will use BigQuery to analyze large quantities of data. You need to control costs in BigQuery and ensure that there is no budget overrun while you maintain  the quality of query results. What should you do?

a)

Set a customized project-level or user-level daily quota to acceptable values.

b)

Reduce the data in the BigQuery table so that the analysts query less data, and then archive the remaining data.

c)

Train the analysts to use the query validator or --dry_run to estimate costs so that the analysts can self-regulate usage.

d)

Export the BigQuery daily costs, and visualize the data on Looker on a per-analyst basis so that the analysts can self-regulate usage.

18.

Your Bigtable database was recently deployed into production. The scale of data ingested and analyzed has increased significantly, but the performance has degraded. You want to identify the performance issue. What should you do?

a)

Use Key Visualizer to analyze performance

b)

Use Cloud Trace to identify the performance issue.

c)

Add logging statements into the code to see which inserts cause the delay.

d)

Add more nodes to the cluster to see if that resolves the performance issue.

19.

Your company is moving your data analytics to BigQuery. Your other operations will remain on-premises. You need to transfer 800 TB of historic data. You also need to plan for 30 Gbps of daily data transfers that must be appended for analysis the next day. You want to follow Google-recommended practices to transfer your data. What should you do?

a)

As early as possible every day, use Cloud VPN to transfer the existing data over the internet.

b)

Use a Transfer Appliance to move the existing data to Google Cloud. Use Cloud VPN to transfer data daily.

c)

Use a Transfer Appliance to move the existing data to Google Cloud.. Use VPC Network Peering to transfer data daily.

d)

Use a Transfer Appliance to move the existing data to Google Cloud. Set up a Dedicated or Partner Interconnect for daily transfers.

20.

Your team runs Dataproc workloads where the worker node takes about 45 minutes to process. You have been exploring various options to optimize the system for cost, including shutting down worker nodes aggressively. However, in your metrics you see that the entire job takes even longer. You want to optimize the system for cost without increasing job completion time. What should you do?

a)

Set a graceful decommissioning timeout greater than 45 minutes.

b)

Rewrite the processing in Cloud Data Fusion, and run the job automatically.

c)

Rewrite the processing in Dataflow, and use stream processing of the same data.

d)

Increase the number of vCPUs on each worker node so that the processing finishes sooner.

21.

Your customer has a SQL Server database that contains about 5 TB of data in another public cloud. You expect the data to grow to a maximum of 25 TB. The database is the backend of an internal reporting application that is used once a week. You want to migrate the application to Google Cloud to reduce administrative effort while keeping costs the same or reducing them. What should you do?

a)

Migrate the database to Bigtable.

b)

Migrate the database to Cloud Spanner.

c)

Install SQL Server on a Compute Engine VM.

d)

Migrate the database to SQL Server in Cloud SQL.

22.

Your IT team uses BigQuery for storing structured data. Your finance team recently moved to Google Workspace Enterprise edition from a standalone, desktop-based spreadsheet processor. When the finance team needs data insights, the IT team runs a query on BigQuery, exports the data to a CSV file, and sends the file as an email attachment to the finance team members. You want to improve the process while you retain familiar methods of data analysis for the finance team. What should you do?

a)

Run the query in BigQuery, and give the finance team access to the results view, which can be analyzed.

b)

Run the query in BigQuery, and give the finance team access to the data visualizations in Google Data Studio.

c)

Run the query in BigQuery, export the data to CSV, upload the file to a Cloud Storage bucket, and share the file with the finance team.

d)

Run the query in BigQuery, and save the results to a Google Sheets shared spreadsheet that can be accessed and analyzed by the finance team.

23.

Your scooter-sharing company collects information about their scooters, such as location, battery level, and speed. The company visualizes this data in real time. To guard against intermittent connectivity, each scooter sends repeats of certain messages within a short interval. Occasional data errors have been noticed. The messages are received in Pub/Sub and stored in BigQuery. You need to ensure that the data does not contain duplicates and that erroneous data with empty fields is rejected. What should you do?

a)

Store the data in BigQuery, and run delete queries on erroneous and duplicate data.

b)

Use Dataflow to subscribe to Pub/Sub, process the data, and store the data in BigQuery.

c)

Use Kubernetes to create a microservices application that can remove duplicates and erroneous data. Then insert the data into BigQuery.

d)

Create an application on Compute Engine with Managed Instance Groups that can remove duplicates and erroneous data. Then insert the data into BigQuery.

24.

Your cryptocurrency trading company visualizes prices to help your customers make trading decisions. Because different trades happen in real time, the price data is fed to a data pipeline that uses Dataflow for processing. You want to compute moving averages. What should you do?

a)

Use hopping windows in Dataflow.

b)

Use session windows in Dataflow.

c)

Use tumbling windows in Dataflow.

d)

Use Dataflow SQL, and compute averages grouped by time.

25.

You are building the trading platform for a stock exchange with millions of traders. Trading data is written rapidly. You need to retrieve data quickly to show visualizations to the traders, such as the changing price of a particular stock over time. You need to choose a storage solution in Google Cloud. What should you do?

a)

Use Bigtable.

b)

Use Firestore.

c)

Use Cloud SQL.

d)

Use Memorystore.

26.

Your customer uses Hadoop and Spark to run data analytics on-premises. The main data is stored in hard disks that are centrally accessed. Your customer needs to migrate their workloads to Google Cloud efficiently while considering scalability. You want to select an architecture that requires minimal effort. What should you do?

a)

Use Dataproc to run Hadoop and Spark jobs. Move the data to Cloud Storage.

b)

Use Dataflow to recreate the jobs in a serverless approach. Move the data to Cloud Storage.

c)

Use Dataproc to run Hadoop and Spark jobs. Retain the data on a Compute Engine VM with an attached persistent disk.

d)

Use Dataflow to recreate the jobs in a serverless approach. Retain the data on a Compute Engine VM with an attached persistent disk.

27.

You used a small amount of data to build a machine learning model that gives you good inferences during testing. However, the results show more errors when real-world data is used to run the model. No additional data can be collected for testing. You want to get a more accurate view of the model's capability. What should you do?

a)

Reduce the amount of data to improve the model.

b)

Cross-validate the data, and re-run the model building process.

c)

Create feature crosses that will add new columns to increase the data.

d)

Duplicate the data twice to increase the data, and re-run the model building process.

28.

Your organization has been collecting information for many years about your customers, including their address and credit card details. You plan to use this customer data to build machine learning models on Google Cloud. You are concerned about private data leaking into the machine learning model. Your management is also concerned that direct leaks of personal data could damage the company's reputation. You need to address these concerns about data security. What should you do?

a)

Remove all the tables that contain sensitive data.

b)

Use libraries like SciPy to build the ML models on your local computer.

c)

Remove the sensitive data by using the Cloud Data Loss Prevention (DLP) API.

d)

Identify the rows that contain sensitive data, and apply SQL queries to remove only those rows.

29.

Your healthcare application has a backend system that accepts event data directly from IoT devices. Recent increases of the application's users and devices are causing a sudden influx of data that overwhelms the system. You need to redesign the data pipeline to ensure that all data is processed and that no events are lost. You want to follow Google-recommended practices. What should you do?  

a)

Use Kafka with pull mode.

b)

Use Pub/Sub with pull mode.

c)

Use Pub/Sub with push mode.

d)

Run Cloud Scheduler at fixed intervals.

30.

You have 250,000 devices which produce a JSON device status event every 10 seconds. You want to capture this event data for outlier time series analysis. What should you do?

a)

Ship the data into BigQuery. Develop a custom application that uses the BigQuery API to query the dataset and displays device outlier data based on your business requirements.

b)

Ship the data into BigQuery. Use the BigQuery console to query the dataset and display device outlier data based on your business requirements.

c)

Ship the data into Cloud Bigtable. Use the Cloud Bigtable cbt tool to display device outlier data based on your business requirements.

d)

Ship the data into Cloud Bigtable. Install and use the HBase shell for Cloud Bigtable to query the table for device outlier data based on your business requirements.

31.

You are designing storage for CSV files and using an I/O-intensive custom Apache Spark transform as part of deploying a data pipeline on Google Cloud. You intend to use ANSI SQL to run queries for your analysts.

How should you transform the input data?

a)

Use BigQuery for storage. Use Dataflow to run the transformations.

b)

Use BigQuery for storage. Use Dataproc to run the transformations.

c)

Use Cloud Storage for storage. Use Dataflow to run the transformations.

d)

Use Cloud Storage for storage. Use Dataproc to run the transformations.

32.

Your company is loading comma-separated values (CSV) files into BigQuery. The data is fully imported successfully; however, the imported data is not matching byte-to-byte to the source file.

What is the most likely cause of this problem?

a)

The CSV data loaded in BigQuery is not flagged as CSV.

b)

The CSV data had invalid rows that were skipped on import.

c)

The CSV data has not gone through an ETL phase before loading into BigQuery.

d)

The CSV data loaded in BigQuery is not using BigQuery’s default encoding.

33.

You are using Pub/Sub to stream inventory updates from many point-of-sale (POS) terminals into BigQuery.

Each update event has the following information: product identifier "prodSku", change increment "quantityDelta", POS identification "termId", and "messageId" which is created for each push attempt from the terminal.

During a network outage, you discovered that duplicated messages were sent, causing the inventory system to over-count the changes. You determine that the terminal application has design problems and may send the same event more than once during push retries.

You want to ensure that the inventory update is accurate. What should you do?

a)

Add another attribute orderId to the message payload to mark the unique check-out order across all terminals. Make sure that messages whose "orderId" and "prodSku" values match corresponding rows in the BigQuery table are discarded.

b)

Inspect the "messageId" of each message. Make sure that any messages whose "messageId" values match corresponding rows in the BigQuery table are discarded.

c)

Instead of specifying a change increment for "quantityDelta", always use the derived inventory value after the increment has been applied. Name the new attribute "adjustedQuantity".

d)

Inspect the "publishTime" of each message. Make sure that messages whose "publishTime" values match rows in the BigQuery table are discarded.

34.

You are building storage for files for a data pipeline on Google Cloud. You want to support JSON files. The schema of these files will occasionally change.

Your analyst teams will use running aggregate ANSI SQL queries on this data. What should you do?

a)

Use BigQuery for storage. Provide format files for data load. Update the format files as needed.

b)

Use BigQuery for storage. Select "Automatically detect" in the Schema section.

c)

Use Cloud Storage for storage. Link data as temporary tables in BigQuery and turn on the "Automatically detect" option in the Schema section of BigQuery.

d)

Use Cloud Storage for storage. Link data as permanent tables in BigQuery and turn on the "Automatically detect" option in the Schema section of BigQuery.

35.

You need to stream time-series data in Avro format, and then write this to both BigQuery and Cloud Bigtable simultaneously using Dataflow. You want to achieve minimal end-to-end latency.

Your business requirements state this needs to be completed as quickly as possible. What should you do?

a)

Create a pipeline and use ParDo transform.

b)

Create a pipeline that groups the data into a PCollection and uses the Combine transform.

c)

Create a pipeline that groups data using a PCollection, and then use Avro I/O transform to write to Cloud Storage. After the data is written, load the data from Cloud Storage into BigQuery and Bigtable.

d)

Create a pipeline that groups data using a PCollection and then uses Bigtable and BigQueryIO transforms.

36.

You are working on a project with two compliance requirements. The first requirement states that your developers should be able to see the Google Cloud billing charges for only their own projects.

The second requirement states that your finance team members can set budgets and view the current charges for all projects in the organization.

The finance team should not be able to view the project contents. You want to set permissions. What should you do?

a)

Add the finance team members to the Billing Administrator role for each of the billing accounts that they need to manage. Add the developers to the Viewer role for the Project.

b)

Add the finance team members to the default IAM Owner role. Add the developers to a custom role that allows them to see their own spend only.

c)

Add the developers and finance managers to the Viewer role for the Project.

d)

Add the finance team to the Viewer role for the Project. Add the developers to the Security Reviewer role for each of the billing accounts.

37.

You want to publish system metrics to Google Cloud from a large number of on-prem hypervisors and VMs for analysis and creation of dashboards.

You have an existing custom monitoring agent deployed to all the hypervisors and your on-prem metrics system is unable to handle the load. You want to design a system that can collect and store metrics at scale. You don't want to manage your own time series database.

Metrics from all agents should be written to the same table but agents must not have permission to modify or read data written by other agents. What should you do?

a)

Modify the monitoring agent to write protobuf messages directly to BigTable.

b)

Modify the monitoring agent to publish protobuf messages to Pub/Sub. Use a Dataproc cluster or Dataflow job to consume messages from Pub/Sub and write to BigTable.

c)

Modify the monitoring agent to write protobuf messages to HBase deployed on Compute Engine VM Instances

d)

Modify the monitoring agent to write protobuf messages to Pub/Sub. Use a Dataproc cluster or Dataflow job to consume messages from Pub/Sub and write to Cassandra deployed on Compute Engine VM Instances.

38.

Your company is streaming real-time sensor data from their factory floor into Bigtable and they have noticed extremely poor performance.

How should the row key be redesigned to improve Bigtable performance on queries that populate real-time dashboards?

a)

Use a row key of the form <timestamp>.

b)

Use a row key of the form <sensorid>.

c)

Use a row key of the form <timestamp>#<sensorid>.

d)

Use a row key of the form <sensorid>#<timestamp>.

39.

You are designing a relational data repository on Google Cloud to grow as needed. The data will be transactionally consistent and added from any location in the world.

You want to monitor and adjust node count for input traffic, which can spike unpredictably. What should you do?

a)

Use Cloud Spanner for storage. Monitor CPU utilization and increase node count if more than 70% utilized for your time span.

b)

Use Cloud Spanner for storage. Monitor storage usage and increase node count if more than 70% utilized.

c)

Use Cloud Bigtable for storage. Monitor data stored and increase node count if more than 70% utilized.

d)

Use Cloud Bigtable for storage. Monitor CPU utilization and increase node count if more than 70% utilized for your time span.

40.

A company is migrating its current infrastructure from on-premise to Google cloud. It stores over 280TB of data on its on-premise HDFS servers. You were tasked to move data from HDFS to Google Storage in a secure and efficient manner. Which of the following approaches are best to fulfill this task?

a)

Install Google Storage gsutil tool on servers and copy the data from HDFS to Google Storage.

b)

Use Cloud Data Transfer Service to migrate the data to Google Storage.

c)

Import the data from HDFS to BigQuery. Then, export the data to Google Storage in AVRO format.

d)

Use Transfer Appliance Service to migrate the data to Google Storage.

41.

You have a Dataflow pipeline to run and process a set of data files received from a client, for transformation and loading into a data warehouse. This pipeline should run each morning so that metrics can be ready when stakeholders need the latest stats based on data sent the day before. Which tool should you use?

a)

Cloud Functions

b)

Compute Engine

c)

Kubernetes Engine

d)

Cloud Scheduler

42.

Your company is migrating their 30-node Apache Hadoop cluster to the cloud. They want to re-use Hadoop jobs they have already created and minimize the management of the cluster as much as possible. They also want to be able to persist data beyond the life of the cluster. What should you do?

a)

Create a Google Cloud Dataflow job to process the data.

b)

Create a Google Cloud Dataproc cluster that uses persistent disks for HDFS.

c)

Create a Hadoop cluster on Google Compute Engine that uses persistent disks.

d)

Create a Cloud Dataproc cluster that uses the Google Cloud Storage connector.

43.

You work for a bank. You have a labelled dataset that contains information on already granted loan application and whether these applications have been defaulted. You have been asked to train a model to predict default rates for credit applicants.
What should you do?

a)

Increase the size of the dataset by collecting additional data.

b)

Train a linear regression to predict a credit default risk score

c)

Remove the bias from the data and collect applications that have been declined loans.

d)

Match loan applicants with their social profiles to enable feature engineering.

44.

You have an Apache Kafka cluster on-prem with topics containing web application logs. You need to replicate the data to Google Cloud for analysis in BigQuery and Cloud Storage. The preferred replication method is mirroring to avoid deployment of Kafka Connect plugins.
What should you do?

a)

Deploy a Kafka cluster on GCE VM Instances. Configure your on-prem cluster to mirror your topics to the cluster running in GCE. Use a Dataproc cluster or Dataflow job to read from Kafka and write to GCS.

b)

Deploy a Kafka cluster on GCE VM Instances with the Pub/Sub Kafka connector configured as a Sink connector. Use a Dataproc cluster or Dataflow job to read from Kafka and write to GCS.

c)

Deploy the Pub/Sub Kafka connector to your on-prem Kafka cluster and configure Pub/Sub as a Source connector. Use a Dataflow job to read from Pub/Sub and write to GCS.

d)

Deploy the Pub/Sub Kafka connector to your on-prem Kafka cluster and configure Pub/Sub as a Sink connector. Use a Dataflow job to read from Pub/Sub and write to GCS.

45.

Your company maintains a hybrid deployment with GCP, where analytics are performed on your anonymized customer data. The data are imported to Cloud Storage from your data center through parallel uploads to a data transfer server running on GCP.

Management informs you that the daily transfers take too long and have asked you to fix the problem. You want to maximize transfer speeds. Which action should you take?

a)

Increase the CPU size on your server.

b)

Increase the size of the Google Persistent Disk on your server.

c)

Increase your network bandwidth from your datacenter to GCP.

d)

Increase your network bandwidth from Compute Engine to Cloud Storage.

46.

You are responsible for writing your company's ETL pipelines to run on an Apache Hadoop cluster. The pipeline will require some checkpointing and splitting pipelines. Which method should you use to write the pipelines?

a)

PigLatin using Pig

b)

HiveQL using Hive

c)

Java using MapReduce

d)

Python using MapReduce

47.

You are designing storage for two relational tables that are part of a 10-TB database on Google Cloud. You want to support transactions that scale horizontally.
You also want to optimize data for range queries on non-key columns. What should you do?

a)

Use Cloud SQL for storage. Add secondary indexes to support query patterns.

b)

Use Cloud SQL for storage. Use Cloud Dataflow to transform data to support query patterns.

c)

Use Cloud Spanner for storage. Add secondary indexes to support query patterns.

d)

Use Cloud Spanner for storage. Use Cloud Dataflow to transform data to support query patterns.

48.

Your company is selecting a system to centralize data ingestion and delivery. You are considering messaging and data integration systems to address the requirements. The key requirements are:
✑ The ability to seek to a particular offset in a topic, possibly back to the start of all data ever captured
✑ Support for publish/subscribe semantics on hundreds of topics
✑ Retain per-key ordering
Which system should you choose?

a)

Apache Kafka

b)

Cloud Storage

c)

Cloud Pub/Sub

d)

Firebase Cloud Messaging

49.

You plan to deploy Cloud SQL using MySQL. You need to ensure high availability in the event of a zone failure. What should you do?

a)

Create a Cloud SQL instance in one zone, and create a failover replica in another zone within the same region.

b)

Create a Cloud SQL instance in one zone, and create a read replica in another zone within the same region.

c)

Create a Cloud SQL instance in one zone, and configure an external read replica in a zone in a different region.

d)

Create a Cloud SQL instance in a region, and configure automatic backup to a Cloud Storage bucket in the same region.

50.

You need to move 2 PB of historical data from an on-premises storage appliance to Cloud Storage within six months, and your outbound network capacity is constrained to 20 Mb/sec. How should you migrate this data to Cloud Storage?

a)

Use Transfer Appliance to copy the data to Cloud Storage

b)

Use gsutil cp "J to compress the content being uploaded to Cloud Storage

c)

Create a private URL for the historical data, and then use Storage Transfer Service to copy the data to Cloud Storage

d)

Use trickle or ionice along with gsutil cp to limit the amount of bandwidth gsutil utilizes to less than 20 Mb/sec so it does not interfere with the production traffic

51.

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?

a)

Implement BigQuery with no region selected for storage or processing.

b)

Implement Cloud Spanner with the leader in North America and read-only replicas in Asia and Europe.

c)

Implement Cloud SQL for PostgreSQL with the master in North America and read replicas in Asia and Europe.

d)

Implement Bigtable with the primary cluster in North America and secondary clusters in Asia and Europe.

52.

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 Cloud Dataproc, BigQuery, and Compute Engine.
✑ A streaming data pipeline stores new data daily.
✑ Peformance is not a factor in the solution.
✑ The solution design should maximize availability.
How should you design data storage for this solution?

a)

Create a Cloud Dataproc cluster with high availability. Store the data in HDFS, and peform analysis as needed.

b)

Store the data in BigQuery. Access the data using the BigQuery Connector on Cloud Dataproc and Compute Engine.

c)

Store the data in a regional Cloud Storage bucket. Access the bucket directly using Cloud Dataproc, BigQuery, and Compute Engine.

d)

Store the data in a multi-regional Cloud Storage bucket. Access the data directly using Cloud Dataproc, BigQuery, and Compute Engine.

53.

A company uses Airflow to orchestrate its data pipelines and DAGs (Directed Acyclic Graphs), installed and maintained on-premise by DevOps team. The company wants to migrate the data pipelines managed in Airflow to Google Cloud. The company is looking for a migration method which can make DAGs available and migrated without extra code modifications so the data pipelines can be available once migrated. Which service should you use?

a)

App Engine

b)

Cloud Function

c)

Dataflow

d)

Cloud Composer

54.

An air-quality research facility monitors the quality of the air and alerts of possible high air pollution in a region. The facility receives event data from 25,000 sensors every 60 seconds. Event data is then used for time-series analysis per region. Cloud experts suggested using BigTable for storing event data.
What will you design the row key for each even in BigTable?

a)

Use event’s timestamp as row key.

b)

Use combination of sensor ID with timestamp as sensorID-timestamp.

c)

Use combination of sensor ID with timestamp as timestamp-sensorID.

d)

Use sensor ID as row key.

55.

Your company hosts a gaming app which reaches over 30,000 players in a single minute. The app generates event data including information about players state, score, location coordinates and other stats. You need to find a storage solution which can support high read/write throughput with very low latency which doesn’t exceed 10 milliseconds to ensure a quality performance experience for the players.
Which of the following is the best option for this scenario?

a)

Cloud Spanner

b)

BigQuery

c)

BigTable

d)

Datastore

56.

An online learning platform wants to generate captions for its videos. The platform offers around 2,500 courses with topics about business, finance, cooking, development & science. The platform allows content with different languages such as French, German, Turkish and Thai. Thus, this can be very difficult for a single team to caption all available courses and they are looking for an approach which helps do such massive job.
Which product from Google Cloud will you suggest them to use?

a)

Cloud Speech-to-Text.

b)

Cloud Natural Language.

c)

Machine Learning Engine.

d)

AutoML Vision API.

57.

You want to launch a Cloud Machine Learning Engine cluster to deploy a deep neural network model built by Tensorflow by data scientists of your company. Reviewing the standard tiers available by Google ML Engine, you could not find a tier that suits the requirements data scientists need for the cluster. Google allows you to specify custom cluster specification.
Which of the following specifications you are allowed to set? (pick two)

a)

workerCount

b)

parameterServerCount

c)

masterCount

d)

workerMemory

58.

Your company signed a contract with a retail chain store to handle its data processing applications and tech stack. One of the several applications to be implemented is building an ETL pipeline to ingest the chain store’s daily purchase transaction logs to be processed and stored for analysis and reporting; visualize the chain’s purchase details for the head management.


Daily transaction logs will be available at 2 am when the day is over and logs are exported to a Google Storage bucket partitioned by date in format (yyyy-mm-dd). Dataflow pipeline should run every day at 3:00 am to ingest and process the logs. Which of the following Google products would help?

a)

Cloud Function

b)

Compute Engine

c)

Cloud Scheduler

d)

Kubernetes Engine

59.

You are building a model using TensorFlow. Upon training the model, the results show that the model could return 73% true positives. When you tested the model with a set derived from real data. You noticed a decrease in true positive returns to 65%. You need to tune the model for better prediction. What would you do? (pick two)

a)

Increase feature parameters

b)

Increase regularization

c)

Decrease feature parameters

d)

Decrease regularization

60.

An organization wants to automate its data processing workflows using Cloud Composer. They need to schedule jobs in a repeatable manner to ensure the timely execution of critical tasks. What approach should they take to achieve this goal effectively?

a)

Utilize Cloud Functions to trigger workflows based on predefined schedules and dependencies.

b)

Implement directed acyclic graphs (DAGs) in Cloud Composer to define workflow dependencies and schedule job execution.

c)

Use Cloud Scheduler to define and manage job schedules, and then trigger workflow execution in Cloud Composer.

d)

Leverage Cloud Tasks to create and manage task queues for scheduling and orchestrating data processing jobs in Cloud Composer.

61.

Your company is running their first dynamic campaign, serving different offers by analyzing real-time data during the holiday season. The data scientists are collecting terabytes of data that rapidly grows every hour during their 30-day campaign. They are using Google Cloud Dataflow to preprocess the data and collect the feature (signals) data that is needed for the machine learning model in Google Cloud Bigtable. The team is observing suboptimal performance with reads and writes of their initial load of 10 TB of data. They want to improve this performance while minimizing cost. What should they do?

a)

Redefine the schema by evenly distributing reads and writes across the row space of the table.

b)

The performance issue should be resolved over time as the site of the BigDate cluster is increased.

c)

Redesign the schema to use a single row key to identify values that need to be updated frequently in the cluster.

d)

Redesign the schema to use row keys based on numeric IDs that increase sequentially per user viewing the offers.

62.

Your software uses a simple JSON format for all messages. These messages are published to Google Cloud Pub/Sub, then processed with Google Cloud Dataflow to create a real-time dashboard for the CFO. During testing, you notice that some messages are missing in the dashboard. You check the logs, and all messages are being published to Cloud Pub/Sub successfully. What should you do next?

a)

Check the dashboard application to see if it is not displaying correctly.

b)

Run a fixed dataset through the Cloud Dataflow pipeline and analyze the output.

c)

Use Google Stackdriver Monitoring on Cloud Pub/Sub to find the missing messages.

d)

Switch Cloud Dataflow to pull messages from Cloud Pub/Sub instead of Cloud Pub/Sub pushing messages to Cloud Dataflow.

63.

Your company has recently grown rapidly and now ingesting data at a significantly higher rate than it was previously. You manage the daily batch MapReduce analytics jobs in Apache Hadoop. However, the recent increase in data has meant the batch jobs are falling behind. You were asked to recommend ways the development team could increase the responsiveness of the analytics without increasing costs. What should you recommend they do?

a)

Rewrite the job in Pig.

b)

Rewrite the job in Apache Spark.

c)

Increase the size of the Hadoop cluster.

d)

Decrease the size of the Hadoop cluster but also rewrite the job in Hive.

64.

Your company produces 20,000 files every hour. Each data file is formatted as a comma separated values (CSV) file that is less than 4 KB. All files must be ingested on Google Cloud Platform before they can be processed. Your company site has a 200 ms latency to Google Cloud, and your Internet connection bandwidth is limited as 50 Mbps. You currently deploy a secure FTP (SFTP) server on a virtual machine in Google Compute Engine as the data ingestion point. A local SFTP client runs on a dedicated machine to transmit the CSV files as is. The goal is to make reports with data from the previous day available to the executives by 10:00 a.m. each day. This design is barely able to keep up with the current volume, even though the bandwidth utilization is rather low.


You are told that due to seasonality, your company expects the number of files to double for the next three months. Which two actions should you take? (Choose two.)

a)

Introduce data compression for each file to increase the rate file of file transfer.

b)

Contact your internet service provider (ISP) to increase your maximum bandwidth to at least 100 Mbps.

c)

Redesign the data ingestion process to use gsutil tool to send the CSV files to a storage bucket in parallel.

d)

Assemble 1,000 files into a tape archive (TAR) file. Transmit the TAR files instead, and disassemble the CSV files in the cloud upon receiving them.

e)

Create an S3-compatible storage endpoint in your network, and use Google Cloud Storage Transfer Service to transfer on-premises data to the designated storage bucket.

65.

Your globally distributed auction application allows users to bid on items. Occasionally, users place identical bids at nearly identical times, and different application servers process those bids. Each bid event contains the item, amount, user, and timestamp. You want to collate those bid events into a single location in real time to determine which user bid first. What should you do?

a)

Create a file on a shared file and have the application servers write all bid events to that file. Process the file with Apache Hadoop to identify which user bid first.

b)

Have each application server write the bid events to Cloud Pub/Sub as they occur. Push the events from Cloud Pub/Sub to a custom endpoint that writes the bid event information into Cloud SQL.

c)

Set up a MySQL database for each application server to write bid events into. Periodically query each of those distributed MySQL databases and update a master MySQL database with bid event information.

d)

Have each application server write the bid events to Google Cloud Pub/Sub as they occur. Use a pull subscription to pull the bid events using Google Cloud Dataflow. Give the bid for each item to the user in the bid event that is processed first.

66.

You have enabled the free integration between Firebase Analytics and Google BigQuery. Firebase now automatically creates a new table daily in BigQuery in the format app_events_YYYYMMDD. You want to query all of the tables for the past 30 days in legacy SQL. What should you do?

a)

Use the TABLE_DATE_RANGE function

b)

Use the WHERE_PARTITIONTIME pseudo column

c)

Use WHERE date BETWEEN YYYY-MM-DD AND YYYY-MM-DD

d)

Use SELECT IF.(date >= YYYY-MM-DD AND date <= YYYY-MM-DD

67.

You launched a new gaming app almost three years ago. You have been uploading log files from the previous day to a separate Google BigQuery table with the table name format LOGS_yyyymmdd. You have been using table wildcard functions to generate daily and monthly reports for all time ranges. Recently, you discovered that some queries that cover long date ranges are exceeding the limit of 1,000 tables and failing. How can you resolve this issue?

a)

Convert all daily log tables into date-partitioned tables

b)

Convert the sharded tables into a single partitioned table

c)

Enable query caching so you can cache data from previous months

d)

Create separate views to cover each month, and query from these views

68.

You are building a data pipeline on Google Cloud. You need to prepare data using a casual method for a machine-learning process. You want to support a logistic regression model. You also need to monitor and adjust for null values, which must remain real-valued and cannot be removed. What should you do?

a)

Use Cloud Dataprep to find null values in sample source data. Convert all nulls to 'none' using a Cloud Dataproc job.

b)

Use Cloud Dataprep to find null values in sample source data. Convert all nulls to 0 using a Cloud Dataprep job.

c)

Use Cloud Dataflow to find null values in sample source data. Convert all nulls to 'none' using a Cloud Dataprep job.

d)

Use Cloud Dataflow to find null values in sample source data. Convert all nulls to 0 using a custom script.

69.

You are designing an Apache Beam pipeline to enrich data from Cloud Pub/Sub with static reference data from BigQuery. The reference data is small enough to fit in memory on a single worker. The pipeline should write enriched results to BigQuery for analysis. Which job type and transforms should this pipeline use?

a)

Batch job, PubSubIO, side-inputs

b)

Streaming job, PubSubIO, JdbcIO, side-outputs

c)

Streaming job, PubSubIO, BigQueryIO, side-inputs

d)

Streaming job, PubSubIO, BigQueryIO, side-outputs

70.

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?

a)

Set the BigQuery dataset to be regional. In the event of an emergency, use a point-in-time snapshot to recover the data.

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.

c)

Set the BigQuery dataset to be multi-regional. In the event of an emergency, use a point-in-time snapshot to recover the data.

d)

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

71.

You store historic data in Cloud Storage. You need to perform analytics on the historic data. You want to use a solution to detect invalid data entries and perform data transformations that will not require programming or knowledge of SQL.
What should you do?

a)

Use Cloud Dataflow with Beam to detect errors and perform transformations.

b)

Use Cloud Dataprep with recipes to detect errors and perform transformations.

c)

Use Cloud Dataproc with a Hadoop job to detect errors and perform transformations.

d)

Use federated tables in BigQuery with queries to detect errors and perform transformations.

72.

You are using Dataproc to process a large number of CSV files. The storage option you choose needs to be flexible to serve many worker nodes in multiple clusters. These worker nodes will read the data and also write to it for intermediate storage between processing jobs. What is the recommended storage option on Google Cloud?

a)

Cloud Storage

b)

Local SSD

c)

Cloud SQL

d)

Zonal persistent disks

73.

Cymbal Retail has acquired another company in Europe. Data access permissions and policies in this new region differ from those in Cymbal Retail’s headquarters, which is in North America. You need to define a consistent set of policies for projects in each region that follow recommended practices. What should you do?

a)

Create top level folders for each region, and assign policies at the folder level.

b)

Implement a flat hierarchy, and assign policies to each project according to its region.

c)

Create a new organization for all projects in Europe and assign policies in each organization that comply with regional laws.

d)

Implement policies at the resource level that comply with regional laws.

74.

You are managing the data for Cymbal Retail, which consists of multiple teams including retail, sales, marketing, and legal. These teams are consuming data from multiple producers including point of sales systems, industry data, orders, and more. Currently, teams that consume data have to repeatedly ask the teams that produce it to verify the most up-to-date data and to clarify other questions about the data, such as source and ownership. This process is unreliable and time-consuming and often leads to repeated escalations. You need to implement a centralized solution that gains a unified view of the organization's data and improves searchability. What should you do?

a)

Implement Looker dashboards that provide views of the data that meet each teams’ requirements.

b)

Implement a data mesh with Dataplex and have producers tag data when created.

c)

Implement a data lake with Cloud Storage, and create buckets for each team such asretail, sales, marketing.

d)

Implement a data warehouse by using BigQuery, and create datasets for each team such as retail, sales, marketing

75.

You have a Dataflow pipeline that runs data processing jobs. You need to identify the parts of the pipeline code that consume the most resources. What should you do?

a)

Use Cloud Audit Logs

b)

Use Cloud Profiler

c)

Use Cloud Monitoring

d)

Use Cloud Logging

76.

You are migrating on-premises data to a data warehouse on Google Cloud. This data will be made available to business analysts. Local regulations require that customer information including credit card numbers, phone numbers, and email IDs be captured, but not used in analysis. You need to use a reliable, recommended solution to redact the sensitive data. What should you do?

a)

Use the Cloud Data Loss Prevention (DLP) API to perform date shifting of any entries with credit card numbers, phone numbers, and email IDs.

b)

Create a regular expression to identify and delete patterns that resemble credit card numbers, phone numbers, and email IDs.

c)

Delete all columns with a title similar to "credit card," "phone," and "email."

d)

Use the Cloud Data Loss Prevention (DLP) API to identify and redact data that matches infoTypes like credit card numbers, phone numbers, and email IDs.

77.

Cymbal Retail has a team of business analysts who need to fix and enhance a set of large input data files. For example, duplicates need to be removed, erroneous rows should be deleted, and missing data should be added. These steps need to be performed on all the present set of files and any files received in the future in a repeatable, automated process. The business analysts are not adept at programming. What should they do?

a)

Load the data into Dataprep, explore the data, and edit the transformations as needed.

b)

Create a Dataproc job to perform the data fixes you need.

c)

Create a Dataflow pipeline with the data fixes you need.

d)

Load the data into Google Sheets, explore the data, and fix the data as needed.

78.

Your data and applications reside in multiple geographies on Google Cloud. Some regional laws require you to hold your own keys outside of the cloud provider environment, whereas other laws are less restrictive and allow storing keys with the same provider who stores the data. The management of these keys has increased in complexity, and you need a solution that can centrally manage all your keys. What should you do?

a)

Store your keys on a supported external key management partner, and use Cloud External Key Manager (EKM) to get keys when required.

b)

Store keys in Cloud Key Management Service (KMS), and reduce the number of days forautomatic key rotation.

c)

Enable confidential computing for all your virtual machines.

d)

Store your keys in Cloud Hardware Security Module (HSM), and retrieve keys from it when required.

79.

Business analysts in your team need to run analysis on data that was loaded into BigQuery. You need to follow recommended practices and grant permissions. What role should you grant the business analysts?

a)

storage.objectViewer and bigquery.user

b)

bigquery.dataOwner

c)

bigquery.user and bigquery.dataViewer

d)

bigquery.resourceViewer and bigquery.dataViewer

80.

Cymbal Retail is migrating its private data centers to Google Cloud. Over many years, hundreds of terabytes of data were accumulated. You currently have a 100 Mbps line and you need to transfer this data reliably before commencing operations on Google Cloud in 45 days. What should you do?

a)

Order a transfer appliance, export the data to it, and ship it to Google.

b)

Zip and upload the data to Cloud Storage buckets by using the Google Cloud console.

c)

Store the data in an HTTPS endpoint, and configure Storage Transfer Service to copy the data to Cloud Storage.

d)

Upload the data to Cloud Storage by using gsutil.

81.

Laws in the region where you operate require that files related to all orders made each day are stored immutably for 365 days. The solution that you recommend has to be cost-effective. What should you do?

a)

Store the data in a Cloud Storage bucket, and enable object versioning and delete any version older than 365 days.

b)

Store the data in a Cloud Storage bucket, and specify a retention period.

c)

Store the data in a Cloud Storage bucket, and set a lifecycle policy to delete the file after 365 days.

d)

Store the data in a Cloud Storage bucket, enable object versioning, and delete any version greater than 365.

82.

A company collects lots of consumer data from online marketing campaigns. Company plans to use Google Cloud to store this collected data. The top management is worried about exposing personally identifiable information (PII) that may be present in this data. What should you do to reduce the risk of exposing PII data?

a)

Ensure that all PII data is removed from the collected data before storing it on Google Cloud.

b)

Ensure that all stored data is monitored by Security Command Center.

c)

Use Cloud Data Loss Prevention (Cloud DLP) to inspect and redact PII data.

d)

Store all data in BigQuery and turn on column level access to protectsensitive data.

83.

Your company is very serious about data protection and hence decides to implement the Principle of Least Privilege. What should you do to comply with this policy?

a)

Ensure that the access permissions are given strictly based on the person’s title and job role.

b)

When a task is assigned, ensure that it gets assigned to a person with the minimum privileges.

c)

Give just enough permissions to get the task done.

d)

Ensure that the users are verified every time they request access, even if they were authenticated earlier.

84.

Your data engineering team receives data in JSON format from external sources at the end of each day. You need to design the data pipeline.

What should you do?

a)

Store the data in Cloud Storage and create an extract, transform, and load (ETL) pipeline.

b)

Make your BigQuery data warehouse public and ask the external sources to insert the data.

c)

Create a public API to allow external applications to add the data to your warehouse.

d)

Store the data in persistent disks and create an ETL pipeline.

85.

The first stage of your data pipeline processes tens of terabytes of financial data and creates a sparse, time-series dataset as a key-value pair.

Which of these is a suitable sink for the pipeline's first stage?

a)

Cloud Storage

b)

Cloud SQL

c)

AlloyDB

d)

Bigtable

86.

You are processing large amounts of input data in BigQuery. You need to combine this data with a small amount of frequently changing data that is available in Cloud SQL.

What should you do?

a)

Copy the data from Cloud SQL to a new BigQuery table hourly

b)

Copy the data from Cloud SQL and create a combined, normalized table hourly.

c)

Use a federated query to get data from Cloud SQL.

d)

Create a Dataflow pipeline to combine the BigQuery and Cloud SQL data when the Cloud SQL data changes

87.

Your company has multiple data analysts but a limited data engineering team. You need to choose a tool where the analysts can build data pipelines themselves with a graphical user interface.

Which of these products is the most appropriate?

a)

Dataflow

b)

Cloud Data Fusion

c)

Dataproc

d)

Cloud Composer

88.

You manage a PySpark batch data pipeline by using Dataproc. You want to take a hands-off approach to running the workload, and you do not want to provision and manage your own cluster.

What should you do?

a)

Configure the job to run on Dataproc Serverless

b)

Configure the job to run with Spot VMs.

c)

Rewrite the job in Spark SQL.

d)

Rewrite the job in Dataflow with SQL.

89.

You need to run batch jobs, which could take many days to complete. You do not want to manage the infrastructure provisioning.

What should you do?

a)

Use Cloud Scheduler to run the jobs

b)

Use Workflows to run the jobs

c)

Run the jobs on Batch.

d)

Use Cloud Run to run the jobs.

90.

You are creating a data pipeline for streaming data on Dataflow for Cymbal Retail's point of sales data. You want to calculate the total sales per hour on a continuous basis.

Which of these windowing options should you use?

a)

Hopping windows (sliding windows in Apache Beam)

b)

Session windows

c)

Global window

d)

Tumbling windows (fixed windows in Apache Beam)

91.

You want to build a streaming data analytics pipeline in Google Cloud. You need to choose the right products that support streaming data.

Which of these would you choose?

a)

Pub/Sub, Dataflow, BigQuery

b)

Pub/Sub, Dataprep, BigQuery

c)

Cloud Storage, Dataflow, Cloud SQL

d)

Cloud Storage, Dataprep, AlloyDB

92.

You have a data pipeline that requires you to monitor a Cloud Storage bucket for a file, start a Dataflow job to process data in the file, run a shell script to validate the processed data in BigQuery, and then delete the original file. You need to orchestrate this pipeline by using recommended tools.

Which product should you choose?

a)

Cloud Tasks

b)

Cloud Composer

c)

Cloud Scheduler

d)

Cloud Run

93.

You are running Dataflow jobs for data processing. When developers update the code in Cloud Source Repositories, you need to test and deploy the updated code with minimal effort.

Which of these would you use to build your continuous integration and delivery (CI/CD) pipeline for data processing?

a)

Terraform

b)

Compute Engine

c)

Cloud Code

d)

Cloud Build

94.

You need to choose a data storage solution to support a transactional system. Your customers are primarily based in one region. You want to reduce your administration tasks and focus engineering effort on building your business application.

What should you do?

a)

Use Cloud Spanner.

b)

Use Cloud SQL.

c)

Install a database of your choice on a Compute Engine VM.

d)

Create a Cloud Storage bucket with a regional bucket.

95.

You need to store data long term and use it to create quarterly reports.

What storage class should you choose?

a)

Standard

b)

Nearline

c)

Coldline

d)

Archive

96.

You have several large tables in your transaction databases. You need to move all the data to BigQuery for the business analysts to explore and analyze the data.

How should you design the schema in BigQuery?

a)

Retain the data on BigQuery with the same schema as the source.

b)

Combine all the transactional database tables into a single table using outer joins.

c)

Redesign the schema to normalize the data by removing all redundancies

d)

Redesign the schema to denormalize the data with nested and repeated data

97.

You are ingesting data that is spread out over a wide range of dates into BigQuery at a fast rate. You need to partition the table to make queries performant.

What should you do?

a)

Create an ingestion-time partitioned table with daily partitioning type.

b)

Create an ingestion-time partitioned table with yearly partitioning type.

c)

Create an integer-range partitioned table.

d)

Create a time-unit column-partitioned table with yearly partitioning type.

98.

Your analysts repeatedly run the same complex queries that combine and filter through a lot of data on BigQuery. The data changes frequently. You need to reduce the effort for the analysts.

What should you do?

a)

Create a dataset with the data that is frequently queried.

b)

Create a view of the frequently queried data.

c)

Export the frequently queried data into a new table.

d)

Export the frequently queried data into Cloud SQL.

99.

You have data that is ingested daily and frequently analyzed in the first month. Thereafter, the data is retained only for audits, which happen occasionally every few years. You need to configure cost-effective storage.

What should you do?

a)

Create a bucket on Cloud Storage with object versioning configured.

b)

Create a bucket on Cloud Storage with Autoclass configured

c)

Configure a data retention policy on Cloud Storage.

d)

Configure a lifecycle policy on Cloud Storage.

100.

You have data stored in a Cloud Storage bucket. You are using both Identity and Access Management (IAM) and Access Control Lists (ACLs) to configure access control.

Which statement describes a user's access to objects in the bucket?

a)

The user has no access if IAM denies the permission

b)

The user only has access if both IAM and ACLs grant a permission.

c)

The user has access if either IAM or ACLs grant a permission

d)

The user has no access if either IAM or ACLs deny a permission

101.

A manager at Cymbal Retail expresses concern about unauthorized access to objects in your Cloud Storage bucket. You need to evaluate all access on all objects in the bucket.

What should you do?

a)

Review the Admin Activity audit logs.

b)

Enable and then review the Data Access audit logs.

c)

Route the Admin Activity logs to a BigQuery sink and analyze the logs with SQL queries.

d)

Change the permissions on the bucket to only trusted employees.

102.

Cymbal Retail has accumulated a large amount of data. Analysts and leadership are finding it difficult to understand the meaning of the data, such as BigQuery columns. Users of the data don't know who owns what. You need to improve the searchability of the data.

What should you do?

a)

Create tags for data entries in Cloud Catalog

b)

Rename BigQuery columns with more descriptive names

c)

Export the data to Cloud Storage with descriptive file names

d)

Add a description column corresponding to each data column.

103.

You have large amounts of data stored on Cloud Storage and BigQuery. Some of it is processed, but some is yet unprocessed. You have a data mesh created in Dataplex. You need to make it convenient for internal users of the data to discover and use the data.

What should you do?

a)

Create a lake for Cloud Storage data and a zone for BigQuery data.

b)

Create a lake for BigQuery data and a zone for Cloud Storage data.

c)

Create a lake for unprocessed data and assets for processed data

d)

Create a raw zone for the unprocessed data and a curated zone for the processed data.

104.

Your company uses Google Workspace and your leadership team is familiar with its business apps and collaboration tools. They want a cost-effective solution that uses their existing knowledge to evaluate, analyze, filter, and visualize data that is stored in BigQuery.

What should you do to create a solution for the leadership team?

a)

Create models in Looker

b)

Configure Connected Sheets.

c)

Configure Tableau

d)

Configure Looker Studio

105.

You have data in PostgreSQL that was designed to reduce redundancy. You are transferring this data to BigQuery for analytics. The source data is hierarchical and frequently queried together. You need to design a BigQuery schema that is performant.

What should you do?

a)

Use nested and repeated fields.

b)

Retain the data in normalized form always

c)

Copy the primary tables and use federated queries for secondary tables.

d)

Copy the normalized data into partitions

106.

You repeatedly run the same queries by joining multiple tables. The original tables change about ten times per day. You want an optimized querying approach.

Which feature should you use?

a)

Views

b)

Materialized views

c)

Federated queries

d)

Partitions

107.

You have analytics data stored in BigQuery. You need an efficient way to compute values across a group of rows and return a single result for each row.

What should you do?

a)

Use an aggregate function.

b)

Use a UDF (user-defined function)

c)

Use BigQuery ML.

d)

Use a window function with an OVER clause

108.

You need to optimize the performance of queries in BigQuery. Your tables are not partitioned or clustered.

What optimization technique can you use?

a)

Batch your updates and inserts.

b)

Use the LIMIT clause to reduce the data read.

c)

Filter data as late as possible.

d)

Perform self-joins on data

109.

Your data in BigQuery has some columns that are extremely sensitive. You need to enable only some users to see certain columns.

What should you do?

a)

Create a new dataset with the column's data

b)

Create a new table with the column's data.

c)

Use policy tags.

d)

Use Identity and Access Management (IAM) permissions

110.

Your business has collected industry-relevant data over many years. The processed data is useful for your partners and they are willing to pay for its usage. You need to ensure proper access control over the data.

What should you do?

a)

Export the data to zip files and share it through Cloud Storage

b)

Host the data on Analytics Hub.

c)

Export the data to persistent disks and share it through an FTP endpoint.

d)

Host the data on Cloud SQL

111.

You have a complex set of data that comes from multiple sources. The analysts in your team need to analyze the data, visualize it, and publish reports to internal and external stakeholders. You need to make it easier for the analysts to work with the data by abstracting the multiple data sources.

What tool do you recommend?

a)

Looker Studio

b)

Connected Sheets

c)

D3.js library

d)

Looker

112.

You built machine learning (ML) models based on your own data. In production, the ML models are not giving satisfactory results. When you examine the data, it appears that the existing data is not sufficiently representing the business goals. You need to create a more accurate machine learning model.

What should you do?

a)

Train the model with more of similar data

b)

Perform L2 regularization.

c)

Perform feature engineering, and use domain knowledge to enhance the column data.

d)

. Train the model with the same data, but use more epochs.

113.

You used Dataplex to create lakes and zones for your business data. However, some files are not being discovered.

What could be the issue?

a)

You have an exclude pattern that matches the files

b)

You have scheduled discovery to run every hour

c)

The files are in ORC format

d)

The files are in Parquet format.

114.

You need to design a Dataproc cluster to run multiple small jobs. Many jobs (but not all) are of high priority.

What should you do?

a)

Reuse the same cluster and run each job in sequence

b)

Reuse the same cluster to run all jobs in parallel.

c)

Use ephemeral clusters.

d)

Use cluster autoscaling.

115.

You need to create repeatable data processing tasks by using Cloud Composer. You need to follow best practices and recommended approaches.

What should you do?

a)

Write each task to be responsible for one operation

b)

Use current time with the now() function for computation

c)

Update data with INSERT statements during the task run

d)

Combine multiple functionalities in a single task execution

116.

Multiple analysts need to prepare reports on Monday mornings due to which there is heavy utilization of BigQuery. You want to take a cost-effective approach to managing this demand.

What should you do?

a)

Use on-demand pricing.

b)

Use Flex Slots

c)

Use BigQuery Enterprise edition with a one-year commitment

d)

Use BigQuery Enterprise Plus edition with a three-year commitment.

117.

You have a team of data analysts that run queries interactively on BigQuery during work hours. You also have thousands of report generation queries that run simultaneously. You often see an error: Exceeded rate limits: too many concurrent queries for this project_and_region.

How would you resolve this issue?

a)

Run all queries in interactive mode

b)

Create a yearly reservation of BigQuery slots

c)

Run the report generation queries in batch mode.

d)

Create a view to run the queries

118.

You have a Dataflow pipeline in production. For certain data, the system seems to be stuck longer than usual. This is causing delays in the pipeline execution. You want to reliably and proactively track and resolve such issues.

What should you do?

a)

Review the Dataflow logs regularly

b)

Set up alerts with Cloud Functions code that reviews the audit logs regularly.

c)

Review the Cloud Monitoring dashboard regularly

d)

Set up alerts on Cloud Monitoring based on system lag

119.

When running Dataflow jobs, you see this error in the logs: "A hot key HOT_KEY_NAME was detected in…". You need to resolve this issue and make the workload performant.

What should you do?

a)

Disable Dataflow shuffle

b)

Increase the data with the hot key

c)

Ensure that your data is evenly distributed

d)

Add more compute instances for processing

120.

A colleague at Cymbal Retail asks you about the configuration of Dataproc autoscaling for a project.

What would be the Google-recommended situation when you should enable autoscaling?

a)

When you want to scale on-cluster Hadoop Distributed File System (HDFS).

b)

When you want to scale out single-job clusters

c)

When you want to down-scale idle clusters to minimum size.

d)

When there are different size workloads on the cluster.

121.

Cymbal Retail processes streaming data on Dataflow with Pub/Sub as a source. You need to plan for disaster recovery and protect against zonal failures.

What should you do?

a)

Take Dataflow snapshots periodically.

b)

Create Dataflow jobs from templates.

c)

Enable vertical autoscaling.

d)

Enable Dataflow shuffle.

122.

You run a Cloud SQL instance for a business that requires that the database is accessible for transactions. You need to ensure minimal downtime for database transactions.

What should you do?

a)

Configure replication.

b)

Configure high availability

c)

Configure backups.

d)

Configure backups and increase the number of backups.

123.

You are running a Dataflow pipeline in production. The input data for this pipeline is occasionally inconsistent. Separately from processing the valid data, you want to efficiently capture the erroneous input data for analysis.

What should you do?

a)

Re-read the input data and create separate outputs for valid and erroneous data.

b)

Read the data once, and split it into two pipelines, one to output valid data and another to output erroneous data.

c)

Check for the erroneous data in the logs.

d)

Create a side output for the erroneous data.

124.

Which of the following statements on Cloud Storage are true? (pick 3)

a)

Data in Cloud Storage is not encrypted

b)

Cloud Storage simulates a file system

c)

Cloud Storage allows you to set retention policies on all objects in a bucket

d)

Cloud Storage implements both IAM policy and Access Control Lists

125.

Which statement best describes a data lake?

a)

Storage optimized for high-throughput writes

b)

The place where you capture every aspect of your business operations. Data is stored in its natural, raw format.

c)

Data storage intended for analytics.

d)

Storage for current/historical data intended for reporting.

126.

Which of the following statements on BigQuery is incorrect?

a)

Data on BigQuery is physically stored in a redundant way separate from the compute cluster

b)

The number of slots allotted to a query is independent of query complexity

c)

A BigQuery slot is a combination of CPU, memory, and networking resources

d)

Data is run length-encoded and dictionary-encoded

127.

True or False: ARRAYS can be a standalone field type or part of a STRUCTS field in BigQuery?

a)

True

b)

False

128.

Which of the following is the ideal use case for Extract and Load (EL)

a)

When the data loading has to happen continuously

b)

When you want to integrate with continuous integration / continuous delivery (CI/CD) systems and perform unit testing on all components.

c)

Scheduled periodic loads of log files (e.g. once a day)

d)

When the raw data needs to be quality-controlled, transformed, or enriched before being loaded into BigQuery

129.

Which of the following statements are true about Dataproc? (Select all 2 correct answers)

a)

Streamlined API for Spark and Hadoop programming

b)

Helps you create job-specific clusters without HDFS

c)

Lets you run Spark and Hadoop clusters with minimal administration

130.

Dataproc provides the ability for Spark programs to separate compute and storage by:

a)

Pre-copying data from Cloud Storage to persistent disk on cluster startup

b)

Reading and writing data directly from/to Cloud Storage

c)

Setting individual zones for compute and storage

d)

Mirroring data on both Cloud Storage and HDFS

131.

Match each of the terms with what they do when setting up clusters in Dataproc:

Term -> Definition

1. Zone --> A. Costs less but may not be available always

2. Standard Cluster mode --> B. Determines the Google data center where compute nodes will be

3. Preemptible --> C. Provides 1 primary and N workers

a)

B
C
A

b)

A
B
C

c)

C
B
A

d)

C
A
B

132.

Match each of the Dataflow terms with what they do in the life of a dataflow job:

Term --> Definition

1. Transform --> A. Output endpoint for your pipeline

2. PCollection --> B. A data processing operation or step in your pipeline

3. Sink --> C. A set of data in your pipeline

a)

C

B
A

b)

B
C
A

c)

B
A
C

d)

A
C
B

133.

Cloud Data Fusion is the ideal solution when you need

a)

low-latency and high throughput processing of streaming data

b)

to reuse spark pipelines

c)

a data warehousing solution

d)

to build visual pipelines

134.

A company collects large amounts of data that is useful for improving business operations. The collected data is already clean and is in a format that is suitable for the further analysis. The company uses Google Cloud Bigquery as a data warehouse. What approach will you recommend to move this data to BigQuery?

a)

Directly load the data using Extract and Load approach ( EL).

b)

Do transformation using Extract, Load & Transform (ELT)

c)

Split the data into smaller files and then move to Google Cloud.

d)


Implement Extract, Transform and Load (ETL) pipelines using tools like Dataflow.

135.

A company wants to improve productivity and decides to programmatically schedule and monitor workflows. What tool can you use to automate your workflows?

a)

Data Fusion

b)

Apache Beam and Dataflow

c)

Cloud Composer

d)

Dataproc

136.

Cymbal Retail collects large amounts of data that is useful for improving business operations. The company wants to store and analyze this data in a serverless and cost-effective manner using Google Cloud. The analysts need to use SQL to write the queries. What tool can you use to meet these requirements?

a)

Memorystore

b)

Cloud Spanner

c)

Data Fusion

d)

BigQuery

137.

Cymbal Retail also collects large amounts of structured, semistructured, and unstructured data. The company wants a centralized repository to store this data in a cost-effective manner using Google Cloud. What tool can you use to meet these requirements?

a)

Bigtable

b)

Dataflow

c)

Cloud Storage

d)

Cloud SQL

138.

Cymbal Retail has a team of ML engineers that builds and maintains machine learning models. As a Professional Data Engineer, how will you support this team?

a)

Identify what type of data is required to build ML models

b)

Process and prepare existing data to enable feature engineering.

c)

Finalize the type of machine learning model to use.

d)

Keep on improving the machine learning model after initial deployment.

139.

You need to share inventory data from Cymbal Retail with a partner company that uses BigQuery to store and analyze its data. What tool can you use to securely and efficiently share the data?

a)

Analytics Hub

b)

Data Catalog

c)

Cloud Storage

d)

Data Loss Prevention (DLP)

140.

Cymbal Retail uses Google Cloud and has automated repeatable data processing workloads to achieve reliability and cost efficiency. You want out-of-the-box metric collection dashboards and the ability to generate alerts when specific conditions are met. What tool can you use?

a)

Cloud Composer

b)

Data Catalog

c)

Data Loss Prevention (DLP)

d)

Cloud Monitoring

141.

Your company recently migrated to Google Cloud and started using BigQuery. The team members don’t know how much querying they are going to do, and they need to be efficient with their spend. As a Professional Data Engineer, what pricing model would you recommend?

a)

Use BigQuery’s on-demand pricing model.

b)

Use IAM service to block access to BigQuery till the team figures out how much querying they are going to do.

c)

Create a pool of resources using BigQuery Reservations.

d)

Decide how much compute capacity you need and reserve it using capacity pricing.

142.

There are a number of common challenges encountered by data engineers. Which of the following approaches best address the challenge of data accuracy and quality?

a)

Manage server and cluster capacity and make sure that enough capacity exists to carry out the ETL jobs

b)

Build ETL pipelines to clean and transform data that is then stored in a data warehouse.

c)

Consolidate disparate datasets and data formats into a data lake.

d)

Optimize queries for performance

143.

Which of the following statements are true? (Choose TWO)

a)

Cloud SQL is optimized for high-throughput writes

b)

BigQuery is optimized for high-read data

c)

Cloud SQL is optimized for high-read data

d)

BigQuery is a row-based storage

144.

Which of the following options offered by Dataflow makes it easy to create resilient streaming pipelines when working with unbounded data?

Select TWO correct answers.

a)

SQL support to query in-process results

b)

Ability to flexibly reason about time

c)

Controls to ensure correctness

d)

Global message bus to buffer messages

145.

When performing batch and streaming data processing, which Google product performs data aggregation and transformation?

a)

Pub/Sub

b)

Sheets

c)

Dataflow

d)

Bigtable

146.

Which of the following about Pub/Sub topics and subscriptions are true? (Select all 2 correct responses)

a)

Each topic MUST have at least 1 subscription

b)

Each topic will deliver ALL messages for a topic for each subscriber

c)

1 or more subscriber(s) can request from the same subscription

d)

1 or more publisher(s) can write to the same topic

147.

Which of the following about Pub/Sub is NOT true?

a)

Pub/Sub connects applications and services through a messaging infrastructure

b)

Pub/Sub simplifies systems by removing the need for every component to speak to every component

c)

Pub/Sub stores your messages indefinitely until you request it

148.

Which of the following delivery methods is ideal for subscribers needing close to real time performance?

a)

Push Delivery

b)

Pull Delivery

149.

True or False? Pub/Sub guarantees that messages delivered are in the order they were received

a)

True

b)

False

150.

What element is applied by Pub/Sub to messages that allows Dataflow to perform aggregation of different time windows?

a)

Message Groups

b)

Watermarks

c)

Triggers

d)

Timestamps

151.

Which of the following is true for Data Studio?

a)

Data Studio is part of Dataflow and requires a streaming pipeline for data ingest.

b)

Data Studio supports data ingest through multiple connectors

c)

Data Studio is part of BigQuery and requires data to already exist in tables.

d)

Data Studio can only ingest files stored in Cloud Storage buckets.

152.

True or False? Data Studio can issue queries to BigQuery

a)

True

b)

False

153.

Which of the following can help improve performance of Bigtable?

(Select all 3 correct responses)

a)

Add more nodes

b)

Use HDD instead of SDD

c)

Change schema to minimize data skew

d)

Clients and Bigtable are in same zone

154.

True or False?

Bigtable learns access patterns and attempts to distribute reads and storage across nodes evenly

a)

True

b)

False

155.

Which of the following are true about Bigtable?

(Mark all 3 correct responses)

a)

Offers very low-latency in the order of milliseconds

b)

Ideal for >1TB data

c)

Great for time-series data

d)

Support for SQL

156.

Which of the following practices help optimize BigQuery queries? (pick three)

a)

Avoid using unnecessary columns

b)

Put the largest table on the left

c)

Use COUNT(DISTINCT) instead of APPROX_COUNT_DISTINCT

d)

Filter early and often

157.

What is the primary impact of ML?

a)

It allows business operations to scale

b)

It allows businesses to be more accurate in their predictions

c)

Cost savings

d)

Provides insights that were not previously possible

158.

What is the difference between AI and ML?

a)

AI is ML but without mathematics

b)

AI is a discipline while ML is a toolset

c)

AI and ML are the same

d)

AI concentrates on algorithms while ML is about theory

159.

True or False? Most business data is unstructured data, and mainly text.

a)

True

b)

False

160.

Google Cloud's pretrained model APIs use:

a)

Your models and your data

b)

Google's models and Google's data

c)

Your models and Google's data

d)

Google's models and your data

161.

True or False? Notebooks contain a magic function to execute BigQuery

a)

True

b)

False

162.

Select the statement that does not apply to Notebooks.

a)

Notebook instances are standard Compute Engine instances that live in your projects

b)

You can easily change hardware including adding and removing GPUs

c)

It's up to you to install the latest ML libraries on the notebooks

d)

They use the latest open-source version of JupyterLab

163.

AI Hub has templates for which of the following?

a)

All other answers are correct

b)

Trained models

c)

Kubeflow pipelines and components

d)

Jupyter notebooks

164.

Which technology was developed as a solution to run Kubernetes clusters and pods behind the scenes to support deploying pipelines?

a)

Kubeflow

b)

Cloud Composer

c)

Cloud Orchestrator

d)

Vertex Pipelines

165.

True or False? You can train and evaluate machine learning models directly in BigQuery.

a)

True

b)

False

166.

BigQuery ML has support for which of the following modeling tasks: (pick three)

a)

Computer vision

b)

Classification

c)

Clustering

d)

Regression

167.

AutoML makes use of which of the following:

a)

Your models and your data

b)

Your models and Google's data

c)

Google's models and Google's data

d)

Google's models and your data

168.

Which of the following are valid techniques for improving AutoML Vision and AutoML Natural Language models? (pick three)

a)

Ensure consistent labeling

b)

Increase the diversity and complexity of data

c)

Increase the number of labels

d)

Increase the amount of training data

169.

What is the Beam Portability Framework? (Pick 2)

a)

A hermetic worker environment

b)

A set of cross-language transforms

c)

A language-agnostic way to represent pipelines

d)

A set of protocols for executing pipelines

170.

Which of the following are benefits of Beam Portability (Select ALL that apply) ?

a)

Implement new Beam transforms using a language of choice and utilize these transforms from other languages

b)

Cross-language transforms

c)

Running pipelines authored in any SDK on any runner

171.

Which of the following are TRUE about Flexible Resource Scheduling (select ALL that apply) :

a)

FlexRS helps to reduce batch processing costs by using advanced scheduling techniques

b)

When you submit a FlexRS job, the Dataflow service places the job into a queue and submits it for execution within 6 hours from job creation.

c)

FlexRS leverages a mix of preemptible and normal VMs

d)

FlexRS is most suitable for workloads that are time-critical

172.

The Dataflow Shuffle service is available only for batch jobs.

a)

True

b)

False

173.

What are the benefits of Dataflow Streaming Engine? Select ALL that apply:

a)

Lower resource and quota consumption

b)

More responsive autoscaling for incoming data variations

c)

Reduced consumption of worker CPU, memory, and storage

174.

You want to run the following command:

gcloud dataflow jobs cancel 2021-01-31_14_30_00-9098096469011826084--region=$REGION

Which of these roles can be assigned to you for the command to work? (pick two)

a)

Dataflow Admin

b)

Dataflow Developer

c)

Dataflow Viewer

d)

Composer Worker

175.

Your project’s current SSD usage is 100 TB. You want to launch a streaming pipeline with shuffle done on the VM. You set the initial number of workers to 5 and the maximum number of workers to 100. What will be your project’s SSD usage when the job launches?

a)

103 TB

b)

500 TB

c)

140 TB

d)

102 TB

176.

Your project’s current In-use IP address usage is 500/575. You run the following command:

python3 -m apache_beam.examples.wordcount \

--input gs://dataflow-samples/shakespeare/kinglear.txt \

--output gs://$BUCKET/results/outputs --runner DataflowRunner \

--project $PROJECT --temp_location gs://$BUCKET/tmp/ --region $REGION \

--subnetwork regions/$REGION/subnetworks/$SUBNETWORK \

--num_workers 20 --machine_type n1-standard-4 --no_use_public_ips

What will be the in-use IP address usage after the job starts?

a)

The job will fail to launch.

b)

520/575

c)

500/575

177.

You are a Beam developer for a university in Googleville. Googleville law mandates that all student data is kept within Googleville. Compute Engine resources can be launched in Googleville; the region name is google-world1. Dataflow, however, does not currently have a regional endpoint set up in google-world1. Which flags are needed in the following command to allow you to launch a Dataflow job and to conform with Googleville’s law?

python3 -m apache_beam.examples.wordcount \

--input gs://dataflow-samples/shakespeare/kinglear.txt \

--output gs://$BUCKET/results/outputs --runner DataflowRunner \

--project $PROJECT --temp_location gs://$BUCKET/tmp/ \

a)

--region northamerica-northeast1 --worker_region google-world1

b)

--region google-world1 --worker_zone google-world1

c)

--region northamerica-northeast1

178.

When a PTransform receives a PCollection...

a)

it creates a new PCollection as output, it does not change the incoming PCollection.

b)

it modifies the PCollection to apply the required transformations.

c)

you may select whether the PTransform will modify the PCollection or not.

179.

How many times will be the process/processElement method of a DoFn called?

a)

This is a runner specific value. It depends on the runner.

b)

As many times as data bundles are in the PCollection.

c)

As many times as elements are in the PCollection.

180.

What is CoGroupByKey used for?

a)

To join data in different PCollections that share a common key.

b)

To join data in different PCollections that share a common key and a common value type.

c)

To group by a key when there are more than two key groups (with 2 key groups, you use GroupByKey)

181.

What are the types of windows that you can use with Beam?

a)

Fixed, sliding, and session windows.

b)

It depends on the runner, because each runner has different types of windows.

c)

Open and closed windows.

182.

How many triggers can a window have?

a)

As many as we set.

b)

Exactly one.

c)

One or none.

183.

How does Apache Beam decide that a message is late?

a)

A message is late if its timestamp is before the clock of the worker where it is processed.

b)

A message is late if its timestamp is before the watermark.

c)

This is a runner-specific value. It depends on the runner.

184.

What can you do if two messages arrive at your pipeline out of order?

a)

You can recover the order of the messages with a window using processing time.

b)

You can recover the order of the messages with a window using event time.

c)

You cannot do anything to recover the order of the messages.

185.

What is the simplest form of a sink?

a)

PCollection

b)

PSink

c)

PTransform

d)

Built-in primitive function

186.

What kinds of data are a bounded and an unbounded source respectively associated with?

a)

Time-series data and graph data.

b)

Small data and Big Data.

c)

Structured data and unstructured data.

d)

Batch data and streaming data.

187.

Which of the following element types can be encoded as a Schema from a PCollection (Select ALL that apply)?

a)

Single list of JSON objects

b)

Byte String objects

c)

Protobuf objects

d)

Avro objects

188.

Is it possible to mix elements in Schema PCollections inside a single Beam pipeline (pick two)?

a)

Yes in all scenarios

b)

Not possible within the same PCollection

c)

Not at all

d)

Yes, but only across different PCollections

189.

With ParDo, you...

a)

can do aggregations using state variables in a DoFn.

b)

cannot do any type of aggregations.

190.

What is the use case of timers in the State & Timers API of Beam?

a)

You can use timers instead of state variables to do timely aggregations.

b)

Timers are used in combination with state variables, to ensure that the state is cleared at regular intervals of time.

191.

Choose all the applicable options: If your pipelines interact with external systems (pick two)

a)

Testing external systems against peak volume is not important.

b)

Not provisioning external systems appropriately may impact the performance of your pipeline due to back pressure..

c)

External System doesn't impact performance of a Dataflow pipeline as they are run outside the Dataflow environment.

d)

It is important to provision those external systems appropriately (i.e., to handle peak volumes).

192.

What is the recommended way to convert JSON objects to POJOs?

a)

Use JsonToPOJO

b)

Use JsonToRow

193.

Which functions of the DoFn lifecycle are recommended to be used for micro-batching?

a)

setup and teardown

b)

startBundle and finishBundle

c)

init and destroy

194.

Which two of the following interfaces support Calcite SQL? (pick two)

a)

Dataflow template

b)

Dataflow SQL

c)

Beam SQL client

195.

What operations can you do in standard Pandas DataFrames that are not possible in Beam DataFrames?

a)

Shift the DataFrame

b)

Write the DataFrame columns as rows

c)

Compute two different aggregates based on the input data

196.

Which one of these statements is true?

a)

When using the interactive runner, you have to create a logging DoFn to see the values of an intermittent PCollection.

b)

When using the interactive runner, if you want to play with the values from a PCollection within a dataframe, you must access them from within a DoFn.

c)

You can use the option include_window_info from ib.show to get extra metadata about each element in a Pcollection.

197.

Which two of the following statements are true about using the interactive runner? (pick two)

a)

You can limit the number of elements the interactive runner records from an unbounded source by setting the recording_element_count option

b)

You can limit the amount of data the interactive runner records from an unbounded source by setting recording_size_limit.

c)

You can limit the amount of time the interactive runner records data from an unbounded source by using the recording_duration option.

198.

You have a Pub/Sub subscription with data that hasn’t been processed for 3 days. You set up a streaming pipeline that reads data from the subscription, does a few Beam transformations, and then sinks to Cloud Storage. When the pipeline is launched, it is able to read from Pub/Sub, but cannot sink data to Cloud Storage due to the service account missing permissions to write to the bucket. When viewing the Job Metrics tab, what do you expect to see in the data freshness graph?

a)

Initial start point at 0 days, with an upward sloping line to 3 days and beyond.

b)

Initial start point at 3 days, with a flat horizontal line.

c)

Initial start point at 3 days, with a downward sloping line.

d)

Initial start point at 3 days, with an upward sloping line.

199.

You would like to set up an alerting policy to catch whether the processeddata isstill fresh in a streaming pipeline. Which metrics can be used to monitor whether the processeddata isstill fresh? (pick two)

a)

job/per_stage_data_watermark_age

b)

job/per_stage_data_watermark_age

c)

job/data_watermark_age

d)

job/is_failed

200.

Your batch job has failed, and when viewing the Diagnostic tab, you see the following insights: Out of memory: Kill process Shutting down JVM after consecutive periods of measured GC thrashing Which of the options below is the best one to undertake to resolve the issue?

a)

Switch Beam code from Java to Python

b)

Increase the number of machines used

c)

Increase Persistent Disk size

d)

Use a larger machine size

201.

Select all that apply - the BigQuery Jobs tab shows jobs from: (pick two)

a)

Streaming Extracts

b)

Streaming Inserts

c)

Load jobs

d)

Query jobs

202.

Which two of the following statements are true for failures while building the pipeline? (pick two)

a)

The failure is reproducible with the Direct Runner.

b)

The failure can be caused by incorrect input/output specifications.

c)

The error message is visible in Dataflow

d)

The failure can be caused by insufficient permissions granted to the controller service account.

203.

Your Dataflow batch job fails after running for close to 5 hours. Which two of the following troubleshooting steps would you take to understand the root cause of the failure? (pick two)

a)

Check the Dataflow worker logs for warnings or errors related to work item failures.

b)

Log the failing elements and check the output using Cloud Logging.

c)

Monitor the Data Freshness and System Latency graphs to understand the job performance.

d)

Investigate the wall time of the individual steps in the job.

204.

Select options we can use to mitigate data skew in Dataflow pipelines?

a)

Add composite windows and triggers.

b)

Use Dataflow shuffle for batch pipelines and Dataflow streaming option for streaming pipelines.

c)

Use api like “withFanout” or “withHotKeyFanout”

d)

Add more worker machines.

205.

When we should avoid fusion in a Dataflow pipeline?

a)

Only in specific scenarios, like if your pipeline involves massive fanouts.

b)

Always

c)

Never

206.

Which one of the following is not a consideration for designing performant pipelines in Dataflow?

a)

SDK used for developing the pipeline.

b)

Logging

c)

Coders and decoders used in pipeline.

d)

Filtering data early.

207.

Using anonymous subclasses in your ParDos is an anti-pattern because:

a)

ParDos are required to contain a concrete subclass of a DoFn

b)

Anonymous subclasses are bad for the performance of your pipeline.

c)

Anonymous subclasses are harder to test than concrete subclasses.

208.

When draining a streaming pipeline, what should you expect to happen?

a)

Both processing and ingestion stop immediately.

b)

A snapshot is taken of the source, then ingestion is stopped. Windows are closed and processing of in-flight elements will be allowed to complete.

c)

Ingestion stops immediately, windows are closed, and processing of in flight elements will be allowed to complete.

d)

Any open windows will wait for new data so that aggregations are completed. Then the pipeline will be canceled.

209.

How long is the retention for Dataflow Snapshots?

a)

Indefinitely

b)

Seven days

c)

Three days

210.

You want to launch a streaming Dataflow job in europe-west4 and want to protect your pipeline from zonal stockouts. Which launch command will achieve these requirements?

a)

$ python3 -m apache_beam.examples.wordcount \ --input gs://dataflow-samples/shakespeare/kinglear.txt \ --output gs://$BUCKET/results/outputs --runner DataflowRunner \ --project $PROJECT --temp_location gs://$BUCKET/tmp/ \ --region europe-west4

b)

$ python3 -m apache_beam.examples.wordcount \ --input gs://dataflow-samples/shakespeare/kinglear.txt \ --output gs://$BUCKET/results/outputs --runner DataflowRunner \ --project $PROJECT --temp_location gs://$BUCKET/tmp/ \ --region europe-west4 --worker_zone europe-west4-b

c)

$ python3 -m apache_beam.examples.wordcount \ --input gs://dataflow-samples/shakespeare/kinglear.txt \ --output gs://$BUCKET/results/outputs --runner DataflowRunner \ --project $PROJECT --temp_location gs://$BUCKET/tmp/ \

211.

Into which of the following categories are the Google-provided templates classified?

a)

Batch and streaming only

b)

Batch and utility only

c)

Batch, streaming, and utility

d)

Streaming and utilityonly

212.

Which of the following is a challenge associated with classic templates?

a)

Increased latency while launching templates.

b)

Lack of support for runtime parameters

c)

Lack of support for Dynamic DAG (Directed Acyclic Graph).

213.

How are Flex Templates packaged?

a)

Docker image

b)

ProtoBuf binary

c)

Jar/Pex

d)

Tar file

214.

You are working as a Data Engineer at a Gaming startup. The business team is complaining about the late arrival of prediction data of the demand forecast process. You noticed that current data transformation on the structured data built with PySpark is taking over 14 hours to run.

Raw data are parquet files stored in Cloud Storage and its size is about 1TB. You have been asked to speed up the run time while minimizing infrastructure management tasks using SQL for data transformation, and reducing the data processing time by 50%.

How should you enhance the data transformation task to reduce the data processing time?

a)

Keep the parquet files in Cloud Storage. Use SparkSQL instead of PySpark to transform the data. run the workload on Dataproc to write the results into BigQuery

b)

Keep the data on Cloud Storage, Use federated queries for data queries and transformations. Write the results into BigQuery

c)

Ingest the data into BigQuery, run SQL queries for data transformations, and write the results into a new table

d)

Convert the parquet files in Cloud Storage to AVRO format. Use SparkSQL instead of PySpark to transform the data. run the workload on Dataproc to write the results into BigQuery

215.

What Dataflow concept determines when a Window's contents should be output based on certain criteria being met?

a)

Triggers

b)

Sessions

c)

Windows

d)

OutputCriteria

216.

Your company has a multi-year backup of data in parquet format. you have been asked to use Google Cloud Services to move this backup, conduct preliminary analysis using ANSI SQL and then automate transformations with Apache Spark.

What are the appropriate Google Cloud Services to store and transform the parquet files?

a)

Use Cloud Storage for storage, Dataproc for transformations

b)

Use Cloud Storage for storage, Dataflow for transformations

c)

Use BigQuery for storage, Dataproc for transformations

d)

Use BigQuery for storage, Dataflow for transformations

217.

You are working as a lead data engineer, the team is working on a classification model and has already validated steps related to model development, performance, quality, and infrastructure. The governance team was asked to visually analyze the model's predictive behavior to understand the importance of different data features.

How should you fulfill the governance team requirement before the production deployment? 

a)

Share the used notebooks during the model development phase that contains all the details already processed.

b)

Use what-if analysis tool to understand the importance of data features and visualize the model across subsets of input data

c)

Extract Model performance metrics from Cloud Logging already generated from previous runs during the development phase. Use Data studio for visualization.

d)

Use weight-and-biases tool to understand the importance of data features and visualize the model across subsets of input data

218.

AdMediaPlus is an Advertising agency that manages ad campaigns and analytics for their customers. They have a requirement to analyze Youtube channel reports and Youtube Content Owner reports using ANSI SQL. What is the straightforward approach that fits this requirement?

a)

Use DataTransferService to load the data into BigQuery, Make Analysis via SQL

b)

Export Data from Youtube channel analytics, use Cloud storage for storage and Dataflow for analysis

c)

Export Data from Youtube channel analytics in CSV format, use Cloud Storage for storage then load it into BigQuery to make analysis via SQL

d)

Use DataTransferService to load the data into Cloud Storage, then load it into BigQuery to make analysis via SQL

219.

You have been asked as a Data Engineer to build a pipeline that processes 206 of scanned documents stored as images in Cloud Storage. 

The pipeline should run monthly to analyze and extract entities from each document and export it to several internal applications.

You need to ensure the accuracy of data extracted by humans by reviewing, validating, and correcting it when necessary. You want to minimize development time. 

How should you implement the pipeline that fits the requirement above?

a)

Build an NLP model for Entity recognition in Al platform, and use batch prediction features to make monthly predictions. Export the results in CSV format to be reviewed by a specialized team then upload them to PubSub

b)

Use DocumentAl with batch_process_documents function and Human-in-the-Loop feature to extract entity and validate the output with the built-in workflow, extract the outputs to PubSub

c)

Use Transfer Learning to fine-tune Bert model, deploy an Endpoint to Al Platform, run it monthly, and export the results to pubsub

d)

Use DocumentAl with process_documents function and Human-in-the-Loop feature to extract entity and validate the output with the built-in workflow, extract the outputs to PubSub

220.

Suppose you have a dataset of images that are each labeled as to whether or not they contain a human face. To create a neural network that recognizes human faces in images using this labeled dataset, what approach would likely be the most effective?

a)

Use feature engineering to add features for eyes, noses, and mouths to the input data

b)

Build a neural network with an input layer of pixels, a hidden layer, and an output layer with two categories

c)

Use K-means Clustering to detect faces in the pixels

d)

Use deep learning by creating a neural network with multiple hidden layers to automatically detect features of faces

221.

BigAnalytics company is using Dataflow for their data pipelines. the dataflow jobs are scheduled on a daily basis at 1am and read parquet files from GCS, apply necessary transformations then store the data into BigQuery. 

You noticed that there is late arrival data appended to the original files after the daily execution finished. What should you do to process late arrival data as soon as it's written on parquet files that guarantee operational efficiency?

a)

Use Cloud function to trigger the dataflow job once the parquet files are modified

b)

Use Cloud Composer with file sensor operator to detect if file changed then trigger the dataflow job

c)

Use Cloud scheduler to run dataflow job twice per day at fixed intervals

d)

Use Window functions of Cloud Dataflow to handle late arrival data

222.

You are creating a model to predict housing prices. Due to budget constraints, you must run it on a single resource-constrained virtual machine. Which learning algorithm should you use?

a)

Linear regression

b)

Logistic classification

c)

Recurrent neural network

d)

Feedforward neural network

223.

What are 3 techniques you can use to reduce overfitting in a neural network? (Select 3 answers)

a)

Add a dropout layer

b)

Apply L1 regularization

c)

Reduce the number of features

d)

Apply zero-padding

224.

You are building a new real-time data warehouse for your company and will use Google BigQuery streaming inserts. 

There is no guarantee that data will only be sent in once but you do have a unique ID for each row of data and an event timestamp. You want to ensure that duplicates are not included while interactively querying data. Which query type should you use?

a)

Include ORDER BY DESK on timestamp column and LIMIT to 1

b)

Use GROUP BY on the unique ID column and timestamp column and SUM on the values

c)

Use the LAG window function with PARTITION by unique ID along with WHERE LAG IS NOT NULL

d)

Use the ROW_NUMBER window function with PARTITION by unique ID along with WHERE row equals 1

225.

What is the HBase Shell for Cloud Bigtable?

a)

The HBase shell is a command-line tool that performs only user account management functions to grant access to Cloud Bigtable instances

b)

The HBase shell is a GUI based interface that performs administrative tasks, such as creating and deleting tables

c)

The HBase shell is a hypervisor based shell that performs administrative tasks, such as creating and deleting new virtualized instances

d)

The HBase shell is a command-line tool that performs administrative tasks, such as creating and deleting tables

226.

You are working as a Data Engineer for a supply chain company. The company is using a Cloud Composer to run hundreds of DAGs. 

Following a security audit, you have been asked to change the current composer environment configuration from public to private IP nodes for the GKE cluster used by Cloud Composer. 

You noticed after making such a change that some of the CI/CD stages to update Cloud Composer variables using “gcloud composer environments update” are failing. 

What's the most likely reason for the failing task of updating the Cloud Composer variables?

a)

After changing the IP configuration the Composer Environment is recreated with a new name necessarily different from the initial one, thus the gcloud composer environments update command needs to be updated with the new name

b)

When using private IP configuration, the GKE control plane is not any more accessible to the CI/CD machine you need to update the field of Master authorized network

c)

The gcloud composer environments update command is not anymore usable for Environments with private IPs, Use the Python SDK instead to update the environment

d)

Ingress rules on firewall configuration are missing to allow the Traffic from the CI/CD machine as the source

227.

You have been asked to ingest data from a new data source that resides in BigQuery, to rename different columns before storing it in the target dataset/table incrementally for weekly execution. The target solution needs to be easy and quick to set up. 

Your current project is already using the following GCP products: Cloud Composer, Dataflow, and Dataproc.

What should you do?

a)

Use Dataflow to data ingestion and column renaming, Cloud composer to orchestrate the weekly job

b)

Use BigQuery Operators inside and Airflow DAG to ingest and rename columns. Schedule the DAG on a weekly basis

c)

Use BigQuery Operators to ingest the data, store it in GCS the trigger Dataproc for column renaming, and store the output in BigQuery. Use Cloud Composer for orchestration and scheduling

d)

Use Dataflow to ingest the data in a BigQuery staging table, Dataproc job for column renaming, and Cloud composer for orchestration

228.

You are designing a basket abandonment system for an ecommerce company. The system will send a message to a user based on these rules:

  • 1) No interaction by the user on the site for 1 hour

  • 2) Has added more than $30 worth of products to the basket

  • 3) Has not completed a transaction

You use Google Cloud Dataflow to process the data and decide if a message should be sent. How should you design the pipeline?

a)

Use a fixed-time window with a duration of 60 minutes

b)

Use a sliding time window with a duration of 60 minutes

c)

Use a session window with a gap time duration of 60 minutes

d)

Use a global window with a time based trigger with a delay of 60 minutes

229.

You are working as a Data Engineer in an Analytics startup that manages a Cloud Composer cluster. You deployed a DAG that contains a BigQueryOperator that connect to GoogleAnalytics dataset to collect yesterday's data from intraday tables

suffixed by the date. 

The DAG is scheduled daily at 2AM. the execution history shows the following error appeared randomly at some days then cause the DAG failure. Table does not exist. 

You would like to avoid DAG failure and process the data once available

What should you do?

a)

Schedule the DAG at different timeframe to avoid the DAG failure

b)

Add BigQuerySensor Operator as an additional task to poll for the data availability and process it once ready. This will avoid any DAG failure related to the unavailable data

c)

On the DAG default args, add retry_delay, set to Thour to avoid the dag failure

d)

Add a BigQueryOperator as an additional task to check the Metadata for the required table availability and process it once ready. This will avoid any DAG failure related to the unavailable data

230.

Your company handles data processing for a number of different clients. Each client prefers to use their own suite of analytics tools, with some allowing direct query access via Google BigQuery. You need to secure the data so that clients cannot see each other's data. You want to ensure appropriate access to the data. 

Which three steps should you take? (Choose three.)

a)

Load data into different partitions

b)

Load data into a different dataset for each client

c)

Put each client's BigQuery dataset into a different table

d)

Restrict a client's dataset to approved users

e)

Use the appropriate identity and access management (IAM) roles for each client's users.

231.

You have the following SQL query : 

WITH Items AS (SELECT ["coffee”, "tea", "milk"] AS item_array) 

SELECT 

item_array,

item_array[OFFSET(1)] AS item_offset_1, 

item_array[OFFSET(2)] AS item_offset_2, 

item_array[_______(3)] AS item_offset_3, 

FROM Items 

What is the missing expression that will lead to the following output? 

Item_array | item_offset_1 | item_offset_2 | item_offset_3

[coffee, tea, milk] | tea | coffee | NULL

a)

OFFSET

b)

IF_OFFSET

c)

SAFE_OFFSET

d)

NO_OFFSET

232.

You want to process payment transactions in a point-of-sale application that will run on Google Cloud Platform. 

Your user base could grow exponentially, but you do not want to manage infrastructure scaling. 

Which Google database service should you use?

a)

Cloud SQL

b)

BigQuery

c)

Cloud Bigtable

d)

Cloud Datastore

233.

Your company is planning to use Bigtable as part of their production workloads and you have been asked to design the target schema, tables, columns, and rows. High throughput volume is expected once in a production environment.

What are the main principles to take into consideration for the schema design it? Select two choices.

a)

Do not store less than 5 MB per column

b)

Store datasets with similar schema in the same table

c)

Use few large tables versus too many small tables

d)

Design the row key in the form timestamp#id to improve performances

234.

You want to use a database of information about tissue samples to classify future tissue samples as either normal or mutated. You are evaluating an unsupervised anomaly detection method for classifying the tissue samples. Which two characteristics support this method? (Choose two.)

a)

There are very few occurrences of mutations relative to normal samples.

b)

There are roughly equal occurrences of both normal and mutated samples in the database

c)

You expect future mutations to have different features from the mutated samples in the database

d)

You expect future mutations to have similar features to the mutated samples in the database.

e)

You already have labels for which samples are mutated and which are normal in the database.

235.

Your company is migrating its structured data currently on-premises to google cloud. you have been asked to design the appropriate storage to run large analytical workloads with minimum latency that doesn’t exceed milliseconds. What is the appropriate storage to choose?

a)

Cloud Spanner

b)

BigQuery

c)

BigTable

d)

Cloud Storage

236.

You need to store and analyze social media postings in Google BigQuery at a rate of 10,000 messages per minute in near real-time. Initially, design the application to use streaming inserts for individual postings. Your application also performs data aggregations right after the streaming inserts. You discover that the queries after streaming inserts do not exhibit strong consistency, and reports from the queries might miss in-flight data. How can you adjust your application design?

a)

Re-write the application to load accumulated data every 2 minutes.

b)

Convert the streaming insert code to batch load for individual messages

c)

Load the original message to Google Cloud SQL, and export the table every hour to BigQuery via streaming inserts.

d)

Estimate the average latency for data availability after streaming inserts, and always run queries after waiting twice as long

237.

When using Cloud Dataproc clusters, you can access the YARN web interface by configuring a browser to connect through a ____ proxy.

a)

VPN

b)

HTTPS

c)

HTTP

d)

SOCKS

238.

Your startup has never implemented a formal security policy. Currently, everyone in the company has access to the datasets stored in Google BigQuery. Teams have freedom to use the service as they see fit, and they have not documented their use cases. You have been asked to secure the data warehouse. You need to discover what everyone is doing. What should you do first?

a)

Use Google Stackdriver Audit Logs to review data access

b)

Get the identity and access management IIAM) policy of each table

c)

Use Stackdriver Monitoring to see the usage of BigQuery query slots

d)

Use the Google Cloud Billing API to see what account the warehouse is being billed to

239.

You are working for a consulting company that offers BigQuery optimization services.

One of the company’s customers is using a very large table to store orders containing fields, customer_id, order_id, order_date, amount, and using several queries based on order_date and customer_id filters. The Queries execution time is increasing over time.

What should you do to enhance the query execution time on BigQuery?

a)

Add partitioning to table orders based on order_date as the low-cardinality field. add clustering based on order_id field as a high cardinality field

b)

Add clustering to table orders based on order_date as a low-cardinality field. add partitioning based on customer_id field as a high cardinality field

c)

Add partitioning to table orders based on order_id as the low-cardinality field. add clustering based on customer_id field as a high cardinality field

d)

Add partitioning to table orders based on order_date as the low-cardinality field. add clustering based on customer_id field as a high cardinality field

240.

Your company is migrating their 30-node Apache Hadoop cluster to the cloud. They want to re-use Hadoop jobs they have already created and minimize the management of the cluster as much as possible. They also want to be able to persist data beyond the life of the cluster. What should you do?

a)

Create a Google Cloud Dataflow job to process the data

b)

Create a Google Cloud Dataproc cluster that uses persistent disks for HDFS

c)

Create a Hadoop cluster on Google Compute Engine that uses persistent disks

d)

Create a Cloud Dataproc cluster that uses the Google Cloud Storage connector

e)

Create a Hadoop cluster on Google Compute Engine that uses Local SSD disks

241.

Your company is using Google Cloud Al Platform (Vertex Al) to fine tune its classification model built to serve monthly predictions for the CRM team. The predictions to send to the CRM team are scores and tabular data for each customer.

You have been asked to industrialize the ML Model and push it into the production environment.

Your Company is already using Cloud Dataflow, Cloud Composer, Cloud Dataproc

What is the most cost-effective solution that guarantees production industrialization, async delivery to the CRM, and backfilling when needed?

a)

Use Kube Flow to implement the production-level prediction pipeline, store results in BigQuery. Use Cloud Composer DAG to push scores to PubSub, Schedule it monthly

b)

Use Kube Flow to implement the production-level prediction pipeline, store results in BigQuery. Use Cloud function to send the scores to PubSub

c)

Use Cloud Composer to automate a DAG for batch prediction using Al Platform(Vertex Al), then push the predictions to PubSub. Schedule the pipeline monthly

d)

Use Cloud Dataproc to generate predictions with spark ML, store results in BigQuery. Use Cloud Composer DAG to push scores to PubSub, Schedule it monthly

242.

Business owners at your company have given you a database of bank transactions. Each row contains the user ID, transaction type, transaction location, and transaction amount. They ask you to investigate what type of machine learning can be applied to the data. Which three machine learning applications can you use? (Choose three.)

a)

Supervised learning to determine which transactions are most likely to be fraudulent.

b)

Unsupervised learning to determine which transactions are most likely to be fraudulent.

c)

Clustering to divide the transactions into N categories based on feature similarity

d)

Supervised learning to predict the location of a transaction

e)

Reinforcement learning to predict the location of a transaction

243.

Which of these statements about BigQuery caching is true?

a)

BigQuery caches query results for 48 hours

b)

Query results are cached even if you specify a destination table.

c)

There is no charge for a query that retrieves its results from cache.

d)

By default, a query's results are not cached.

244.

Your company's on-premises Apache Hadoop servers are approaching end-of-life, and IT has decided to migrate the cluster to Google Cloud Dataproc. A like-for- like migration of the cluster would require 50 TB of Google Persistent Disk per node. The CIO is concerned about the cost of using that much block storage. You want to minimize the storage cost of the migration. What should you do?

a)

Put the data into Google Cloud Storage

b)

Use preemptible virtual machines (VMs) for the Cloud Dataproc cluster

c)

Tune the Cloud Dataproc cluster so that there is just enough disk for all data

d)

Migrate some of the cold data into Google Cloud Storage, and keep only the hot data in Persistent Disk

245.

Your company launched an image recognition app a few months ago. Users are complaining about wrong classifications for some categories.

The application is backed by a custom ML model developed using sci-kit learn and deployed on the Al Platform, the observed metrics show an increased latency when making predictions for two weeks.

You have been asked to solve this issue permanently while minimizing the time to market to release a new version while writing a minimum of code.

What should you do?

a)

Replace the current model with AutoML for image Classification

b)

Troubleshoot the current model, check for any labeling issue on the training dataset and change the classes accordingly in the model code

c)

Replace the current model with the Built-in Image Classifier on Al Platform

d)

Replace the current model with a Tensorflow model for image

246.

You work for a car manufacturer and have set up a data pipeline using Google Cloud Pub/Sub to capture anomalous sensor events. You are using a push subscription in Cloud Pub/Sub that calls a custom HTTPS endpoint that you have created to take action of these anomalous events as they occur. Your custom HTTPS endpoint keeps getting an inordinate amount of duplicate messages. What is the most likely cause of these duplicate messages?

a)

The message body for the sensor event is too large

b)

Your custom endpoint has an out-of-date SSL certificate

c)

The Cloud Pub/Sub topic has too many messages published to it.

d)

Your custom endpoint is not acknowledging messages within the acknowledgement deadline

247.

You are working as a Data Engineer and you were given 100G of ORC data format files stored in Google Cloud Storage. You have been asked to make an SQL ad hoc analysis and share the results with the business team. The same ORC data will be reused for churn prediction use cases with BigQueryML in a few days and query performance is a top priority.

How should you perform the analysis while taking into consideration the future use of the same Data?

a)

Keep the data in Cloud Storage, Use federated queries from the BigQuery console to perform the ad-hoc analysis. reuse the same queries for the future use cases

b)

Load the ORC data in BigQuery native storage, perform the ad-hoc analysis. reuse the same queries for future use cases

c)

Keep the data in Cloud Storage, perform the analysis using Dataproc via a specific Spark Job to develop. reuse the same job for future use cases

d)

Use Cloud Dataflow to convert the files from ORC to AVRO, Load the AVRO files into Bigquery to perform the ad-hoc SQL analysis. reuse the same queries for the future use cases

248.

Your company uses a proprietary system to send inventory data every 6 hours to a data ingestion service in the cloud. Transmitted data includes a payload of several fields and the timestamp of the transmission. If there are any concerns about a transmission, the system re-transmits the data. How should you deduplicate the data most efficiently?

a)

Assign global unique identifiers (GUID) to each data entry

b)

Compute the hash value of each data entry, and compare it with all historical data

c)

Store each data entry as the primary key in a separate database and apply an index

d)

Maintain a database table to store the hash value and other metadata for each data entry.

249.

You are planning to use the Beam SDK to read customer data from a BigQuery table. Although the table has numerous columns, you only need to read the first two columns. Which method would be the most efficient?

a)

ParDo

b)

BigQueryl0.Read.fromquery

d)

Textl0.Read.withMatchConfiguration

250.

Your company has hired a new data scientist who wants to perform complicated analyses across very large datasets stored in Google Cloud Storage and in a Cassandra cluster on Google Compute Engine. The scientist primarily wants to create labeled datasets for machine learning projects, along with some visualization tasks. She reports that her laptop is not powerful enough to perform her tasks and it is slowing her down. You want to help her perform her tasks.

What should you do?

a)

Run a local version of Jupiter on the laptop

b)

Grant the user access to Google Cloud Shell

c)

Host a visualization tool on a VM on Google Compute Engine

d)

Deploy Google Cloud Datalab to a virtual machine (VM) on Google Compute Engine

251.

You are working in an e-commerce startup and you have been asked to rapidly experiment with the outcome of the recommendations algorithm given historical customer behavior, transactions, and product ratings already stored in BigQuery as a potential future feature of the product you are working on to recommend personalized customer experiences.

How should you build and make batch recommendations on the current customer base as quickly as possible with minimal development?

a)

Create Matrix factorization model using BigQueryML, Use ml.predict for inference

b)

Use VertexAl Workbench to create a jupyter Notebook with GPU support, Use AutoKeras to create the model and the predictions.

c)

Use AutoML via the console Ul to create the model and predictions from data in BigQuery

d)

Create Matrix factorization model using BigQueryML, Use ml.recommend for inference

252.

You are deploying 10,000 new Internet of Things devices to collect temperature data in your warehouses globally. You need to process, store and analyze these very large datasets in real time. What should you do?

a)

Send the data to Google Cloud Datastore and then export to BigQuery

b)

Send the data to Google Cloud Pub/Sub, stream Cloud Pub/Sub to Google Cloud Dataflow, and store the data in Google BigQuery

c)

Send the data to Cloud Storage and then spin up an Apache Hadoop cluster as needed in Google Cloud Dataproc whenever analysis is required

d)

Export logs in batch to Google Cloud Storage and then spin up a Google Cloud SQL instance, import the data from Cloud Storage, and run an analysis as needed.

253.

Your company has historic tabular data about customer transactions, orders, and payments tables stored in BigQuery, partitioned and clustered. The company uses BigQuery for most of its analytics workloads and uses the on-demand pricing model. BigQuery monthly bill is increasing and the management asked to check the possibilities to enhance and optimize those costs.

How should you reduce the monthly bill on BigQuery? (Choose 2 answers)

a)

Move to flat pricing

b)

Read-only data you need to reduce the amount of processed data and used slots

c)

Offload part of the data to Google Cloud Storage since storage costs are much less than Bigquery

d)

Activate BigQuery cache on the project and organization level

254.

You have spent a few days loading data from comma-separated values (CSV) files into the Google BigQuery table CLICK_STREAM. The column DT stores the epoch time of click events. For convenience, you chose a simple schema where every field is treated as the STRING type. Now, you want to compute web session durations of users who visit your site, and you want to change its data type to TIMESTAMP. You want to minimize the migration effort without making future queries computationally expensive. What should you do?

a)

Delete the table CLICK_STREAM, and then recreate it such that the column DT is of the TIMESTAMP type. Reload the data

b)

Add a column TS of the TIMESTAMP type to the table CLICK_STREAM, and populate the numeric values from the column TS for each row. Reference the column TS instead of the column DT from now on

c)

Create a view CLICK_STREAM_V, where strings from the column DT are cast into TIMESTAMP values. Reference the view CLICK_STREAM_V instead of the table CLICK_STREAM from now on.

d)

Add two columns to the table CLICK STREAM: TS of the TIMESTAMP type and IS_NEW of the BOOLEAN type. Reload all data in append mode. For each appended row, set the value of IS_NEW to true. For future queries, reference the column TS instead of the column DT, with the WHERE clause ensuring that the value of IS_NEW must be true

e)

Construct a query to return every row of the table CLICK_STREAM, while using the built-in function to cast strings from the column DT into TIMESTAMP values. Run the query into a destination table NEW_CLICK_STREAM, in which the column TS is the TIMESTAMP type. Reference the table NEW_CLICK_STREAM instead of the table CLICK_STREAM from now on. In the future, new data is loaded into the table NEW_CLICK_STREAM

255.

Your company has historic tabular data about customer transactions, orders and payments stored in BigQuery. The company wants to add a customer segmentation module and populate the results back to BigQuery and PubSub to be consumed by the CRM.

The segmentation process is rule-based according to given business inputs that can be processed via SQL. Your company is already using Cloud Dataflow, Cloud Composer, Cloud Dataproc.

How should you implement such a solution with minimal development and operational effort?

a)

Use Kube Flow to implement the production-level segmentation pipeline, store results in BigQuery. Use Cloud Composer DAG to push scores to PubSub

b)

Use Kube Flow to implement the production-level prediction pipeline, store results in BigQuery. Use Cloud function to send the scores to PubSub

c)

Use the existing Cloud Composer to automate a DAG with BigQueryOperator that implements the business given rules, store the results in a BigQuery table and push them to PubSub on the same DAG

d)

Use Cloud Dataproc to process the business rules for segmentation with spark ML, store results in BigQuery. Use Cloud Composer DAG to push scores to PubSub

256.

You want to use Google Stackdriver Logging to monitor Google BigQuery usage. You need an instant notification to be sent to your monitoring tool when new data is appended to a certain table using an insert job, but you do not want to receive notifications for other tables. What should you do?

a)

Make a call to the Stackdriver API to list all logs, and apply an advanced filter

b)

In the Stackdriver logging admin interface, and enable a log sink export to BigQuery

c)

In the Stackdriver logging admin interface, enable a log sink export to Google Cloud Pub/Sub, and subscribe to the topic from your monitoring tool.

d)

Using the Stackdriver API, create a project sink with an advanced log filter to export to Pub/Sub, and subscribe to the topic from your monitoring tool

257.

Which methods can be used to reduce the number of rows processed by BigQuery?

a)

Putting data in partitions; using the LIMIT clause

b)

Splitting tables into multiple tables; using the LIMIT clause

c)

Splitting tables into multiple tables; putting data in partitions; using the LIMIT clause

d)

Splitting tables into multiple tables; putting data in partitions

258.

You are working on a sensitive project involving private user data. You have set up a project on Google Cloud Platform to house your work internally. An external consultant is going to assist with coding a complex transformation in a Google Cloud Dataflow pipeline for your project. How should you maintain users’ privacy?

a)

Grant the consultant the Viewer role on the project

b)

Grant the consultant the Cloud Dataflow Developer role on the project.

c)

Create a service account and allow the consultant to log on with it

d)

Create an anonymized sample of the data for the consultant to work with in a different project.

259.

Which layer of a convolutional neural network is normally used to perform downsampling or dimensionality reduction?

a)

Dropout layer

b)

Pooling layer

c)

Convolutional layer

d)

Logits layer

260.

You are building a model to predict whether or not it will rain on a given day. You have thousands of input features and want to see if you can improve training speed by removing some features while having a minimum effect on model accuracy. What can you do?

a)

Eliminate features that are highly correlated to the output labels

b)

Combine highly co-dependent features into one representative feature.

c)

Instead of feeding in each feature individually, average their values in batches of 3.

d)

Remove the features that have null values for more than 50% of the training records

261.

You are working as a Data Engineer at a large company relying on BigQuery as a Data Warehouse. You executed the SQL query

#standardSQL

SELECT

COUNT(*) AS rows

FROM

“bigquery-public-data.samples.shakespeare’;

and you received the following error

Syntax error: Unexpected keyword ROWS at [3:15]

How to solve this issue while keeping the same alias name for the count(*) statement?

a)

escape the alias rows using backticks

b)

escape the alias rows using square brackets

c)

rename the alias rows using AS statement

d)

rows is reserved keyword in standard SQL, could not be used

262.

Your company is performing data preprocessing for a learning algorithm in Google Cloud Dataflow. Numerous data logs are being generated during this step, and the team wants to analyze them. Due to the dynamic nature of the campaign, the data is growing exponentially every hour.

The data scientists have written the following code to read the data for new key features in the logs.

BigQueryIO.Read

named (“ReadLogData”)

.from(“clouddataflow-readonly:samples.log_data”)

You want to improve the performance of this data read. What should you do?

a)

Specify the TableReference object in the code

b)

Use .fromQuery operation to read specific fields from the table

c)

Use of both the Google BigQuery TableSchema and TableFieldSchema classes

d)

Call a transform that returns TableRow objects, where each element in the PCollection represents a single row in the table

263.

Your Company is managing a supply chain product globally accessible. The company has several partners across different countries that need to access BigQuery country-specific tables for historic data analysis for each country.

What should you do to guarantee that each partner accesses only their specific tables on BigQuery without altering the data?

a)

Create a single dataset for all the countries, grant the role roles/bigquery.metadataViewer at table table-level for each country-specific tables for each partner

b)

Create a single dataset for all the countries, grant the role roles/bigquery.dataViewer at table table-level for each country specific tables for each partner

c)

Create a single dataset for all the countries, grant the role roles/bigquery.dataOwner at table table-level for each country specific tables for each partner

d)

Create a single dataset for all the countries, grant the role roles/bigquery.dataEditor at table table-level for each country specific tables for each partner

264.

You are working as a Data Engineer for a supply chain startup. you were given access to a data source containing location data in a GeoJson format and have been asked to store and analyze those data using SQL.

What is the appropriate Google Cloud Storage service to perform SQL analysis?

a)

Store GeoJson in BigQuery and use standard SQL for analysis

b)

Store GeoJson in Cloud Storage, Build dataflow job to process the analysis

c)

Store GeoJson in CloudSQL and use standard SQL for analysis

d)

Store GeoJson is Cloud Storage, Use Dataproc for analysis

265.

Your company's customer and order databases are often under heavy load. This makes performing analytics against them difficult without harming operations.

The databases are in a MySQL cluster, with nightly backups taken using mysqldump. You want to perform analytics with minimal impact on operations. What should you do?

a)

Add a node to the MySQL cluster and build an OLAP cube there

b)

Use an ETL tool to load the data from MySQL into Google BigQuery

c)

Connect an on-premises Apache Hadoop cluster to MySQL and perform ETL.

d)

Mount the backups to Google Cloud SQL, and then process the data using Google Cloud Dataproc

266.

You are working for a Data Analytics company that has several cloud composer DAGs for batch prediction jobs launched on Al Platform on a daily schedule.

You need to monitor those jobs’ behavior for errors raised once launched on the Al platform, and then notify the team if they fail.

The company prefers managed service usage with minimum development effort and infrastructure management.

How should you set up the alerting using native GCP functionalities?

a)

Set up an alerting policy on Cloud Logging for already exported logs there with the corresponding filters.

b)

Create a logging sink that will export Cloud logging to a BigQuery table. Create a DAG on Cloud composer to fetch corresponding alerts and send them by email.

c)

Create a logging sink that will export Cloud logging to a BigQuery table. set up App Engine to read that information and send notification emails

d)

Set up email_on_failure to True for the Cloud composer DAG running the daily prediction. an email is sent if any DAG's task fails.

267.

You have Google Cloud Dataflow streaming pipeline running with a Google Cloud Pub/Sub subscription as the source. You need to make an update to the code that will make the new Cloud Dataflow pipeline incompatible with the current version. You do not want to lose any data when making this update. What should you do?

a)

Update the current pipeline and use the drain flag

b)

Update the current pipeline and provide the transform mapping JSON object

c)

Create a new pipeline that has the same Cloud Pub/Sub subscription and cancel the old pipeline.

d)

Create a new pipeline that has a new Cloud Pub/Sub subscription and cancel the old pipeline.

268.

You are working as a Data Engineer at a Gaming startup that recently launched a new game called “MeetTheWorld”. You have been asked to make a real-time query of active gamers’ counts every minute using SQL and store the results in BigQuery. MeetTheWorld game is using CloudSQL as a backend and a pubsub stream for every subscriber that connects and disconnects from the game.

The Startup is already using Cloud Composer, Cloud Dataflow, and Bigquery for their tech stack

How should you implement the requirement?

a)

Create a DAG on Cloud Composer with PubSub Operator that will fetch active gamers and BigQuery Operator to store results into BigQuery. Schedule the DAG every minute

b)

Create a Dataflow SQL job to count active gamers from the pubsub stream every minute, use BigQuerylO to store the results in Bigquery

c)

Create a DAG on Cloud Composer with a Cloud SQL Operator to retrieve active gamers count and BigQuery Operator to store the results into BigQuery

d)

Create a Dataflow SQL job to count active gamers from the CloudSQL backend every minute, use BigQuerylO to store the results in Bigquery

269.

You work for a large fast food restaurant chain with over 400,000 employees. You store employee information in Google BigQuery in a Users table consisting of a FirstName field and a LastName field. A member of IT is building an application and asks you to modify the schema and data in BigQuery so the application can query a FullName field consisting of the value of the FirstName field concatenated with a space, followed by the value of the LastName field for each employee. How can you make that data available while minimizing cost?

a)

Create a view in BigQuery that concatenates the FirstName and LastName field values to produce the FullName

b)

Add a new column called FullName to the Users table. Run an UPDATE statement that updates the FullName column for each user with the concatenation of the FirstName and LastName values

c)

Create a Google Cloud Dataflow job that queries BigQuery for the entire Users table, concatenates the FirstName value and LastName value for each user, and loads the proper values for FirstName, LastName, and FullName into a new table in BigQuery

d)

Use BigQuery to export the data for the table to a CSV file. Create a Google Cloud Dataproc job to process the CSV file and output a new CSV file containing the proper values for FirstName, LastName and FullName. Run a |BigQuery load job to load the new CSV file into BigQuery.

270.

Which row keys are likely to cause a disproportionate number of reads and/or writes on a particular node in a Bigtable cluster? (Choose 2 answers)

a)

A timestamp followed by a stock symbol

b)

A stock symbol followed by a timestamp

c)

A sequential numeric ID

d)

A non-sequential numeric ID

271.

You work for a manufacturing plant that batches application log files together into a single log file once a day at 2:00 AM. You have written a Google Cloud Dataflow job to process that log file. You need to make sure the log file in processed once per day as inexpensively as possible. What should you do?

a)

Change the processing job to use Google Cloud Dataproc instead

b)

Manually start the Cloud Dataflow job each morning when you get into the office

c)

Create a cron job with Google App Engine Cron Service to run the Cloud Dataflow job

d)

Configure the Cloud Dataflow job as a streaming job so that it processes the log data immediately.

272.

You work for an economic consulting firm that helps companies identify economic trends as they happen. As part of your analysis, you use Google BigQuery to correlate customer data with the average prices of the 100 most common goods sold, including bread, gasoline, milk, and others. The average prices of these goods are updated every 30 minutes. You want to make sure this data stays up to date so you can combine it with other data in BigQuery as cheaply as possible.

What should you do?

a)

Load the data every 30 minutes into a new partitioned table in BigQuery.

b)

Store and update the data in a regional Google Cloud Storage bucket and create a federated data source in BigQuery

c)

Store the data in Google Cloud Datastore. Use Google Cloud Dataflow to query BigQuery and combine the data programmatically with the data stored in Cloud Datastore

d)

Store the data in a file in a regional Google Cloud Storage bucket. Use Cloud Dataflow to query BigQuery and combine the data programmatically with the data stored in Google Cloud Storage

273.

You are designing the database schema for a machine learning-based food ordering service that will predict what users want to eat. Here is some of the information you need to store: 

  1. 1) The user profile: What the user likes and doesn't like to eat

  2. 2) The user account information: Name, address, preferred meal times 

  3. 3) The order information: When orders are made, from where, to whom 

The database will be used to store all the transactional data of the product. You want to optimize the data schema. Which Google Cloud Platform product should you use?

a)

BigQuery

b)

Cloud SQL

c)

Cloud Bigtable

d)

Cloud Datastore

274.

You are using SaaS services to collect data from various sources in JSON format to produce a competitive intelligence report on a monthly schedule and planned to be real-time in the near future. The Data processing stage needs to store outputs in BigQuery. Select the best architecture choice that requires minimum operational and infrastructure maintenance involvement.

a)

Use Cloud Storage as landing for JSON files, Dataproc for data processing, BigQuery for Analysis, Cloud Composer to orchestrate the pipeline on monthly basis, and Data Studio for visualizations

b)

Use Cloud Storage as landing for JSON files, Dataflow for data processing, and BigQuerylO to store the output in BigQuery for analysis and Data studio for visualizations

c)

Use Bigtable to store JSON files, Dataflow for data processing and BigQuerylO to store the output in BigQuery for analysis and Data studio for visualizations

d)

Use Cloud Storage as landing for JSON files, Cloud Function to be triggered for data processing, store the output in BigQuery for analysis, and Data studio for visualizations

275.

You are choosing a NoSQL database to handle telemetry data submitted from millions of Internet-of-Things (loT) devices. The volume of data is growing at 100 TB per year, and each data entry has about 100 attributes. The data processing pipeline does not require atomicity, consistency, isolation, and durability (ACID).

However, high availability and low latency are required. You need to analyze the data by querying against individual fields. Which three databases meet your requirements? (Choose three.)

a)

Redis

b)

HBase

c)

MySQL

d)

MongoDB

e)

Cassandra

276.

You are training a spam classifier. You notice that you are overfitting the training data. Which three actions can you take to resolve this problem? (Choose three.)

a)

Get more training examples

b)

Reduce the number of training examples

c)

Use a smaller set of features

d)

Use a larger set of features

e)

Increase the regularization parameters

277.

You are implementing security best practices on your data pipeline. Currently, you are manually executing jobs as the Project Owner. You want to automate these jobs by taking nightly batch files containing non-public information from Google Cloud Storage, processing them with a Spark Scala job on a Google Cloud Dataproc cluster, and depositing the results into Google BigQuery.

How should you securely run this workload?

a)

Restrict the Google Cloud Storage bucket so only you can see the files

b)

Grant the Project Owner role to a service account, and run the job with it

c)

Use a service account with the ability to read the batch files and to write to BigQuery

d)

Use a user account with the Project Viewer role on the Cloud Dataproc cluster to read the batch files and write to BigQuery

278.

You are using Google BigQuery as your data warehouse. Your users report that the following simple query is running very slowly, no matter when they run the query:

SELECT country, state, city FROM [myproject:mydataset.mytable] GROUP BY country You check the query plan for the query and see the following output in the Read section of Stage:1:

xxxxxxxxoooooooooooooooooo

What is the most likely cause of the delay for this query?

a)

Users are running too many concurrent queries in the system

b)

The [myproject:mydataset.mytable] table has too many partitions

c)

Either the state or the city columns in the [myproject:mydataset. mytable] table have too many NULL values

d)

Most rows in the [myproject:mydataset.mytable] table have the same value in the country column, causing data skew

279.

You are managing a team of Data Engineers, Data Scientists and Data Analysts. The team is using Vertex Al Worbench- managed notebooks for Ad hoc analysis according to each requirement with access to BigQuery and GCS.

The existing notebooks are created using the project default service account and accessible for everyone which causes security issues.

How should you reorganize / set up the notebook management on Vertex Al Workbench?

a)

Create user-managed notebooks with single-user access to JupyterLab, keep the default service account

b)

Keep the current notebooks, replace the default service account with a new one having limited access

c)

Create user-managed notebooks with single-user access to JupyterLab, replace the default service account with a new one having limited access

d)

Create user-managed notebooks with single-user access to JupyterLab, No additional service account is needed

280.

Your organization has been collecting and analyzing data in Google BigQuery for 6 months. The majority of the data analyzed is placed in a time-partitioned table named events_partitioned. To reduce the cost of queries, your organization created a view called events, which queries only the last 14 days of data. The view is described in legacy SQL. Next month, existing applications will be connecting to BigQuery to read the events data via an ODBC connection. You need to ensure the applications can connect. Which two actions should you take? (Choose two.)

a)

Create a new view over events using standard SQL

b)

Create a new partitioned table using a standard SQL query

c)

Create a new view over events_partitioned using standard SQL

d)

Create a service account for the ODBC connection to use for authentication

e)

Create a Google Cloud Identity and Access Management (Cloud IAM) role for the ODBC connection and shared events

281.

Your company is currently setting up data pipelines for their campaign. For all the Google Cloud Pub/Sub streaming data, one of the important business requirements is to be able to periodically identify the inputs and their timings during their campaign. Engineers have decided to use windowing and transformation in Google Cloud Dataflow for this purpose. However, when testing this feature, they find that the Cloud Dataflow job fails for the all streaming insert. What is the most likely cause of this problem?

a)

They have not assigned the timestamp, which causes the job to fail

b)

They have not set the triggers to accommodate the data coming in late, which causes the job to fail

c)

They have not applied a global windowing function, which causes the job to fail when the pipeline is created

d)

They have not applied a non-global windowing function, which causes the job to fail when the pipeline is created

282.

You architect a system to analyze seismic data. Your extract, transform, and load (ETL) process runs as a series of MapReduce jobs on an Apache Hadoop cluster. The ETL process takes days to process a data set because some steps are computationally expensive. Then you discover that a sensor calibration step has been omitted. How should you change your ETL process to carry out sensor calibration systematically in the future?

a)

Modify the transformMapReduce jobs to apply sensor calibration before they do anything else.

b)

Introduce a new MapReduce job to apply sensor calibration to raw data, and ensure all other MapReduce jobs are chained after this.

c)

Add sensor calibration data to the output of the ETL process, and document that all users need to apply sensor calibration themselves

d)

Develop an algorithm through simulation to predict variance of data output from the last MapReduce job based on calibration factors, and apply the correction to all data

283.

Which two of these statements about convolutional layers are true? (Select 2 answers)

a)

convolutional layer runs input data through multiple filters

b)

Convolution selects the maximum value from a group of pixels

c)

A convolutional layer is a type of fully connected layer

d)

The purpose of a convolutional layer is feature detection

284.

An online retailer has built their current application on Google App Engine. A new initiative at the company mandates that they extend their application to allow their customers to transact directly via the application. They need to manage their shopping transactions and analyze combined data from multiple datasets using a business intelligence (BI) tool.

They want to use only a single database for this purpose. Which Google Cloud database should they choose?

a)

BigQuery

b)

Cloud SQL

c)

Cloud BigTable

d)

Cloud Datastore

285.

Your analytics team wants to build a simple statistical model to determine which customers are most likely to work with your company again, based on a few different metrics. They want to run the model on Apache Spark, using data housed in Google Cloud Storage, and you have recommended using Google Cloud Dataproc to execute this job. Testing has shown that this workload can run in approximately 30 minutes on a 15-node cluster, outputting the results into Google BigQuery. The plan is to run this workload weekly. How should you optimize the cluster for cost?

a)

Migrate the workload to Google Cloud Dataflow

b)

Use pre-emptible virtual machines (VMs) for the cluster

c)

Use a higher-memory node so that the job runs faster

d)

Use SSDs on the worker nodes so that the job can run faster

286.

Which TensorFlow function can you use to configure a categorical column if you don't know all of the possible values for that column?

a)

categorical_column_with_hash_bucket

b)

categorical_column_with_vocabulary_list

c)

sparse_column_with_keys

d)

categorical_column_with_unknown_values

287.

Your company receives both batch- and stream-based event data. You want to process the data using Google Cloud Dataflow over a predictable time period.

However, you realize that in some instances data can arrive late or out of order. How should you design your Cloud Dataflow pipeline to handle data that is late or out of order?

a)

Set a single global window to capture all the data.

b)

Set sliding windows to capture all the lagged data.

c)

Use watermarks and timestamps to capture the lagged data.

d)

Ensure every datasource type (stream or batch) has a timestamp, and use the timestamps to define the logic for lagged data.

288.

You are integrating one of your internal IT applications and Google BigQuery, so users can query BigQuery from the application's interface. You do not want individual users to authenticate to BigQuery and you do not want to give them access to the dataset. You need to securely access BigQuery from your IT application. What should you do?

a)

Create groups for your users and give those groups access to the dataset

b)

Integrate with a single sign-on (SSO) platform, and pass each user's credentials along with the query request

c)

Create a service account and grant dataset access to that account. Use the service account's private key to access the dataset

d)

Create a dummy user and grant dataset access to that user. Store the username and password for that user in a file on the files system, and use those credentials to access the BigQuery dataset

289.

You are working as a Data Engineer in an Analytics startup that manages a Cloud Composer cluster. You deployed a DAG that contains a bash operator that executes gcloud sql export csv commands to export data from a Cloud SQL to Cloud Storage.

The DAG execution shows the following logs of the BashOperator task. ERROR: (gcloud.sgl.export.csv) HTTPError 403: The service account does not have the required permissions for the bucket.

The Cloud Composer Service account already has an editor role on CloudSQL and StorageObjectAdmin role on Cloud Storage

What should you do to solve the issue?

a)

Add Storage admin role to the Cloud Composer Service Account

b)

Add Cloud SQL admin role to the Cloud Composer Service Account

c)

Add StorageObjectAdmin to the Cloud SQL Service Agent

d)

Assign the Cloud Composer Service Account as the default Cloud SQL Service Agent

290.

You set up a streaming data insert into a Redis cluster via a Kafka cluster. Both clusters are running on Compute Engine instances. You need to encrypt data at rest with encryption keys that you can create, rotate, and destroy as needed. What should you do?

a)

Create a dedicated service account, and use encryption at rest to reference your data stored in your Compute Engine cluster instances as part of your API service calls.

b)

Create encryption keys in Cloud Key Management Service. Use those keys to encrypt your data in all of the Compute Engine cluster instances.

c)

Create encryption keys locally. Upload your encryption keys to Cloud Key Management Service. Use those keys to encrypt your data in all of the Compute Engine cluster instances.

d)

Create encryption keys in Cloud Key Management Service. Reference those keys in your API service calls when accessing the data in your Compute Engine cluster instances.

291.

You are developing an application that uses a recommendation engine on Google Cloud. Your solution should display new videos to customers based on past views. Your solution needs to generate labels for the entities in videos that the customer has viewed. Your design must be able to provide very fast filtering suggestions based on data from other customer preferences on several TB of data. What should you do?

a)

Build and train a complex classification model with Spark MLIib to generate labels and filter the results. Deploy the models using Cloud Dataproc. Call the model from your application

b)

Build and train a classification model with Spark MLIib to generate labels. Build and train a second classification model with Spark MLIib to filter results to match customer preferences. Deploy the models using Cloud Dataproc. Call the models from your application.

c)

Build an application that calls the Cloud Video Intelligence API to generate labels. Store data in Cloud Bigtable, and filter the predicted labels to match the user's viewing history to generate preferences.

d)

Build an application that calls the Cloud Video Intelligence API to generate labels. Store data in

Cloud SQL, and join and filter the predicted labels to match the user's viewing history to generate preferences.

292.

You are selecting services to write and transform JSON messages from Cloud Pub/Sub to BigQuery for a data pipeline on Google Cloud. You want to minimize service costs. You also want to monitor and accommodate input data volume that will vary in size with minimal manual intervention. What should you do?

a)

Use Cloud Dataproc to run your transformations. Monitor CPU utilization for the cluster. Resize the number of worker nodes in your cluster via the command line.

b)

Use Cloud Dataproc to run your transformations. Use the diagnose command to generate an operational output archive. Locate the bottleneck and adjust cluster resources.

c)

Use Cloud Dataflow to run your transformations. Monitor the job system lag with Stackdriver. Use the default autoscaling setting for worker instances.

d)

Use Cloud Dataflow to run your transformations. Monitor the total execution time for a sampling of jobs. Configure the job to use non-default Compute Engine machine types when needed.

293.

Your infrastructure includes a set of YouTube channels. You have been tasked with creating a process for sending the YouTube channel data to Google Cloud for analysis. You want to design a solution that allows your world-wide

marketing teams to perform ANSI SQL and other types of analysis on up-to-date YouTube channels log data. How should you set up the log data transfer into Google Cloud?

a)

Use Storage Transfer Service to transfer the offsite backup files to a Cloud Storage Multi-Regional storage bucket as a final destination.

b)

Use Storage Transfer Service to transfer the offsite backup files to a Cloud Storage Regional bucket as a final destination.

c)

Use BigQuery Data Transfer Service to transfer the offsite backup files to a Cloud Storage Multi-Regional storage bucket as a final destination.

d)

Use BigQuery Data Transfer Service to transfer the offsite backup files to a Cloud Storage Regional storage bucket as a final destination.

294.

BigAnalytics company is using BigQuery API as part of their applications. The BigQuery Ul console is also widely used by different teams. You have been asked to review the capacity requirements for your company’s BigQuery usage to avoid overspending per day. What should you do?

a)

Deploy a cloud function that fetches metadata for BigQuery Jobs on a daily basis to calculate the total usage. disable the API once the limit reached

b)

Use quotas to cap consumption, set maximum query usage per day for BigQuery

c)

Use BigQuery Audit Logs to track BigQuery usage and set up alarms for specific thresholds.

d)

Create a Logging Sink for Audit logs into BigQuery. Deploy a cloud function that fetches consumption data and disables the API once the limit is reached.

295.

You are designing storage for very large text files for a data pipeline on Google Cloud. You want to support ANSI SQL queries. You also want to support compression and parallel load from the input locations using Google recommended practices. What should you do?

a)

Transform text files to compressed Avro using Cloud Dataflow. Use BigQuery for storage and query.

b)

Transform text files to compressed Avro using Cloud Dataflow. Use Cloud Storage and BigQuery permanent linked tables for query.

c)

Compress text files to gzip using the Grid Computing Tools. Use BigQuery for storage and query.

d)

Compress text files to gzip using the Grid Computing Tools. Use Cloud Storage, and then import into Cloud Bigtable for query.

296.

You are developing an application on Google Cloud that will automatically generate subject labels for users’ blog posts. You are under competitive pressure to add this feature quickly, and you have no additional developer resources.

No one on your team has experience with machine learning. What should you do?

a)

Call the Cloud Natural Language API from your application. Process the generated Entity Analysis as labels.

b)

Call the Cloud Natural Language API from your application. Process the generated Sentiment Analysis as labels.

c)

Build and train a text classification model using TensorFlow. Deploy the model using Cloud Machine Learning Engine. Call the model from your application and process the results as labels.

d)

Build and train a text classification model using TensorFlow. Deploy the model using a Kubernetes Engine cluster. Call the model from your application and process the results as labels.

297.

You are designing storage for 20 TB of text files as part of deploying a data pipeline on Google Cloud. Your input data is in CSV format. You want to minimize the cost of querying aggregate values for multiple users who will query the data in Cloud Storage with multiple engines. Which storage service and schema design should you use?

a)

Use Cloud Bigtable for storage. Install the HBase shell on a Compute Engine instance to query the

Cloud Bigtable data.

b)

Use Cloud Bigtable for storage. Link as permanent tables in BigQuery for query.

c)

Use Cloud Storage for storage. Link as permanent tables in BigQuery for query.

d)

Use Cloud Storage for storage. Link as temporary tables in BigQuery for query.

298.

Your company has a multi-year 10T backup of data in parquet format stored in Cloud Storage. you have been asked to develop a dataflow job and apply transformations on that data then store the output in BigQuery. You have an input collection with few elements, the ParDo produces an output with hundreds of times as many elements followed by another ParDo

You want to prevent fusion optimization used by dataflow to avoid incorrectly performed optimizations

What should you do to prevent such a fusion?

a)

insert a GroupByKey and ungroup after your first ParDo. The Dataflow service never fuses ParDo operations across an aggregation

b)

Disable fuse optimization during the job launch using -no_fuse argument

c)

Use a single ParDo Operation followed by PCollection

d)

insert a DoFn after your first ParDo. The Dataflow service never fuses ParDo operations across an aggregation

299.

Your financial services company is moving to cloud technology and wants to store 50 TB of financial time-series data in the cloud. This data is updated frequently and new data will be streaming in all the time. Your company also

wants to move their existing Apache Hadoop jobs to the cloud to get insights into this data.

Which product should they use to store the data?

a)

Cloud Bigtable

b)

Google BigQuery

c)

Google Cloud Storage

d)

Google Cloud Datastore

300.

An organization maintains a Google BigQuery dataset that contains tables with user-level data. They want to expose aggregates of this data to other Google Cloud projects, while still controlling access to the user-level data.

Additionally, they need to minimize their overall storage cost and ensure the analysis cost for other projects is

assigned to those projects. What should they do?

a)

Create and share an authorized view that provides the aggregate results.

b)

Create and share a new dataset and view that provides the aggregate results.

c)

Create and share a new dataset and table that contains the aggregate results

d)

Create dataViewer Identity and Access Management (IAM) roles on the dataset to enable sharing

301.

Government regulations in your industry mandate that you have to maintain an auditable record of access to certain types of data. Assuming that all expiring logs will be archived correctly, where should you store data that is subject to that mandate?

a)

Encrypted on Cloud Storage with user-supplied encryption keys. A separate decryption key will be given to each authorized user.

b)

In a BigQuery dataset that is viewable only by authorized personnel, with the Data Access log used to

provide the auditability

c)

In Cloud SQL, with separate database user names to each user. The Cloud SQL Admin activity logs will be used to provide the auditability.

d)

In a bucket on Cloud Storage that is accessible only by an AppEngine service that collects user information and logs the access before providing a link to the bucket.

302.

Which Cloud Dataflow Beam feature should you use to aggregate data in an unbounded data source every hour based on the time when the data entered the pipeline?

a)

An event time trigger

b)

A processing time trigger

c)

An hourly watermark

d)

The withAllowedLateness method

303.

Your neural network model is taking days to train. You want to increase the training speed. What can you do?

a)

Subsample your test dataset.

b)

Subsample your training dataset.

c)

Increase the number of input features to your model.

d)

Increase the number of layers in your neural network.

304.

You are working as a Data Engineer at a large company with several departments. The company has a Datawarehouse on BigQuery.

You are managing a Cloud Composer instance that contains several data ingestion and batch predictions jobs using the default project service account from data warehouse data.

You have been asked to isolate all tasks using BigQuery Operators across different DAGs accessing data lake by using a separate service account with fine-grained roles.

What should you do?

a)

Create the new service account with fine-grained roles, generate the service account JSON key and create a new Cloud composer connection. specify the connection to use on each DAG task using BigQuery Operator.

b)

Modify the current service account with required fine-grained roles. create a new Cloud composer connection. specify the connection to use on each DAG task using BigQuery Operator

c)

Create the new service account with fine-grained roles, generate the service account JSON key. Modify the default connection to use the new service account. specify the connection to use on each DAG task using BigQuery Operator.

d)

Modify the current service account with required fine-grained roles. keep the current DAGs setup with default connection

305.

After migrating ETL jobs to run on BigQuery, you need to verify that the output of the migrated jobs is the same as the output of the original. You've loaded a table containing the output of the original job and want to compare the contents with output from the migrated job to show that they are identical. The tables do not contain a primary key column that would enable you to join them together for comparison.

What should you do?

a)

Select random samples from the tables using the RAND() function and compare the samples.

b)

Select random samples from the tables using the HASH() function and compare the samples.

c)

Use a Dataproc cluster and the BigQuery Hadoop connector to read the data from each table and calculate a hash from non-timestamp columns of the table after sorting. Compare the hashes of each table.

d)

Create stratified random samples using the OVER() function and compare equivalent samples from each table.

306.

You are a head of BI at a large enterprise company with multiple business units that each have different priorities and budgets. You use on-demand pricing for BigQuery with a quota of 2K concurrent on-demand slots per project. Users at your organization sometimes don't get slots to execute their query and you need to correct this. You'd like to avoid introducing new projects to your account.

What should you do?

a)

Convert your batch BQ queries into interactive BQ queries.

b)

Create an additional project to overcome the 2K on-demand per-project quota.

c)

Switch to flat-rate pricing and establish a hierarchical priority model for your projects.

d)

Increase the amount of concurrent slots per project at the Quotas page at the Cloud Console.

307.

You can customize the software on Dataproc cluster instances in each of the following ways except which one?

a)

Login to the master node and make changes from there

b)

Modify configuration files using cluster properties

c)

Set initialization actions

d)

Configure the cluster using Cloud Deployment Manager

308.

You've migrated a Hadoop job from an on-prem cluster to dataproc and GCS. Your Spark job is a complicated analytical workload that consists of many shuffling operations and initial data are parquet files (on average 200-400 MB size each). You see some degradation in performance after the migration to Dataproc, so you'd like to optimize for it.

You need to keep in mind that your organization is very cost-sensitive, so you'd like to continue using Dataproc on preemptibles (with 2 non-preemptible workers only) for this workload.

What should you do?

a)

Increase the size of your parquet files to ensure them to be 1 GB minimum

b)

Switch to TFRecords formats (appr. 200MB per file) instead of parquet files.

c)

Switch from HDDs to SSDs, copy initial data from GCS to HDFS, run the Spark job and copy results back to GCS.

d)

Switch from HDDs to SSDs, override the preemptible VMs configuration to increase the boot disk size.

309.

Your team is responsible for developing and maintaining ETLs in your company. One of your Dataflow jobs is failing because of some errors in the input data, and you need to improve reliability of the pipeline (incl. being able to reprocess all failing data).

What should you do?

a)

Add a filtering step to skip these types of errors in the future, extract erroneous rows from logs.

b)

Add a try catch block to your DoFn that transforms the data, extract erroneous rows from logs.

c)

Add a try catch block to your DoFn that transforms the data, write erroneous rows to Pub/Sub PubSub directly from the DoFn.

d)

Add a try catch block to your DoFn that transforms the data, use a sideOutput to create a PCollection that can be stored to Pub/Sub later.

310.

You work as an Analytics Engineer for a supply chain company and you have been asked to analyze the product delivery duration for the last month. The data is already stored in BigQuery and the estimated size for the last month is less than 1GB.

You want to analyze such data with a pandas dataframe in a Vertex Al workbench.

How should you query the BigQuery table and process the data while minimizing the written code?

a)

Use Vertex Al Notebooks" BigQuery cell magic to query the data, and ingest the results as a pandas dataframe.

b)

Use BigQuery Python API to query the data from BigQuery table, save it to CSV file in the Notebook’s native storage instance, Use pandas.read_csv to ingest the file as a pandas dataframe.

c)

Use the bg extract command to export the table as a CSV file to Cloud Storage from the notebook’s bash cell, then use gsutil cp to copy the data into the notebook. Use pandas.read_csv to ingest the file as a pandas dataframe.

d)

Download the BigQuery table as a CSV file, upload it to the Vertex Al workbench notebook instance. Use

pandas.read_csv to ingest the file as a pandas dataframe.

311.

You're training a model to predict housing prices based on an available dataset with real estate properties. Your plan is to train a fully connected neural net, and you've discovered that the dataset contains latitude and longitude of the property. Real estate professionals have told you that the location of the property is highly influential on price, so you'd like to engineer a feature that incorporates this physical dependency.

What should you do?

a)

Provide latitude and longitude as input vectors to your neural net.

b)

Create a numeric column from a feature cross of latitude and longitude.

c)

Create a feature cross of latitude and longitude, bucketize it at the minute level and use L1 regularization during optimization.

d)

Create a feature cross of latitude and longitude, bucketize it at the minute level and use L2 regularization during optimization.

312.

You are working as a lead data engineer, The team is working on a classification model and has already tested features and data, model development, performance, quality, and infrastructure in dev environment. you are asked to check if the production requirements are fulfilled in the Model deployment phase.

What is the next action to take before confirming the production readiness? Choose two.

a)

Test in a staging environment that you can roll back to a previous serving model version quickly and safely, Verify that the model artifact can be loaded and invoked successfully with its runtime dependencies.

b)

Track key inputs and output artifacts of the pipeline steps, like dataset statistics, dataset anomalies (if any), transformed data and schemas, model checkpoints, and model evaluation results

c)

Canary-test the newly deployed model version on a small stream of live serving data

d)

Make sure that the test data split is representative of the data as a whole to account for varying data patterns.

313.

You are deploying MariaDB SQL databases on GCE VM Instances and need to configure monitoring and alerting. You want to collect metrics including network connections, disk I/O and replication status from MariaDB with minimal development effort and use StackDriver for dashboards and alerts.

What should you do?

a)

Install the OpenCensus Agent and create a custom metric collection application with a StackDriver exporter.

b)

Place the MariaDB instances in an Instance Group with a Health Check.

c)

Install the StackDriver Logging Agent and configure fluentd in_tail plugin to read MariaDB logs.

d)

Install the StackDriver Agent and configure the MySQL plugin.

314.

You are working as a Data Engineer at a Gaming startup that launched recently a new social game called “MeetTheWorld” where players interact with each other in real-time. You have a Cloud Dataflow configured with a fixed window of 30 minutes.

You noticed that for many players, the streamed interactions do not cover their total interaction during the playing session.

What should you do to stream the full player interaction without exceptions?

a)

Increase the fixed window to 60 minutes to be able to stream all the interactions and cover late arrival ones.

b)

Change the fixed window to the sliding window and keep the duration to 30 minutes

c)

Change the fixed window to the session window and keep the duration of 30 minutes

d)

Change the fixed window to the Tumbling window and keep the duration of 30 minutes

315.

You need to migrate a 2TB relational database to Google Cloud Platform. You do not have the resources to significantly refactor the application that uses this database and cost to operate is of primary concern.

Which service do you select for storing and serving your data?

a)

Cloud Spanner

b)

Cloud Bigtable

c)

Cloud Firestore

d)

Cloud SQL

316.

You're using Bigtable for a real-time application, and you have a heavy load that is a mix of read and writes.

You've recently identified an additional use case and need to perform hourly an analytical job to calculate certain statistics across the whole database. You need to ensure both the reliability of your production application as well as the analytical workload.

What should you do?

a)

Export Bigtable dump to GCS and run your analytical job on top of the exported files.

b)

Add a second cluster to an existing instance with a multi-cluster routing, use live-traffic app profile for your regular workload and batch-analytics profile for the analytics workload.

c)

Add a second cluster to an existing instance with a single-cluster routing, use live-traffic app profile for your regular workload and batch-analytics profile for the analytics workload.

d)

Increase the size of your existing cluster twice and execute your analytics workload on your new resized cluster.

317.

You have a data pipeline that writes data to Cloud Bigtable using well-designed row keys. You want to monitor your pipeline to determine when to increase the size of your Cloud Bigtable cluster. Which two actions can you take to accomplish this? (Choose two.)

a)

Review Key Visualizer metrics. Increase the size of the Cloud Bigtable cluster when the Read pressure index is above 100.

b)

Review Key Visualizer metrics. Increase the size of the Cloud Bigtable cluster when the Write pressure index is above 100.

c)

Monitor the latency of write operations. Increase the size of the Cloud Bigtable cluster when there is a sustained increase in write latency.

d)

Monitor storage utilization. Increase the size of the Cloud Bigtable cluster when utilization increases above 70% of max capacity.

e)

Monitor latency of read operations. Increase the size of the Cloud Bigtable cluster of read operations take longer than 100 ms.

318.

You want to analyze hundreds of thousands of social media posts daily at the lowest cost and with the fewest steps.

You have the following requirements:

1) You will batch-load the posts once per day and run them through the Cloud Natural Language API.

2) You will extract topics and sentiment from the posts.

3) You must store the raw posts for archiving and reprocessing.

4) You will create dashboards to be shared with people both inside and outside your organization.

You need to store both the data extracted from the API to perform analysis as well as the raw social media posts for historical archiving. What should you do?

a)

Store the social media posts and the data extracted from the API in BigQuery.

b)

Store the social media posts and the data extracted from the API in Cloud SQL.

c)

Store the raw social media posts in Cloud Storage, and write the data extracted from the API into BigQuery.

d)

Feed to social media posts into the API directly from the source, and write the extracted data from the API into BigQuery.

319.

Your company needs to upload their historic data to Cloud Storage. The security rules don't allow access from external IPs to their on-premises resources. After an initial upload, they will add new data from existing on-premises applications every day. What should they do?

a)

Execute gsutil rsync from the on-premises servers.

b)

Use Dataflow and write the data to Cloud Storage.

c)

Write a job template in Dataproc to perform the data transfer.

d)

Install an FTP server on a Compute Engine VM to receive the files and move them to Cloud Storage.

320.

You have a query that filters a BigQuery table using a WHERE clause on timestamp and ID columns. By using bq query dry_run you learn that the query triggers a full scan of the table, even though the filter on timestamp and ID select a tiny fraction of the overall data. You want to reduce the amount of data scanned by BigQuery with minimal changes to existing SQL queries. What should you do?

a)

Create a separate table for each ID.

b)

Use the LIMIT keyword to reduce the number of rows returned.

c)

Recreate the table with a partitioning column and clustering column.

d)

Use the bq query --maximum_bytes_billed flag to restrict the number of bytes billed.

321.

You have a requirement to insert minute-resolution data from 50,000 sensors into a BigQuery table. You expect significant growth in data volume and need the data to be available within 1 minute of ingestion for real-time analysis of aggregated trends. What should you do?

a)

Use bq load to load a batch of sensor data every 60 seconds.

b)

Use a Cloud Dataflow pipeline to stream data into the BigQuery table.

c)

Use the INSERT statement to insert a batch of data every 60 seconds.

d)

Use the MERGE statement to apply updates in batch every 60 seconds.