ExamMini
πŸ”

PDE β€” all questions

341 practice questions with answers and explanations.

Topic 1 Β· Question 1

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

  • AThreading
  • BSerialization
  • CDropout Methods (correct answer)
  • DDimensionality Reduction
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Dropout Methods.

Topic 1 Β· Question 2

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

  • AContinuously retrain the model on just the new data.
  • BContinuously retrain the model on a combination of existing data and the new data. (correct answer)
  • CTrain on the existing data while using the new data as your test set.
  • DTrain on the new data while using the existing data as your test set.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Continuously retrain the model on a combination of existing data and the new data.

Topic 1 Β· Question 3

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

  • AAdd capacity (memory and disk space) to the database server by the order of 200.
  • BShard the tables into smaller ones based on date ranges, and only generate reports with prespecified date ranges.
  • CNormalize the master patient-record table into the patient table and the visits table, and create other necessary tables to avoid self-join. (correct answer)
  • DPartition the table into smaller tables, with one for each clinic. Run queries against the smaller table pairs, and use unions for consolidated reports.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Normalize the master patient-record table into the patient table and the visits table, and create other necessary tables to avoid self-join.

Topic 1 Β· Question 4

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

  • ADisable caching by editing the report settings. (correct answer)
  • BDisable caching in BigQuery by editing table details.
  • CRefresh your browser tab showing the visualizations.
  • DClear your browser history for the past hour then reload the tab showing the virtualizations.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Disable caching by editing the report settings.

Topic 1 Β· Question 5

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

  • AUse federated data sources, and check data in the SQL query.
  • BEnable BigQuery monitoring in Google Stackdriver and create an alert.
  • CImport the data into BigQuery using the gcloud CLI and set max_bad_records to 0.
  • DRun a Google Cloud Dataflow batch pipeline to import the data into BigQuery, and push errors to another dead-letter table for analysis. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Run a Google Cloud Dataflow batch pipeline to import the data into BigQuery, and push errors to another dead-letter table for analysis.

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. Dataflow runs serverless Apache Beam pipelines for stream and batch data processing with autoscaling.

Topic 1 Β· Question 6

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

  • AIssue a command to restart the database servers.
  • BRetry the query with exponential backoff, up to a cap of 15 minutes. (correct answer)
  • CRetry the query every second until it comes back online to minimize staleness of data.
  • DReduce the query frequency to once every hour until the database comes back online.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Retry the query with exponential backoff, up to a cap of 15 minutes.

Topic 1 Β· Question 7

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

  • ALinear regression (correct answer)
  • BLogistic classification
  • CRecurrent neural network
  • DFeedforward neural network
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Linear regression.

Topic 1 Β· Question 8

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

  • AInclude ORDER BY DESK on timestamp column and LIMIT to 1.
  • BUse GROUP BY on the unique ID column and timestamp column and SUM on the values.
  • CUse the LAG window function with PARTITION by unique ID along with WHERE LAG IS NOT NULL.
  • DUse the ROW_NUMBER window function with PARTITION by unique ID along with WHERE row equals 1. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use the ROW_NUMBER window function with PARTITION by unique ID along with WHERE row equals 1. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 9

Your company is using WILDCARD tables to query data across multiple tables with similar names. The SQL statement is currently failing with the following error: Which table name will make the SQL statement work correctly?

  • A'bigquery-public-data.noaa_gsod.gsod'
  • Bbigquery-public-data.noaa_gsod.gsod*
  • C'bigquery-public-data.noaa_gsod.gsod'*
  • D'bigquery-public-data.noaa_gsod.gsod*` (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: 'bigquery-public-data.noaa_gsod.gsod*`

Explanation

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

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

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

  • ADisable writes to certain tables.
  • BRestrict access to tables by role. (correct answer)
  • CEnsure that the data is encrypted at all times.
  • DRestrict BigQuery API access to approved users. (correct answer)
  • ESegregate data across multiple tables or databases. (correct answer)
  • FUse Google Stackdriver Audit Logging to determine policy violations.
Reveal answer & explanation
Correct answer: B, D, E

The correct answer is B, D, E. Option B: Restrict access to tables by role. Option D: Restrict BigQuery API access to approved users. Option E: Segregate data across multiple tables or databases.

Explanation

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

Topic 1 Β· Question 11

You are designing a basket abandonment system for an ecommerce company. The system will send a message to a user based on these rules: β€’ No interaction by the user on the site for 1 hour Has added more than $30 worth of products to the basket β€’ 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?

  • AUse a fixed-time window with a duration of 60 minutes.
  • BUse a sliding time window with a duration of 60 minutes.
  • CUse a session window with a gap time duration of 60 minutes. (correct answer)
  • DUse a global window with a time based trigger with a delay of 60 minutes.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use a session window with a gap time duration of 60 minutes.

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

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

  • ALoad data into different partitions.
  • BLoad data into a different dataset for each client. (correct answer)
  • CPut each client's BigQuery dataset into a different table.
  • DRestrict a client's dataset to approved users. (correct answer)
  • EOnly allow a service account to access the datasets.
  • FUse the appropriate identity and access management (IAM) roles for each client's users. (correct answer)
Reveal answer & explanation
Correct answer: B, D, F

The correct answer is B, D, F. Option B: Load data into a different dataset for each client. Option D: Restrict a client's dataset to approved users. Option F: Use the appropriate identity and access management (IAM) roles for each client's users.

Explanation

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

Topic 1 Β· Question 13

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?

  • ACloud SQL
  • BBigQuery
  • CCloud Bigtable
  • DCloud Datastore (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Cloud Datastore

Explanation

Datastore (Firestore in Datastore mode) is a serverless NoSQL database for user profiles and app state.

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

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 characteristic support this method? (Choose two.)

  • AThere are very few occurrences of mutations relative to normal samples. (correct answer)
  • BThere are roughly equal occurrences of both normal and mutated samples in the database.
  • CYou expect future mutations to have different features from the mutated samples in the database.
  • DYou expect future mutations to have similar features to the mutated samples in the database. (correct answer)
  • EYou already have labels for which samples are mutated and which are normal in the database.
Reveal answer & explanation
Correct answer: A, D

The correct answer is A, D. Option A: There are very few occurrences of mutations relative to normal samples. Option D: You expect future mutations to have similar features to the mutated samples in the database.

Topic 1 Β· Question 15

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?

  • ARe-write the application to load accumulated data every 2 minutes.
  • BConvert the streaming insert code to batch load for individual messages.
  • CLoad the original message to Google Cloud SQL, and export the table every hour to BigQuery via streaming inserts.
  • DEstimate the average latency for data availability after streaming inserts, and always run queries after waiting twice as long. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Estimate the average latency for data availability after streaming inserts, and always run queries after waiting twice as long. This option meets the real-time / low-latency performance requirement.

Topic 1 Β· Question 16

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?

  • AUse Google Stackdriver Audit Logs to review data access. (correct answer)
  • BGet the identity and access management IIAM) policy of each table
  • CUse Stackdriver Monitoring to see the usage of BigQuery query slots.
  • DUse the Google Cloud Billing API to see what account the warehouse is being billed to.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use Google Stackdriver Audit Logs to review data access.

Explanation

Cloud Operations (formerly Stackdriver) provides monitoring, logging, and tracing for reliability.

Topic 1 Β· Question 17

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?

  • ACreate a Google Cloud Dataflow job to process the data.
  • BCreate a Google Cloud Dataproc cluster that uses persistent disks for HDFS.
  • CCreate a Hadoop cluster on Google Compute Engine that uses persistent disks.
  • DCreate a Cloud Dataproc cluster that uses the Google Cloud Storage connector. (correct answer)
  • ECreate a Hadoop cluster on Google Compute Engine that uses Local SSD disks.
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create a Cloud Dataproc cluster that uses the Google Cloud Storage connector.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed. Dataproc runs managed Spark and Hadoop clusters for big-data processing.

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

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

  • ASupervised learning to determine which transactions are most likely to be fraudulent.
  • BUnsupervised learning to determine which transactions are most likely to be fraudulent. (correct answer)
  • CClustering to divide the transactions into N categories based on feature similarity. (correct answer)
  • DSupervised learning to predict the location of a transaction. (correct answer)
  • EReinforcement learning to predict the location of a transaction.
  • FUnsupervised learning to predict the location of a transaction.
Reveal answer & explanation
Correct answer: B, C, D

The correct answer is B, C, D. Option B: Unsupervised learning to determine which transactions are most likely to be fraudulent. Option C: Clustering to divide the transactions into N categories based on feature similarity. Option D: Supervised learning to predict the location of a transaction.

Topic 1 Β· Question 19

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?

  • APut the data into Google Cloud Storage. (correct answer)
  • BUse preemptible virtual machines (VMs) for the Cloud Dataproc cluster.
  • CTune the Cloud Dataproc cluster so that there is just enough disk for all data.
  • DMigrate some of the cold data into Google Cloud Storage, and keep only the hot data in Persistent Disk.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Put the data into Google Cloud Storage.

Explanation

Cloud Storage provides durable, scalable object storage that is fully managed.

Topic 1 Β· Question 20

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?

  • AThe message body for the sensor event is too large.
  • BYour custom endpoint has an out-of-date SSL certificate.
  • CThe Cloud Pub/Sub topic has too many messages published to it.
  • DYour custom endpoint is not acknowledging messages within the acknowledgement deadline. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Your custom endpoint is not acknowledging messages within the acknowledgement deadline.

Showing questions 1–20 of 341 Β· Page 1 of 18