πŸ”

PMLE β€” questions

Page 2 of 17 Β· 339 total questions.

Topic 1 Β· Question 21

You have deployed multiple versions of an image classification model on AI Platform. You want to monitor the performance of the model versions over time. How should you perform this comparison?

  • ACompare the loss performance for each model on a held-out dataset.
  • BCompare the loss performance for each model on the validation data.
  • CCompare the receiver operating characteristic (ROC) curve for each model using the What-If Tool.
  • DCompare the mean average precision across the models using the Continuous Evaluation feature. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Compare the mean average precision across the models using the Continuous Evaluation feature.

Topic 1 Β· Question 22

You trained a text classification model. You have the following SignatureDefs: You started a TensorFlow-serving component server and tried to send an HTTP request to get a prediction using: headers = {"content-type": "application/json"} json_response = requests.post('http: //localhost:8501/v1/models/text_model:predict', data=data, headers=headers) What is the correct way to write the predict request?

  • Adata = json.dumps({"signature_name": "seving_default", "instances" [['ab', 'bc', 'cd']]})
  • Bdata = json.dumps({"signature_name": "serving_default", "instances" [['a', 'b', 'c', 'd', 'e', 'f']]})
  • Cdata = json.dumps({"signature_name": "serving_default", "instances" [['a', 'b', 'c'], ['d', 'e', 'f']]})
  • Ddata = json.dumps({"signature_name": "serving_default", "instances" [['a', 'b'], ['c', 'd'], ['e', 'f']]}) (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: data = json.dumps({"signature_name": "serving_default", "instances" [['a', 'b'], ['c', 'd'], ['e', 'f']]}).

Topic 1 Β· Question 23

Your organization's call center has asked you to develop a model that analyzes customer sentiments in each call. The call center receives over one million calls daily, and data is stored in Cloud Storage. The data collected must not leave the region in which the call originated, and no Personally Identifiable Information (PII) can be stored or analyzed. The data science team has a third-party tool for visualization and access which requires a SQL ANSI-2011 compliant interface. You need to select components for data processing and for analytics. How should the data pipeline be designed?

  • A1= Dataflow, 2= BigQuery (correct answer)
  • B1 = Pub/Sub, 2= Datastore
  • C1 = Dataflow, 2 = Cloud SQL
  • D1 = Cloud Function, 2= Cloud SQL
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: 1= Dataflow, 2= BigQuery

Explanation

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 24

You are an ML engineer at a global shoe store. You manage the ML models for the company's website. You are asked to build a model that will recommend new products to the user based on their purchase behavior and similarity with other users. What should you do?

  • ABuild a classification model
  • BBuild a knowledge-based filtering model
  • CBuild a collaborative-based filtering model (correct answer)
  • DBuild a regression model using the features as predictors
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Build a collaborative-based filtering model.

Topic 1 Β· Question 25

You work for a social media company. You need to detect whether posted images contain cars. Each training example is a member of exactly one class. You have trained an object detection neural network and deployed the model version to AI Platform Prediction for evaluation. Before deployment, you created an evaluation job and attached it to the AI Platform Prediction model version. You notice that the precision is lower than your business requirements allow. How should you adjust the model's final layer softmax threshold to increase precision?

  • AIncrease the recall.
  • BDecrease the recall. (correct answer)
  • CIncrease the number of false positives.
  • DDecrease the number of false negatives.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Decrease the recall.

Topic 1 Β· Question 26

You are responsible for building a unified analytics environment across a variety of on-premises data marts. Your company is experiencing data quality and security challenges when integrating data across the servers, caused by the use of a wide range of disconnected tools and temporary solutions. You need a fully managed, cloud-native data integration service that will lower the total cost of work and reduce repetitive work. Some members on your team prefer a codeless interface for building Extract, Transform, Load (ETL) process. Which service should you use?

  • ADataflow
  • BDataprep
  • CApache Flink
  • DCloud Data Fusion (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Cloud Data Fusion

Explanation

Cloud Data Fusion builds ETL/ELT pipelines visually with little code.

Topic 1 Β· Question 27

You are an ML engineer at a regulated insurance company. You are asked to develop an insurance approval model that accepts or rejects insurance applications from potential customers. What factors should you consider before building the model?

  • ARedaction, reproducibility, and explainability
  • BTraceability, reproducibility, and explainability (correct answer)
  • CFederated learning, reproducibility, and explainability
  • DDifferential privacy, federated learning, and explainability
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Traceability, reproducibility, and explainability.

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

You are training a Resnet model on AI Platform using TPUs to visually categorize types of defects in automobile engines. You capture the training profile using the Cloud TPU profiler plugin and observe that it is highly input-bound. You want to reduce the bottleneck and speed up your model training process. Which modifications should you make to the tf.data dataset? (Choose two.)

  • AUse the interleave option for reading data. (correct answer)
  • BReduce the value of the repeat parameter.
  • CIncrease the buffer size for the shuttle option.
  • DSet the prefetch option equal to the training batch size. (correct answer)
  • EDecrease the batch size argument in your transformation.
Reveal answer & explanation
Correct answer: A, D

The correct answer is A, D. Option A: Use the interleave option for reading data. Option D: Set the prefetch option equal to the training batch size.

Explanation

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

Topic 1 Β· Question 29

You have trained a model on a dataset that required computationally expensive preprocessing operations. You need to execute the same preprocessing at prediction time. You deployed the model on AI Platform for high-throughput online prediction. Which architecture should you use?

  • AValidate the accuracy of the model that you trained on preprocessed data. Create a new model that uses the raw data and is available in real time. Deploy the new model onto AI Platform for online prediction.
  • BSend incoming prediction requests to a Pub/Sub topic. Transform the incoming data using a Dataflow job. Submit a prediction request to AI Platform using the transformed data. Write the predictions to an outbound Pub/Sub queue. (correct answer)
  • CStream incoming prediction request data into Cloud Spanner. Create a view to abstract your preprocessing logic. Query the view every second for new records. Submit a prediction request to AI Platform using the transformed data. Write the predictions to an outbound Pub/Sub queue.
  • DSend incoming prediction requests to a Pub/Sub topic. Set up a Cloud Function that is triggered when messages are published to the Pub/Sub topic. Implement your preprocessing logic in the Cloud Function. Submit a prediction request to AI Platform using the transformed data. Write the predictions to an outbound Pub/Sub queue.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Send incoming prediction requests to a Pub/Sub topic. Transform the incoming data using a Dataflow job. Submit a prediction request to AI Platform using the transformed data. Write the predictions to an outbound Pub/S...

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.

Topic 1 Β· Question 30

Your team trained and tested a DNN regression model with good results. Six months after deployment, the model is performing poorly due to a change in the distribution of the input data. How should you address the input differences in production?

  • ACreate alerts to monitor for skew, and retrain the model. (correct answer)
  • BPerform feature selection on the model, and retrain the model with fewer features.
  • CRetrain the model, and select an L2 regularization parameter with a hyperparameter tuning service.
  • DPerform feature selection on the model, and retrain the model on a monthly basis with fewer features.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create alerts to monitor for skew, and retrain the model.

Topic 1 Β· Question 31

You need to train a computer vision model that predicts the type of government ID present in a given image using a GPU-powered virtual machine on Compute Engine. You use the following parameters: β€’ Optimizer: SGD β€’ Image shape = 224β€”224 β€’ Batch size = 64 β€’ Epochs = 10 β€’ Verbose =2 During training you encounter the following error: ResourceExhaustedError: Out Of Memory (OOM) when allocating tensor. What should you do?

  • AChange the optimizer.
  • BReduce the batch size. (correct answer)
  • CChange the learning rate.
  • DReduce the image shape.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Reduce the batch size.

Explanation

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

Topic 1 Β· Question 32

You developed an ML model with AI Platform, and you want to move it to production. You serve a few thousand queries per second and are experiencing latency issues. Incoming requests are served by a load balancer that distributes them across multiple Kubeflow CPU-only pods running on Google Kubernetes Engine (GKE). Your goal is to improve the serving latency without changing the underlying infrastructure. What should you do?

  • ASignificantly increase the max_batch_size TensorFlow Serving parameter.
  • BSwitch to the tensorflow-model-server-universal version of TensorFlow Serving.
  • CSignificantly increase the max_enqueued_batches TensorFlow Serving parameter.
  • DRecompile TensorFlow Serving using the source to support CPU-specific optimizations. Instruct GKE to choose an appropriate baseline minimum CPU platform for serving nodes. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Recompile TensorFlow Serving using the source to support CPU-specific optimizations. Instruct GKE to choose an appropriate baseline minimum CPU platform for serving nodes.

Explanation

Google Kubernetes Engine runs managed Kubernetes for containerized, portable workloads.

Topic 1 Β· Question 33

You have a demand forecasting pipeline in production that uses Dataflow to preprocess raw data prior to model training and prediction. During preprocessing, you employ Z-score normalization on data stored in BigQuery and write it back to BigQuery. New training data is added every week. You want to make the process more efficient by minimizing computation time and manual intervention. What should you do?

  • ANormalize the data using Google Kubernetes Engine.
  • BTranslate the normalization algorithm into SQL for use with BigQuery. (correct answer)
  • CUse the normalizer_fn argument in TensorFlow's Feature Column API.
  • DNormalize the data with Apache Spark using the Dataproc connector for BigQuery.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Translate the normalization algorithm into SQL for use with BigQuery.

Explanation

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

Topic 1 Β· Question 34

You need to design a customized deep neural network in Keras that will predict customer purchases based on their purchase history. You want to explore model performance using multiple model architectures, store training data, and be able to compare the evaluation metrics in the same dashboard. What should you do?

  • ACreate multiple models using AutoML Tables.
  • BAutomate multiple training runs using Cloud Composer.
  • CRun multiple training jobs on AI Platform with similar job names.
  • DCreate an experiment in Kubeflow Pipelines to organize multiple runs. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create an experiment in Kubeflow Pipelines to organize multiple runs.

Topic 1 Β· Question 35

You are developing a Kubeflow pipeline on Google Kubernetes Engine. The first step in the pipeline is to issue a query against BigQuery. You plan to use the results of that query as the input to the next step in your pipeline. You want to achieve this in the easiest way possible. What should you do?

  • AUse the BigQuery console to execute your query, and then save the query results into a new BigQuery table.
  • BWrite a Python script that uses the BigQuery API to execute queries against BigQuery. Execute this script as the first step in your Kubeflow pipeline.
  • CUse the Kubeflow Pipelines domain-specific language to create a custom component that uses the Python BigQuery client library to execute queries.
  • DLocate the Kubeflow Pipelines repository on GitHub. Find the BigQuery Query Component, copy that component's URL, and use it to load the component into your pipeline. Use the component to execute queries against BigQuery. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Locate the Kubeflow Pipelines repository on GitHub. Find the BigQuery Query Component, copy that component's URL, and use it to load the component into your pipeline. Use the component to execute queries against BigQu...

Explanation

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

Topic 1 Β· Question 36

You are building a model to predict daily temperatures. You split the data randomly and then transformed the training and test datasets. Temperature data for model training is uploaded hourly. During testing, your model performed with 97% accuracy; however, after deploying to production, the model's accuracy dropped to 66%. How can you make your production model more accurate?

  • ANormalize the data for the training, and test datasets as two separate steps.
  • BSplit the training and test data based on time rather than a random split to avoid leakage. (correct answer)
  • CAdd more data to your test set to ensure that you have a fair distribution and sample for testing.
  • DApply data transformations before splitting, and cross-validate to make sure that the transformations are applied to both the training and test sets.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Split the training and test data based on time rather than a random split to avoid leakage.

Topic 1 Β· Question 37

You are developing models to classify customer support emails. You created models with TensorFlow Estimators using small datasets on your on-premises system, but you now need to train the models using large datasets to ensure high performance. You will port your models to Google Cloud and want to minimize code refactoring and infrastructure overhead for easier migration from on-prem to cloud. What should you do?

  • AUse AI Platform for distributed training. (correct answer)
  • BCreate a cluster on Dataproc for training.
  • CCreate a Managed Instance Group with autoscaling.
  • DUse Kubeflow Pipelines to train on a Google Kubernetes Engine cluster.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use AI Platform for distributed training.

Topic 1 Β· Question 38

You have trained a text classification model in TensorFlow using AI Platform. You want to use the trained model for batch predictions on text data stored in BigQuery while minimizing computational overhead. What should you do?

  • AExport the model to BigQuery ML. (correct answer)
  • BDeploy and version the model on AI Platform.
  • CUse Dataflow with the SavedModel to read the data from BigQuery.
  • DSubmit a batch prediction job on AI Platform that points to the model location in Cloud Storage.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Export the model to BigQuery ML.

Explanation

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

Topic 1 Β· Question 39

You work with a data engineering team that has developed a pipeline to clean your dataset and save it in a Cloud Storage bucket. You have created an ML model and want to use the data to refresh your model as soon as new data is available. As part of your CI/CD workflow, you want to automatically run a Kubeflow Pipelines training job on Google Kubernetes Engine (GKE). How should you architect this workflow?

  • AConfigure your pipeline with Dataflow, which saves the files in Cloud Storage. After the file is saved, start the training job on a GKE cluster.
  • BUse App Engine to create a lightweight python client that continuously polls Cloud Storage for new files. As soon as a file arrives, initiate the training job.
  • CConfigure a Cloud Storage trigger to send a message to a Pub/Sub topic when a new file is available in a storage bucket. Use a Pub/Sub-triggered Cloud Function to start the training job on a GKE cluster. (correct answer)
  • DUse Cloud Scheduler to schedule jobs at a regular interval. For the first step of the job, check the timestamp of objects in your Cloud Storage bucket. If there are no new files since the last run, abort the job.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Configure a Cloud Storage trigger to send a message to a Pub/Sub topic when a new file is available in a storage bucket. Use a Pub/Sub-triggered Cloud Function to start the training job on a GKE cluster.

Explanation

Google Kubernetes Engine runs managed Kubernetes for containerized, portable workloads. Cloud Storage provides durable, scalable object storage that is fully managed. Pub/Sub is a serverless, global messaging service that decouples services and ingests high-volume event streams.

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

You have a functioning end-to-end ML pipeline that involves tuning the hyperparameters of your ML model using AI Platform, and then using the best-tuned parameters for training. Hypertuning is taking longer than expected and is delaying the downstream processes. You want to speed up the tuning job without significantly compromising its effectiveness. Which actions should you take? (Choose two.)

  • ADecrease the number of parallel trials.
  • BDecrease the range of floating-point values.
  • CSet the early stopping parameter to TRUE. (correct answer)
  • DChange the search algorithm from Bayesian search to random search.
  • EDecrease the maximum number of trials during subsequent training phases. (correct answer)
Reveal answer & explanation
Correct answer: C, E

The correct answer is C, E. Option C: Set the early stopping parameter to TRUE. Option E: Decrease the maximum number of trials during subsequent training phases.

Showing questions 21–40 of 339 Β· Page 2 of 17