πŸ”

PDE β€” questions

Page 3 of 18 Β· 341 total questions.

Topic 1 Β· Question 41

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. MJTelco needs you to create a schema in Google Bigtable that will allow for the historical analysis of the last 2 years of records. Each record that comes in is sent every 15 minutes, and contains a unique identifier of the device and a data record. The most common query is for all the data for a given device for a given day. Which schema should you use?

  • ARowkey: date#device_id Column data: data_point (correct answer)
  • BRowkey: date Column data: device_id, data_point
  • CRowkey: device_id Column data: date, data_point
  • DRowkey: data_point Column data: device_id, date
  • ERowkey: date#data_point Column data: device_id
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Rowkey: date#device_id Column data: data_point This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 42

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?

  • ARewrite the job in Pig.
  • BRewrite the job in Apache Spark. (correct answer)
  • CIncrease the size of the Hadoop cluster.
  • DDecrease the size of the Hadoop cluster but also rewrite the job in Hive.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Rewrite the job in Apache Spark.

Topic 1 Β· Question 43

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?

  • ACreate a view in BigQuery that concatenates the FirstName and LastName field values to produce the FullName. (correct answer)
  • BAdd 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.
  • CCreate 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.
  • DUse 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.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a view in BigQuery that concatenates the FirstName and LastName field values to produce the FullName.

Explanation

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

Topic 1 Β· Question 44

You are deploying a new storage system for your mobile application, which is a media streaming service. You decide the best fit is Google Cloud Datastore. You have entities with multiple properties, some of which can take on multiple values. For example, in the entity 'Movie' the property 'actors' and the property 'tags' have multiple values but the property 'date released' does not. A typical query would ask for all movies with actor=<actorname> ordered by date_released or all movies with tag=Comedy ordered by date_released. How should you avoid a combinatorial explosion in the number of indexes?

  • AManually configure the index in your index config as follows: (correct answer)
  • BManually configure the index in your index config as follows:
  • CSet the following in your entity options: exclude_from_indexes = 'actors, tags'
  • DSet the following in your entity options: exclude_from_indexes = 'date_published'
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Manually configure the index in your index config as follows: This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 45

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?

  • AChange the processing job to use Google Cloud Dataproc instead.
  • BManually start the Cloud Dataflow job each morning when you get into the office.
  • CCreate a cron job with Google App Engine Cron Service to run the Cloud Dataflow job. (correct answer)
  • DConfigure the Cloud Dataflow job as a streaming job so that it processes the log data immediately.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create a cron job with Google App Engine Cron Service to run the Cloud Dataflow job.

Explanation

App Engine is a fully managed platform that runs and autoscales web apps with little operational effort. Dataflow runs serverless Apache Beam pipelines for stream and batch data processing with autoscaling.

Topic 1 Β· Question 46

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?

  • ALoad the data every 30 minutes into a new partitioned table in BigQuery.
  • BStore and update the data in a regional Google Cloud Storage bucket and create a federated data source in BigQuery (correct answer)
  • CStore 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
  • DStore 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.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Store and update the data in a regional Google Cloud Storage bucket and create a federated data source in BigQuery

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage.

Topic 1 Β· Question 47

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: β€’ The user profile: What the user likes and doesn't like to eat β€’ The user account information: Name, address, preferred meal times β€’ 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?

  • ABigQuery
  • BCloud SQL (correct answer)
  • CCloud Bigtable
  • DCloud Datastore
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Cloud SQL

Explanation

Cloud SQL is a managed relational database (MySQL/PostgreSQL/SQL Server) that handles patching, backups, and failover.

Topic 1 Β· Question 48

Your company is loading comma-separated values (CSV) files into Google 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?

  • AThe CSV data loaded in BigQuery is not flagged as CSV.
  • BThe CSV data has invalid rows that were skipped on import.
  • CThe CSV data loaded in BigQuery is not using BigQuery's default encoding. (correct answer)
  • DThe CSV data has not gone through an ETL phase before loading into BigQuery.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: The CSV data loaded in BigQuery is not using BigQuery's default encoding.

Explanation

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

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

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

  • AIntroduce data compression for each file to increase the rate file of file transfer.
  • BContact your internet service provider (ISP) to increase your maximum bandwidth to at least 100 Mbps.
  • CRedesign the data ingestion process to use gsutil tool to send the CSV files to a storage bucket in parallel. (correct answer)
  • DAssemble 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. (correct answer)
  • ECreate 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.
Reveal answer & explanation
Correct answer: C, D

The correct answer is C, D. Option C: Redesign the data ingestion process to use gsutil tool to send the CSV files to a storage bucket in parallel. Option D: Assemble 1,000 files into a tape archive (TAR) file. Transmit the TAR files instead, and disassemble the CSV files in the cloud upon receiving them.

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

You are choosing a NoSQL database to handle telemetry data submitted from millions of Internet-of-Things (IoT) 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.)

  • ARedis
  • BHBase (correct answer)
  • CMySQL
  • DMongoDB (correct answer)
  • ECassandra (correct answer)
  • FHDFS with Hive
Reveal answer & explanation
Correct answer: B, D, E

The correct answer is B, D, E. Option B: HBase Option D: MongoDB Option E: Cassandra This option meets the real-time / low-latency performance requirement.

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

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

  • AGet more training examples (correct answer)
  • BReduce the number of training examples
  • CUse a smaller set of features (correct answer)
  • DUse a larger set of features
  • EIncrease the regularization parameters (correct answer)
  • FDecrease the regularization parameters
Reveal answer & explanation
Correct answer: A, C, E

The correct answer is A, C, E. Option A: Get more training examples Option C: Use a smaller set of features Option E: Increase the regularization parameters.

Topic 1 Β· Question 52

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?

  • ARestrict the Google Cloud Storage bucket so only you can see the files
  • BGrant the Project Owner role to a service account, and run the job with it
  • CUse a service account with the ability to read the batch files and to write to BigQuery (correct answer)
  • DUse a user account with the Project Viewer role on the Cloud Dataproc cluster to read the batch files and write to BigQuery
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use a service account with the ability to read the batch files and to write to BigQuery

Explanation

Google Cloud Batch schedules and runs batch jobs at scale without managing infrastructure. BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. A service account provides an identity for workloads to access Google Cloud APIs securely.

Topic 1 Β· Question 53

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?

  • AUsers are running too many concurrent queries in the system
  • BThe [myproject:mydataset.mytable] table has too many partitions
  • CEither the state or the city columns in the [myproject:mydataset.mytable] table have too many NULL values
  • DMost rows in the [myproject:mydataset.mytable] table have the same value in the country column, causing data skew (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Most rows in the [myproject:mydataset.mytable] table have the same value in the country column, causing data skew.

Topic 1 Β· Question 54

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?

  • ACreate 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.
  • BHave 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.
  • CSet 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.
  • DHave 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. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Have each application server write the bid events to Google Cloud Pub/Sub as they occur. Use a pull subscription to pull the bid events using Google Cloud Dataflow. Give the bid for each item to the user in the bid ev...

Explanation

Dataflow runs serverless Apache Beam pipelines for stream and batch data processing with autoscaling. Pub/Sub is a serverless, global messaging service that decouples services and ingests high-volume event streams. This option meets the real-time / low-latency performance requirement.

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

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

  • ACreate a new view over events using standard SQL
  • BCreate a new partitioned table using a standard SQL query
  • CCreate a new view over events_partitioned using standard SQL
  • DCreate a service account for the ODBC connection to use for authentication (correct answer)
  • ECreate a Google Cloud Identity and Access Management (Cloud IAM) role for the ODBC connection and shared "events" (correct answer)
Reveal answer & explanation
Correct answer: D, E

The correct answer is D, E. Option D: Create a service account for the ODBC connection to use for authentication Option E: Create a Google Cloud Identity and Access Management (Cloud IAM) role for the ODBC connection and shared "events"

Explanation

A service account provides an identity for workloads to access Google Cloud APIs securely. Cloud IAM grants fine-grained, least-privilege access to Google Cloud resources. Cloud Identity manages users, groups, and device policies as a managed identity platform.

Topic 1 Β· Question 56

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?

  • AUse the TABLE_DATE_RANGE function (correct answer)
  • BUse the WHERE_PARTITIONTIME pseudo column
  • CUse WHERE date BETWEEN YYYY-MM-DD AND YYYY-MM-DD
  • DUse SELECT IF.(date >= YYYY-MM-DD AND date <= YYYY-MM-DD
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use the TABLE_DATE_RANGE function.

Topic 1 Β· Question 57

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?

  • AThey have not assigned the timestamp, which causes the job to fail (correct answer)
  • BThey have not set the triggers to accommodate the data coming in late, which causes the job to fail
  • CThey have not applied a global windowing function, which causes the job to fail when the pipeline is created
  • DThey have not applied a non-global windowing function, which causes the job to fail when the pipeline is created
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: They have not assigned the timestamp, which causes the job to fail This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 58

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?

  • AModify the transformMapReduce jobs to apply sensor calibration before they do anything else.
  • BIntroduce a new MapReduce job to apply sensor calibration to raw data, and ensure all other MapReduce jobs are chained after this. (correct answer)
  • CAdd sensor calibration data to the output of the ETL process, and document that all users need to apply sensor calibration themselves.
  • DDevelop 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.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Introduce a new MapReduce job to apply sensor calibration to raw data, and ensure all other MapReduce jobs are chained after this.

Topic 1 Β· Question 59

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?

  • ABigQuery
  • BCloud SQL (correct answer)
  • CCloud BigTable
  • DCloud Datastore
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Cloud SQL

Explanation

Cloud SQL is a managed relational database (MySQL/PostgreSQL/SQL Server) that handles patching, backups, and failover.

Topic 1 Β· Question 60

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?

  • AConvert all daily log tables into date-partitioned tables
  • BConvert the sharded tables into a single partitioned table (correct answer)
  • CEnable query caching so you can cache data from previous months
  • DCreate separate views to cover each month, and query from these views
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Convert the sharded tables into a single partitioned table.

Showing questions 41–60 of 341 Β· Page 3 of 18