You are developing a process for training and running your custom model in production. You need to be able to show lineage for your model and predictions.
What should you do?
Reveal answer details Close answer details
Correct answerD
Google · PROFESSIONAL-MACHINE-LEARNING-ENGINEER
Preview real exam questions, verified answers and available explanations before choosing a study plan.
|
Single choice
You are developing a process for training and running your custom model in production. You need to be able to show lineage for your model and predictions. What should you do? Reveal answer details Close answer detailsCorrect answerD
Single choice
Your data science team is training a PyTorch model for image classification based on a pre-trained RestNet model. You need to perform hyperparameter tuning to optimize for several parameters. What should you do? Reveal answer details Close answer detailsCorrect answerB Explanation https://cloud.google.com/blog/topics/developers-practitioners/pytorch-google-cloud-how-train-and-tune-
Single choice
Your company manages an ecommerce website. You developed an ML model that recommends additional products to users in near real time based on items currently in the user's cart. The workflow will include the following processes: 1. The website will send a Pub/Sub message with the relevant data and then receive a message with the prediction from Pub/Sub You want to minimize prediction latency and the effort required to update the model. How should you reconfigure the architecture? Reveal answer details Close answer detailsCorrect answerD
Single choice
You work as an ML engineer at a social media company, and you are developing a visual filter for users' profile photos. This requires you to train an ML model to detect bounding boxes around human faces. You want to use this filter in your company's iOS-based mobile phone application. You want to minimize code development and want the model to be optimized for inference on mobile phones. What should you do? Reveal answer details Close answer detailsCorrect answerA Explanation https://cloud.google.com/vision/automl/docs/export-edge
Single choice
You work for a bank. You have created a custom model to predict whether a loan application should be flagged for human review. The input features are stored in a BigQuery table. The model is performing well, and you plan to deploy it to production. Due to compliance requirements the model must provide explanations for each prediction. You want to add this functionality to your model code with minimal effort and provide explanations that are as accurate as possible. What should you do? Reveal answer details Close answer detailsCorrect answerC
Single choice
You recently deployed a model to a Vertex AI endpoint and set up online serving in Vertex AI Feature Store. What should you do? Reveal answer details Close answer detailsCorrect answerB
Single choice
You are an ML engineer at an ecommerce company and have been tasked with building a model that predicts how much inventory the logistics team should order each month. Which approach should you take? Reveal answer details Close answer detailsCorrect answerC Explanation This type of model is well-suited to predicting inventory levels because it can take into account trends and patterns in the data over time, such as seasonal fluctuations in demand or changes in customer behavior.
Single choice
You are developing an ML model using a dataset with categorical input variables. You have randomly split half of the data into training and test sets. After applying one-hot encoding on the categorical variables in the training set, you discover that one categorical variable is missing from the test set. What should you do? Reveal answer details Close answer detailsCorrect answerC
Single choice
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? Reveal answer details Close answer detailsCorrect answerB Explanation https://developers.google.com/machine-learning/data-prep/transform/transform-numeric
Single choice
Your organization wants to make its internal shuttle service route more efficient. The shuttles currently stop at all pick-up points across the city every 30 minutes between 7 am and 10 am. The development team has already built an application on Google Kubernetes Engine that requires users to confirm their presence and shuttle station one day in advance. What approach should you take? Reveal answer details Close answer detailsCorrect answerC
Single choice
You are building a TensorFlow text-to-image generative model by using a dataset that contains billions of images with their respective captions. You want to create a low maintenance, automated workflow that reads the data from a Cloud Storage bucket collects statistics, splits the dataset into training/validation/test datasets performs data transformations trains the model using the training/validation datasets, and validates the model by using the test dataset. What should you do? Reveal answer details Close answer detailsCorrect answerC
Single choice
You are using Keras and TensorFlow to develop a fraud detection model. Records of customer transactions are stored in a large table in BigQuery. You need to preprocess these records in a cost-effective and efficient way before you use them to train the model. The trained model will be used to perform batch inference in BigQuery. How should you implement the preprocessing workflow? Reveal answer details Close answer detailsCorrect answerC
Single choice
You work on the data science team for a multinational beverage company. You need to develop an ML model to predict the company's profitability for a new line of naturally flavored bottled waters in different locations. You are provided with historical data that includes product types, product sales volumes, expenses, and profits for all regions. What should you use as the input and output for your model? Reveal answer details Close answer detailsCorrect answerC Explanation https://developers.google.com/machine-learning/crash-course/feature-crosses/video-lecture
Single choice
You recently developed a wide and deep model in TensorFlow. You generated training datasets using a SQL script that preprocessed raw data in BigQuery by performing instance-level transformations of the data. You need to create a training pipeline to retrain the model on a weekly basis. The trained model will be used to generate daily recommendations. You want to minimize model development and training time. How should you develop the training pipeline? Reveal answer details Close answer detailsCorrect answerA
Single choice
You have been asked to develop an input pipeline for an ML training model that processes images from disparate sources at a low latency. You discover that your input data does not fit in memory. How should you create a dataset following Google-recommended best practices? Reveal answer details Close answer detailsCorrect answerD Explanation Cite from Google Pag: to construct a Dataset from data in memory, use tf.data.Dataset.from_tensors() or tf.data.Dataset.from_tensor_slices(). When input data is stored in a file (not in memory), the recommended TFRecord format, you can use tf.data.TFRecordDataset(). tf.data.Dataset is for data in memory. tf.data.TFRecordDataset is for data in non-memory storage.
Single choice
Your team needs to build a model that predicts whether images contain a driver's license, passport, or credit card. The data engineering team already built the pipeline and generated a dataset composed of 10,000 images with driver's licenses, 1,000 images with passports, and 1,000 images with credit cards. You Which loss function should you use? Reveal answer details Close answer detailsCorrect answerC Explanation Use sparse categorical crossentropy when your classes are mutually exclusive (e.g. when each sample belongs exactly to one class) and categorical crossentropy when one sample can have multiple classes or labels are soft probabilities (like [0.5, 0.3, 0.2]).
Single choice
You need to deploy a scikit-learn classification model to production. The model must be able to serve requests 24/7 and you expect millions of requests per second to the production application from 8 am to 7 pm. You need to minimize the cost of deployment. What should you do? Reveal answer details Close answer detailsCorrect answerC
Single choice
You have recently trained a scikit-learn model that you plan to deploy on Vertex AI. This model will support both online and batch prediction. You need to preprocess input data for model inference. You want to package the model for deployment while minimizing additional code. What should you do? Reveal answer details Close answer detailsCorrect answerB
Multiple choice
You recently deployed an ML model. Three months after deployment, you notice that your model is underperforming on certain subgroups, thus potentially leading to biased results. You suspect that the inequitable performance is due to class imbalances in the training data, but you cannot collect more data. What should you do? (Choose two.) Reveal answer details Close answer detailsCorrect answersB, D Explanation https://machinelearningmastery.com/tactics-to-combat-imbalanced-classes-in-your-machine-learning-dataset/
Single choice
You have deployed a scikit-team model to a Vertex AI endpoint using a custom model server. You enabled autoscaling: however, the deployed model fails to scale beyond one replica, which led to dropped requests. What should you do? Reveal answer details Close answer detailsCorrect answerB
Single choice
You work for a food product company. Your company's historical sales data is stored in BigQuery.You need to use Vertex AI's custom training service to train multiple TensorFlow models that read the data from BigQuery and predict future sales. You plan to implement a data preprocessing algorithm that performs mm-max scaling and bucketing on a large number of features before you start experimenting with the models. You want to minimize preprocessing time, cost, and development effort. How should you configure this workflow? Reveal answer details Close answer detailsCorrect answerB
Single choice
You recently deployed a model to a Vertex AI endpoint. Your data drifts frequently, so you have enabled request-response logging and created a Vertex AI Model Monitoring job. You have observed that your model is receiving higher traffic than expected. You need to reduce the model monitoring cost while continuing to quickly detect drift. What should you do? Reveal answer details Close answer detailsCorrect answerC
Single choice
You recently trained a XGBoost model that you plan to deploy to production for online inference. Before sending a predict request to your model's binary, you need to perform a simple data preprocessing step. What should you do? Reveal answer details Close answer detailsCorrect answerD
Single choice
You need to design an architecture that serves asynchronous predictions to determine whether a particular mission-critical machine part will fail. Your system collects data from multiple sensors from the machine. How should you design the architecture? Reveal answer details Close answer detailsCorrect answerB
Single choice
You are an ML engineer at a manufacturing company. You need to build a model that identifies defects in products based on images of the product taken at the end of the assembly line. You want your model to preprocess the images with lower computation to quickly extract features of defects in products. Which approach should you use to build the model? Reveal answer details Close answer detailsCorrect answerD Explanation https://developers.google.com/machine-learning/practica/image-classification/convolutional-neural-networks
Single choice
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. How should you configure the prediction pipeline? Reveal answer details Close answer detailsCorrect answerC Explanation https://medium.com/google-cloud/secure-cloud-run-cloud-functions-and-app-engine-with-api-key-73c57bededd1
Single choice
You have recently created a proof-of-concept (POC) deep learning model. You are satisfied with the overall architecture, but you need to determine the value for a couple of hyperparameters. You want to perform hyperparameter tuning on Vertex AI to determine both the appropriate embedding dimension for a categorical feature used by your model and the optimal learning rate. You configure the following settings: ? For the embedding dimension, you set the type to INTEGER with a minValue of 16 and maxValue of 64. You are using the default Bayesian optimization tuning algorithm, and you want to maximize model accuracy. Training time is not a concern. How should you set the hyperparameter scaling for each hyperparameter and the maxParallelTrials? Reveal answer details Close answer detailsCorrect answerB Explanation https://cloud.google.com/vertex-ai/docs/training/using-hyperparameter-tuning#parallel-trials
Single choice
You have a large corpus of written support cases that can be classified into 3 separate categories: Technical Support, Billing Support, or Other Issues. You need to quickly build, test, and deploy a service that will automatically classify future written requests into one of the categories. How should you configure the pipeline? Reveal answer details Close answer detailsCorrect answerB
Single choice
You work for a public transportation company and need to build a model to estimate delay times for multiple transportation routes. Predictions are served directly to users in an app in real time. Because different seasons and population increases impact the data relevance, you will retrain the model every month. You want to follow Google-recommended best practices. How should you configure the end-to-end architecture of the predictive model? Reveal answer details Close answer detailsCorrect answerA Explanation https://www.kubeflow.org/docs/components/pipelines/overview/pipelines-overview/)
Single choice
You manage a team of data scientists who use a cloud-based backend system to submit training jobs. This system has become very difficult to administer, and you want to use a managed service instead. The data scientists you work with use many different frameworks, including Keras, PyTorch, theano, Scikit-learn, and custom libraries. What should you do? Reveal answer details Close answer detailsCorrect answerA Explanation https://cloud.google.com/ai-platform/training/docs/getting-started-pytorch
Single choice
You are training and deploying updated versions of a regression model with tabular data by using Vertex AI What should you do? Reveal answer details Close answer detailsCorrect answerA
Single choice
You work for a telecommunications company. You're building a model to predict which customers may fail to pay their next phone bill. The purpose of this model is to proactively offer at-risk customers assistance such as service discounts and bill deadline extensions. The data is stored in BigQuery and the predictive features that are available for model training include: 1. Customer_id You need to investigate and mitigate potential bias against disadvantaged groups, while preserving model accuracy. What should you do? Reveal answer details Close answer detailsCorrect answerD
Single choice
You are an ML engineer in the contact center of a large enterprise. You need to build a sentiment analysis tool that predicts customer sentiment from recorded phone conversations. You need to identify the best approach to building a model while ensuring that the gender, age, and cultural differences of the customers who called the contact center do not impact any stage of the model development pipeline and results. What should you do? Reveal answer details Close answer detailsCorrect answerA
Single choice
You work for an auto insurance company. You are preparing a proof-of-concept ML application that uses images of damaged vehicles to infer damaged parts. Your team has assembled a set of annotated images from damage claim documents in the company's database. The annotations associated with each image consist of a bounding box for each identified damaged part and the part name. You have been given a sufficient budget to train models on Google Cloud. You need to quickly create an initial model. What should you do? Reveal answer details Close answer detailsCorrect answerB
Single choice
You need to develop a custom TensorFlow model that will be used for online predictions. The training data is stored in BigQuery You need to apply instance-level data transformations to the data for model training and serving. You want to use the same preprocessing routine during model training and serving. How should you configure the preprocessing routine? Reveal answer details Close answer detailsCorrect answerD
Single choice
You need to quickly build and train a model to predict the sentiment of customer reviews with custom categories without writing code. You do not have enough data to train a model from scratch. The resulting model should have high predictive performance. Which service should you use? Reveal answer details Close answer detailsCorrect answerA Explanation https://www.toptal.com/machine-learning/google-nlp-tutorial#:~:text=Google%20Natural%20Language%20API%20vs.&text=Google%20AutoML%20Natural%20Language%20is,t%20require%20machine%20learning%20knowledge.
Single choice
You are developing a custom TensorFlow classification model based on tabular data. Your raw data is stored in BigQuery. contains hundreds of millions of rows, and includes both categorical and numerical features. You need to use a MaxMin scaler on some numerical features, and apply a one-hot encoding to some categorical features such as SKU names. Your model will be trained over multiple epochs. You want to minimize the effort and cost of your solution. What should you do? Reveal answer details Close answer detailsCorrect answerC
Single choice
One of your models is trained using data provided by a third-party data broker. The data broker does not reliably notify you of formatting changes in the data. You want to make your model training pipeline more robust to issues like this. What should you do? Reveal answer details Close answer detailsCorrect answerA Explanation https://www.tensorflow.org/tfx/guide/tfdv#schema_based_example_validation
Single choice
You are developing a classification model to support predictions for your company's various products. The dataset you were given for model development has class imbalance You need to minimize false positives and false negatives. What evaluation metric should you use to properly train the model? Reveal answer details Close answer detailsCorrect answerA
Single choice
You have been tasked with deploying prototype code to production. The feature engineering code is in PySpark and runs on Dataproc Serverless. The model training is executed by using a Vertex AI custom training job. The two steps are not connected, and the model training must currently be run manually after the feature engineering step finishes. You need to create a scalable and maintainable production process that runs end-to-end and tracks the connections between steps. What should you do? Reveal answer details Close answer detailsCorrect answerC
Single choice
You are profiling the performance of your TensorFlow model training time and notice a performance issue caused by inefficiencies in the input data pipeline for a single 5 terabyte CSV file dataset on Cloud Storage. Which action should you try first to increase the efficiency of your pipeline? Reveal answer details Close answer detailsCorrect answerC Explanation https://www.tensorflow.org/guide/data_performance#best_practice_summary
Single choice
You are developing an ML pipeline using Vertex AI Pipelines. You want your pipeline to upload a new version of the XGBoost model to Vertex AI Model Registry and deploy it to Vertex AI Endpoints for online inference. You want to use the simplest approach. What should you do? Reveal answer details Close answer detailsCorrect answerD
Single choice
You deployed an ML model into production a year ago. Every month, you collect all raw requests that were sent to your model prediction service during the previous month. You send a subset of these requests to a human labeling service to evaluate your model's performance. After a year, you notice that your model's performance sometimes degrades significantly after a month, while other times it takes several months to notice any decrease in performance. The labeling service is costly, but you also need to avoid large performance degradations. You want to determine how often you should retrain your model to maintain a high level of performance while minimizing cost. What should you do? Reveal answer details Close answer detailsCorrect answerD Explanation https://cloud.google.com/blog/topics/developers-practitioners/monitor-models-training-serving-skew-vertex-aiew-vertex-ai&ved=2ahUKEwiRg_aoj9n8AhWb7TgGHcGCDREQFnoECAwQAQ&usg=AOvVaw197NneIJM0ra7fLq2zs
Single choice
You work for a small company that has deployed an ML model with autoscaling on Vertex AI to serve online predictions in a production environment. The current model receives about 20 prediction requests per hour with an average response time of one second. You have retrained the same model on a new batch of data, and now you are canary testing it, sending ~10% of production traffic to the new model. During this canary test, you notice that prediction requests for your new model are taking between 30 and 180 seconds to complete. What should you do? Reveal answer details Close answer detailsCorrect answerB |