Font size
WorksheetsGoogle Professional Data Engineer - All Questions
Total questions: 321
Worksheet time: 3hrs 51mins
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?
Threading
Serialization
Dropout Methods
Dimensionality Reduction
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?
Continuously retrain the model on just the new data.
Continuously retrain the model on a combination of existing data and the new data.
Train on the existing data while using the new data as your test set.
Train on the new data while using the existing data as your test set.
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?
Add capacity (memory and disk space) to the database server by the order of 200.
Shard the tables into smaller ones based on date ranges, and only generate reports with prespecified date ranges.
Normalize the master patient-record table into the patient table and the visits table, and create other necessary tables to avoid self-join.
Partition the table into smaller tables, with one for each clinic. Run queries against the smaller table pairs, and use unions for consolidated reports.
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?
Disable caching by editing the report settings.
Disable caching in BigQuery by editing table details.
Refresh your browser tab showing the visualizations.
Clear your browser history for the past hour then reload the tab showing the virtualizations.
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?
Use federated data sources, and check data in the SQL query.
Enable BigQuery monitoring in Google Stackdriver and create an alert.
Import the data into BigQuery using the gcloud CLI and set max_bad_records to 0.
Run a Google Cloud Dataflow batch pipeline to import the data into BigQuery, and push errors to another dead-letter table for analysis.
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?
Issue a command to restart the database servers.
Retry the query with exponential backoff, up to a cap of 15 minutes.
Retry the query every second until it comes back online to minimize staleness of data.
Reduce the query frequency to once every hour until the database comes back online.
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?
Linear regression
Logistic classification
Recurrent neural network
Feedforward neural network
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?
Include ORDER BY DESK on timestamp column and LIMIT to 1.
Use GROUP BY on the unique ID column and timestamp column and SUM on the values.
Use the LAG window function with PARTITION by unique ID along with WHERE LAG IS NOT NULL.
Use the ROW_NUMBER window function with PARTITION by unique ID along with WHERE row equals 1.
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?
'bigquery-public-data.noaa_gsod.gsod'
bigquery-public-data.noaa_gsod.gsod*
'bigquery-public-data.noaa_gsod.gsod'*
'bigquery-public-data.noaa_gsod.gsod*`
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.)
Use Google Stackdriver Audit Logging to determine policy violations.
Restrict access to tables by role.
Ensure that the data is encrypted at all times.
Restrict BigQuery API access to approved users.
Segregate data across multiple tables or databases.
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?
Create a materialized view based on the table, and query that view.
Enable caching of the queried data so that subsequent queries are faster.
Create a scheduled query, and run it a few minutes before the report has to be created.
Reserve a larger number of slots in advance so that you have maximum compute power to execute the query.
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?
Retrain the model with data from the first 30 days of the lockdown.
Monitor data until usage patterns normalize, and then retrain the model.
Retrain the model with data from the last 30 days. After one year, return to the older model.
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.
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?
Ask the developer for their laptop's IP address, and add it to the authorized networks list.
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.
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.
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.
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?
Create interleaved tables, and store states under the countries.
Denormalize the data, and have a row for each state with its corresponding country.
Retain the existing architecture, but use short, two-letter codes for the countries and states.
Combine the countries in a single cell's text, for example "country:state1,state2, …" and when required, split the data.
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?
Migrate to BigQuery.
Migrate to Cloud Spanner.
Migrate to a Cloud SQL for PostgreSQL instance.
Migrate to bare metal machines with PostgreSQL installed.
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?
Construct the key as user-id#device-id#activity-id#timestamp.
Construct the key as timestamp#user-id#device-id#activity-id.
Construct the key as timestamp#device-id#activity-id#user-id.
Construct the key as user-id#timestamp#device-id#activity-id.
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?
Set a customized project-level or user-level daily quota to acceptable values.
Reduce the data in the BigQuery table so that the analysts query less data, and then archive the remaining data.
Train the analysts to use the query validator or --dry_run to estimate costs so that the analysts can self-regulate usage.
Export the BigQuery daily costs, and visualize the data on Looker on a per-analyst basis so that the analysts can self-regulate usage.
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?
Use Key Visualizer to analyze performance
Use Cloud Trace to identify the performance issue.
Add logging statements into the code to see which inserts cause the delay.
Add more nodes to the cluster to see if that resolves the performance issue.
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?
As early as possible every day, use Cloud VPN to transfer the existing data over the internet.
Use a Transfer Appliance to move the existing data to Google Cloud. Use Cloud VPN to transfer data daily.
Use a Transfer Appliance to move the existing data to Google Cloud.. Use VPC Network Peering to transfer data daily.
Use a Transfer Appliance to move the existing data to Google Cloud. Set up a Dedicated or Partner Interconnect for daily transfers.
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?
Set a graceful decommissioning timeout greater than 45 minutes.
Rewrite the processing in Cloud Data Fusion, and run the job automatically.
Rewrite the processing in Dataflow, and use stream processing of the same data.
Increase the number of vCPUs on each worker node so that the processing finishes sooner.
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?
Migrate the database to Bigtable.
Migrate the database to Cloud Spanner.
Install SQL Server on a Compute Engine VM.
Migrate the database to SQL Server in Cloud SQL.
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?
Run the query in BigQuery, and give the finance team access to the results view, which can be analyzed.
Run the query in BigQuery, and give the finance team access to the data visualizations in Google Data Studio.
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.
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.
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?
Store the data in BigQuery, and run delete queries on erroneous and duplicate data.
Use Dataflow to subscribe to Pub/Sub, process the data, and store the data in BigQuery.
Use Kubernetes to create a microservices application that can remove duplicates and erroneous data. Then insert the data into BigQuery.
Create an application on Compute Engine with Managed Instance Groups that can remove duplicates and erroneous data. Then insert the data into BigQuery.
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?
Use hopping windows in Dataflow.
Use session windows in Dataflow.
Use tumbling windows in Dataflow.
Use Dataflow SQL, and compute averages grouped by time.
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?
Use Bigtable.
Use Firestore.
Use Cloud SQL.
Use Memorystore.
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?
Use Dataproc to run Hadoop and Spark jobs. Move the data to Cloud Storage.
Use Dataflow to recreate the jobs in a serverless approach. Move the data to Cloud Storage.
Use Dataproc to run Hadoop and Spark jobs. Retain the data on a Compute Engine VM with an attached persistent disk.
Use Dataflow to recreate the jobs in a serverless approach. Retain the data on a Compute Engine VM with an attached persistent disk.
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?
Reduce the amount of data to improve the model.
Cross-validate the data, and re-run the model building process.
Create feature crosses that will add new columns to increase the data.
Duplicate the data twice to increase the data, and re-run the model building process.
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?
Remove all the tables that contain sensitive data.
Use libraries like SciPy to build the ML models on your local computer.
Remove the sensitive data by using the Cloud Data Loss Prevention (DLP) API.
Identify the rows that contain sensitive data, and apply SQL queries to remove only those rows.
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?
Use Kafka with pull mode.
Use Pub/Sub with pull mode.
Use Pub/Sub with push mode.
Run Cloud Scheduler at fixed intervals.
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?
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.
Ship the data into BigQuery. Use the BigQuery console to query the dataset and display device outlier data based on your business requirements.
Ship the data into Cloud Bigtable. Use the Cloud Bigtable cbt tool to display device outlier data based on your business requirements.
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.
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?
Use BigQuery for storage. Use Dataflow to run the transformations.
Use BigQuery for storage. Use Dataproc to run the transformations.
Use Cloud Storage for storage. Use Dataflow to run the transformations.
Use Cloud Storage for storage. Use Dataproc to run the transformations.
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?
The CSV data loaded in BigQuery is not flagged as CSV.
The CSV data had invalid rows that were skipped on import.
The CSV data has not gone through an ETL phase before loading into BigQuery.
The CSV data loaded in BigQuery is not using BigQuery’s default encoding.
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?
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.
Inspect the "messageId" of each message. Make sure that any messages whose "messageId" values match corresponding rows in the BigQuery table are discarded.
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".
Inspect the "publishTime" of each message. Make sure that messages whose "publishTime" values match rows in the BigQuery table are discarded.
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?
Use BigQuery for storage. Provide format files for data load. Update the format files as needed.
Use BigQuery for storage. Select "Automatically detect" in the Schema section.
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.
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.
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?
Create a pipeline and use ParDo transform.
Create a pipeline that groups the data into a PCollection and uses the Combine transform.
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.
Create a pipeline that groups data using a PCollection and then uses Bigtable and BigQueryIO transforms.
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?
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.
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.
Add the developers and finance managers to the Viewer role for the Project.
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.
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?
Modify the monitoring agent to write protobuf messages directly to BigTable.
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.
Modify the monitoring agent to write protobuf messages to HBase deployed on Compute Engine VM Instances
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.
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?
Use a row key of the form <timestamp>.
Use a row key of the form <sensorid>.
Use a row key of the form <timestamp>#<sensorid>.
Use a row key of the form <sensorid>#<timestamp>.
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?
Use Cloud Spanner for storage. Monitor CPU utilization and increase node count if more than 70% utilized for your time span.
Use Cloud Spanner for storage. Monitor storage usage and increase node count if more than 70% utilized.
Use Cloud Bigtable for storage. Monitor data stored and increase node count if more than 70% utilized.
Use Cloud Bigtable for storage. Monitor CPU utilization and increase node count if more than 70% utilized for your time span.
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?
Install Google Storage gsutil tool on servers and copy the data from HDFS to Google Storage.
Use Cloud Data Transfer Service to migrate the data to Google Storage.
Import the data from HDFS to BigQuery. Then, export the data to Google Storage in AVRO format.
Use Transfer Appliance Service to migrate the data to Google Storage.
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?
Cloud Functions
Compute Engine
Kubernetes Engine
Cloud Scheduler
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?
Create a Google Cloud Dataflow job to process the data.
Create a Google Cloud Dataproc cluster that uses persistent disks for HDFS.
Create a Hadoop cluster on Google Compute Engine that uses persistent disks.
Create a Cloud Dataproc cluster that uses the Google Cloud Storage connector.
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?
Increase the size of the dataset by collecting additional data.
Train a linear regression to predict a credit default risk score
Remove the bias from the data and collect applications that have been declined loans.
Match loan applicants with their social profiles to enable feature engineering.
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?
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.
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.
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.
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.
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?
Increase the CPU size on your server.
Increase the size of the Google Persistent Disk on your server.
Increase your network bandwidth from your datacenter to GCP.
Increase your network bandwidth from Compute Engine to Cloud Storage.
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?
PigLatin using Pig
HiveQL using Hive
Java using MapReduce
Python using MapReduce
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?
Use Cloud SQL for storage. Add secondary indexes to support query patterns.
Use Cloud SQL for storage. Use Cloud Dataflow to transform data to support query patterns.
Use Cloud Spanner for storage. Add secondary indexes to support query patterns.
Use Cloud Spanner for storage. Use Cloud Dataflow to transform data to support query patterns.
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?
Apache Kafka
Cloud Storage
Cloud Pub/Sub
Firebase Cloud Messaging
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?
Create a Cloud SQL instance in one zone, and create a failover replica in another zone within the same region.
Create a Cloud SQL instance in one zone, and create a read replica in another zone within the same region.
Create a Cloud SQL instance in one zone, and configure an external read replica in a zone in a different region.
Create a Cloud SQL instance in a region, and configure automatic backup to a Cloud Storage bucket in the same region.
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?
Use Transfer Appliance to copy the data to Cloud Storage
Use gsutil cp "J to compress the content being uploaded to Cloud Storage
Create a private URL for the historical data, and then use Storage Transfer Service to copy the data to Cloud Storage
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
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?
Implement BigQuery with no region selected for storage or processing.
Implement Cloud Spanner with the leader in North America and read-only replicas in Asia and Europe.
Implement Cloud SQL for PostgreSQL with the master in North America and read replicas in Asia and Europe.
Implement Bigtable with the primary cluster in North America and secondary clusters in Asia and Europe.
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?
Create a Cloud Dataproc cluster with high availability. Store the data in HDFS, and peform analysis as needed.
Store the data in BigQuery. Access the data using the BigQuery Connector on Cloud Dataproc and Compute Engine.
Store the data in a regional Cloud Storage bucket. Access the bucket directly using Cloud Dataproc, BigQuery, and Compute Engine.
Store the data in a multi-regional Cloud Storage bucket. Access the data directly using Cloud Dataproc, BigQuery, and Compute Engine.
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?
App Engine
Cloud Function
Dataflow
Cloud Composer
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?
Use event’s timestamp as row key.
Use combination of sensor ID with timestamp as sensorID-timestamp.
Use combination of sensor ID with timestamp as timestamp-sensorID.
Use sensor ID as row key.
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?
Cloud Spanner
BigQuery
BigTable
Datastore
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?
Cloud Speech-to-Text.
Cloud Natural Language.
Machine Learning Engine.
AutoML Vision API.
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)
workerCount
parameterServerCount
masterCount
workerMemory
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?
Cloud Function
Compute Engine
Cloud Scheduler
Kubernetes Engine
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)
Increase feature parameters
Increase regularization
Decrease feature parameters
Decrease regularization
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?
Utilize Cloud Functions to trigger workflows based on predefined schedules and dependencies.
Implement directed acyclic graphs (DAGs) in Cloud Composer to define workflow dependencies and schedule job execution.
Use Cloud Scheduler to define and manage job schedules, and then trigger workflow execution in Cloud Composer.
Leverage Cloud Tasks to create and manage task queues for scheduling and orchestrating data processing jobs in Cloud Composer.
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?
Redefine the schema by evenly distributing reads and writes across the row space of the table.
The performance issue should be resolved over time as the site of the BigDate cluster is increased.
Redesign the schema to use a single row key to identify values that need to be updated frequently in the cluster.
Redesign the schema to use row keys based on numeric IDs that increase sequentially per user viewing the offers.
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?
Check the dashboard application to see if it is not displaying correctly.
Run a fixed dataset through the Cloud Dataflow pipeline and analyze the output.
Use Google Stackdriver Monitoring on Cloud Pub/Sub to find the missing messages.
Switch Cloud Dataflow to pull messages from Cloud Pub/Sub instead of Cloud Pub/Sub pushing messages to Cloud Dataflow.
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?
Rewrite the job in Pig.
Rewrite the job in Apache Spark.
Increase the size of the Hadoop cluster.
Decrease the size of the Hadoop cluster but also rewrite the job in Hive.
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.)
Introduce data compression for each file to increase the rate file of file transfer.
Contact your internet service provider (ISP) to increase your maximum bandwidth to at least 100 Mbps.
Redesign the data ingestion process to use gsutil tool to send the CSV files to a storage bucket in parallel.
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.
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.
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?
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.
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.
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.
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.
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?
Use the TABLE_DATE_RANGE function
Use the WHERE_PARTITIONTIME pseudo column
Use WHERE date BETWEEN YYYY-MM-DD AND YYYY-MM-DD
Use SELECT IF.(date >= YYYY-MM-DD AND date <= YYYY-MM-DD
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?
Convert all daily log tables into date-partitioned tables
Convert the sharded tables into a single partitioned table
Enable query caching so you can cache data from previous months
Create separate views to cover each month, and query from these views
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?
Use Cloud Dataprep to find null values in sample source data. Convert all nulls to 'none' using a Cloud Dataproc job.
Use Cloud Dataprep to find null values in sample source data. Convert all nulls to 0 using a Cloud Dataprep job.
Use Cloud Dataflow to find null values in sample source data. Convert all nulls to 'none' using a Cloud Dataprep job.
Use Cloud Dataflow to find null values in sample source data. Convert all nulls to 0 using a custom script.
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?
Batch job, PubSubIO, side-inputs
Streaming job, PubSubIO, JdbcIO, side-outputs
Streaming job, PubSubIO, BigQueryIO, side-inputs
Streaming job, PubSubIO, BigQueryIO, side-outputs
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?
Set the BigQuery dataset to be regional. In the event of an emergency, use a point-in-time snapshot to recover the data.
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.
Set the BigQuery dataset to be multi-regional. In the event of an emergency, use a point-in-time snapshot to recover the data.
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.
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?
Use Cloud Dataflow with Beam to detect errors and perform transformations.
Use Cloud Dataprep with recipes to detect errors and perform transformations.
Use Cloud Dataproc with a Hadoop job to detect errors and perform transformations.
Use federated tables in BigQuery with queries to detect errors and perform transformations.
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?
Cloud Storage
Local SSD
Cloud SQL
Zonal persistent disks
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?
Create top level folders for each region, and assign policies at the folder level.
Implement a flat hierarchy, and assign policies to each project according to its region.
Create a new organization for all projects in Europe and assign policies in each organization that comply with regional laws.
Implement policies at the resource level that comply with regional laws.
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?
Implement Looker dashboards that provide views of the data that meet each teams’ requirements.
Implement a data mesh with Dataplex and have producers tag data when created.
Implement a data lake with Cloud Storage, and create buckets for each team such asretail, sales, marketing.
Implement a data warehouse by using BigQuery, and create datasets for each team such as retail, sales, marketing
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?
Use Cloud Audit Logs
Use Cloud Profiler
Use Cloud Monitoring
Use Cloud Logging
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?
Use the Cloud Data Loss Prevention (DLP) API to perform date shifting of any entries with credit card numbers, phone numbers, and email IDs.
Create a regular expression to identify and delete patterns that resemble credit card numbers, phone numbers, and email IDs.
Delete all columns with a title similar to "credit card," "phone," and "email."
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.
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?
Load the data into Dataprep, explore the data, and edit the transformations as needed.
Create a Dataproc job to perform the data fixes you need.
Create a Dataflow pipeline with the data fixes you need.
Load the data into Google Sheets, explore the data, and fix the data as needed.
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?
Store your keys on a supported external key management partner, and use Cloud External Key Manager (EKM) to get keys when required.
Store keys in Cloud Key Management Service (KMS), and reduce the number of days forautomatic key rotation.
Enable confidential computing for all your virtual machines.
Store your keys in Cloud Hardware Security Module (HSM), and retrieve keys from it when required.
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?
storage.objectViewer and bigquery.user
bigquery.dataOwner
bigquery.user and bigquery.dataViewer
bigquery.resourceViewer and bigquery.dataViewer
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?
Order a transfer appliance, export the data to it, and ship it to Google.
Zip and upload the data to Cloud Storage buckets by using the Google Cloud console.
Store the data in an HTTPS endpoint, and configure Storage Transfer Service to copy the data to Cloud Storage.
Upload the data to Cloud Storage by using gsutil.
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?
Store the data in a Cloud Storage bucket, and enable object versioning and delete any version older than 365 days.
Store the data in a Cloud Storage bucket, and specify a retention period.
Store the data in a Cloud Storage bucket, and set a lifecycle policy to delete the file after 365 days.
Store the data in a Cloud Storage bucket, enable object versioning, and delete any version greater than 365.
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?
Ensure that all PII data is removed from the collected data before storing it on Google Cloud.
Ensure that all stored data is monitored by Security Command Center.
Use Cloud Data Loss Prevention (Cloud DLP) to inspect and redact PII data.
Store all data in BigQuery and turn on column level access to protectsensitive data.
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?
Ensure that the access permissions are given strictly based on the person’s title and job role.
When a task is assigned, ensure that it gets assigned to a person with the minimum privileges.
Give just enough permissions to get the task done.
Ensure that the users are verified every time they request access, even if they were authenticated earlier.
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?
Store the data in Cloud Storage and create an extract, transform, and load (ETL) pipeline.
Make your BigQuery data warehouse public and ask the external sources to insert the data.
Create a public API to allow external applications to add the data to your warehouse.
Store the data in persistent disks and create an ETL pipeline.
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?
Cloud Storage
Cloud SQL
AlloyDB
Bigtable
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?
Copy the data from Cloud SQL to a new BigQuery table hourly
Copy the data from Cloud SQL and create a combined, normalized table hourly.
Use a federated query to get data from Cloud SQL.
Create a Dataflow pipeline to combine the BigQuery and Cloud SQL data when the Cloud SQL data changes
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?
Dataflow
Cloud Data Fusion
Dataproc
Cloud Composer
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?
Configure the job to run on Dataproc Serverless
Configure the job to run with Spot VMs.
Rewrite the job in Spark SQL.
Rewrite the job in Dataflow with SQL.
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?
Use Cloud Scheduler to run the jobs
Use Workflows to run the jobs
Run the jobs on Batch.
Use Cloud Run to run the jobs.
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?
Hopping windows (sliding windows in Apache Beam)
Session windows
Global window
Tumbling windows (fixed windows in Apache Beam)
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?
Pub/Sub, Dataflow, BigQuery
Pub/Sub, Dataprep, BigQuery
Cloud Storage, Dataflow, Cloud SQL
Cloud Storage, Dataprep, AlloyDB
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?
Cloud Tasks
Cloud Composer
Cloud Scheduler
Cloud Run
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?
Terraform
Compute Engine
Cloud Code
Cloud Build
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?
Use Cloud Spanner.
Use Cloud SQL.
Install a database of your choice on a Compute Engine VM.
Create a Cloud Storage bucket with a regional bucket.
You need to store data long term and use it to create quarterly reports.
What storage class should you choose?
Standard
Nearline
Coldline
Archive
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?
Retain the data on BigQuery with the same schema as the source.
Combine all the transactional database tables into a single table using outer joins.
Redesign the schema to normalize the data by removing all redundancies
Redesign the schema to denormalize the data with nested and repeated data
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?
Create an ingestion-time partitioned table with daily partitioning type.
Create an ingestion-time partitioned table with yearly partitioning type.
Create an integer-range partitioned table.
Create a time-unit column-partitioned table with yearly partitioning type.
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?
Create a dataset with the data that is frequently queried.
Create a view of the frequently queried data.
Export the frequently queried data into a new table.
Export the frequently queried data into Cloud SQL.
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?
Create a bucket on Cloud Storage with object versioning configured.
Create a bucket on Cloud Storage with Autoclass configured
Configure a data retention policy on Cloud Storage.
Configure a lifecycle policy on Cloud Storage.
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?
The user has no access if IAM denies the permission
The user only has access if both IAM and ACLs grant a permission.
The user has access if either IAM or ACLs grant a permission
The user has no access if either IAM or ACLs deny a permission
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?
Review the Admin Activity audit logs.
Enable and then review the Data Access audit logs.
Route the Admin Activity logs to a BigQuery sink and analyze the logs with SQL queries.
Change the permissions on the bucket to only trusted employees.
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?
Create tags for data entries in Cloud Catalog
Rename BigQuery columns with more descriptive names
Export the data to Cloud Storage with descriptive file names
Add a description column corresponding to each data column.
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?
Create a lake for Cloud Storage data and a zone for BigQuery data.
Create a lake for BigQuery data and a zone for Cloud Storage data.
Create a lake for unprocessed data and assets for processed data
Create a raw zone for the unprocessed data and a curated zone for the processed data.
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?
Create models in Looker
Configure Connected Sheets.
Configure Tableau
Configure Looker Studio
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?
Use nested and repeated fields.
Retain the data in normalized form always
Copy the primary tables and use federated queries for secondary tables.
Copy the normalized data into partitions
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?
Views
Materialized views
Federated queries
Partitions
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?
Use an aggregate function.
Use a UDF (user-defined function)
Use BigQuery ML.
Use a window function with an OVER clause
You need to optimize the performance of queries in BigQuery. Your tables are not partitioned or clustered.
What optimization technique can you use?
Batch your updates and inserts.
Use the LIMIT clause to reduce the data read.
Filter data as late as possible.
Perform self-joins on data
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?
Create a new dataset with the column's data
Create a new table with the column's data.
Use policy tags.
Use Identity and Access Management (IAM) permissions
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?
Export the data to zip files and share it through Cloud Storage
Host the data on Analytics Hub.
Export the data to persistent disks and share it through an FTP endpoint.
Host the data on Cloud SQL
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?
Looker Studio
Connected Sheets
D3.js library
Looker
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?
Train the model with more of similar data
Perform L2 regularization.
Perform feature engineering, and use domain knowledge to enhance the column data.
. Train the model with the same data, but use more epochs.
You used Dataplex to create lakes and zones for your business data. However, some files are not being discovered.
What could be the issue?
You have an exclude pattern that matches the files
You have scheduled discovery to run every hour
The files are in ORC format
The files are in Parquet format.
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?
Reuse the same cluster and run each job in sequence
Reuse the same cluster to run all jobs in parallel.
Use ephemeral clusters.
Use cluster autoscaling.
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?
Write each task to be responsible for one operation
Use current time with the now() function for computation
Update data with INSERT statements during the task run
Combine multiple functionalities in a single task execution
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?
Use on-demand pricing.
Use Flex Slots
Use BigQuery Enterprise edition with a one-year commitment
Use BigQuery Enterprise Plus edition with a three-year commitment.
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?
Run all queries in interactive mode
Create a yearly reservation of BigQuery slots
Run the report generation queries in batch mode.
Create a view to run the queries
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?
Review the Dataflow logs regularly
Set up alerts with Cloud Functions code that reviews the audit logs regularly.
Review the Cloud Monitoring dashboard regularly
Set up alerts on Cloud Monitoring based on system lag
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?
Disable Dataflow shuffle
Increase the data with the hot key
Ensure that your data is evenly distributed
Add more compute instances for processing
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?
When you want to scale on-cluster Hadoop Distributed File System (HDFS).
When you want to scale out single-job clusters
When you want to down-scale idle clusters to minimum size.
When there are different size workloads on the cluster.
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?
Take Dataflow snapshots periodically.
Create Dataflow jobs from templates.
Enable vertical autoscaling.
Enable Dataflow shuffle.
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?
Configure replication.
Configure high availability
Configure backups.
Configure backups and increase the number of backups.
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?
Re-read the input data and create separate outputs for valid and erroneous data.
Read the data once, and split it into two pipelines, one to output valid data and another to output erroneous data.
Check for the erroneous data in the logs.
Create a side output for the erroneous data.
Which of the following statements on Cloud Storage are true? (pick 3)
Data in Cloud Storage is not encrypted
Cloud Storage simulates a file system
Cloud Storage allows you to set retention policies on all objects in a bucket
Cloud Storage implements both IAM policy and Access Control Lists
Which statement best describes a data lake?
Storage optimized for high-throughput writes
The place where you capture every aspect of your business operations. Data is stored in its natural, raw format.
Data storage intended for analytics.
Storage for current/historical data intended for reporting.
Which of the following statements on BigQuery is incorrect?
Data on BigQuery is physically stored in a redundant way separate from the compute cluster
The number of slots allotted to a query is independent of query complexity
A BigQuery slot is a combination of CPU, memory, and networking resources
Data is run length-encoded and dictionary-encoded
True or False: ARRAYS can be a standalone field type or part of a STRUCTS field in BigQuery?
True
False
Which of the following is the ideal use case for Extract and Load (EL)
When the data loading has to happen continuously
When you want to integrate with continuous integration / continuous delivery (CI/CD) systems and perform unit testing on all components.
Scheduled periodic loads of log files (e.g. once a day)
When the raw data needs to be quality-controlled, transformed, or enriched before being loaded into BigQuery
Which of the following statements are true about Dataproc? (Select all 2 correct answers)
Streamlined API for Spark and Hadoop programming
Helps you create job-specific clusters without HDFS
Lets you run Spark and Hadoop clusters with minimal administration
Dataproc provides the ability for Spark programs to separate compute and storage by:
Pre-copying data from Cloud Storage to persistent disk on cluster startup
Reading and writing data directly from/to Cloud Storage
Setting individual zones for compute and storage
Mirroring data on both Cloud Storage and HDFS
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
B
C
A
A
B
C
C
B
A
C
A
B
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
C
B
A
B
C
A
B
A
C
A
C
B
Cloud Data Fusion is the ideal solution when you need
low-latency and high throughput processing of streaming data
to reuse spark pipelines
a data warehousing solution
to build visual pipelines
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?
Directly load the data using Extract and Load approach ( EL).
Do transformation using Extract, Load & Transform (ELT)
Split the data into smaller files and then move to Google Cloud.
Implement Extract, Transform and Load (ETL) pipelines using tools like Dataflow.
A company wants to improve productivity and decides to programmatically schedule and monitor workflows. What tool can you use to automate your workflows?
Data Fusion
Apache Beam and Dataflow
Cloud Composer
Dataproc
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?
Memorystore
Cloud Spanner
Data Fusion
BigQuery
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?
Bigtable
Dataflow
Cloud Storage
Cloud SQL
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?
Identify what type of data is required to build ML models
Process and prepare existing data to enable feature engineering.
Finalize the type of machine learning model to use.
Keep on improving the machine learning model after initial deployment.
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?
Analytics Hub
Data Catalog
Cloud Storage
Data Loss Prevention (DLP)
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?
Cloud Composer
Data Catalog
Data Loss Prevention (DLP)
Cloud Monitoring
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?
Use BigQuery’s on-demand pricing model.
Use IAM service to block access to BigQuery till the team figures out how much querying they are going to do.
Create a pool of resources using BigQuery Reservations.
Decide how much compute capacity you need and reserve it using capacity pricing.
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?
Manage server and cluster capacity and make sure that enough capacity exists to carry out the ETL jobs
Build ETL pipelines to clean and transform data that is then stored in a data warehouse.
Consolidate disparate datasets and data formats into a data lake.
Optimize queries for performance
Which of the following statements are true? (Choose TWO)
Cloud SQL is optimized for high-throughput writes
BigQuery is optimized for high-read data
Cloud SQL is optimized for high-read data
BigQuery is a row-based storage
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.
SQL support to query in-process results
Ability to flexibly reason about time
Controls to ensure correctness
Global message bus to buffer messages
When performing batch and streaming data processing, which Google product performs data aggregation and transformation?
Pub/Sub
Sheets
Dataflow
Bigtable
Which of the following about Pub/Sub topics and subscriptions are true? (Select all 2 correct responses)
Each topic MUST have at least 1 subscription
Each topic will deliver ALL messages for a topic for each subscriber
1 or more subscriber(s) can request from the same subscription
1 or more publisher(s) can write to the same topic
Which of the following about Pub/Sub is NOT true?
Pub/Sub connects applications and services through a messaging infrastructure
Pub/Sub simplifies systems by removing the need for every component to speak to every component
Pub/Sub stores your messages indefinitely until you request it
Which of the following delivery methods is ideal for subscribers needing close to real time performance?
Push Delivery
Pull Delivery
True or False? Pub/Sub guarantees that messages delivered are in the order they were received
True
False
What element is applied by Pub/Sub to messages that allows Dataflow to perform aggregation of different time windows?
Message Groups
Watermarks
Triggers
Timestamps
Which of the following is true for Data Studio?
Data Studio is part of Dataflow and requires a streaming pipeline for data ingest.
Data Studio supports data ingest through multiple connectors
Data Studio is part of BigQuery and requires data to already exist in tables.
Data Studio can only ingest files stored in Cloud Storage buckets.
True or False? Data Studio can issue queries to BigQuery
True
False
Which of the following can help improve performance of Bigtable?
(Select all 3 correct responses)
Add more nodes
Use HDD instead of SDD
Change schema to minimize data skew
Clients and Bigtable are in same zone
True or False?
Bigtable learns access patterns and attempts to distribute reads and storage across nodes evenly
True
False
Which of the following are true about Bigtable?
(Mark all 3 correct responses)
Offers very low-latency in the order of milliseconds
Ideal for >1TB data
Great for time-series data
Support for SQL
Which of the following practices help optimize BigQuery queries? (pick three)
Avoid using unnecessary columns
Put the largest table on the left
Use COUNT(DISTINCT) instead of APPROX_COUNT_DISTINCT
Filter early and often
What is the primary impact of ML?
It allows business operations to scale
It allows businesses to be more accurate in their predictions
Cost savings
Provides insights that were not previously possible
What is the difference between AI and ML?
AI is ML but without mathematics
AI is a discipline while ML is a toolset
AI and ML are the same
AI concentrates on algorithms while ML is about theory
True or False? Most business data is unstructured data, and mainly text.
True
False
Google Cloud's pretrained model APIs use:
Your models and your data
Google's models and Google's data
Your models and Google's data
Google's models and your data
True or False? Notebooks contain a magic function to execute BigQuery
True
False
Select the statement that does not apply to Notebooks.
Notebook instances are standard Compute Engine instances that live in your projects
You can easily change hardware including adding and removing GPUs
It's up to you to install the latest ML libraries on the notebooks
They use the latest open-source version of JupyterLab
AI Hub has templates for which of the following?
All other answers are correct
Trained models
Kubeflow pipelines and components
Jupyter notebooks
Which technology was developed as a solution to run Kubernetes clusters and pods behind the scenes to support deploying pipelines?
Kubeflow
Cloud Composer
Cloud Orchestrator
Vertex Pipelines
True or False? You can train and evaluate machine learning models directly in BigQuery.
True
False
BigQuery ML has support for which of the following modeling tasks: (pick three)
Computer vision
Classification
Clustering
Regression
AutoML makes use of which of the following:
Your models and your data
Your models and Google's data
Google's models and Google's data
Google's models and your data
Which of the following are valid techniques for improving AutoML Vision and AutoML Natural Language models? (pick three)
Ensure consistent labeling
Increase the diversity and complexity of data
Increase the number of labels
Increase the amount of training data
What is the Beam Portability Framework? (Pick 2)
A hermetic worker environment
A set of cross-language transforms
A language-agnostic way to represent pipelines
A set of protocols for executing pipelines
Which of the following are benefits of Beam Portability (Select ALL that apply) ?
Implement new Beam transforms using a language of choice and utilize these transforms from other languages
Cross-language transforms
Running pipelines authored in any SDK on any runner
Which of the following are TRUE about Flexible Resource Scheduling (select ALL that apply) :
FlexRS helps to reduce batch processing costs by using advanced scheduling techniques
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.
FlexRS leverages a mix of preemptible and normal VMs
FlexRS is most suitable for workloads that are time-critical
The Dataflow Shuffle service is available only for batch jobs.
True
False
What are the benefits of Dataflow Streaming Engine? Select ALL that apply:
Lower resource and quota consumption
More responsive autoscaling for incoming data variations
Reduced consumption of worker CPU, memory, and storage
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)
Dataflow Admin
Dataflow Developer
Dataflow Viewer
Composer Worker
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?
103 TB
500 TB
140 TB
102 TB
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?
The job will fail to launch.
520/575
500/575
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/ \
--region northamerica-northeast1 --worker_region google-world1
--region google-world1 --worker_zone google-world1
--region northamerica-northeast1
When a PTransform receives a PCollection...
it creates a new PCollection as output, it does not change the incoming PCollection.
it modifies the PCollection to apply the required transformations.
you may select whether the PTransform will modify the PCollection or not.
How many times will be the process/processElement method of a DoFn called?
This is a runner specific value. It depends on the runner.
As many times as data bundles are in the PCollection.
As many times as elements are in the PCollection.
What is CoGroupByKey used for?
To join data in different PCollections that share a common key.
To join data in different PCollections that share a common key and a common value type.
To group by a key when there are more than two key groups (with 2 key groups, you use GroupByKey)
What are the types of windows that you can use with Beam?
Fixed, sliding, and session windows.
It depends on the runner, because each runner has different types of windows.
Open and closed windows.
How many triggers can a window have?
As many as we set.
Exactly one.
One or none.
How does Apache Beam decide that a message is late?
A message is late if its timestamp is before the clock of the worker where it is processed.
A message is late if its timestamp is before the watermark.
This is a runner-specific value. It depends on the runner.
What can you do if two messages arrive at your pipeline out of order?
You can recover the order of the messages with a window using processing time.
You can recover the order of the messages with a window using event time.
You cannot do anything to recover the order of the messages.
What is the simplest form of a sink?
PCollection
PSink
PTransform
Built-in primitive function
What kinds of data are a bounded and an unbounded source respectively associated with?
Time-series data and graph data.
Small data and Big Data.
Structured data and unstructured data.
Batch data and streaming data.
Which of the following element types can be encoded as a Schema from a PCollection (Select ALL that apply)?
Single list of JSON objects
Byte String objects
Protobuf objects
Avro objects
Is it possible to mix elements in Schema PCollections inside a single Beam pipeline (pick two)?
Yes in all scenarios
Not possible within the same PCollection
Not at all
Yes, but only across different PCollections
With ParDo, you...
can do aggregations using state variables in a DoFn.
cannot do any type of aggregations.
What is the use case of timers in the State & Timers API of Beam?
You can use timers instead of state variables to do timely aggregations.
Timers are used in combination with state variables, to ensure that the state is cleared at regular intervals of time.
Choose all the applicable options: If your pipelines interact with external systems (pick two)
Testing external systems against peak volume is not important.
Not provisioning external systems appropriately may impact the performance of your pipeline due to back pressure..
External System doesn't impact performance of a Dataflow pipeline as they are run outside the Dataflow environment.
It is important to provision those external systems appropriately (i.e., to handle peak volumes).
What is the recommended way to convert JSON objects to POJOs?
Use JsonToPOJO
Use JsonToRow
Which functions of the DoFn lifecycle are recommended to be used for micro-batching?
setup and teardown
startBundle and finishBundle
init and destroy
Which two of the following interfaces support Calcite SQL? (pick two)
Dataflow template
Dataflow SQL
Beam SQL client
What operations can you do in standard Pandas DataFrames that are not possible in Beam DataFrames?
Shift the DataFrame
Write the DataFrame columns as rows
Compute two different aggregates based on the input data
Which one of these statements is true?
When using the interactive runner, you have to create a logging DoFn to see the values of an intermittent PCollection.
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.
You can use the option include_window_info from ib.show to get extra metadata about each element in a Pcollection.
Which two of the following statements are true about using the interactive runner? (pick two)
You can limit the number of elements the interactive runner records from an unbounded source by setting the recording_element_count option
You can limit the amount of data the interactive runner records from an unbounded source by setting recording_size_limit.
You can limit the amount of time the interactive runner records data from an unbounded source by using the recording_duration option.
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?
Initial start point at 0 days, with an upward sloping line to 3 days and beyond.
Initial start point at 3 days, with a flat horizontal line.
Initial start point at 3 days, with a downward sloping line.
Initial start point at 3 days, with an upward sloping line.
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)
job/per_stage_data_watermark_age
job/per_stage_data_watermark_age
job/data_watermark_age
job/is_failed
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?
Switch Beam code from Java to Python
Increase the number of machines used
Increase Persistent Disk size
Use a larger machine size
Select all that apply - the BigQuery Jobs tab shows jobs from: (pick two)
Streaming Extracts
Streaming Inserts
Load jobs
Query jobs
Which two of the following statements are true for failures while building the pipeline? (pick two)
The failure is reproducible with the Direct Runner.
The failure can be caused by incorrect input/output specifications.
The error message is visible in Dataflow
The failure can be caused by insufficient permissions granted to the controller service account.
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)
Check the Dataflow worker logs for warnings or errors related to work item failures.
Log the failing elements and check the output using Cloud Logging.
Monitor the Data Freshness and System Latency graphs to understand the job performance.
Investigate the wall time of the individual steps in the job.
Select options we can use to mitigate data skew in Dataflow pipelines?
Add composite windows and triggers.
Use Dataflow shuffle for batch pipelines and Dataflow streaming option for streaming pipelines.
Use api like “withFanout” or “withHotKeyFanout”
Add more worker machines.
When we should avoid fusion in a Dataflow pipeline?
Only in specific scenarios, like if your pipeline involves massive fanouts.
Always
Never
Which one of the following is not a consideration for designing performant pipelines in Dataflow?
SDK used for developing the pipeline.
Logging
Coders and decoders used in pipeline.
Filtering data early.
Using anonymous subclasses in your ParDos is an anti-pattern because:
ParDos are required to contain a concrete subclass of a DoFn
Anonymous subclasses are bad for the performance of your pipeline.
Anonymous subclasses are harder to test than concrete subclasses.
When draining a streaming pipeline, what should you expect to happen?
Both processing and ingestion stop immediately.
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.
Ingestion stops immediately, windows are closed, and processing of in flight elements will be allowed to complete.
Any open windows will wait for new data so that aggregations are completed. Then the pipeline will be canceled.
How long is the retention for Dataflow Snapshots?
Indefinitely
Seven days
Three days
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?
$ 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
$ 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
$ 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/ \
Into which of the following categories are the Google-provided templates classified?
Batch and streaming only
Batch and utility only
Batch, streaming, and utility
Streaming and utilityonly
Which of the following is a challenge associated with classic templates?
Increased latency while launching templates.
Lack of support for runtime parameters
Lack of support for Dynamic DAG (Directed Acyclic Graph).
How are Flex Templates packaged?
Docker image
ProtoBuf binary
Jar/Pex
Tar file
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?
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
Keep the data on Cloud Storage, Use federated queries for data queries and transformations. Write the results into BigQuery
Ingest the data into BigQuery, run SQL queries for data transformations, and write the results into a new table
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
What Dataflow concept determines when a Window's contents should be output based on certain criteria being met?
Triggers
Sessions
Windows
OutputCriteria
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?
Use Cloud Storage for storage, Dataproc for transformations
Use Cloud Storage for storage, Dataflow for transformations
Use BigQuery for storage, Dataproc for transformations
Use BigQuery for storage, Dataflow for transformations
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?
Share the used notebooks during the model development phase that contains all the details already processed.
Use what-if analysis tool to understand the importance of data features and visualize the model across subsets of input data
Extract Model performance metrics from Cloud Logging already generated from previous runs during the development phase. Use Data studio for visualization.
Use weight-and-biases tool to understand the importance of data features and visualize the model across subsets of input data
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?
Use DataTransferService to load the data into BigQuery, Make Analysis via SQL
Export Data from Youtube channel analytics, use Cloud storage for storage and Dataflow for analysis
Export Data from Youtube channel analytics in CSV format, use Cloud Storage for storage then load it into BigQuery to make analysis via SQL
Use DataTransferService to load the data into Cloud Storage, then load it into BigQuery to make analysis via SQL
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?
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
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
Use Transfer Learning to fine-tune Bert model, deploy an Endpoint to Al Platform, run it monthly, and export the results to pubsub
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
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?
Use feature engineering to add features for eyes, noses, and mouths to the input data
Build a neural network with an input layer of pixels, a hidden layer, and an output layer with two categories
Use K-means Clustering to detect faces in the pixels
Use deep learning by creating a neural network with multiple hidden layers to automatically detect features of faces
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?
Use Cloud function to trigger the dataflow job once the parquet files are modified
Use Cloud Composer with file sensor operator to detect if file changed then trigger the dataflow job
Use Cloud scheduler to run dataflow job twice per day at fixed intervals
Use Window functions of Cloud Dataflow to handle late arrival data
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?
Linear regression
Logistic classification
Recurrent neural network
Feedforward neural network
What are 3 techniques you can use to reduce overfitting in a neural network? (Select 3 answers)
Add a dropout layer
Apply L1 regularization
Reduce the number of features
Apply zero-padding
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?
Include ORDER BY DESK on timestamp column and LIMIT to 1
Use GROUP BY on the unique ID column and timestamp column and SUM on the values
Use the LAG window function with PARTITION by unique ID along with WHERE LAG IS NOT NULL
Use the ROW_NUMBER window function with PARTITION by unique ID along with WHERE row equals 1
What is the HBase Shell for Cloud Bigtable?
The HBase shell is a command-line tool that performs only user account management functions to grant access to Cloud Bigtable instances
The HBase shell is a GUI based interface that performs administrative tasks, such as creating and deleting tables
The HBase shell is a hypervisor based shell that performs administrative tasks, such as creating and deleting new virtualized instances
The HBase shell is a command-line tool that performs administrative tasks, such as creating and deleting tables
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?
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
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
The gcloud composer environments update command is not anymore usable for Environments with private IPs, Use the Python SDK instead to update the environment
Ingress rules on firewall configuration are missing to allow the Traffic from the CI/CD machine as the source
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?
Use Dataflow to data ingestion and column renaming, Cloud composer to orchestrate the weekly job
Use BigQuery Operators inside and Airflow DAG to ingest and rename columns. Schedule the DAG on a weekly basis
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
Use Dataflow to ingest the data in a BigQuery staging table, Dataproc job for column renaming, and Cloud composer for orchestration
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?
Use a fixed-time window with a duration of 60 minutes
Use a sliding time window with a duration of 60 minutes
Use a session window with a gap time duration of 60 minutes
Use a global window with a time based trigger with a delay of 60 minutes
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?
Schedule the DAG at different timeframe to avoid the DAG failure
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
On the DAG default args, add retry_delay, set to Thour to avoid the dag failure
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
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.)
Load data into different partitions
Load data into a different dataset for each client
Put each client's BigQuery dataset into a different table
Restrict a client's dataset to approved users
Use the appropriate identity and access management (IAM) roles for each client's users.
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
OFFSET
IF_OFFSET
SAFE_OFFSET
NO_OFFSET
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?
Cloud SQL
BigQuery
Cloud Bigtable
Cloud Datastore
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.
Do not store less than 5 MB per column
Store datasets with similar schema in the same table
Use few large tables versus too many small tables
Design the row key in the form timestamp#id to improve performances
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.)
There are very few occurrences of mutations relative to normal samples.
There are roughly equal occurrences of both normal and mutated samples in the database
You expect future mutations to have different features from the mutated samples in the database
You expect future mutations to have similar features to the mutated samples in the database.
You already have labels for which samples are mutated and which are normal in the database.
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?
Cloud Spanner
BigQuery
BigTable
Cloud Storage
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?
Re-write the application to load accumulated data every 2 minutes.
Convert the streaming insert code to batch load for individual messages
Load the original message to Google Cloud SQL, and export the table every hour to BigQuery via streaming inserts.
Estimate the average latency for data availability after streaming inserts, and always run queries after waiting twice as long
When using Cloud Dataproc clusters, you can access the YARN web interface by configuring a browser to connect through a ____ proxy.
VPN
HTTPS
HTTP
SOCKS
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?
Use Google Stackdriver Audit Logs to review data access
Get the identity and access management IIAM) policy of each table
Use Stackdriver Monitoring to see the usage of BigQuery query slots
Use the Google Cloud Billing API to see what account the warehouse is being billed to
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?
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
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
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
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
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?
Create a Google Cloud Dataflow job to process the data
Create a Google Cloud Dataproc cluster that uses persistent disks for HDFS
Create a Hadoop cluster on Google Compute Engine that uses persistent disks
Create a Cloud Dataproc cluster that uses the Google Cloud Storage connector
Create a Hadoop cluster on Google Compute Engine that uses Local SSD disks
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?
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
Use Kube Flow to implement the production-level prediction pipeline, store results in BigQuery. Use Cloud function to send the scores to PubSub
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
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
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.)
Supervised learning to determine which transactions are most likely to be fraudulent.
Unsupervised learning to determine which transactions are most likely to be fraudulent.
Clustering to divide the transactions into N categories based on feature similarity
Supervised learning to predict the location of a transaction
Reinforcement learning to predict the location of a transaction
Which of these statements about BigQuery caching is true?
BigQuery caches query results for 48 hours
Query results are cached even if you specify a destination table.
There is no charge for a query that retrieves its results from cache.
By default, a query's results are not cached.
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?
Put the data into Google Cloud Storage
Use preemptible virtual machines (VMs) for the Cloud Dataproc cluster
Tune the Cloud Dataproc cluster so that there is just enough disk for all data
Migrate some of the cold data into Google Cloud Storage, and keep only the hot data in Persistent Disk
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?
Replace the current model with AutoML for image Classification
Troubleshoot the current model, check for any labeling issue on the training dataset and change the classes accordingly in the model code
Replace the current model with the Built-in Image Classifier on Al Platform
Replace the current model with a Tensorflow model for image
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?
The message body for the sensor event is too large
Your custom endpoint has an out-of-date SSL certificate
The Cloud Pub/Sub topic has too many messages published to it.
Your custom endpoint is not acknowledging messages within the acknowledgement deadline
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?
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
Load the ORC data in BigQuery native storage, perform the ad-hoc analysis. reuse the same queries for future use cases
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
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
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?
Assign global unique identifiers (GUID) to each data entry
Compute the hash value of each data entry, and compare it with all historical data
Store each data entry as the primary key in a separate database and apply an index
Maintain a database table to store the hash value and other metadata for each data entry.
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?
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?
Run a local version of Jupiter on the laptop
Grant the user access to Google Cloud Shell
Host a visualization tool on a VM on Google Compute Engine
Deploy Google Cloud Datalab to a virtual machine (VM) on Google Compute Engine
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?
Create Matrix factorization model using BigQueryML, Use ml.predict for inference
Use VertexAl Workbench to create a jupyter Notebook with GPU support, Use AutoKeras to create the model and the predictions.
Use AutoML via the console Ul to create the model and predictions from data in BigQuery
Create Matrix factorization model using BigQueryML, Use ml.recommend for inference
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?
Send the data to Google Cloud Datastore and then export to BigQuery
Send the data to Google Cloud Pub/Sub, stream Cloud Pub/Sub to Google Cloud Dataflow, and store the data in Google BigQuery
Send the data to Cloud Storage and then spin up an Apache Hadoop cluster as needed in Google Cloud Dataproc whenever analysis is required
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.
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)
Move to flat pricing
Read-only data you need to reduce the amount of processed data and used slots
Offload part of the data to Google Cloud Storage since storage costs are much less than Bigquery
Activate BigQuery cache on the project and organization level
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?
Delete the table CLICK_STREAM, and then recreate it such that the column DT is of the TIMESTAMP type. Reload the data
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
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.
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
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
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?
Use Kube Flow to implement the production-level segmentation pipeline, store results in BigQuery. Use Cloud Composer DAG to push scores to PubSub
Use Kube Flow to implement the production-level prediction pipeline, store results in BigQuery. Use Cloud function to send the scores to PubSub
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
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
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?
Make a call to the Stackdriver API to list all logs, and apply an advanced filter
In the Stackdriver logging admin interface, and enable a log sink export to BigQuery
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.
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
Which methods can be used to reduce the number of rows processed by BigQuery?
Putting data in partitions; using the LIMIT clause
Splitting tables into multiple tables; using the LIMIT clause
Splitting tables into multiple tables; putting data in partitions; using the LIMIT clause
Splitting tables into multiple tables; putting data in partitions
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?
Grant the consultant the Viewer role on the project
Grant the consultant the Cloud Dataflow Developer role on the project.
Create a service account and allow the consultant to log on with it
Create an anonymized sample of the data for the consultant to work with in a different project.
Which layer of a convolutional neural network is normally used to perform downsampling or dimensionality reduction?
Dropout layer
Pooling layer
Convolutional layer
Logits layer
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?
Eliminate features that are highly correlated to the output labels
Combine highly co-dependent features into one representative feature.
Instead of feeding in each feature individually, average their values in batches of 3.
Remove the features that have null values for more than 50% of the training records
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?
escape the alias rows using backticks
escape the alias rows using square brackets
rename the alias rows using AS statement
rows is reserved keyword in standard SQL, could not be used
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.
named (“ReadLogData”)
.from(“clouddataflow-readonly:samples.log_data”)
You want to improve the performance of this data read. What should you do?
Specify the TableReference object in the code
Use .fromQuery operation to read specific fields from the table
Use of both the Google BigQuery TableSchema and TableFieldSchema classes
Call a transform that returns TableRow objects, where each element in the PCollection represents a single row in the table
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?
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
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
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
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
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?
Store GeoJson in BigQuery and use standard SQL for analysis
Store GeoJson in Cloud Storage, Build dataflow job to process the analysis
Store GeoJson in CloudSQL and use standard SQL for analysis
Store GeoJson is Cloud Storage, Use Dataproc for analysis
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?
Add a node to the MySQL cluster and build an OLAP cube there
Use an ETL tool to load the data from MySQL into Google BigQuery
Connect an on-premises Apache Hadoop cluster to MySQL and perform ETL.
Mount the backups to Google Cloud SQL, and then process the data using Google Cloud Dataproc
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?
Set up an alerting policy on Cloud Logging for already exported logs there with the corresponding filters.
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.
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
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.
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?
Update the current pipeline and use the drain flag
Update the current pipeline and provide the transform mapping JSON object
Create a new pipeline that has the same Cloud Pub/Sub subscription and cancel the old pipeline.
Create a new pipeline that has a new Cloud Pub/Sub subscription and cancel the old pipeline.
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?
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
Create a Dataflow SQL job to count active gamers from the pubsub stream every minute, use BigQuerylO to store the results in Bigquery
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
Create a Dataflow SQL job to count active gamers from the CloudSQL backend every minute, use BigQuerylO to store the results in Bigquery
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?
Create a view in BigQuery that concatenates the FirstName and LastName field values to produce the FullName
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
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
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.
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 timestamp followed by a stock symbol
A stock symbol followed by a timestamp
A sequential numeric ID
A non-sequential numeric ID
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?
Change the processing job to use Google Cloud Dataproc instead
Manually start the Cloud Dataflow job each morning when you get into the office
Create a cron job with Google App Engine Cron Service to run the Cloud Dataflow job
Configure the Cloud Dataflow job as a streaming job so that it processes the log data immediately.
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?
Load the data every 30 minutes into a new partitioned table in BigQuery.
Store and update the data in a regional Google Cloud Storage bucket and create a federated data source in BigQuery
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
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
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) The user profile: What the user likes and doesn't like to eat
2) The user account information: Name, address, preferred meal times
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?
BigQuery
Cloud SQL
Cloud Bigtable
Cloud Datastore
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.
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
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
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
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
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.)
Redis
HBase
MySQL
MongoDB
Cassandra
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.)
Get more training examples
Reduce the number of training examples
Use a smaller set of features
Use a larger set of features
Increase the regularization parameters
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?
Restrict the Google Cloud Storage bucket so only you can see the files
Grant the Project Owner role to a service account, and run the job with it
Use a service account with the ability to read the batch files and to write to BigQuery
Use a user account with the Project Viewer role on the Cloud Dataproc cluster to read the batch files and write to BigQuery
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?
Users are running too many concurrent queries in the system
The [myproject:mydataset.mytable] table has too many partitions
Either the state or the city columns in the [myproject:mydataset. mytable] table have too many NULL values
Most rows in the [myproject:mydataset.mytable] table have the same value in the country column, causing data skew
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?
Create user-managed notebooks with single-user access to JupyterLab, keep the default service account
Keep the current notebooks, replace the default service account with a new one having limited access
Create user-managed notebooks with single-user access to JupyterLab, replace the default service account with a new one having limited access
Create user-managed notebooks with single-user access to JupyterLab, No additional service account is needed
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.)
Create a new view over events using standard SQL
Create a new partitioned table using a standard SQL query
Create a new view over events_partitioned using standard SQL
Create a service account for the ODBC connection to use for authentication
Create a Google Cloud Identity and Access Management (Cloud IAM) role for the ODBC connection and shared events
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?
They have not assigned the timestamp, which causes the job to fail
They have not set the triggers to accommodate the data coming in late, which causes the job to fail
They have not applied a global windowing function, which causes the job to fail when the pipeline is created
They have not applied a non-global windowing function, which causes the job to fail when the pipeline is created
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?
Modify the transformMapReduce jobs to apply sensor calibration before they do anything else.
Introduce a new MapReduce job to apply sensor calibration to raw data, and ensure all other MapReduce jobs are chained after this.
Add sensor calibration data to the output of the ETL process, and document that all users need to apply sensor calibration themselves
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
Which two of these statements about convolutional layers are true? (Select 2 answers)
convolutional layer runs input data through multiple filters
Convolution selects the maximum value from a group of pixels
A convolutional layer is a type of fully connected layer
The purpose of a convolutional layer is feature detection
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?
BigQuery
Cloud SQL
Cloud BigTable
Cloud Datastore
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?
Migrate the workload to Google Cloud Dataflow
Use pre-emptible virtual machines (VMs) for the cluster
Use a higher-memory node so that the job runs faster
Use SSDs on the worker nodes so that the job can run faster
Which TensorFlow function can you use to configure a categorical column if you don't know all of the possible values for that column?
categorical_column_with_hash_bucket
categorical_column_with_vocabulary_list
sparse_column_with_keys
categorical_column_with_unknown_values
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?
Set a single global window to capture all the data.
Set sliding windows to capture all the lagged data.
Use watermarks and timestamps to capture the lagged data.
Ensure every datasource type (stream or batch) has a timestamp, and use the timestamps to define the logic for lagged data.
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?
Create groups for your users and give those groups access to the dataset
Integrate with a single sign-on (SSO) platform, and pass each user's credentials along with the query request
Create a service account and grant dataset access to that account. Use the service account's private key to access the dataset
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
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?
Add Storage admin role to the Cloud Composer Service Account
Add Cloud SQL admin role to the Cloud Composer Service Account
Add StorageObjectAdmin to the Cloud SQL Service Agent
Assign the Cloud Composer Service Account as the default Cloud SQL Service Agent
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?
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.
Create encryption keys in Cloud Key Management Service. Use those keys to encrypt your data in all of the Compute Engine cluster instances.
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.
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.
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?
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
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.
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.
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.
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?
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.
Use Cloud Dataproc to run your transformations. Use the diagnose command to generate an operational output archive. Locate the bottleneck and adjust cluster resources.
Use Cloud Dataflow to run your transformations. Monitor the job system lag with Stackdriver. Use the default autoscaling setting for worker instances.
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.
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?
Use Storage Transfer Service to transfer the offsite backup files to a Cloud Storage Multi-Regional storage bucket as a final destination.
Use Storage Transfer Service to transfer the offsite backup files to a Cloud Storage Regional bucket as a final destination.
Use BigQuery Data Transfer Service to transfer the offsite backup files to a Cloud Storage Multi-Regional storage bucket as a final destination.
Use BigQuery Data Transfer Service to transfer the offsite backup files to a Cloud Storage Regional storage bucket as a final destination.
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?
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
Use quotas to cap consumption, set maximum query usage per day for BigQuery
Use BigQuery Audit Logs to track BigQuery usage and set up alarms for specific thresholds.
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.
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?
Transform text files to compressed Avro using Cloud Dataflow. Use BigQuery for storage and query.
Transform text files to compressed Avro using Cloud Dataflow. Use Cloud Storage and BigQuery permanent linked tables for query.
Compress text files to gzip using the Grid Computing Tools. Use BigQuery for storage and query.
Compress text files to gzip using the Grid Computing Tools. Use Cloud Storage, and then import into Cloud Bigtable for query.
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?
Call the Cloud Natural Language API from your application. Process the generated Entity Analysis as labels.
Call the Cloud Natural Language API from your application. Process the generated Sentiment Analysis as labels.
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.
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.
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?
Use Cloud Bigtable for storage. Install the HBase shell on a Compute Engine instance to query the
Cloud Bigtable data.
Use Cloud Bigtable for storage. Link as permanent tables in BigQuery for query.
Use Cloud Storage for storage. Link as permanent tables in BigQuery for query.
Use Cloud Storage for storage. Link as temporary tables in BigQuery for query.
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?
insert a GroupByKey and ungroup after your first ParDo. The Dataflow service never fuses ParDo operations across an aggregation
Disable fuse optimization during the job launch using -no_fuse argument
Use a single ParDo Operation followed by PCollection
insert a DoFn after your first ParDo. The Dataflow service never fuses ParDo operations across an aggregation
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?
Cloud Bigtable
Google BigQuery
Google Cloud Storage
Google Cloud Datastore
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?
Create and share an authorized view that provides the aggregate results.
Create and share a new dataset and view that provides the aggregate results.
Create and share a new dataset and table that contains the aggregate results
Create dataViewer Identity and Access Management (IAM) roles on the dataset to enable sharing
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?
Encrypted on Cloud Storage with user-supplied encryption keys. A separate decryption key will be given to each authorized user.
In a BigQuery dataset that is viewable only by authorized personnel, with the Data Access log used to
provide the auditability
In Cloud SQL, with separate database user names to each user. The Cloud SQL Admin activity logs will be used to provide the auditability.
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.
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?
An event time trigger
A processing time trigger
An hourly watermark
The withAllowedLateness method
Your neural network model is taking days to train. You want to increase the training speed. What can you do?
Subsample your test dataset.
Subsample your training dataset.
Increase the number of input features to your model.
Increase the number of layers in your neural network.
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?
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.
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
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.
Modify the current service account with required fine-grained roles. keep the current DAGs setup with default connection
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?
Select random samples from the tables using the RAND() function and compare the samples.
Select random samples from the tables using the HASH() function and compare the samples.
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.
Create stratified random samples using the OVER() function and compare equivalent samples from each table.
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?
Convert your batch BQ queries into interactive BQ queries.
Create an additional project to overcome the 2K on-demand per-project quota.
Switch to flat-rate pricing and establish a hierarchical priority model for your projects.
Increase the amount of concurrent slots per project at the Quotas page at the Cloud Console.
You can customize the software on Dataproc cluster instances in each of the following ways except which one?
Login to the master node and make changes from there
Modify configuration files using cluster properties
Set initialization actions
Configure the cluster using Cloud Deployment Manager
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?
Increase the size of your parquet files to ensure them to be 1 GB minimum
Switch to TFRecords formats (appr. 200MB per file) instead of parquet files.
Switch from HDDs to SSDs, copy initial data from GCS to HDFS, run the Spark job and copy results back to GCS.
Switch from HDDs to SSDs, override the preemptible VMs configuration to increase the boot disk size.
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?
Add a filtering step to skip these types of errors in the future, extract erroneous rows from logs.
Add a try catch block to your DoFn that transforms the data, extract erroneous rows from logs.
Add a try catch block to your DoFn that transforms the data, write erroneous rows to Pub/Sub PubSub directly from the DoFn.
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.
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?
Use Vertex Al Notebooks" BigQuery cell magic to query the data, and ingest the results as a pandas dataframe.
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.
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.
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.
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?
Provide latitude and longitude as input vectors to your neural net.
Create a numeric column from a feature cross of latitude and longitude.
Create a feature cross of latitude and longitude, bucketize it at the minute level and use L1 regularization during optimization.
Create a feature cross of latitude and longitude, bucketize it at the minute level and use L2 regularization during optimization.
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.
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.
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
Canary-test the newly deployed model version on a small stream of live serving data
Make sure that the test data split is representative of the data as a whole to account for varying data patterns.
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?
Install the OpenCensus Agent and create a custom metric collection application with a StackDriver exporter.
Place the MariaDB instances in an Instance Group with a Health Check.
Install the StackDriver Logging Agent and configure fluentd in_tail plugin to read MariaDB logs.
Install the StackDriver Agent and configure the MySQL plugin.
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?
Increase the fixed window to 60 minutes to be able to stream all the interactions and cover late arrival ones.
Change the fixed window to the sliding window and keep the duration to 30 minutes
Change the fixed window to the session window and keep the duration of 30 minutes
Change the fixed window to the Tumbling window and keep the duration of 30 minutes
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?
Cloud Spanner
Cloud Bigtable
Cloud Firestore
Cloud SQL
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?
Export Bigtable dump to GCS and run your analytical job on top of the exported files.
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.
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.
Increase the size of your existing cluster twice and execute your analytics workload on your new resized cluster.
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.)
Review Key Visualizer metrics. Increase the size of the Cloud Bigtable cluster when the Read pressure index is above 100.
Review Key Visualizer metrics. Increase the size of the Cloud Bigtable cluster when the Write pressure index is above 100.
Monitor the latency of write operations. Increase the size of the Cloud Bigtable cluster when there is a sustained increase in write latency.
Monitor storage utilization. Increase the size of the Cloud Bigtable cluster when utilization increases above 70% of max capacity.
Monitor latency of read operations. Increase the size of the Cloud Bigtable cluster of read operations take longer than 100 ms.
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?
Store the social media posts and the data extracted from the API in BigQuery.
Store the social media posts and the data extracted from the API in Cloud SQL.
Store the raw social media posts in Cloud Storage, and write the data extracted from the API into BigQuery.
Feed to social media posts into the API directly from the source, and write the extracted data from the API into BigQuery.
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?
Execute gsutil rsync from the on-premises servers.
Use Dataflow and write the data to Cloud Storage.
Write a job template in Dataproc to perform the data transfer.
Install an FTP server on a Compute Engine VM to receive the files and move them to Cloud Storage.
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?
Create a separate table for each ID.
Use the LIMIT keyword to reduce the number of rows returned.
Recreate the table with a partitioning column and clustering column.
Use the bq query --maximum_bytes_billed flag to restrict the number of bytes billed.
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?
Use bq load to load a batch of sensor data every 60 seconds.
Use a Cloud Dataflow pipeline to stream data into the BigQuery table.
Use the INSERT statement to insert a batch of data every 60 seconds.
Use the MERGE statement to apply updates in batch every 60 seconds.
