You aim to redesign your ML pipeline for structured data on Google Cloud. Currently, you employ PySpark for large-scale data transformations, but your pipelines take over 12 hours to run. To accelerate development and pipeline execution, you intend to leverage a serverless tool and SQL syntax. With your raw data already migrated to Cloud Storage, how should you construct the pipeline on Google Cloud to meet the speed and processing requirements?
#142
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?
#143
You are employed at a retail company and have developed a Vertex AI forecast model that produces monthly item sales predictions. Now, you aim to swiftly generate a report that explains how the model calculates these predictions. You possess one month of recent actual sales data that was not part of the training dataset. What steps should you take to generate data for your report?
#144
You are creating a model training pipeline to predict sentiment scores from text-based product reviews. You want to have control over how the model parameters are tuned, and you will deploy the model to an endpoint after it has been trained. You will use Vertex AI Pipelines to run the pipeline. You need to decide which Google Cloud pipeline components to use. What components should you choose?
#145
You are an ML engineer at a global car manufacturer. Your task is to develop an ML model for predicting car sales in various cities worldwide. Which features or feature combinations should you use to capture city-specific relationships between car types and the number of sales?
#146
You have recently developed the initial version of an image segmentation model for a self-driving car. Upon deploying the model, you notice a decline in the area under the curve (AUC) metric. Additionally, upon reviewing video recordings, you find that the model performs poorly in densely congested traffic scenarios but functions correctly in lower-traffic situations. What is the most probable explanation for this outcome?
#147
You're working on an ML model within a Vertex AI Workbench notebook and aim to track artifacts and compare models during experimentation while efficiently transitioning successful experiments to production as you iterate on your model implementation. What should you do?
#148
You have effectively deployed a substantial and intricate TensorFlow model that was trained on tabular data. Your objective is to predict the lifetime value (LTV) field for each subscription, which is stored in the BigQuery table named "subscription.subscriptionPurchase" within the "my-fortune500-company-project" project. To ensure that prediction drift is prevented, which refers to significant changes in feature data distribution in production over time, what steps should you take?
#149
You work for an advertising company and aim to evaluate the effectiveness of your latest advertising campaign. You've streamed 500 MB of campaign data into BigQuery and want to query the table, followed by manipulating the query results using a pandas dataframe in an AI Platform notebook. What's the recommended approach?
#150
You are tasked with creating a custom deep neural network in Keras to forecast customer purchases based on their purchase history. To assess the performance across various model architectures, while storing training data and comparing evaluation metrics on a unified dashboard, what approach should you adopt?
#151
You are part of a food product company, and your historical sales data is stored in BigQuery. Your task is to utilize Vertex AI's custom training service to train multiple TensorFlow models, leveraging the data from BigQuery to predict future sales. In preparation for model experimentation, you plan to implement a data preprocessing algorithm that involves min-max scaling and bucketing for a significant number of features. Your aim is to keep preprocessing time, costs, and development efforts to a minimum. How should you configure this workflow?
#152
You recently developed a custom ML model that was trained in Vertex AI on a post-processed training dataset stored in BigQuery. You used a Cloud Run container to deploy the prediction service. The service performs feature lookup and pre-processing and sends a prediction request to a model endpoint in Vertex AI. You want to configure a comprehensive monitoring solution for training-serving skew that requires minimal maintenance. What should you do?
#153
You've utilized Vertex AI Workbench notebooks to construct a TensorFlow model, and the notebook follows these steps: 1. Fetching data from Cloud Storage, 2. Employing TensorFlow Transform for data preprocessing, 3. Utilizing native TensorFlow operators to define a sequential Keras model, 4. Conducting model training and evaluation using model.fit() within the notebook instance, and 5. Storing the trained model in Cloud Storage for serving. Your objective is to orchestrate a weekly model retraining pipeline with minimal cost, refactoring, and monitoring efforts. How should you proceed to achieve this?
#154
You are in the process of deploying a new version of a model to a production Vertex AI endpoint that is actively serving user traffic. Your goal is to direct all user traffic to the new model while minimizing any disruption to your application. How should you proceed to achieve this objective?
#155
You're creating a Kubeflow pipeline on Google Kubernetes Engine, where the initial step involves querying BigQuery. The query results will serve as input for the subsequent step in your pipeline. What is the simplest method to accomplish this?
#156
Your team is currently engaged in an NLP research project aimed at predicting the political affiliations of authors based on the articles they have authored. The training dataset for this project is extensive and structured as follows: AuthorA:Political Party A TextA1: [SentenceA11, SentenceA12, SentenceA13, ...] TextA2: [SentenceA21, SentenceA22, SentenceA23, ...] … AuthorB:Political Party B TextB1: [SentenceB11, SentenceB12, SentenceB13, ...] TextB2: [SentenceB21, SentenceB22, SentenceB23, ...] … AuthorC:Political Party B TextC1: [SentenceC11, SentenceC12, SentenceC13, ...] TextC2: [SentenceC21, SentenceC22, SentenceC23, ...] … AuthorD:Political Party A TextD1: [SentenceD11, SentenceD12, SentenceD13, ...] TextD2: [SentenceD21, SentenceD22, SentenceD23, ...] … … To maintain the standard 80%-10%-10% data distribution across the training, testing, and evaluation subsets, you should distribute the training examples as follows:
#157
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?
#158
Your team successfully trained and tested a DNN regression model, but six months post-deployment, its performance has declined due to changes in the input data distribution. What approach should you take to tackle these differences in the input data in the production environment?
#159
You are tasked with creating an ML model for a social media platform to determine whether a user's uploaded profile photo complies with the requirements. The objective is to provide users with feedback regarding the compliance of their pictures. What approach should you take in constructing the model to minimize the risk of incorrectly accepting a non-compliant image?
#160
You are conducting experiments with a built-in distributed XGBoost model in Vertex AI Workbench user-managed notebooks. To split your data into training and validation sets, you use the following BigQuery queries: CREATE OR REPLACE TABLE ‘myproject.mydataset.training‘ AS (SELECT FROM ‘myproject.mydataset.mytable‘ WHERE RAND() <= 0.8); CREATE OR REPLACE TABLE ‘myproject.mydataset.validation‘ AS (SELECT FROM ‘myproject.mydataset.mytable‘ WHERE RAND() <= 0.2); After training the model, you achieve an area under the receiver operating characteristic curve (AUC ROC) value of 0.8. However, after deploying the model to production, you observe that the model's performance has dropped to an AUC ROC value of 0.65. What is the most likely problem occurring?
Want to track your score, take timed mock exams and get AI explanations? Create a free account