301 questions · 120 min · Pass 700
You are a member of the AI team at an automotive company, and your current project involves building a visual defect detection model using TensorFlow and Keras. To enhance the performance of your model, you intend to integrate various image augmentation techniques, including translation, cropping, and contrast adjustments. These augmentation methods will be applied randomly to each training batch. Your objective is to optimize the data processing pipeline for both runtime efficiency and efficient utilization of computational resources. What steps should you take to achieve this goal?
You have created an extensive neural network using TensorFlow Keras, and it's anticipated to require several days for training. The model exclusively relies on TensorFlow's native operations and conducts training with high-precision arithmetic. Your objective is to enhance the code to enable distributed training through tf.distribute.Strategy. Additionally, you aim to configure an appropriate virtual machine instance within Compute Engine to reduce the overall training duration. What steps should you take to achieve this?
You are logged into the Vertex AI Pipeline UI and noticed that an automated production TensorFlow training pipeline finished three hours earlier than a typical run. You do not have access to production data for security reasons, but you have verified that no alert was logged in any of the ML system’s monitoring systems and that the pipeline code has not been updated recently. You want to debug the pipeline as quickly as possible so you can determine whether to deploy the trained model. What should you do?
You are tasked with training a natural language model for text classification, specifically on product descriptions. This dataset comprises millions of examples and contains a vocabulary of 100,000 unique words. Your goal is to preprocess the words individually so that they can be effectively input into a recurrent neural network. What steps should you take to achieve this?
You are developing a real-time prediction engine that streams files, potentially containing Personally Identifiable Information (PII), to Google Cloud. To scan these files, you plan to use the Cloud Data Loss Prevention (DLP) API. What measures should you implement to guarantee that the PII remains inaccessible to unauthorized persons?
You work for an online retailer. Your company has a few thousand short lifecycle products. Your company has five years of sales data stored in BigQuery. You have been asked to build a model that will make monthly sales predictions for each product. You want to use a solution that can be implemented quickly with minimal effort. What should you do?
You are employed by a magazine distribution company, and your task is to develop a predictive model for identifying customers who will renew their subscriptions for the upcoming year. You have utilized your company's historical data as the training dataset and have built a TensorFlow model, deploying it on Vertex AI. Now, your objective is to identify the most influential customer attribute for each prediction generated by the model. How should you proceed?
You are employed at a bank, and you've developed a customized model to determine whether a loan application should be flagged for human review. The input features required for this model are stored within a BigQuery table. The model has exhibited strong performance, and you are in the process of preparing it for deployment in a production setting. However, due to compliance requirements, it is now imperative that the model provides explanations for each prediction it makes. Your objective is to incorporate this explanatory capability into your model's code with minimal effort while ensuring that the explanations offered are as accurate as possible. How should you proceed to accomplish this?
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?
You are an ML engineer at a retail company. You have built a model that predicts which coupon to offer an ecommerce customer at checkout based on the items in their cart. When a customer goes to checkout, your serving pipeline, which is hosted on Google Cloud, joins the customer's existing cart with a row in a BigQuery table that contains the customers' historic purchase behavior and uses that as the model's input. The web team is reporting that your model is returning predictions too slowly to load the coupon offer with the rest of the web page. How should you speed up your model's predictions?
You recently trained an XGBoost model using tabular data and plan to make it available as an HTTP microservice for internal use. Anticipating a low volume of incoming requests, you seek the most efficient method to deploy the model with minimal effort and latency. What is your best option?
You're an ML engineer in an agricultural research team, focusing on a crop disease detection tool for identifying leaf rust spots in crop images as an indicator of disease presence and severity. These spots exhibit variability in shape and size and are indicative of disease severity levels. Your objective is to create a highly accurate solution for predicting disease presence and severity. What steps should you take?
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?
You are employed by an online publisher that distributes news articles to a vast audience of over 50 million readers. As part of your responsibilities, you have developed an AI model designed to make content recommendations for the company's weekly newsletter. A recommendation is deemed successful if the recipient opens the recommended article within two days of the newsletter's publication date and spends at least one minute on the page. To calculate the success metric, you have access to all the necessary data in BigQuery, which is updated on an hourly basis. Your model has been trained using data spanning eight weeks, with the observation that its performance tends to decline below an acceptable baseline after five weeks. Additionally, the model's training process requires 12 hours to complete. Your primary objective is to ensure that the model consistently performs above the acceptable baseline while optimizing operational costs. Given this scenario, what approach should you adopt to monitor the model effectively and determine when it is necessary to initiate retraining?
You've developed an ML model using AI Platform and are now moving it into production. The model currently serves a few thousand queries per second but is facing latency issues. Requests are handled by a load balancer, which distributes them across multiple CPU-only Kubeflow pods on Google Kubernetes Engine (GKE). To enhance serving latency without altering the underlying infrastructure, what steps should you take?
Your team is tasked with developing a model to predict if images contain a driver’s license, passport, or credit card. The data engineering team has already constructed the pipeline and created a dataset, comprising 10,000 images with driver’s licenses, 1,000 images with passports, and 1,000 images with credit cards. Your objective now is to train a model using the following label map: ['drivers_license', 'passport', 'credit_card']. Which loss function is most suitable for this task?
You intend to migrate a scikit-learn classifier model to TensorFlow, planning to train the TensorFlow model using the same training set as the scikit-learn model. Subsequently, you aim to compare their performances using a common test set, logging the evaluation metrics of each model manually using the Vertex AI Python SDK, and comparing them based on their F1 scores and confusion matrices. How should you log the metrics?
You are analyzing customer data for a healthcare organization that is stored in Cloud Storage. The data contains personally identifiable information (PII). You need to perform data exploration and preprocessing while ensuring the security and privacy of sensitive fields. What should you do?
You are employed at a retail company and have access to a managed tabular dataset within Vertex AI, which encompasses sales data from three distinct stores. This dataset incorporates various features, including store names and sale timestamps. Your objective is to leverage this data to train a model capable of making sales predictions for an upcoming new store. To accomplish this, you must divide the data into training, validation, and test sets. What approach should you employ for this data split?
You are employed by a company that offers an anti-spam service for detecting and concealing spam content on social media platforms. Currently, your company relies on a list of 200,000 keywords to identify potential spam posts. If a post contains a significant number of these keywords, it's marked as spam. You are considering incorporating machine learning to assist in identifying spam posts for human review. What is the primary benefit of introducing machine learning in this business scenario?
Want to track your score, take timed mock exams and get AI explanations? Create a free account