πŸ”

PMLE β€” questions

Page 3 of 17 Β· 339 total questions.

Topic 1 Β· Question 41

Your team is building an application for a global bank that will be used by millions of customers. You built a forecasting model that predicts customers' account balances 3 days in the future. Your team will use the results in a new feature that will notify users when their account balance is likely to drop below $25. How should you serve your predictions?

  • A1. Create a Pub/Sub topic for each user. 2. Deploy a Cloud Function that sends a notification when your model predicts that a user's account balance will drop below the $25 threshold.
  • B1. Create a Pub/Sub topic for each user. 2. Deploy an application on the App Engine standard environment that sends a notification when your model predicts that a user's account balance will drop below the $25 threshold.
  • C1. Build a notification system on Firebase. 2. Register each user with a user ID on the Firebase Cloud Messaging server, which sends a notification when the average of all account balance predictions drops below the $25 threshold.
  • D1. Build a notification system on Firebase. 2. Register each user with a user ID on the Firebase Cloud Messaging server, which sends a notification when your model predicts that a user's account balance will drop below the $25 threshold. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: 1. Build a notification system on Firebase. 2. Register each user with a user ID on the Firebase Cloud Messaging server, which sends a notification when your model predicts that a user's account balance will drop belo...

Topic 1 Β· Question 42

You work for an advertising company and want to understand the effectiveness of your company's latest advertising campaign. You have streamed 500 MB of campaign data into BigQuery. You want to query the table, and then manipulate the results of that query with a pandas dataframe in an AI Platform notebook. What should you do?

  • AUse AI Platform Notebooks' BigQuery cell magic to query the data, and ingest the results as a pandas dataframe. (correct answer)
  • BExport your table as a CSV file from BigQuery to Google Drive, and use the Google Drive API to ingest the file into your notebook instance.
  • CDownload your table from BigQuery as a local CSV file, and upload it to your AI Platform notebook instance. Use pandas.read_csv to ingest he file as a pandas dataframe.
  • DFrom a bash cell in your AI Platform notebook, use the bq extract command to export the table as a CSV file to Cloud Storage, and then use gsutil cp to copy the data into the notebook. Use pandas.read_csv to ingest the file as a pandas dataframe.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use AI Platform Notebooks' BigQuery cell magic to query the data, and ingest the results as a pandas dataframe.

Explanation

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

Topic 1 Β· Question 43

You are an ML engineer at a global car manufacture. You need to build an ML model to predict car sales in different cities around the world. Which features or feature crosses should you use to train city-specific relationships between car type and number of sales?

  • AThee individual features: binned latitude, binned longitude, and one-hot encoded car type.
  • BOne feature obtained as an element-wise product between latitude, longitude, and car type.
  • COne feature obtained as an element-wise product between binned latitude, binned longitude, and one-hot encoded car type. (correct answer)
  • DTwo feature crosses as an element-wise product: the first between binned latitude and one-hot encoded car type, and the second between binned longitude and one-hot encoded car type.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: One feature obtained as an element-wise product between binned latitude, binned longitude, and one-hot encoded car type.

Topic 1 Β· Question 44

You work for a large technology company that wants to modernize their contact center. You have been asked to develop a solution to classify incoming calls by product so that requests can be more quickly routed to the correct support team. You have already transcribed the calls using the Speech-to-Text API. You want to minimize data preprocessing and development time. How should you build the model?

  • AUse the AI Platform Training built-in algorithms to create a custom model.
  • BUse AutoMlL Natural Language to extract custom entities for classification.
  • CUse the Cloud Natural Language API to extract custom entities for classification. (correct answer)
  • DBuild a custom model to identify the product keywords from the transcribed calls, and then run the keywords through a classification algorithm.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use the Cloud Natural Language API to extract custom entities for classification.

Explanation

Cloud NAT lets private instances reach the internet for outbound traffic without external IPs. Natural Language API extracts entities and sentiment from text.

Topic 1 Β· Question 45

You are training a TensorFlow model on a structured dataset with 100 billion records stored in several CSV files. You need to improve the input/output execution performance. What should you do?

  • ALoad the data into BigQuery, and read the data from BigQuery.
  • BLoad the data into Cloud Bigtable, and read the data from Bigtable.
  • CConvert the CSV files into shards of TFRecords, and store the data in Cloud Storage. (correct answer)
  • DConvert the CSV files into shards of TFRecords, and store the data in the Hadoop Distributed File System (HDFS).
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Convert the CSV files into shards of TFRecords, and store the data in Cloud Storage.

Explanation

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

Topic 1 Β· Question 46

As the lead ML Engineer for your company, you are responsible for building ML models to digitize scanned customer forms. You have developed a TensorFlow model that converts the scanned images into text and stores them in Cloud Storage. You need to use your ML model on the aggregated data collected at the end of each day with minimal manual intervention. What should you do?

  • AUse the batch prediction functionality of AI Platform. (correct answer)
  • BCreate a serving pipeline in Compute Engine for prediction.
  • CUse Cloud Functions for prediction each time a new data point is ingested.
  • DDeploy the model on AI Platform and create a version of it for online inference.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use the batch prediction functionality of AI Platform.

Explanation

Google Cloud Batch schedules and runs batch jobs at scale without managing infrastructure.

Topic 1 Β· Question 47

You recently joined an enterprise-scale company that has thousands of datasets. You know that there are accurate descriptions for each table in BigQuery, and you are searching for the proper BigQuery table to use for a model you are building on AI Platform. How should you find the data that you need?

  • AUse Data Catalog to search the BigQuery datasets by using keywords in the table description. (correct answer)
  • BTag each of your model and version resources on AI Platform with the name of the BigQuery table that was used for training.
  • CMaintain a lookup table in BigQuery that maps the table descriptions to the table ID. Query the lookup table to find the correct table ID for the data that you need.
  • DExecute a query in BigQuery to retrieve all the existing table names in your project using the INFORMATION_SCHEMA metadata tables that are native to BigQuery. Use the result o find the table that you need.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use Data Catalog to search the BigQuery datasets by using keywords in the table description.

Explanation

BigQuery is a serverless, petabyte-scale data warehouse for fast SQL analytics with no infrastructure to manage. Data Catalog provides metadata management and discovery across data assets.

Topic 1 Β· Question 48

You started working on a classification problem with time series data and achieved an area under the receiver operating characteristic curve (AUC ROC) value of 99% for training data after just a few experiments. You haven't explored using any sophisticated algorithms or spent any time on hyperparameter tuning. What should your next step be to identify and fix the problem?

  • AAddress the model overfitting by using a less complex algorithm.
  • BAddress data leakage by applying nested cross-validation during model training.
  • CAddress data leakage by removing features highly correlated with the target value. (correct answer)
  • DAddress the model overfitting by tuning the hyperparameters to reduce the AUC ROC value.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Address data leakage by removing features highly correlated with the target value.

Topic 1 Β· Question 49

You work for an online travel agency that also sells advertising placements on its website to other companies. You have been asked to predict the most relevant web banner that a user should see next. Security is important to your company. The model latency requirements are 300ms@p99, the inventory is thousands of web banners, and your exploratory analysis has shown that navigation context is a good predictor. You want to Implement the simplest solution. How should you configure the prediction pipeline?

  • AEmbed the client on the website, and then deploy the model on AI Platform Prediction.
  • BEmbed the client on the website, deploy the gateway on App Engine, and then deploy the model on AI Platform Prediction.
  • CEmbed the client on the website, deploy the gateway on App Engine, deploy the database on Cloud Bigtable for writing and for reading the user's navigation context, and then deploy the model on AI Platform Prediction. (correct answer)
  • DEmbed the client on the website, deploy the gateway on App Engine, deploy the database on Memorystore for writing and for reading the user's navigation context, and then deploy the model on Google Kubernetes Engine.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Embed the client on the website, deploy the gateway on App Engine, deploy the database on Cloud Bigtable for writing and for reading the user's navigation context, and then deploy the model on AI Platform Prediction.

Explanation

App Engine is a fully managed platform that runs and autoscales web apps with little operational effort. Cloud Bigtable is a managed, low-latency NoSQL wide-column store for very high-throughput workloads.

Topic 1 Β· Question 50

Your team is building a convolutional neural network (CNN)-based architecture from scratch. The preliminary experiments running on your on-premises CPU-only infrastructure were encouraging, but have slow convergence. You have been asked to speed up model training to reduce time-to-market. You want to experiment with virtual machines (VMs) on Google Cloud to leverage more powerful hardware. Your code does not include any manual device placement and has not been wrapped in Estimator model-level abstraction. Which environment should you train your model on?

  • AAVM on Compute Engine and 1 TPU with all dependencies installed manually.
  • BAVM on Compute Engine and 8 GPUs with all dependencies installed manually.
  • CA Deep Learning VM with an n1-standard-2 machine and 1 GPU with all libraries pre-installed. (correct answer)
  • DA Deep Learning VM with more powerful CPU e2-highcpu-16 machines with all libraries pre-installed.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: A Deep Learning VM with an n1-standard-2 machine and 1 GPU with all libraries pre-installed.

Topic 1 Β· Question 51

You work on a growing team of more than 50 data scientists who all use AI Platform. You are designing a strategy to organize your jobs, models, and versions in a clean and scalable way. Which strategy should you choose?

  • ASet up restrictive IAM permissions on the AI Platform notebooks so that only a single user or group can access a given instance.
  • BSeparate each data scientist's work into a different project to ensure that the jobs, models, and versions created by each data scientist are accessible only to that user.
  • CUse labels to organize resources into descriptive categories. Apply a label to each created resource so that users can filter the results by label when viewing or monitoring the resources. (correct answer)
  • DSet up a BigQuery sink for Cloud Logging logs that is appropriately filtered to capture information about AI Platform resource usage. In BigQuery, create a SQL view that maps users to the resources they are using
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use labels to organize resources into descriptive categories. Apply a label to each created resource so that users can filter the results by label when viewing or monitoring the resources.

Topic 1 Β· Question 52

You are training a deep learning model for semantic image segmentation with reduced training time. While using a Deep Learning VM Image, you receive the following error: The resource 'projects/deeplearning-platforn/zones/europe-west4-c/acceleratorTypes/nvidia-tesla-k80' was not found. What should you do?

  • AEnsure that you have GPU quota in the selected region.
  • BEnsure that the required GPU is available in the selected region. (correct answer)
  • CEnsure that you have preemptible GPU quota in the selected region.
  • DEnsure that the selected GPU has enough GPU memory for the workload.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Ensure that the required GPU is available in the selected region.

Topic 1 Β· Question 53

Your team is working on an NLP research project to predict political affiliation of authors based on articles they have written. You have a large training dataset that is structured like this: You followed the standard 80%-10%-10% data distribution across the training, testing, and evaluation subsets. How should you distribute the training examples across the train-test-eval subsets while maintaining the 80-10-10 proportion?

  • ADistribute texts randomly across the train-test-eval subsets: Train set: [TextA1, TextB2, ...] Test set: [TextA2, TextC1, TextD2, ...] Eval set: [TextB1, TextC2, TextD1, ...]
  • BDistribute authors randomly across the train-test-eval subsets: (*) Train set: [TextA1, TextA2, TextD1, TextD2, ...] Test set: [TextB1, TextB2, ...] Eval set: [TexC1,TextC2 ...] (correct answer)
  • CDistribute sentences randomly across the train-test-eval subsets: Train set: [SentenceA11, SentenceA21, SentenceB11, SentenceB21, SentenceC11, SentenceD21 ...] Test set: [SentenceA12, SentenceA22, SentenceB12, SentenceC22, SentenceC12, SentenceD22 ...] Eval set: [SentenceA13, SentenceA23, SentenceB13, SentenceC23, SentenceC13, SentenceD31 ...]
  • DDistribute paragraphs of texts (i.e., chunks of consecutive sentences) across the train-test-eval subsets: Train set: [SentenceA11, SentenceA12, SentenceD11, SentenceD12 ...] Test set: [SentenceA13, SentenceB13, SentenceB21, SentenceD23, SentenceC12, SentenceD13 ...] Eval set: [SentenceA11, SentenceA22, SentenceB13, SentenceD22, SentenceC23, SentenceD11 ...]
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Distribute authors randomly across the train-test-eval subsets: (*) Train set: [TextA1, TextA2, TextD1, TextD2,...] Test set: [TextB1, TextB2,...] Eval set: [TexC1,TextC2...].

Topic 1 Β· Question 54

Your team has been tasked with creating an ML solution in Google Cloud to classify support requests for one of your platforms. You analyzed the requirements and decided to use TensorFlow to build the classifier so that you have full control of the model's code, serving, and deployment. You will use Kubeflow pipelines for the ML platform. To save time, you want to build on existing resources and use managed services instead of building a completely new model. How should you build the classifier?

  • AUse the Natural Language API to classify support requests.
  • BUse AutoML Natural Language to build the support requests classifier.
  • CUse an established text classification model on AI Platform to perform transfer learning. (correct answer)
  • DUse an established text classification model on AI Platform as-is to classify support requests.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Use an established text classification model on AI Platform to perform transfer learning.

Topic 1 Β· Question 55

You recently joined a machine learning team that will soon release a new project. As a lead on the project, you are asked to determine the production readiness of the ML components. The team has already tested features and data, model development, and infrastructure. Which additional readiness check should you recommend to the team?

  • AEnsure that training is reproducible.
  • BEnsure that all hyperparameters are tuned.
  • CEnsure that model performance is monitored. (correct answer)
  • DEnsure that feature expectations are captured in the schema.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Ensure that model performance is monitored.

Topic 1 Β· Question 56

You work for a credit card company and have been asked to create a custom fraud detection model based on historical data using AutoML Tables. You need to prioritize detection of fraudulent transactions while minimizing false positives. Which optimization objective should you use when training the model?

  • AAn optimization objective that minimizes Log loss
  • BAn optimization objective that maximizes the Precision at a Recall value of 0.50
  • CAn optimization objective that maximizes the area under the precision-recall curve (AUC PR) value (correct answer)
  • DAn optimization objective that maximizes the area under the receiver operating characteristic curve (AUC ROC) value
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: An optimization objective that maximizes the area under the precision-recall curve (AUC PR) value.

Topic 1 Β· Question 57

Your company manages a video sharing website where users can watch and upload videos. You need to create an ML model to predict which newly uploaded videos will be the most popular so that those videos can be prioritized on your company's website. Which result should you use to determine whether the model is successful?

  • AThe model predicts videos as popular if the user who uploads them has over 10,000 likes.
  • BThe model predicts 97.5% of the most popular clickbait videos measured by number of clicks.
  • CThe model predicts 95% of the most popular videos measured by watch time within 30 days of being uploaded. (correct answer)
  • DThe Pearson correlation coefficient between the log-transformed number of views after 7 days and 30 days after publication is equal to 0.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: The model predicts 95% of the most popular videos measured by watch time within 30 days of being uploaded.

Topic 1 Β· Question 58

You are working on a Neural Network-based project. The dataset provided to you has columns with different ranges. While preparing the data for model training, you discover that gradient optimization is having difficulty moving weights to a good solution. What should you do?

  • AUse feature construction to combine the strongest features.
  • BUse the representation transformation (normalization) technique. (correct answer)
  • CImprove the data cleaning step by removing features with missing values.
  • DChange the partitioning step to reduce the dimension of the test set and have a larger training set.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Use the representation transformation (normalization) technique.

Topic 1 Β· Question 59

Your data science team needs to rapidly experiment with various features, model architectures, and hyperparameters. They need to track the accuracy metrics for various experiments and use an API to query the metrics over time. What should they use to track and report their experiments while minimizing manual effort?

  • AUse Kubeflow Pipelines to execute the experiments. Export the metrics file, and query the results using the Kubeflow Pipelines API. (correct answer)
  • BUse AI Platform Training to execute the experiments. Write the accuracy metrics to BigQuery, and query the results using the BigQuery API.
  • CUse AI Platform Training to execute the experiments. Write the accuracy metrics to Cloud Monitoring, and query the results using the Monitoring API.
  • DUse AI Platform Notebooks to execute the experiments. Collect the results in a shared Google Sheets file, and query the results using the Google Sheets API.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use Kubeflow Pipelines to execute the experiments. Export the metrics file, and query the results using the Kubeflow Pipelines API.

Topic 1 Β· Question 60

You work for a bank and are building a random forest model for fraud detection. You have a dataset that includes transactions, of which 1% are identified as fraudulent. Which data transformation strategy would likely improve the performance of your classifier?

  • AWrite your data in TFRecords.
  • BZ-normalize all the numeric features.
  • COversample the fraudulent transaction 10 times. (correct answer)
  • DUse one-hot encoding on all categorical features.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Oversample the fraudulent transaction 10 times.

Showing questions 41–60 of 339 Β· Page 3 of 17