[Feb-2023] Professional-Data-Engineer Pre-Exam Practice Tests Exam Questions and Answers for Google Cloud Certified Study Guide [Q10-Q30]

Share

[Feb-2023] Professional-Data-Engineer Pre-Exam Practice Tests | Exam Questions and Answers for Google Cloud Certified Study Guide

Google Certified Professional Data Engineer Exam Certification Sample Questions

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

  • A. Use Google Stackdriver Monitoring on Cloud Pub/Sub to find the missing messages.
  • B. Check the dashboard application to see if it is not displaying correctly.
  • C. Switch Cloud Dataflow to pull messages from Cloud Pub/Sub instead of Cloud Pub/Sub pushing messages to Cloud Dataflow.
  • D. Run a fixed dataset through the Cloud Dataflow pipeline and analyze the output.

Answer: D

 

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

  • A. Threading
  • B. Dimensionality Reduction
  • C. Dropout Methods
  • D. Serialization

Answer: C

Explanation:
https://medium.com/mlreview/a-simple-deep-learning-model-for-stock-price-prediction-using-tensorflow-30505541d877

 

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

  • A. Convert the streaming insert code to batch load for individual messages.
  • B. Re-write the application to load accumulated data every 2 minutes.
  • C. Estimate the average latency for data availability after streaming inserts, and always run queries after waiting twice as long.
  • D. Load the original message to Google Cloud SQL, and export the table every hour to BigQuery via streaming inserts.

Answer: C

Explanation:
The data is first comes to buffer and then written to Storage. If we are running queries in buffer we will face above mentioned issues. If we wait for the bigquery to write the data to storage then we won't face the issue. So We need to wait till it's written to storage.

 

NEW QUESTION 13
Your company is currently setting up data pipelines for their campaign. For all the Google Cloud Pub/Sub
streaming data, one of the important business requirements is to be able to periodically identify the inputs
and their timings during their campaign. Engineers have decided to use windowing and transformation in
Google Cloud Dataflow for this purpose. However, when testing this feature, they find that the Cloud
Dataflow job fails for the all streaming insert. What is the most likely cause of this problem?

  • A. They have not assigned the timestamp, which causes the job to fail
  • B. They have not applied a non-global windowing function, which causes the job to fail when the pipeline
    is created
  • C. They have not applied a global windowing function, which causes the job to fail when the pipeline is
    created
  • D. They have not set the triggers to accommodate the data coming in late, which causes the job to fail

Answer: C

 

NEW QUESTION 14
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 labelled data sets for machine learning projects, along with some visualization tasks. She reports that her laptop is not powerful enough to perform her tasks and it is slowing her down. You want to help her perform her tasks. What should you do?

  • A. Grant the user access to Google Cloud Shell.
  • B. Host a visualization tool on a VM on Google Compute Engine.
  • C. Run a local version of Jupiter on the laptop.
  • D. Deploy Google Cloud Datalab to a virtual machine (VM) on Google Compute Engine.

Answer: A

 

NEW QUESTION 15
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:

What is the most likely cause of the delay for this query?

  • A. Most rows in the [myproject:mydataset.mytable] table have the same value in the country column, causing data skew
  • B. Either the state or the city columns in the [myproject:mydataset.mytable] table have too many NULL values
  • C. The [myproject:mydataset.mytable] table has too many partitions
  • D. Users are running too many concurrent queries in the system

Answer: A

 

NEW QUESTION 16
What are two methods that can be used to denormalize tables in BigQuery?

  • A. 1) Join tables into one table; 2) Use nested repeated fields
  • B. 1) Use nested repeated fields; 2) Use a partitioned table
  • C. 1) Use a partitioned table; 2) Join tables into one table
  • D. 1) Split table into multiple tables; 2) Use a partitioned table

Answer: A

Explanation:
The conventional method of denormalizing data involves simply writing a fact, along with all its dimensions, into a flat table structure. For example, if you are dealing with sales transactions, you would write each individual fact to a record, along with the accompanying dimensions such as order and customer information.
The other method for denormalizing data takes advantage of BigQuery's native support for nested and repeated structures in JSON or Avro input data. Expressing records using nested and repeated structures can provide a more natural representation of the underlying data. In the case of the sales order, the outer part of a JSON structure would contain the order and customer information, and the inner part of the structure would contain the individual line items of the order, which would be represented as nested, repeated elements.
Reference: https://cloud.google.com/solutions/bigquery-data-warehouse#denormalizing_data

 

NEW QUESTION 17
You need to choose a database for a new project that has the following requirements:
* Fully managed
* Able to automatically scale up
* Transactionally consistent
* Able to scale up to 6 TB
* Able to be queried using SQL
Which database do you choose?

  • A. Cloud Bigtable
  • B. Cloud SQL
  • C. Cloud Spanner
  • D. Cloud Datastore

Answer: C

 

NEW QUESTION 18
You are implementing security best practices on your data pipeline. Currently, you are manually executing jobs as the Project Owner. You want to automate these jobs by taking nightly batch files containing non- public information from Google Cloud Storage, processing them with a Spark Scala job on a Google Cloud Dataproc cluster, and depositing the results into Google BigQuery.
How should you securely run this workload?

  • A. Restrict the Google Cloud Storage bucket so only you can see the files
  • B. Grant the Project Owner role to a service account, and run the job with it
  • C. Use a service account with the ability to read the batch files and to write to BigQuery
  • D. Use a user account with the Project Viewer role on the Cloud Dataproc cluster to read the batch files and write to BigQuery

Answer: B

 

NEW QUESTION 19
You are designing storage for very large text files for a data pipeline on Google Cloud. You want to support ANSI SQL queries. You also want to support compression and parallel load from the input locations using Google recommended practices. What should you do?

  • A. Compress text files to gzip using the Grid Computing Tools. Use BigQuery for storage and query.
  • B. Transform text files to compressed Avro using Cloud Dataflow. Use Cloud Storage and BigQuery permanent linked tables for query.
  • C. Transform text files to compressed Avro using Cloud Dataflow. Use BigQuery for storage and query.
  • D. Compress text files to gzip using the Grid Computing Tools. Use Cloud Storage, and then import into Cloud Bigtable for query.

Answer: D

Explanation:
Explanation/Reference:

 

NEW QUESTION 20
MJTelco Case Study
Company Overview
MJTelco is a startup that plans to build networks in rapidly growing, underserved markets around the world.
The company has patents for innovative optical communications hardware. Based on these patents, they can create many reliable, high-speed backbone links with inexpensive hardware.
Company Background
Founded by experienced telecom executives, MJTelco uses technologies originally developed to overcome communications challenges in space. Fundamental to their operation, they need to create a distributed data infrastructure that drives real-time analysis and incorporates machine learning to continuously optimize their topologies. Because their hardware is inexpensive, they plan to overdeploy the network allowing them to account for the impact of dynamic regional politics on location availability and cost.
Their management and operations teams are situated all around the globe creating many-to-many relationship between data consumers and provides in their system. After careful consideration, they decided public cloud is the perfect environment to support their needs.
Solution Concept
MJTelco is running a successful proof-of-concept (PoC) project in its labs. They have two primary needs:
* Scale and harden their PoC to support significantly more data flows generated when they ramp to more than 50,000 installations.
* Refine their machine-learning cycles to verify and improve the dynamic models they use to control topology definition.
MJTelco will also use three separate operating environments - development/test, staging, and production - to meet the needs of running experiments, deploying new features, and serving production customers.
Business Requirements
* Scale up their production environment with minimal cost, instantiating resources when and where needed in an unpredictable, distributed telecom user community.
* Ensure security of their proprietary data to protect their leading-edge machine learning and analysis.
* Provide reliable and timely access to data for analysis from distributed research workers
* Maintain isolated environments that support rapid iteration of their machine-learning models without affecting their customers.
Technical Requirements
Ensure secure and efficient transport and storage of telemetry data
Rapidly scale instances to support between 10,000 and 100,000 data providers with multiple flows each.
Allow analysis and presentation against data tables tracking up to 2 years of data storing approximately 100m records/day Support rapid iteration of monitoring infrastructure focused on awareness of data pipeline problems both in telemetry flows and in production learning cycles.
CEO Statement
Our business model relies on our patents, analytics and dynamic machine learning. Our inexpensive hardware is organized to be highly reliable, which gives us cost advantages. We need to quickly stabilize our large distributed data pipelines to meet our reliability and capacity commitments.
CTO Statement
Our public cloud services must operate as advertised. We need resources that scale and keep our data secure.
We also need environments in which our data scientists can carefully study and quickly adapt our models.
Because we rely on automation to process our data, we also need our development and test environments to work as we iterate.
CFO Statement
The project is too large for us to maintain the hardware and software required for the data and analysis. Also, we cannot afford to staff an operations team to monitor so many data feeds, so we will rely on automation and infrastructure. Google Cloud's machine learning will allow our quantitative researchers to work on our high-value problems instead of problems with our data pipelines.
You create a new report for your large team in Google Data Studio 360. The report uses Google BigQuery as its data source. It is company policy to ensure employees can view only the data associated with their region, so you create and populate a table for each region. You need to enforce the regional access policy to the data.
Which two actions should you take? (Choose two.)

  • A. Ensure each table is included in a dataset for a region.
  • B. Adjust the settings for each view to allow a related region-based security group view access.
  • C. Ensure all the tables are included in global dataset.
  • D. Adjust the settings for each dataset to allow a related region-based security group view access.
  • E. Adjust the settings for each table to allow a related region-based security group view access.

Answer: A,B

 

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

  • A. Use WHERE date BETWEEN YYYY-MM-DD AND YYYY-MM-DD
  • B. Use the TABLE_DATE_RANGE function
  • C. Use the WHERE_PARTITIONTIME pseudo column
  • D. Use SELECT IF.(date >= YYYY-MM-DD AND date <= YYYY-MM-DD

Answer: B

Explanation:
Reference:
https://cloud.google.com/blog/products/gcp/using-bigquery-and-firebase-analytics-to-understandyour-mobile-app

 

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

  • A. Segregate data across multiple tables or databases.
  • B. Restrict access to tables by role.
  • C. Use Google Stackdriver Audit Logging to determine policy violations.
  • D. Ensure that the data is encrypted at all times.
  • E. Disable writes to certain tables.
  • F. Restrict BigQuery API access to approved users.

Answer: B,C,F

Explanation:
Explanation/Reference:

 

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

  • A. Error handling in the subscriber code is not handling run-time errors properly.
  • B. Total outstanding messages exceed the 10-MB maximum.
  • C. Publisher throughput quota is too small.
  • D. The subscriber code does not acknowledge the messages that it pulls.
  • E. The subscriber code cannot keep up with the messages.

Answer: A,E

 

NEW QUESTION 24
Case Study 1 - Flowlogistic
Company Overview
Flowlogistic is a leading logistics and supply chain provider. They help businesses throughout the world manage their resources and transport them to their final destination. The company has grown rapidly, expanding their offerings to include rail, truck, aircraft, and oceanic shipping.
Company Background
The company started as a regional trucking company, and then expanded into other logistics market.
Because they have not updated their infrastructure, managing and tracking orders and shipments has become a bottleneck. To improve operations, Flowlogistic developed proprietary technology for tracking shipments in real time at the parcel level. However, they are unable to deploy it because their technology stack, based on Apache Kafka, cannot support the processing volume. In addition, Flowlogistic wants to further analyze their orders and shipments to determine how best to deploy their resources.
Solution Concept
Flowlogistic wants to implement two concepts using the cloud:
* Use their proprietary technology in a real-time inventory-tracking system that indicates the location of their loads
* Perform analytics on all their orders and shipment logs, which contain both structured and unstructured data, to determine how best to deploy resources, which markets to expand info. They also want to use predictive analytics to learn earlier when a shipment will be delayed.
Existing Technical Environment
Flowlogistic architecture resides in a single data center:
* Databases
8 physical servers in 2 clusters
- SQL Server - user data, inventory, static data
3 physical servers
- Cassandra - metadata, tracking messages
10 Kafka servers - tracking message aggregation and batch insert
* Application servers - customer front end, middleware for order/customs
60 virtual machines across 20 physical servers
- Tomcat - Java services
- Nginx - static content
- Batch servers
* Storage appliances
- iSCSI for virtual machine (VM) hosts
- Fibre Channel storage area network (FC SAN) - SQL server storage
- Network-attached storage (NAS) image storage, logs, backups
* 10 Apache Hadoop /Spark servers
- Core Data Lake
- Data analysis workloads
* 20 miscellaneous servers
- Jenkins, monitoring, bastion hosts,
Business Requirements
* Build a reliable and reproducible environment with scaled panty of production.
* Aggregate data in a centralized Data Lake for analysis
* Use historical data to perform predictive analytics on future shipments
* Accurately track every shipment worldwide using proprietary technology
* Improve business agility and speed of innovation through rapid provisioning of new resources
* Analyze and optimize architecture for performance in the cloud
* Migrate fully to the cloud if all other requirements are met
Technical Requirements
* Handle both streaming and batch data
* Migrate existing Hadoop workloads
* Ensure architecture is scalable and elastic to meet the changing demands of the company.
* Use managed services whenever possible
* Encrypt data flight and at rest
* Connect a VPN between the production data center and cloud environment SEO Statement We have grown so quickly that our inability to upgrade our infrastructure is really hampering further growth and efficiency. We are efficient at moving shipments around the world, but we are inefficient at moving data around.
We need to organize our information so we can more easily understand where our customers are and what they are shipping.
CTO Statement
IT has never been a priority for us, so as our data has grown, we have not invested enough in our technology. I have a good staff to manage IT, but they are so busy managing our infrastructure that I cannot get them to do the things that really matter, such as organizing our data, building the analytics, and figuring out how to implement the CFO' s tracking technology.
CFO Statement
Part of our competitive advantage is that we penalize ourselves for late shipments and deliveries. Knowing where out shipments are at all times has a direct correlation to our bottom line and profitability. Additionally, I don't want to commit capital to building out a server environment.
Flowlogistic's management has determined that the current Apache Kafka servers cannot handle the data volume for their real-time inventory tracking system. You need to build a new system on Google Cloud Platform (GCP) that will feed the proprietary tracking software. The system must be able to ingest data from a variety of global sources, process and query in real-time, and store the data reliably. Which combination of GCP products should you choose?

  • A. Cloud Pub/Sub, Cloud Dataflow, and Cloud Storage
  • B. Cloud Load Balancing, Cloud Dataflow, and Cloud Storage
  • C. Cloud Pub/Sub, Cloud Dataflow, and Local SSD
  • D. Cloud Pub/Sub, Cloud SQL, and Cloud Storage

Answer: A

Explanation:
Pub/Sub -> Dataflow for real time processing requirements.
https://codelabs.developers.google.com/codelabs/cpb104-pubsub/#0

 

NEW QUESTION 25
When you store data in Cloud Bigtable, what is the recommended minimum amount of stored data?

  • A. 500 GB
  • B. 500 TB
  • C. 1 GB
  • D. 1 TB

Answer: D

Explanation:
Explanation
Cloud Bigtable is not a relational database. It does not support SQL queries, joins, or multi-row transactions. It is not a good solution for less than 1 TB of data.
Reference: https://cloud.google.com/bigtable/docs/overview#title_short_and_other_storage_options

 

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

  • A. Write an Apache Beam pipeline that creates a BigQuery table per day. Recommend that the Data Science team use wildcards on the table name suffixes to select the data they need.
  • B. Modify your pipeline to maintain the last 30-90 days of data in one table and the longer history in a different table to minimize full table scans over the entire history.
  • C. Re-create the tables using DDL. Partition the tables by a column containing a TIMESTAMP or DATE Type.
  • D. Recommend that the Data Science team export the table to a CSV file on Cloud Storage and use Cloud Datalab to explore the data by reading the files directly.

Answer: B

 

NEW QUESTION 27
Suppose you have a table that includes a nested column called "city" inside a column called "person", but when you try to submit the following query in BigQuery, it gives you an error.
SELECT person FROM `project1.example.table1` WHERE city = "London"
How would you correct the error?

  • A. Add ", UNNEST(city)" before the WHERE clause.
  • B. Change "person" to "city.person".
  • C. Add ", UNNEST(person)" before the WHERE clause.
  • D. Change "person" to "person.city".

Answer: C

Explanation:
Explanation
To access the person.city column, you need to "UNNEST(person)" and JOIN it to table1 using a comma.
Reference:
https://cloud.google.com/bigquery/docs/reference/standard-sql/migrating-from-legacy-sql#nested_repeated_resu

 

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

  • A. Cloud Dataproc, Cloud Dataflow, BigQuery
  • B. Cloud Pub/Sub, Cloud Dataproc, Cloud SQL
  • C. Cloud Dataflow, Cloud SQL, Cloud Spanner
  • D. Cloud Pub/Sub, Cloud Storage, BigQuery

Answer: C

 

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

  • A. Have the data acquisition devices publish data to Cloud Pub/Sub.
  • B. Write a Cloud Dataflow pipeline that aggregates all data in session windows.
  • C. Establish a Cloud Interconnect between all remote data centers and Google.
  • D. Deploy small Kafka clusters in your data centers to buffer events.

Answer: A

 

NEW QUESTION 30
......

Google Exam Practice Test To Gain Brilliante Result: https://www.trainingdumps.com/Professional-Data-Engineer_exam-valid-dumps.html

Tested Material Used To Professional-Data-Engineer: https://drive.google.com/open?id=14ABAJudLj-Ab8JYddXo_LuvRHEr7jVl5