Welcome to awslagi.com – Sharing AWS, Anthropic, Google Cloud, Microsoft Azure IT Exams. It's free for all!

Professional Machine Learning Engineer

Practical machine learning engineering skills to build and deploy real-world AI models.

4.8★★★★★(268 ratings)
21,666 studentsAdvanced
Bridge the gap between data science and production engineering by mastering machine learning on Google Cloud. This course focuses on building, deploying, and operationalizing ML models using Vertex AI and best practices. Demonstrate your expertise in ML infrastructure management, data preparation, and performance monitoring. Launch your ML career by validating the skills needed to maintain intelligent systems at scale.

What you'll learn

  • ML Problem Framing
  • Architecting ML solutions
  • Preparing & Processing data
  • Developing ML models
  • Monitoring & Automating pipelines

PROFESSIONAL-MACHINE-LEARNING-ENGINEER

Lectures4
Questions188
Duration30 week
Students21,666

$20.00

Full Free Question Bank (188 Questions)

Professional Machine Learning Engineer (PROFESSIONAL-MACHINE-LEARNING-ENGINEER) Practice Questions & Verified Answers

Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.

Jump to Section:
Question #1Part 1Scaling prototypes into ML models

You are pre-training a large language model on Google Cloud. The model contains custom TensorFlow operations in its training loop. Training will use a large batch size, and you anticipate that it will run for several weeks. You need to configure a training architecture that minimizes both training duration and compute costs. What should you do?

AImplement 8 workers of a2-megagpu-16g machines by using tf.distribute.MultiWorkerMirroredStrategy.
BImplement a TPU Pod slice with -accelerator-type=v4-l28 by using tf.distribute.TPUStrategy.
CImplement 16 workers of c2d-highcpu-32 machines by using tf.distribute.MirroredStrategy.
DImplement 16 workers of a2-highgpu-8g machines by using tf.distribute.MultiWorkerMirroredStrategy.
Question #2Part 1Serving and scaling models

You built a custom model that carries out several memory-intensive preprocessing tasks before making a prediction. You deployed the model to a Vertex AI endpoint and confirmed that results were returned within a reasonable time. After directing user traffic to the endpoint, you find that it does not autoscale as expected when it receives multiple requests. What should you do?

AUse a machine type with more memory
BDecrease the number of workers per machine
CIncrease the CPU utilization target in the autoscaling configurations.
DDecrease the CPU utilization target in the autoscaling configurations
Question #3Part 1Architecting low-code AI solutions

You need to create classification workflows across several structured datasets that are currently stored in BigQuery. Because you will perform the classification multiple times, you want to complete these steps without writing code: exploratory data analysis, feature selection, model building, training, hyperparameter tuning, and serving. What should you do?

AConfigure AutoML Tables to perform the classification task.
BRun a BigQuery ML task to perform logistic regression for the classification.
CUse AI Platform Notebooks to run the classification model with pandas library.
DUse AI Platform to run the classification model job configured for hyperparameter tuning.
Question #4Part 1Monitoring AI solutions

You work for a magazine distributor and must build a model that predicts which customers will renew their subscriptions in the coming year. Using your company’s historical data as the training set, you created a TensorFlow model and deployed it to AI Platform. You need to identify which customer attribute has the greatest predictive influence for each prediction served by the model. What should you do?

AUse AI Platform notebooks to perform a Lasso regression analysis on your model, which will eliminate features that do not provide a strong signal.
BStream prediction results to BigQuery. Use BigQuery’s CORR(X1, X2) function to calculate the Pearson correlation coefficient between each feature and the target variable.
CUse the AI Explanations feature on AI Platform. Submit each prediction request with the ‘explain’ keyword to retrieve feature attributions using the sampled Shapley method.
DUse the What-If tool in Google Cloud to determine how your model will perform when individual features are excluded. Rank the feature importance in order of those that caused the most significant performance drop when removed from the model.
Question #5Part 1Serving and scaling models

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 requirement is 300ms@p99, the inventory contains 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, deploy the database on Firestore for writing and for reading the user’s navigation context, 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.
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.
Question #6Part 1Automating and orchestrating ML pipelines

You created an ML pipeline that has several input parameters. You want to explore the tradeoffs among different parameter combinations. The parameter options are: - Input dataset - Maximum tree depth of the boosted tree regressor - Optimizer learning rate You need to compare pipeline performance across the parameter combinations using F1 score, training time, and model complexity. You want the approach to be reproducible and to track every pipeline run on the same platform. What should you do?

A1. Use BigQueryML to create a boosted tree regressor, and use the hyperparameter tuning capability.2. Configure the hyperparameter syntax to select different input datasets: max tree depths, and optimizer learning rates. Choose the grid search option.
B1. Create a Vertex AI pipeline with a custom model training job as part of the pipeline. Configure the pipeline’s parameters to include those you are investigating.2. In the custom training step, use the Bayesian optimization method with F1 score as the target to maximize.
C1. Create a Vertex AI Workbench notebook for each of the different input datasets.2. In each notebook, run different local training jobs with different combinations of the max tree depth and optimizer learning rate parameters.3. After each notebook finishes, append the results to a BigQuery table.
D1. Create an experiment in Vertex AI Experiments.2. Create a Vertex AI pipeline with a custom model training job as part of the pipeline. Configure the pipeline’s parameters to include those you are investigating.3. Submit multiple runs to the same experiment, using different values for the parameters.
Question #7Part 1Monitoring AI solutions

Your company recently migrated several of its ML models to Google Cloud. You have begun developing models in Vertex AI. You need to implement a system to track model artifacts and model lineage. You want to create a simple, effective solution that can be reused for future models. What should you do?

AUse a combination of Vertex AI Pipelines and the Vertex AI SDK to integrate metadata tracking into the ML workflow.
BUse Vertex AI Pipelines for model artifacts and MLflow for model lineage.
CUse Vertex AI Experiments for model artifacts and use Vertex ML Metadata for model lineage.
DImplement a scheduled metadata tracking solution using Cloud Composer and Cloud Run functions.
Question #8Part 1Scaling prototypes into ML models

You are building an ML model in a Vertex AI Workbench notebook. You want to track artifacts and compare models while experimenting with different approaches. As you iterate on the model implementation, you need to move successful experiments to production quickly and easily. What should you do?

A1. Initialize the Vertex SDK with the name of your experiment. Log parameters and metrics for each experiment, and attach dataset and model artifacts as inputs and outputs to each execution.2. After a successful experiment create a Vertex AI pipeline.
B1. Initialize the Vertex SDK with the name of your experiment. Log parameters and metrics for each experiment, save your dataset to a Cloud Storage bucket, and upload the models to Vertex AI Model Registry.2. After a successful experiment, create a Vertex AI pipeline.
C1. Create a Vertex AI pipeline with parameters you want to track as arguments to your PipelineJob. Use the Metrics, Model, and Dataset artifact types from the Kubeflow Pipelines DSL as the inputs and outputs of the components in your pipeline.2. Associate the pipeline with your experiment when you submit the job.
D1. Create a Vertex AI pipeline. Use the Dataset and Model artifact types from the Kubeflow Pipelines DSL as the inputs and outputs of the components in your pipeline.2. In your training component, use the Vertex AI SDK to create an experiment run. Configure the log_params and log_metrics functions to track parameters and metrics of your experiment.
Question #9Part 1Collaborating within and across teams to manage data and models

You are analyzing customer data for a healthcare organization that is stored in Cloud Storage. The data includes personally identifiable information (PII). You need to carry out data exploration and preprocessing while maintaining the security and privacy of sensitive fields. What should you do?

AUse the Cloud Data Loss Prevention (DLP) API to de-identify the PII before performing data exploration and preprocessing.
BUse customer-managed encryption keys (CMEK) to encrypt the PII data at rest, and decrypt the PII data during data exploration and preprocessing.
CUse a VM inside a VPC Service Controls security perimeter to perform data exploration and preprocessing.
DUse Google-managed encryption keys to encrypt the PII data at rest, and decrypt the PII data during data exploration and preprocessing.
Question #10Part 1Serving and scaling models

You work for a textile manufacturing company. The company has hundreds of machines, each with many sensors. Your team used the sensor data to build hundreds of ML models that detect machine anomalies. The models are retrained daily, and you must deploy them cost-effectively. They must run 24/7 without downtime and provide sub-millisecond predictions. What should you do?

ADeploy a Dataflow batch pipeline and a Vertex AI Prediction endpoint.
BDeploy a Dataflow batch pipeline with the Runlnference API, and use model refresh.
CDeploy a Dataflow streaming pipeline and a Vertex AI Prediction endpoint with autoscaling.
DDeploy a Dataflow streaming pipeline with the Runlnference API, and use automatic model refresh.
Question #11Part 1Automating and orchestrating ML pipelines

You are building an ML pipeline for data processing, model training, and model deployment that uses different Google Cloud services. You have developed code for every individual task and anticipate a high frequency of new files. You now need to add an orchestration layer above these tasks. The orchestration pipeline must run only when new files exist in your dataset in a Cloud Storage bucket. You also need to minimize compute-node costs. What should you do?

ACreate a pipeline in Vertex AI Pipelines. Configure the first step to compare the contents of the bucket to the last time the pipeline was run. Use the scheduler API to run the pipeline periodically.
BCreate a Cloud Function that uses a Cloud Storage trigger and deploys a Cloud Composer directed acyclic graph (DAG).
CCreate a pipeline in Vertex AI Pipelines. Create a Cloud Function that uses a Cloud Storage trigger and deploys the pipeline.
DDeploy a Cloud Composer directed acyclic graph (DAG) with a GCSObjectUpdateSensor class that detects when a new file is added to the Cloud Storage bucket.
Question #12Part 1Architecting low-code AI solutions

You work for a hospital that wants to improve how it schedules operations. You need to create a model using the relationship between the number of scheduled surgeries and occupied beds. You want to predict, in advance, how many beds patients will need each day based on the scheduled surgeries. You have one year of hospital data arranged in 365 rows. The data contains these variables for each day: - Number of scheduled surgeries - Number of beds occupied - Date You want to maximize the speed of model development and testing. What should you do?

ACreate a BigQuery table. Use BigQuery ML to build a regression model, with number of beds as the target variable, and number of scheduled surgeries and date features (such as day of week) as the predictors.
BCreate a BigQuery table. Use BigQuery ML to build an ARIMA model, with number of beds as the target variable, and date as the time variable.
CCreate a Vertex AI tabular dataset. Train an AutoML regression model, with number of beds as the target variable, and number of scheduled minor surgeries and date features (such as day of the week) as the predictors.
DCreate a Vertex AI tabular dataset. Train a Vertex AI AutoML Forecasting model, with number of beds as the target variable, number of scheduled surgeries as a covariate and date as the time variable.
Question #13Part 1Monitoring AI solutions

Your team is training many ML models that use different algorithms, parameters, and datasets. Some models are trained in Vertex AI Pipelines, while others are trained on Vertex AI Workbench notebook instances. The team wants to compare model performance across both services while minimizing the effort needed to store parameters and metrics. What should you do?

AImplement an additional step for all the models running in pipelines and notebooks to export parameters and metrics to BigQuery.
BCreate a Vertex AI experiment. Submit all the pipelines as experiment runs. For models trained on notebooks log parameters and metrics by using the Vertex AI SDK.
CImplement all models in Vertex AI Pipelines Create a Vertex AI experiment, and associate all pipeline runs with that experiment.
DStore all model parameters and metrics as model metadata by using the Vertex AI Metadata API.
Question #14Part 1Monitoring AI solutions

You recently developed a deep learning model. To test the new model, you trained it for a few epochs on a large dataset. You observe that the training and validation losses changed very little during the training run. You want to debug the model quickly. What should you do first?

AVerify that your model can obtain a low loss on a small subset of the dataset
BAdd handcrafted features to inject your domain knowledge into the model
CUse the Vertex AI hyperparameter tuning service to identify a better learning rate
DUse hardware accelerators and train your model for more epochs
Question #15Part 1Monitoring AI solutionsSelect 2

You recently deployed an ML model. Three months after deployment, you find that the model performs poorly for certain subgroups, potentially producing biased outcomes. You suspect this inequitable performance results from class imbalances in the training data, but you cannot gather additional data. What should you do? (Choose two.)

ARemove training examples of high-performing subgroups, and retrain the model.
BAdd an additional objective to penalize the model more for errors made on the minority class, and retrain the model
CRemove the features that have the highest correlations with the majority class.
DUpsample or reweight your existing training data, and retrain the model
ERedeploy the model, and provide a label explaining the model's behavior to users.
Question #16Part 1Monitoring AI solutions

You work for a telecommunications company and are creating a model to predict which customers might not pay their next phone bill. The model is intended to proactively offer at-risk customers support, such as service discounts and extensions to bill due dates. The data is stored in BigQuery, and the predictive features available for training the model are: - Customer_id - Age - Salary (measured in local currency) - Sex - Average bill value (measured in local currency) - Number of phone calls in the last month (integer) - Average duration of phone calls (measured in minutes) You must investigate and mitigate potential bias against disadvantaged groups while maintaining model accuracy. What should you do?

ADetermine whether there is a meaningful correlation between the sensitive features and the other features. Train a BigQuery ML boosted trees classification model and exclude the sensitive features and any meaningfully correlated features.
BTrain a BigQuery ML boosted trees classification model with all features. Use the ML.GLOBAL_EXPLAIN method to calculate the global attribution values for each feature of the model. If the feature importance value for any of the sensitive features exceeds a threshold, discard the model and tram without this feature.
CTrain a BigQuery ML boosted trees classification model with all features. Use the ML.EXPLAIN_PREDICT method to calculate the attribution values for each feature for each customer in a test set. If for any individual customer, the importance value for any feature exceeds a predefined threshold, discard the model and train the model again without this feature.
DDefine a fairness metric that is represented by accuracy across the sensitive features. Train a BigQuery ML boosted trees classification model with all features. Use the trained model to make predictions on a test set. Join the data back with the sensitive features, and calculate a fairness metric to investigate whether it meets your requirements.
Question #17Part 1Automating and orchestrating ML pipelines

You created a Vertex AI pipeline with two steps. The first step preprocesses 10 TB of data, completes in about 1 hour, and saves the result to a Cloud Storage bucket. The second step uses the processed data to train a model. You need to update the model’s code so that you can test different algorithms. You want to reduce pipeline execution time and cost while minimizing changes to the pipeline. What should you do?

AAdd a pipeline parameter and an additional pipeline step. Depending on the parameter value, the pipeline step conducts or skips data preprocessing, and starts model training.
BCreate another pipeline without the preprocessing step, and hardcode the preprocessed Cloud Storage file location for model training.
CConfigure a machine with more CPU and RAM from the compute-optimized machine family for the data preprocessing step.
DEnable caching for the pipeline job, and disable caching for the model training step.
Question #18Part 1Automating and orchestrating ML pipelines

Your team is conducting an NLP research project to predict authors’ political affiliation from articles they have written. You have a large training dataset structured as follows: ![Question Image](https://cdn.examcademy.com/images/questions/1783794017208-9bilr0bj.png) You used the standard 80%-10%-10% distribution for the training, testing, and evaluation subsets. How should the training examples be allocated among the train-test-eval subsets while preserving 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 ...]
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 ...]
Question #19Part 1Scaling prototypes into ML models

You work for an ecommerce startup and must create a customer-churn prediction model. Your company’s latest sales records are stored in a BigQuery table. You want to understand how the initial model makes its predictions, and you want to iterate on the model as rapidly as possible while keeping costs low. How should you build your first model?

AExport the data to a Cloud Storage bucket. Load the data into a pandas DataFrame on Vertex AI Workbench and train a logistic regression model with scikit-learn.
BCreate a tf.data.Dataset by using the TensorFlow BigQueryClient. Implement a deep neural network in TensorFlow.
CPrepare the data in BigQuery and associate the data with a Vertex AI dataset. Create an AutoMLTabularTrainingJob to tram a classification model.
DExport the data to a Cloud Storage bucket. Create a tf.data.Dataset to read the data from Cloud Storage. Implement a deep neural network in TensorFlow.
Question #20Part 1Scaling prototypes into ML models

A proof-of-concept (POC) deep learning model has recently been created. The overall architecture is satisfactory, but the values of a couple of hyperparameters still need to be determined. You want to use Vertex AI hyperparameter tuning to identify both the suitable embedding dimension for a categorical feature used by the model and the optimal learning rate. Configure these settings: - For the embedding dimension, set the type to INTEGER, with a minValue of 16 and a maxValue of 64. - For the learning rate, set the type to DOUBLE, with a minValue of 10e-05 and a maxValue of 10e-02. You use the default Bayesian optimization tuning algorithm and want to maximize model accuracy. Training time is not a concern. How should the hyperparameter scaling for each hyperparameter and maxParallelTrials be set?

AUse UNIT_LINEAR_SCALE for the embedding dimension, UNIT_LOG_SCALE for the learning rate, and a large number of parallel trials.
BUse UNIT_LINEAR_SCALE for the embedding dimension, UNIT_LOG_SCALE for the learning rate, and a small number of parallel trials.
CUse UNIT_LOG_SCALE for the embedding dimension, UNIT_LINEAR_SCALE for the learning rate, and a large number of parallel trials.
DUse UNIT_LOG_SCALE for the embedding dimension, UNIT_LINEAR_SCALE for the learning rate, and a small number of parallel trials.
Question #21Part 1Scaling prototypes into ML models

You are building an ML model that predicts house prices. During data preparation, you find that an important predictor variable—the distance to the nearest school—is frequently missing and has low variance. Every instance (row) in the data is important. How should the missing data be handled?

ADelete the rows that have missing values.
BApply feature crossing with another column that does not have missing values.
CPredict the missing values using linear regression.
DReplace the missing values with zeros.
Question #22Part 1Monitoring AI solutions

You are creating a process to train and run your custom model in production. You need to demonstrate lineage for the model and its predictions. What should you do?

A1. Create a Vertex AI managed dataset.2. Use a Vertex AI training pipeline to train your model.3. Generate batch predictions in Vertex AI.
B1. Use a Vertex AI Pipelines custom training job component to tram your model.2. Generate predictions by using a Vertex AI Pipelines model batch predict component.
C1. Upload your dataset to BigQuery.2. Use a Vertex AI custom training job to train your model.3. Generate predictions by using Vertex Al SDK custom prediction routines.
D1. Use Vertex AI Experiments to train your model.2. Register your model in Vertex AI Model Registry.3. Generate batch predictions in Vertex AI.
Question #23Part 1Serving and scaling models

You work for a mobile-gaming startup that develops online multiplayer games. Recently, the company has seen more players cheating in its games, resulting in lost revenue and a poor user experience. You built a binary classification model to identify whether a player cheated after a game session is completed, then send a message to downstream systems to ban a player who cheated. Your model performed well in testing, and you now need to deploy it to production. You want the serving solution to return classifications immediately after a completed game session to prevent further revenue loss. What should you do?

AImport the model into Vertex AI Model Registry. Use the Vertex Batch Prediction service to run batch inference jobs.
BSave the model files in a Cloud Storage bucket. Create a Cloud Function to read the model files and make online inference requests on the Cloud Function.
CSave the model files in a VM. Load the model files each time there is a prediction request, and run an inference job on the VM
DImport the model into Vertex AI Model Registry. Create a Vertex AI endpoint that hosts the model, and make online inference requests.
Question #24Part 1Serving and scaling models

You are an AI architect at a widely used photo-sharing social media platform. Your organization’s content moderation team currently reviews user-uploaded images and manually removes explicit content. You want to implement an AI service that automatically stops users from uploading explicit images. What should you do?

ATrain an image clustering model by using TensorFlow in a Vertex AI Workbench instance. Deploy this model to a Vertex AI endpoint and configure it for online inference. Run this model each time a new image is uploaded to identify and block inappropriate uploads.
BDevelop a custom TensorFlow model in a Vertex AI Workbench instance. Train the model on a dataset of manually labeled images. Deploy the model to a Vertex AI endpoint. Run periodic batch inference to identify inappropriate uploads and report them to the content moderation team.
CCreate a dataset using manually labeled images. Ingest this dataset into AutoML. Train an image classification model and deploy into a Vertex AI endpoint. Integrate this endpoint with the image upload process to identify and block inappropriate uploads. Monitor predictions and periodically retrain the model.
DSend a copy of every user-uploaded image to a Cloud Storage bucket. Configure a Cloud Run function that triggers the Cloud Vision API to detect explicit content each time a new image is uploaded. Report the classifications to the content moderation team for review.
Question #25Part 1Automating and orchestrating ML pipelines

You are building a recommendation engine for an online clothing store. Historical customer-transaction data is stored in BigQuery and Cloud Storage. You need to perform exploratory data analysis (EDA), preprocessing, and model training. You plan to rerun these EDA, preprocessing, and training steps while experimenting with different algorithm types. You want to minimize the cost and development effort required to run these steps as you experiment. How should you configure the environment?

ACreate a Vertex AI Workbench user-managed notebook using the default VM instance, and use the %%bigquerv magic commands in Jupyter to query the tables.
BCreate a Vertex AI Workbench managed notebook to browse and query the tables directly from the JupyterLab interface.
CCreate a Vertex AI Workbench user-managed notebook on a Dataproc Hub, and use the %%bigquery magic commands in Jupyter to query the tables.
DCreate a Vertex AI Workbench managed notebook on a Dataproc cluster, and use the spark-bigquery-connector to access the tables.
Question #26Part 1Serving and scaling models

You have recently deployed a model to a Vertex AI endpoint and configured online serving in Vertex AI Feature Store. You have set up a daily batch-ingestion job to update your featurestore. During the batch-ingestion jobs, you find that CPU utilization is high on your featurestore’s online-serving nodes and that feature-retrieval latency is high. You need to improve online-serving performance during the daily batch ingestion. What should you do?

ASchedule an increase in the number of online serving nodes in your featurestore prior to the batch ingestion jobs
BEnable autoscaling of the online serving nodes in your featurestore
CEnable autoscaling for the prediction nodes of your DeployedModel in the Vertex AI endpoint
DIncrease the worker_count in the ImportFeatureValues request of your batch ingestion job
Question #27Part 1Collaborating within and across teams to manage data and models

You are training models in Vertex AI with data that spans multiple Google Cloud projects. You need to locate, track, and compare the performance of different versions of your models. Which Google Cloud services should be part of your ML workflow?

ADataplex, Vertex AI Feature Store, and Vertex AI TensorBoard
BVertex AI Pipelines, Vertex AI Feature Store, and Vertex AI Experiments
CDataplex, Vertex AI Experiments, and Vertex AI ML Metadata
DVertex AI Pipelines, Vertex AI Experiments, and Vertex AI Metadata
Question #28Part 1Architecting low-code AI solutions

You work for a company that sells corporate electronic products to thousands of businesses around the world. Your company keeps historical customer data in BigQuery. You need to build a model that predicts customer lifetime value for the next three years. You want to use the simplest approach to build the model. What should you do?

ACreate a Vertex AI Workbench notebook. Use IPython magic to run the CREATE MODEL statement to create an ARIMA model.
BAccess BigQuery Studio in the Google Cloud console. Run the CREATE MODEL statement in the SQL editor to create an AutoML regression model.
CCreate a Vertex AI Workbench notebook. Use IPython magic to run the CREATE MODEL statement to create an AutoML regression model.
DAccess BigQuery Studio in the Google Cloud console. Run the CREATE MODEL statement in the SQL editor to create an ARIMA model.
Question #29Part 1Collaborating within and across teams to manage data and models

Your team is building a customer-support chatbot for a healthcare company that handles sensitive patient information. You must ensure that all personally identifiable information (PII) captured in customer conversations is protected before the data is stored or analyzed. What should you do?

AUse the Cloud Natural Language API to identify and redact PII in chatbot conversations.
BUse the Cloud Natural Language API to classify and categorize all data, including PII, in chatbot conversations.
CUse the DLP API to encrypt PII in chatbot conversations before storing the data.
DUse the DLP API to scan and de-identify PII in chatbot conversations before storing the data.
Question #30Part 1Serving and scaling models

A model has been deployed on Vertex AI for real-time inference. An online prediction request returns an “Out of Memory” error. What should you do?

AUse batch prediction mode instead of online mode.
BSend the request again with a smaller batch of instances.
CUse base64 to encode your data before using it for prediction.
DApply for a quota increase for the number of prediction requests.
Question #31Part 1Monitoring AI solutions

You work for a gaming company that operates a popular online multiplayer game in which teams of 6 players compete against each other in 5-minute battles. Many new players join each day. You need to build a model that automatically assigns available players to teams in real time. User research shows that the game is more enjoyable when battles include players with similar skill levels. Which business metrics should you monitor to measure your model’s performance?

AAverage time players wait before being assigned to a team
BPrecision and recall of assigning players to teams based on their predicted versus actual ability
CUser engagement as measured by the number of battles played daily per user
DRate of return as measured by additional revenue generated minus the cost of developing a new model
Question #32Part 1Monitoring AI solutions

You work for a retail company and have been asked to develop a model that predicts whether a customer will buy a product on a particular day. Your team has processed the company’s sales data and created a table with these rows: - Customer_id - Product_id - Date - Days_since_last_purchase (measured in days) - Average_purchase_frequency (measured in 1/days) - Purchase (binary class, indicating whether the customer purchased the product on the Date) You need to interpret your model’s results for every individual prediction. What should you do?

ACreate a BigQuery table. Use BigQuery ML to build a boosted tree classifier. Inspect the partition rules of the trees to understand how each prediction flows through the trees.
BCreate a Vertex AI tabular dataset. Train an AutoML model to predict customer purchases. Deploy the model to a Vertex AI endpoint and enable feature attributions. Use the “explain” method to get feature attribution values for each individual prediction.
CCreate a BigQuery table. Use BigQuery ML to build a logistic regression classification model. Use the values of the coefficients of the model to interpret the feature importance, with higher values corresponding to more importance
DCreate a Vertex AI tabular dataset. Train an AutoML model to predict customer purchases. Deploy the model to a Vertex AI endpoint. At each prediction, enable L1 regularization to detect non-informative features.
Question #33Part 1Scaling prototypes into ML models

A company operates an application that collects news articles from many online sources and delivers them to users. You need to create a recommendation model that suggests articles to readers that are similar to those they are currently reading. Which approach should you use?

ACreate a collaborative filtering system that recommends articles to a user based on the user’s past behavior.
BEncode all articles into vectors using word2vec, and build a model that returns articles based on vector similarity.
CBuild a logistic regression model for each user that predicts whether an article should be recommended to a user.
DManually label a few hundred articles, and then train an SVM classifier based on the manually classified articles that categorizes additional articles into their respective categories.
Question #34Part 1Monitoring AI solutions

You are using Vertex AI and TensorFlow to build a custom image-classification model. You need the model’s decisions and their rationale to be understandable to your company’s stakeholders. You also want to examine the results to identify any issues or possible biases. What should you do?

A1. Use TensorFlow to generate and visualize features and statistics.2. Analyze the results together with the standard model evaluation metrics.
B1. Use TensorFlow Profiler to visualize the model execution.2. Analyze the relationship between incorrect predictions and execution bottlenecks.
C1. Use Vertex Explainable AI to generate example-based explanations.2. Visualize the results of sample inputs from the entire dataset together with the standard model evaluation metrics.
D1. Use Vertex Explainable AI to generate feature attributions. Aggregate feature attributions over the entire dataset.2. Analyze the aggregation result together with the standard model evaluation metrics.
Question #35Part 1Automating and orchestrating ML pipelines

You work for a social media company and want to build a no-code image-classification model for an iOS mobile application that identifies fashion accessories. You have a labeled dataset in Cloud Storage. You need to configure a training workflow that minimizes cost and delivers predictions with the lowest possible latency. What should you do?

ATrain the model by using AutoML, and register the model in Vertex AI Model Registry. Configure your mobile application to send batch requests during prediction.
BTrain the model by using AutoML Edge, and export it as a Core ML model. Configure your mobile application to use the .mlmodel file directly.
CTrain the model by using AutoML Edge, and export the model as a TFLite model. Configure your mobile application to use the .tflite file directly.
DTrain the model by using AutoML, and expose the model as a Vertex AI endpoint. Configure your mobile application to invoke the endpoint during prediction.
Question #36Part 1Scaling prototypes into ML models

You work for a global footwear retailer and need to predict when an item will run out of stock using historical inventory data. Customer behavior is highly dynamic because footwear demand is affected by many different factors. You want to serve models trained on all available data, while tracking performance on particular data subsets before promoting them to production. What is the most streamlined and reliable way to carry out this validation?

AUse then TFX ModelValidator tools to specify performance metrics for production readiness.
BUse k-fold cross-validation as a validation strategy to ensure that your model is ready for production.
CUse the last relevant week of data as a validation set to ensure that your model is performing accurately on current data.
DUse the entire dataset and treat the area under the receiver operating characteristics curve (AUC ROC) as the main metric.
Question #37Part 1Serving and scaling models

You have recently used XGBoost to train a model in Python that will be used for online serving. A backend service implemented in Golang, running on a Google Kubernetes Engine (GKE) cluster, will call the model prediction service. The model requires preprocessing and postprocessing steps, which must run at serving time. You want to minimize code changes and infrastructure maintenance and deploy the model to production as quickly as possible. What should you do?

AUse FastAPI to implement an HTTP server. Create a Docker image that runs your HTTP server, and deploy it on your organization’s GKE cluster.
BUse FastAPI to implement an HTTP server. Create a Docker image that runs your HTTP server, Upload the image to Vertex AI Model Registry and deploy it to a Vertex AI endpoint.
CUse the Predictor interface to implement a custom prediction routine. Build the custom container, upload the container to Vertex AI Model Registry and deploy it to a Vertex AI endpoint.
DUse the XGBoost prebuilt serving container when importing the trained model into Vertex AI. Deploy the model to a Vertex AI endpoint. Work with the backend engineers to implement the pre- and postprocessing steps in the Golang backend service.
Question #38Part 1Automating and orchestrating ML pipelines

You are a data scientist at an industrial-equipment manufacturing company. You are building a regression model to estimate power consumption in the company’s manufacturing plants from sensor data gathered from all plants. The sensors gather tens of millions of records each day. You must schedule daily training runs for the model using all data collected through the current date. You want the model to scale smoothly while requiring minimal development effort. What should you do?

ADevelop a custom TensorFlow regression model, and optimize it using Vertex AI Training.
BDevelop a regression model using BigQuery ML.
CDevelop a custom scikit-learn regression model, and optimize it using Vertex AI Training.
DDevelop a custom PyTorch regression model, and optimize it using Vertex AI Training.
Question #39Part 1Automating and orchestrating ML pipelines

You lead a team of data scientists who use a cloud-based backend system to submit training jobs. The system has become very hard to administer, and you want to move to a managed service. The data scientists use many different frameworks, including Keras, PyTorch, theano, scikit-learn, and custom libraries. What should you do?

AUse the Vertex AI Training to submit training jobs using any framework.
BConfigure Kubeflow to run on Google Kubernetes Engine and submit training jobs through TFJob.
CCreate a library of VM images on Compute Engine, and publish these images on a centralized repository.
DSet up Slurm workload manager to receive jobs that can be scheduled to run on your cloud infrastructure.
Question #40Part 1Architecting low-code AI solutions

You work for a gaming startup with several terabytes of structured data in Cloud Storage. The data includes gameplay-time data, user metadata, and game metadata. You want to build a model that recommends new games to users while requiring the least amount of coding. What should you do?

ALoad the data in BigQuery. Use BigQuery ML to train an Autoencoder model.
BLoad the data in BigQuery. Use BigQuery ML to train a matrix factorization model.
CRead data to a Vertex AI Workbench notebook. Use TensorFlow to train a two-tower model.
DRead data to a Vertex AI Workbench notebook. Use TensorFlow to train a matrix factorization model.
Question #41Part 1Automating and orchestrating ML pipelines

You need to use TensorFlow to train an image-classification model. Your dataset is in a Cloud Storage directory and includes millions of labeled images. Before model training, you need to prepare the data. You want the data-preprocessing and model-training workflow to be as efficient, scalable, and low-maintenance as possible. What should you do?

A1. Create a Dataflow job that creates sharded TFRecord files in a Cloud Storage directory.2. Reference tf.data.TFRecordDataset in the training script.3. Train the model by using Vertex AI Training with a V100 GPU.
B1. Create a Dataflow job that moves the images into multiple Cloud Storage directories, where each directory is named according to the corresponding label2. Reference tfds.folder_dataset:ImageFolder in the training script.3. Train the model by using Vertex AI Training with a V100 GPU.
C1. Create a Jupyter notebook that uses an nt-standard-64 V100 GPU Vertex AI Workbench instance.2. Write a Python script that creates sharded TFRecord files in a directory inside the instance.3. Reference tf.data.TFRecordDataset in the training script.4. Train the model by using the Workbench instance.
D1. Create a Jupyter notebook that uses an n1-standard-64, V100 GPU Vertex AI Workbench instance.2. Write a Python script that copies the images into multiple Cloud Storage directories, where each. directory is named according to the corresponding label.3. Reference tfds.foladr_dataset.ImageFolder in the training script.4. Train the model by using the Workbench instance.
Question #42Part 1Automating and orchestrating ML pipelines

You work for a pharmaceutical company headquartered in Canada. Your team has created a BigQuery ML model that predicts the number of flu infections in Canada for the following month. Weather data is released weekly, while flu infection statistics are released monthly. You must configure a model-retraining policy that minimizes cost. What should you do?

ADownload the weather and flu data each week. Configure Cloud Scheduler to execute a Vertex AI pipeline to retrain the model weekly.
BDownload the weather and flu data each month. Configure Cloud Scheduler to execute a Vertex AI pipeline to retrain the model monthly.
CDownload the weather and flu data each week. Configure Cloud Scheduler to execute a Vertex AI pipeline to retrain the model every month.
DDownload the weather data each week, and download the flu data each month. Deploy the model to a Vertex AI endpoint with feature drift monitoring, and retrain the model if a monitoring alert is detected.
Question #43Part 1Scaling prototypes into ML models

You work for a large hotel chain and have been asked to help the marketing team gather predictions for a targeted marketing strategy. You must predict user lifetime value (LTV) for the next 20 days so marketing can be adjusted accordingly. The customer dataset is in BigQuery, and you are preparing the tabular data for training with AutoML Tables. The data has a time signal distributed across multiple columns. How should you ensure that AutoML fits the best model to your data?

AManually combine all columns that contain a time signal into an array. AIlow AutoML to interpret this array appropriately. Choose an automatic data split across the training, validation, and testing sets.
BSubmit the data for training without performing any manual transformations. AIlow AutoML to handle the appropriate transformations. Choose an automatic data split across the training, validation, and testing sets.
CSubmit the data for training without performing any manual transformations, and indicate an appropriate column as the Time column. AIlow AutoML to split your data based on the time signal provided, and reserve the more recent data for the validation and testing sets.
DSubmit the data for training without performing any manual transformations. Use the columns that have a time signal to manually split your data. Ensure that the data in your validation set is from 30 days after the data in your training set and that the data in your testing sets from 30 days after your validation set.
Question #44Part 1Automating and orchestrating ML pipelines

You have a custom job that runs weekly on Vertex AI. The job uses a proprietary ML workflow that generates the datasets, models, and custom artifacts, then sends them to a Cloud Storage bucket. Many different versions of the datasets and models have been produced. Because of compliance requirements, your company must track which model was used to make a particular prediction and must be able to access the artifacts for every model. How should you configure your workflows to satisfy these requirements?

AUse the Vertex AI Metadata API inside the custom job to create context, execution, and artifacts for each model, and use events to link them together.
BCreate a Vertex AI experiment, and enable autologging inside the custom job.
CConfigure a TensorFlow Extended (TFX) ML Metadata database, and use the ML Metadata API.
DRegister each model in Vertex AI Model Registry, and use model labels to store the related dataset and model information.
Question #45Part 1Automating and orchestrating ML pipelines

You are building a Kubeflow pipeline on Google Kubernetes Engine. Its first step must run a query against BigQuery, and you plan to use that query’s results as input for the next pipeline step. You want to accomplish this in the simplest possible way. 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.
Question #46Part 1Scaling prototypes into ML models

You created a custom ML model with scikit-learn. Its training takes longer than anticipated. You decide to move the model to Vertex AI Training and want to improve training time. What should you try first?

AMigrate your model to TensorFlow, and train it using Vertex AI Training.
BTrain your model in a distributed mode using multiple Compute Engine VMs.
CTrain your model with DLVM images on Vertex AI, and ensure that your code utilizes NumPy and SciPy internal methods whenever possible.
DTrain your model using Vertex AI Training with GPUs.
Question #47Part 1Scaling prototypes into ML models

You were asked to investigate production-line component failures using sensor readings. After receiving the dataset, you find that fewer than 1% of readings are positive examples representing failure incidents. You have attempted to train several classification models, but none converges. How should you address the class-imbalance issue?

AUse the class distribution to generate 10% positive examples.
BUse a convolutional neural network with max pooling and softmax activation.
CDownsample the data with upweighting to create a sample with 10% positive examples.
DRemove negative examples until the numbers of positive and negative examples are equal.
Question #48Part 1Automating and orchestrating ML pipelines

A data science team requests a system that supports scheduled model retraining, Docker containers, and a service providing autoscaling and monitoring for online prediction requests. Which platform components should be selected for this system?

AVertex AI Pipelines and App Engine
BVertex AI Pipelines, Vertex AI Prediction, and Vertex AI Model Monitoring
CCloud Composer, BigQuery ML, and Vertex AI Prediction
DCloud Composer, Vertex AI Training with custom containers, and App Engine
Question #49Part 1Automating and orchestrating ML pipelines

You developed a Vertex AI pipeline that trains a classification model on data stored in a large BigQuery table. The pipeline has four steps, each created by a Python function that uses the KubeFlow v2 API. The components have the following names: ![Question Image](https://cdn.examcademy.com/images/questions/1783861182610-r3c41yju.png) You launch the Vertex AI pipeline as follows: ![Question Image](https://cdn.examcademy.com/images/questions/1783861188645-dcrzxexx.png) You perform many model iterations by adjusting the code and parameters of the training step. You observe high development costs, particularly for the data-export and preprocessing steps. You need to reduce model-development costs. What should you do?

AChange the components’ YAML filenames to export.yaml, preprocess,yaml, f "train-{dt}.yaml", f"calibrate-{dt).vaml".
BAdd the {"kubeflow.v1.caching": True} parameter to the set of params provided to your PipelineJob.
CMove the first step of your pipeline to a separate step, and provide a cached path to Cloud Storage as an input to the main pipeline.
DChange the name of the pipeline to f"my-awesome-pipeline-{dt}".
Question #50Part 1Architecting low-code AI solutions

You work for a company that sells corporate electronic products to thousands of businesses worldwide. The company keeps historical customer data in BigQuery. You need to build a model that forecasts customer lifetime value for the next three years. You want the simplest way to build the model while retaining access to visualization tools. What should you do?

ACreate a Vertex AI Workbench notebook to perform exploratory data analysis. Use IPython magics to create a new BigQuery table with input features. Use the BigQuery console to run the CREATE MODEL statement. Validate the results by using the ML.EVALUATE and ML.PREDICT statements.
BRun the CREATE MODEL statement from the BigQuery console to create an AutoML model. Validate the results by using the ML.EVALUATE and ML.PREDICT statements.
CCreate a Vertex AI Workbench notebook to perform exploratory data analysis and create input features. Save the features as a CSV file in Cloud Storage. Import the CSV file as a new BigQuery table. Use the BigQuery console to run the CREATE MODEL statement. Validate the results by using the ML.EVALUATE and ML.PREDICT statements.
DCreate a Vertex AI Workbench notebook to perform exploratory data analysis. Use IPython magics to create a new BigQuery table with input features, create the model, and validate the results by using the CREATE MODEL, ML.EVALUATE, and ML.PREDICT statements.
Question #51Part 1Automating and orchestrating ML pipelines

You need to create classification workflows for several structured datasets currently stored in BigQuery. Because you will perform the classification multiple times, you want to carry out the following steps without writing code: exploratory data analysis, feature selection, model building, training, hyperparameter tuning, and serving. Which action should you take?

ATrain a TensorFlow model on Vertex AI.
BTrain a classification Vertex AutoML model.
CRun a logistic regression job on BigQuery ML.
DUse scikit-learn in Vertex AI Workbench user-managed notebooks with pandas library.
Question #52Part 1Scaling prototypes into ML modelsSelect 2

You are developing a model to detect fraudulent credit card transactions. You need to prioritize detection because missing even one fraudulent transaction could severely affect the credit card holder. You used AutoML to train a model on users' profile information and credit card transaction data. After training the initial model, you notice that it fails to detect many fraudulent transactions. How should you adjust the training parameters in AutoML to improve model performance? (Choose two.)

AIncrease the score threshold
BDecrease the score threshold.
CAdd more positive examples to the training set
DAdd more negative examples to the training set
EReduce the maximum number of node hours for training
Question #53Part 1Serving and scaling models

You work for a social media company and need to determine whether posted images contain cars. Every training example belongs to exactly one class. You trained an object-detection neural network and deployed its model version to AI Platform Prediction for evaluation. Before deploying it, you created an evaluation job and attached it to the AI Platform Prediction model version. You find that precision is below what the business requirements permit. How should you change the final-layer softmax threshold to raise precision?

AIncrease the recall.
BDecrease the recall.
CIncrease the number of false positives.
DDecrease the number of false negatives.
Question #54Part 1Scaling prototypes into ML models

You are building an image-recognition model in PyTorch using the ResNet50 architecture. Your code runs successfully on a small subsample on your local laptop. The complete dataset contains 200k labeled images. You need to scale the training workload quickly while keeping costs as low as possible, and you plan to use 4 V100 GPUs. What should you do?

ACreate a Google Kubernetes Engine cluster with a node pool that has 4 V100 GPUs. Prepare and submit a TFJob operator to this node pool.
BCreate a Vertex AI Workbench user-managed notebooks instance with 4 V100 GPUs, and use it to train your model.
CPackage your code with Setuptools, and use a pre-built container. Train your model with Vertex AI using a custom tier that contains the required GPUs.
DConfigure a Compute Engine VM with all the dependencies that launches the training. Train your model with Vertex AI using a custom tier that contains the required GPUs.
Question #55Part 1Automating and orchestrating ML pipelines

You are creating a custom image-classification model and intend to use Vertex AI Pipelines to implement end-to-end training. Your dataset contains images that must be preprocessed before they can train the model. The preprocessing includes: - resizing the images, - converting them to grayscale, and - extracting features. You have already implemented Python functions for the preprocessing tasks. Which components should you use in the pipeline?

ADataprocSparkBatchOp and CustomTrainingJobOp
BDataflowPythonJobOp, WaitGcpResourcesOp, and CustomTrainingJobOp
Cdsl.ParallelFor, dsl.component, and CustomTrainingJobOp
DImageDatasetImportDataOp, dsl.component, and AutoMLImageTrainingJobRunOp
Question #56Part 1Monitoring AI solutions

You work at a bank and have a custom tabular ML model supplied by the bank’s vendor. Its training data is unavailable because it is sensitive. The model is packaged in a Vertex AI Model serving container that accepts one string per prediction instance, with feature values in each string separated by commas. You want to deploy this model to production for online predictions and, with minimal effort, monitor how the feature distribution changes over time. What should you do?

A1. Upload the model to Vertex AI Model Registry, and deploy the model to a Vertex AI endpoint2. Create a Vertex AI Model Monitoring job with feature drift detection as the monitoring objective, and provide an instance schema
B1. Upload the model to Vertex AI Model Registry, and deploy the model to a Vertex AI endpoint2. Create a Vertex AI Model Monitoring job with feature skew detection as the monitoring objective, and provide an instance schema
C1. Refactor the serving container to accept key-value pairs as input format2. Upload the model to Vertex AI Model Registry, and deploy the model to a Vertex AI endpoint3. Create a Vertex AI Model Monitoring job with feature drift detection as the monitoring objective.
D1. Refactor the serving container to accept key-value pairs as input format2. Upload the model to Vertex AI Model Registry, and deploy the model to a Vertex AI endpoint3. Create a Vertex AI Model Monitoring job with feature skew detection as the monitoring objective
Question #57Part 1Monitoring AI solutions

You are developing a model to predict daily temperatures. You randomly split the data and then transformed the training and test datasets. Temperature data for model training is uploaded hourly. During testing, the model achieved 97% accuracy; however, after deployment to production, its accuracy fell to 66%. How can you improve the production model’s accuracy?

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.
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.
Question #58Part 1Automating and orchestrating ML pipelines

Your company retains many audio recordings of calls made to its customer call center in an on-premises database. Each recording is in WAV format and lasts approximately 5 minutes. You need to analyze the audio files for customer sentiment. You plan to use the Speech-to-Text API and want the most efficient approach. What should you do?

A1. Upload the audio files to Cloud Storage2. Call the speech:longrunningrecognize API endpoint to generate transcriptions3. Call the predict method of an AutoML sentiment analysis model to analyze the transcriptions.
B1. Upload the audio files to Cloud Storage.2. Call the speech:longrunningrecognize API endpoint to generate transcriptions3. Create a Cloud Function that calls the Natural Language API by using the analyzeSentiment method
C1. Iterate over your local files in Python2. Use the Speech-to-Text Python library to create a speech.RecognitionAudio object, and set the content to the audio file data3. Call the speech:recognize API endpoint to generate transcriptions4. Call the predict method of an AutoML sentiment analysis model to analyze the transcriptions.
D1. Iterate over your local files in Python2. Use the Speech-to-Text Python Library to create a speech.RecognitionAudio object and set the content to the audio file data3. Call the speech:longrunningrecognize API endpoint to generate transcriptions.4. Call the Natural Language API by using the analyzeSentiment method
Question #59Part 1Scaling prototypes into ML models

You are training an object-detection model on a Cloud TPU v2, but training is taking longer than expected. Based on this simplified trace from a Cloud TPU profile, what action should you take to reduce training time cost-effectively? ![Question Image](https://cdn.examcademy.com/images/questions/1783824537298-b0jexocx.png)

AMove from Cloud TPU v2 to Cloud TPU v3 and increase batch size.
BMove from Cloud TPU v2 to 8 NVIDIA V100 GPUs and increase batch size.
CRewrite your input function to resize and reshape the input images.
DRewrite your input function using parallel reads, parallel processing, and prefetch.
Question #60Part 1Scaling prototypes into ML models

You are training an object-detection machine learning model using a dataset of three million X-ray images, each approximately 2 GB in size. You use Vertex AI Training to run a custom training application on a Compute Engine instance with 32 cores, 128 GB of RAM, and one NVIDIA P100 GPU. You observe that model training is taking a very long time. You want to reduce the training time without compromising model performance. What should you do?

AIncrease the instance memory to 512 GB, and increase the batch size.
BReplace the NVIDIA P100 GPU with a K80 GPU in the training job.
CEnable early stopping in your Vertex AI Training job.
DUse the tf.distribute.Strategy API and run a distributed training job.
Question #61Part 2Architecting low-code AI solutions

You work for a retail company and are responsible for developing an ML model that predicts product sales. The company’s historical sales data is stored in BigQuery and contains features such as date, store location, product category, and promotion details. You need to select the most effective combination of a BigQuery ML model and feature engineering to maximize prediction accuracy. What should you do?

AUse a linear regression model. Perform one-hot encoding on categorical features, and create additional features based on the date, such as day of the week or month.
BUse a boosted tree model. Perform label encoding on categorical features, and transform the date column into numeric values.
CUse an autoencoder model. Perform label encoding on categorical features, and normalize the date column.
DUse a matrix factorization model. Perform one-hot encoding on categorical features, and create interaction features between the store location and product category variables.
Question #62Part 2Monitoring AI solutions

An ML model was deployed to production one year ago. Each month, you collect all raw requests sent to the model prediction service during the prior month. You send a subset of those requests to a human labeling service to assess the model’s performance. After one year, you observe that model performance sometimes degrades substantially after a month, whereas at other times it takes several months to detect a performance decrease. The labeling service is expensive, but large performance degradations must also be avoided. You need to decide how often to retrain the model in order to maintain high performance while minimizing cost. What should you do?

ATrain an anomaly detection model on the training dataset, and run all incoming requests through this model. If an anomaly is detected, send the most recent serving data to the labeling service.
BIdentify temporal patterns in your model’s performance over the previous year. Based on these patterns, create a schedule for sending serving data to the labeling service for the next year.
CCompare the cost of the labeling service with the lost revenue due to model performance degradation over the past year. If the lost revenue is greater than the cost of the labeling service, increase the frequency of model retraining; otherwise, decrease the model retraining frequency.
DRun training-serving skew detection batch jobs every few days to compare the aggregate statistics of the features in the training dataset with recent serving data. If skew is detected, send the most recent serving data to the labeling service.
Question #63Part 2Monitoring AI solutions

You are developing a batch process that will train a custom model and generate predictions. You need to be able to display lineage for both the model and the batch predictions. What should you do?

A1. Upload your dataset to BigQuery.2. Use a Vertex AI custom training job to train your model.3. Generate predictions by using Vertex AI SDK custom prediction routines.
B1. Use Vertex AI Experiments to evaluate model performance during training.2. Register your model in Vertex AI Model Registry.3. Generate batch predictions in Vertex AI.
C1. Create a Vertex AI managed dataset.2. Use a Vertex AI training pipeline to train your model.3. Generate batch predictions in Vertex AI.
D1. Use a Vertex AI Pipelines custom training job component to train your model.2. Generate predictions by using a Vertex AI Pipelines model batch predict component.
Question #64Part 2Scaling prototypes into ML models

You recently built a deep learning model with Keras and are now trying different training strategies. You initially trained the model on a single GPU, but training was too slow. You then distributed training over 4 GPUs with tf.distribute.MirroredStrategy (making no other changes), but did not see a reduction in training time. What should you do?

ADistribute the dataset with tf.distribute.Strategy.experimental_distribute_dataset
BCreate a custom training loop.
CUse a TPU with tf.distribute.TPUStrategy.
DIncrease the batch size.
Question #65Part 2Automating and orchestrating ML pipelines

You have recently built a custom neural-network model for image classification. You need to automatically determine the values for learning rate, number of layers, and kernel size. To accomplish this, you plan to run multiple jobs in parallel to identify the parameters that optimize performance. You want to minimize custom-code development and infrastructure management. What should you do?

ATrain an AutoML image classification model.
BCreate a custom training job that uses the Vertex AI Vizier SDK for parameter optimization.
CCreate a Vertex AI hyperparameter tuning job.
DCreate a Vertex AI pipeline that runs different model training jobs in parallel.
Question #66Part 2Serving and scaling models

You are building an AI text generator that can dynamically adapt its responses to reflect a user's writing style and imitate famous authors when their style is detected. You have a large dataset containing works by various authors, and plan to host the model on a custom VM. You want to use the most effective model. What should you do?

ADeploy Llama 3 from Model Garden, and use prompt engineering techniques.
BFine-tune a BERT-based model from TensorFlow Hub.
CFine-tune Llama 3 from Model Garden on Vertex AI Pipelines.
DUse the Gemini 1.5 Flash foundational model to build the text generator.
Question #67Part 2Serving and scaling models

You work for a semiconductor manufacturing company and must build a real-time application to automate the quality-control process. High-definition images of every semiconductor are captured in real time at the end of the assembly line. The photos are uploaded to a Cloud Storage bucket together with tabular data containing each semiconductor’s batch number, serial number, dimensions, and weight. You need to configure model training and serving while maximizing model accuracy. What should you do?

AUse Vertex AI Data Labeling Service to label the images, and tram an AutoML image classification model. Deploy the model, and configure Pub/Sub to publish a message when an image is categorized into the failing class.
BUse Vertex AI Data Labeling Service to label the images, and train an AutoML image classification model. Schedule a daily batch prediction job that publishes a Pub/Sub message when the job completes.
CConvert the images into an embedding representation. Import this data into BigQuery, and train a BigQuery ML K-means clustering model with two clusters. Deploy the model and configure Pub/Sub to publish a message when a semiconductor’s data is categorized into the failing cluster.
DImport the tabular data into BigQuery, use Vertex AI Data Labeling Service to label the data and train an AutoML tabular classification model. Deploy the model, and configure Pub/Sub to publish a message when a semiconductor’s data is categorized into the failing class.
Question #68Part 2Serving and scaling models

You work for a gaming company that creates massively multiplayer online (MMO) games. You built a TensorFlow model that predicts whether players will make in-app purchases of more than $10 during the next two weeks. The model’s predictions will be used to tailor each user’s game experience. User data is stored in BigQuery. How should you serve the model while optimizing cost, user experience, and ease of management?

AImport the model into BigQuery ML. Make predictions using batch reading data from BigQuery, and push the data to Cloud SQL
BDeploy the model to Vertex AI Prediction. Make predictions using batch reading data from Cloud Bigtable, and push the data to Cloud SQL.
CEmbed the model in the mobile application. Make predictions after every in-app purchase event is published in Pub/Sub, and push the data to Cloud SQL.
DEmbed the model in the streaming Dataflow pipeline. Make predictions after every in-app purchase event is published in Pub/Sub, and push the data to Cloud SQL.
Question #69Part 2Scaling prototypes into ML models

You are training an LSTM-based model on AI Platform to summarize text with the following job-submission script: ``bash gcloud ai-platform jobs submit training $JOB_NAME \ --package-path $TRAINER_PACKAGE_PATH \ --module-name $MAIN_TRAINER_MODULE \ --job-dir $JOB_DIR \ --region $REGION \ --scale-tier basic \ -- \ --epochs 20 \ --batch_size=32 \ --learning_rate=0.001 \ `` You want to ensure that training time is minimized without significantly compromising your model’s accuracy. What should you do? gcloud ai-platform jobs submit training $JOB_NAME \ --package-path $TRAINER_PACKAGE_PATH \ --module-name $MAIN_TRAINER_MODULE \ --job-dir $JOB_DIR \ --region $REGION \ --scale-tier basic \ -- \ --epochs 20 \ --batch_size=32 \ --learning_rate=0.001 \

AModify the 'epochs' parameter.
BModify the 'scale-tier' parameter.
CModify the 'batch size' parameter.
DModify the 'learning rate' parameter.
Question #70Part 2Scaling prototypes into ML models

You developed a Transformer model in TensorFlow to translate text. Your training data includes millions of documents in a Cloud Storage bucket. You plan to use distributed training to reduce the training time. You need to configure the training job while minimizing the effort needed to modify code and manage the cluster configuration. What should you do?

ACreate a Vertex AI custom training job with GPU accelerators for the second worker pool. Use tf.distribute.MultiWorkerMirroredStrategy for distribution.
BCreate a Vertex AI custom distributed training job with Reduction Server. Use N1 high-memory machine type instances for the first and second pools, and use N1 high-CPU machine type instances for the third worker pool.
CCreate a training job that uses Cloud TPU VMs. Use tf.distribute.TPUStrategy for distribution.
DCreate a Vertex AI custom training job with a single worker pool of A2 GPU machine type instances. Use tf.distribute.MirroredStrategv for distribution.
Question #71Part 2Serving and scaling models

You work for a delivery company and must design a system to store and manage features such as delivered parcels and truck locations over time. The system must retrieve these features with low latency and supply them to a model for online prediction. The data science team will retrieve historical data at a specific point in time for model training. You want to store the features with minimal effort. What should you do?

AStore features in Bigtable as key/value data.
BStore features in Vertex AI Feature Store.
CStore features as a Vertex AI dataset, and use those features to train the models hosted in Vertex AI endpoints.
DStore features in BigQuery timestamp partitioned tables, and use the BigQuery Storage Read API to serve the features.
Question #72Part 2Scaling prototypes into ML models

You are designing an ML recommendation model for shoppers on your company’s ecommerce website. You will use Recommendations AI to build, test, and deploy the system. How should you develop recommendations that increase revenue while following best practices?

AUse the ג€Other Products You May Likeג€ recommendation type to increase the click-through rate.
BUse the ג€Frequently Bought Togetherג€ recommendation type to increase the shopping cart size for each order.
CImport your user events and then your product catalog to make sure you have the highest quality event stream.
DBecause it will take time to collect and record product data, use placeholder values for the product catalog to test the viability of the model.
Question #73Part 2Serving and scaling models

You trained a TensorFlow DNN regressor to predict housing prices from predictive features. Your default precision is tf.float64, and you use a standard TensorFlow estimator: ![Question Image](https://cdn.examcademy.com/images/questions/1783828037012-z4zh59re.png) The model performs well, but immediately before production deployment you find that serving latency is **10 ms at the 90th percentile** and that you currently serve on CPUs. Production requires model latency of **8 ms at the 90th percentile**. You are willing to accept a small reduction in performance to meet the latency requirement. Therefore, you plan to improve latency while evaluating the amount by which the model's predictions decrease. What should you try first to quickly reduce serving latency?

ASwitch from CPU to GPU serving.
BApply quantization to your SavedModel by reducing the floating point precision to tf.float16.
CIncrease the dropout rate to 0.8 and retrain your model.
DIncrease the dropout rate to 0.8 in _PREDICT mode by adjusting the TensorFlow Serving parameters.
Question #74Part 2Scaling prototypes into ML models

You are developing a binary-classification ML algorithm that determines whether an image of a classified scanned document contains a company’s logo. In the dataset, 96% of examples lack the logo, making the dataset highly skewed. Which metrics would provide the greatest confidence in the model?

AF-score where recall is weighed more than precision
BRMSE
CF1 score
DF-score where precision is weighed more than recall
Question #75Part 2Architecting low-code AI solutions

You work for a credit card company and have been asked to build a custom fraud-detection model from historical data by using AutoML Tables. You must prioritize detecting fraudulent transactions while minimizing false positives. Which optimization objective should be used to train 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
DAn optimization objective that maximizes the area under the receiver operating characteristic curve (AUC ROC) value
Question #76Part 2Scaling prototypes into ML models

You are the lead ML engineer for a mission-critical project that analyzes massive datasets with Apache Spark. You must create a robust environment that enables your team to quickly prototype Spark models in Jupyter notebooks. What is the fastest way to do this?

ASet up a Vertex AI Workbench instance with a Spark kernel.
BUse Colab Enterprise with a Spark kernel.
CSet up a Dataproc cluster with Spark and use Jupyter notebooks.
DConfigure a Compute Engine instance with Spark and use Jupyter notebooks.
Question #77Part 2Monitoring AI solutions

You recently developed the first version of an image-segmentation model for a self-driving car. After deploying it, you notice a decline in the area-under-the-curve (AUC) metric. While reviewing video recordings, you also find that the model fails in highly congested traffic but works as expected when traffic is lighter. What is the most likely cause of this outcome?

AThe model is overfitting in areas with less traffic and underfitting in areas with more traffic.
BAUC is not the correct metric to evaluate this classification model.
CToo much data representing congested areas was used for model training.
DGradients become small and vanish while backpropagating from the output to input nodes.
Question #78Part 2Serving and scaling models

You work for a large bank that serves customers through an application hosted in Google Cloud and running in the US and Singapore. You developed a PyTorch model that classifies transactions as potentially fraudulent or not. The model is a three-layer perceptron that takes both numerical and categorical features as input, with hashing performed within the model. You deployed the model in the us-central1 region on nl-highcpu-16 machines, with predictions served in real time. The model’s current median response latency is 40 ms. You want to lower latency, particularly in Singapore, where some customers experience the longest delays. What should you do?

AAttach an NVIDIA T4 GPU to the machines being used for online inference.
BChange the machines being used for online inference to nl-highcpu-32.
CDeploy the model to Vertex AI private endpoints in the us-central1 and asia-southeast1 regions, and allow the application to choose the appropriate endpoint.
DCreate another Vertex AI endpoint in the asia-southeast1 region, and allow the application to choose the appropriate endpoint.
Question #79Part 2Scaling prototypes into ML models

You are developing a linear model with more than 100 input features, each having values between –1 and 1. You believe that many features are non-informative. You want to remove non-informative features from the model while retaining informative features in their original form. Which technique should you use?

AUse principal component analysis (PCA) to eliminate the least informative features.
BUse L1 regularization to reduce the coefficients of uninformative features to 0.
CAfter building your model, use Shapley values to determine which features are the most informative.
DUse an iterative dropout technique to identify which features do not degrade the model when removed.
Question #80Part 2Scaling prototypes into ML models

You collaborate with a team of researchers to create state-of-the-art algorithms for financial analysis. The team develops and debugs complex TensorFlow models. You want to retain ease of debugging while reducing model-training time. How should you configure the training environment?

AConfigure a v3-8 TPU VM. SSH into the VM to train and debug the model.
BConfigure a v3-8 TPU node. Use Cloud Shell to SSH into the Host VM to train and debug the model.
CConfigure a n1 -standard-4 VM with 4 NVIDIA P100 GPUs. SSH into the VM and use ParameterServerStraregv to train the model.
DConfigure a n1-standard-4 VM with 4 NVIDIA P100 GPUs. SSH into the VM and use MultiWorkerMirroredStrategy to train the model.
Question #81Part 2Scaling prototypes into ML models

You are an ML engineer at a global car manufacturer. You must build an ML model that predicts car sales across different cities worldwide. Which features or feature crosses should you use to train city-specific relationships between car type and the 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.
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.
Question #82Part 2Automating and orchestrating ML pipelines

While profiling your TensorFlow model’s training time, you identify a performance problem caused by inefficiencies in the input data pipeline for a single 5-terabyte CSV-file dataset on Cloud Storage. You need to optimize input-pipeline performance. Which action should you try first to improve your pipeline’s efficiency?

APreprocess the input CSV file into a TFRecord file.
BRandomly select a 10 gigabyte subset of the data to train your model.
CSplit into multiple CSV files and use a parallel interleave transformation.
DSet the reshuffle_each_iteration parameter to true in the tf.data.Dataset.shuffle method.
Question #83Part 2Automating and orchestrating ML pipelines

You have created unit tests for a Kubeflow Pipeline that depend on custom libraries. You want to automate running the unit tests for every new push to your development branch in Cloud Source Repositories. What should you do?

AWrite a script that sequentially performs the push to your development branch and executes the unit tests on Cloud Run.
BUsing Cloud Build, set an automated trigger to execute the unit tests when changes are pushed to your development branch.
CSet up a Cloud Logging sink to a Pub/Sub topic that captures interactions with Cloud Source Repositories. Configure a Pub/Sub trigger for Cloud Run, and execute the unit tests on Cloud Run.
DSet up a Cloud Logging sink to a Pub/Sub topic that captures interactions with Cloud Source Repositories. Execute the unit tests using a Cloud Function that is triggered when messages are sent to the Pub/Sub topic.
Question #84Part 2Automating and orchestrating ML pipelines

You are building ML models with AI Platform for image segmentation of CT scans. You often revise your model architectures based on the latest available research papers and must rerun training on the same dataset to benchmark performance. You want to minimize computation costs and manual intervention while maintaining version control for your code. What should you do?

AUse Cloud Functions to identify changes to your code in Cloud Storage and trigger a retraining job.
BUse the gcloud command-line tool to submit training jobs on AI Platform when you update your code.
CUse Cloud Build linked with Cloud Source Repositories to trigger retraining when new code is pushed to the repository.
DCreate an automated workflow in Cloud Composer that runs daily and looks for changes in code in Cloud Storage using a sensor.
Question #85Part 2Automating and orchestrating ML pipelines

You are developing an MLOps platform to automate your company’s ML experiments and model retraining. You need to organize artifacts for dozens of pipelines. How should you store the pipelines’ artifacts?

AStore parameters in Cloud SQL, and store the models’ source code and binaries in GitHub.
BStore parameters in Cloud SQL, store the models’ source code in GitHub, and store the models’ binaries in Cloud Storage.
CStore parameters in Vertex ML Metadata, store the models’ source code in GitHub, and store the models’ binaries in Cloud Storage.
DStore parameters in Vertex ML Metadata and store the models’ source code and binaries in GitHub.
Question #86Part 2Automating and orchestrating ML pipelines

You work on the AI team at an automobile company and are building a visual defect-detection model with TensorFlow and Keras. To improve model performance, you want to add image-augmentation functions such as translation, cropping, and contrast adjustment. These functions are randomly applied to every training batch. You want to optimize the data-processing pipeline for runtime and compute-resource utilization. What should you do?

AEmbed the augmentation functions dynamically in the tf.Data pipeline.
BEmbed the augmentation functions dynamically as part of Keras generators.
CUse Dataflow to create all possible augmentations, and store them as TFRecords.
DUse Dataflow to create the augmentations dynamically per training run, and stage them as TFRecords.
Question #87Part 2Monitoring AI solutions

You are an ML researcher evaluating several deep learning model architectures and hyperparameter configurations. You need to implement a robust solution that tracks the progress of every model iteration, visualizes key metrics, provides insight into model internals, and optimizes training performance. You want the most efficient and powerful approach for comparing the models, with the strongest visualization capabilities. How should you build this solution?

AUse Vertex AI TensorBoard for in-depth visualization and analysis, and use BigQuery for experiment tracking and analysis.
BUse Vertex AI TensorBoard for visualizing training progress and model behavior, and use Vertex AI Feature Store to stove and manage experiment data for analysis and reproducibility.
CUse Vertex AI Experiments for tracking iterations and comparison, and use Vertex AI TensorBoard for visualization and analysis of the training metrics and model architecture.
DUse Vertex AI Experiments for tracking iterations and comparison, and use BigQuery and Looker Studio for visualization and analysis of the training metrics and model architecture.
Question #88Part 2Serving and scaling models

You developed an ML model that detects sentiment in users’ posts on your company’s social-media page to identify outages or bugs. You use Dataflow to deliver real-time predictions for data ingested from Pub/Sub. You plan to train the model through multiple iterations and retain the newest two versions live after each run. You want traffic divided 80:20 between the versions, with the newest model receiving most traffic. You also want the simplest pipeline possible with minimal management. What should you do?

ADeploy the models to a Vertex AI endpoint using the traffic-split=0=80, PREVIOUS_MODEL_ID=20 configuration.
BWrap the models inside an App Engine application using the --splits PREVIOUS_VERSION=0.2, NEW_VERSION=0.8 configuration
CWrap the models inside a Cloud Run container using the REVISION1=20, REVISION2=80 revision configuration.
DImplement random splitting in Dataflow using beam.Partition() with a partition function calling a Vertex AI endpoint.
Question #89Part 2Scaling prototypes into ML models

You have been asked to build a model using a dataset stored in a medium-sized (~10 GB) BigQuery table. You need to rapidly determine whether this data is appropriate for model development. You want to produce a one-time report containing both informative visualizations of data distributions and more sophisticated statistical analyses to share with other ML engineers on your team. You require maximum flexibility in creating the report. What should you do?

AUse Vertex AI Workbench user-managed notebooks to generate the report.
BUse the Google Data Studio to create the report.
CUse the output from TensorFlow Data Validation on Dataflow to generate the report.
DUse Dataprep to create the report.
Question #90Part 2Serving and scaling models

You work for an online grocery store and recently developed a custom ML model that recommends a recipe when a user visits the website. You selected the machine type on the Vertex AI endpoint to optimize costs, using the queries per second (QPS) the model can serve, and deployed it on one machine with 8 vCPUs and no accelerators. A holiday season is coming, and you expect traffic to be four times the typical daily volume. You need to make sure the model can scale efficiently for the increased demand. What should you do?

A1. Maintain the same machine type on the endpoint.2. Set up a monitoring job and an alert for CPU usage.3. If you receive an alert, add a compute node to the endpoint.
B1. Change the machine type on the endpoint to have 32 vCPUs.2. Set up a monitoring job and an alert for CPU usage.3. If you receive an alert, scale the vCPUs further as needed.
C1. Maintain the same machine type on the endpoint Configure the endpoint to enable autoscaling based on vCPU usage.2. Set up a monitoring job and an alert for CPU usage.3. If you receive an alert, investigate the cause.
D1. Change the machine type on the endpoint to have a GPU. Configure the endpoint to enable autoscaling based on the GPU usage.2. Set up a monitoring job and an alert for GPU usage.3. If you receive an alert, investigate the cause.
Question #91Part 2Automating and orchestrating ML pipelinesSelect 2

You have a working end-to-end ML pipeline that tunes your ML model’s hyperparameters by using AI Platform, then trains with the best-tuned parameters. Hyperparameter tuning is taking longer than anticipated and is delaying downstream processes. You want to accelerate the tuning job without materially reducing 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.
DChange the search algorithm from Bayesian search to random search.
EDecrease the maximum number of trials during subsequent training phases.
Question #92Part 2Scaling prototypes into ML models

You began a classification problem using time-series data and, after only a few experiments, achieved an area under the receiver operating characteristic curve (AUC ROC) of 99% on the training data. You have not tried sophisticated algorithms or spent time tuning hyperparameters. What should be your next step to identify and correct 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.
DAddress the model overfitting by tuning the hyperparameters to reduce the AUC ROC value.
Question #93Part 2Serving and scaling models

You are the lead ML architect at a small company migrating from on-premises infrastructure to Google Cloud. Your company has limited cloud-infrastructure resources and expertise. You want to begin serving your models from Google Cloud as quickly as possible, using a scalable, reliable, cost-effective solution that needs no additional resources. What should you do?

AConfigure Compute Engine VMs to host your models.
BCreate a Cloud Run function to deploy your models as serverless functions.
CCreate a managed cluster on Google Kubernetes Engine (GKE), and deploy your models as containers.
DDeploy your models on Vertex AI endpoints.
Question #94Part 2Monitoring AI solutions

You work for an online publisher that provides news articles to more than 50 million readers. You have built an AI model that recommends content for the company’s weekly newsletter. A recommendation is deemed successful when the article is opened within two days of the newsletter’s publication date and the user stays on the page for at least one minute. All information required to calculate the success metric is available in BigQuery and updated hourly. The model is trained using eight weeks of data; on average, its performance falls below the acceptable baseline after five weeks; and training takes 12 hours. You want to keep model performance above the acceptable baseline while minimizing cost. How should you monitor the model to determine when retraining is required?

AUse Vertex AI Model Monitoring to detect skew of the input features with a sample rate of 100% and a monitoring frequency of two days.
BSchedule a cron job in Cloud Tasks to retrain the model every week before the newsletter is created.
CSchedule a weekly query in BigQuery to compute the success metric.
DSchedule a daily Dataflow job in Cloud Composer to compute the success metric.
Question #95Part 2Monitoring AI solutions

You built a custom model in Vertex AI to forecast your company’s product sales from historical transaction data. You expect the feature distributions and correlations among features to change soon. You also anticipate a high volume of prediction requests. You plan to use Vertex AI Model Monitoring for drift detection and want to minimize cost. What should you do?

AUse the features for monitoring. Set a monitoring-frequency value that is higher than the default.
BUse the features for monitoring. Set a prediction-sampling-rate value that is closer to 1 than 0.
CUse the features and the feature attributions for monitoring. Set a monitoring-frequency value that is lower than the default.
DUse the features and the feature attributions for monitoring. Set a prediction-sampling-rate value that is closer to 0 than 1.
Question #96Part 2Automating and orchestrating ML pipelines

You work for a bank. You must train a model using unstructured data in Cloud Storage to predict whether credit card transactions are fraudulent. The data must be converted into a structured format to support analysis in BigQuery. Company policy requires that data containing personally identifiable information (PII) stays in Cloud Storage. You need to implement a scalable solution that retains the data's analytical value. What should you do?

AUse BigQuery’s authorized views and column-level access controls to restrict access to PII within the dataset.
BUse the DLP API to de-identify the sensitive data before loading it into BigQuery.
CStore the unstructured data in a separate PII-compliant BigQuery database.
DRemove the sensitive data from the files manually before loading them into BigQuery.
Question #97Part 2Scaling prototypes into ML models

You work for an ecommerce company that wants to automatically classify products in images to improve the user experience. You have a substantial dataset of labeled images that show various unique products. You need to implement a solution to identify custom products that is scalable, effective, and rapidly deployable. What should you do?

ADevelop a rule-based system to categorize the images.
BUse a TensorFlow deep learning model that is trained on the image dataset.
CUse a pre-trained object detection model from Model Garden.
DUse AutoML Vision to train a model using the image dataset.
Question #98Part 2Monitoring AI solutions

You work for a large social-network service provider where users publish articles and discuss news. Millions of comments are posted online every day, and over 200 human moderators continuously review comments and flag inappropriate ones. Your team is developing an ML model to assist human moderators in checking platform content. The model scores every comment and flags suspicious comments for human review. Which metric(s) should be used to monitor the model’s performance?

ANumber of messages flagged by the model per minute
BNumber of messages flagged by the model per minute confirmed as being inappropriate by humans.
CPrecision and recall estimates based on a random sample of 0.1% of raw messages each minute sent to a human for review
DPrecision and recall estimates based on a sample of messages flagged by the model as potentially inappropriate each minute
Question #99Part 2Automating and orchestrating ML pipelines

You are building a model-training pipeline to predict sentiment scores from text-based product reviews. You need control over how the model parameters are tuned, and you will deploy the model to an endpoint once training is complete. You will run the pipeline by using Vertex AI Pipelines. Which Google Cloud pipeline components should you choose?

ATabularDatasetCreateOp, CustomTrainingJobOp, and EndpointCreateOp
BTextDatasetCreateOp, AutoMLTextTrainingOp, and EndpointCreateOp
CTabularDatasetCreateOp. AutoMLTextTrainingOp, and ModelDeployOp
DTextDatasetCreateOp, CustomTrainingJobOp, and ModelDeployOp
Question #100Part 2Scaling prototypes into ML models

You are training a TensorFlow model using a structured dataset containing 100 billion records across several CSV files. You need to improve 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.
DConvert the CSV files into shards of TFRecords, and store the data in the Hadoop Distributed File System (HDFS).
Question #101Part 2Serving and scaling models

You trained a text-classification model and have the following SignatureDefs: ![Question Image](https://cdn.examcademy.com/images/questions/1783793172179-af73ta41.png) You started a TensorFlow Serving component server and attempted to send an HTTP prediction request using headers = \{"content-type": "application/json"\} and 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']]})
Question #102Part 2Serving and scaling models

You work for a magazine distributor and must build a model to predict which customers will renew their subscriptions in the coming year. Using your company’s historical data as the training set, you created a TensorFlow model and deployed it to Vertex AI. You need to identify which customer attribute has the greatest predictive power for each prediction the model serves. What should you do?

AStream prediction results to BigQuery. Use BigQuery’s CORR(X1, X2) function to calculate the Pearson correlation coefficient between each feature and the target variable.
BUse Vertex Explainable AI. Submit each prediction request with the explain' keyword to retrieve feature attributions using the sampled Shapley method.
CUse Vertex AI Workbench user-managed notebooks to perform a Lasso regression analysis on your model, which will eliminate features that do not provide a strong signal.
DUse the What-If tool in Google Cloud to determine how your model will perform when individual features are excluded. Rank the feature importance in order of those that caused the most significant performance drop when removed from the model.
Question #103Part 2Monitoring AI solutions

You are an ML engineer at a bank. You must build a solution that delivers transparent, understandable explanations for AI-driven decisions involving loan approvals, credit limits, and interest rates. You want the system to have minimal operational overhead. What should you do?

ADeploy the Learning Interpretability Tool (LIT) on App Engine to provide explainability and visualization of the output.
BUse Vertex Explainable AI to generate feature attributions, and use feature-based explanations for your models.
CUse AutoML Tables with built-in explainability features, and use Shapley values for explainability.
DDeploy pre-trained models from TensorFlow Hub to provide explainability using visualization tools.
Question #104Part 2Automating and orchestrating ML pipelines

You must build an MLOps pipeline to retrain tree-based models in production. The pipeline will contain components for data ingestion, data processing, model training, model evaluation, and model deployment. Your organization mainly uses PySpark-based workloads for data preprocessing. You want to minimize infrastructure-management effort. How should you configure the pipeline?

ASet up a TensorFlow Extended (TFX) pipeline on Vertex AI Pipelines to orchestrate the MLOps pipeline. Write a custom component for the PySpark-based workloads on Dataproc.
BSet up a Vertex AI Pipelines to orchestrate the MLOps pipeline. Use the predefined Dataproc component for the PySpark-based workloads.
CSet up Kubeflow Pipelines on Google Kubernetes Engine to orchestrate the MLOps pipeline. Write a custom component for the PySparkbased workloads on Dataproc.
DSet up Cloud Composer to orchestrate the MLOps pipeline. Use Dataproc workflow templates for the PySpark-based workloads in Cloud Composer.
Question #105Part 2Automating and orchestrating ML pipelines

You developed a BigQuery ML model that predicts customer chum and deployed it to Vertex AI Endpoints. You want to automate retraining when model feature values change while using minimal additional code. You also want to minimize how often the model is retrained to reduce training costs. What should you do?

A1 Enable request-response logging on Vertex AI Endpoints2. Schedule a TensorFlow Data Validation job to monitor prediction drift3. Execute model retraining if there is significant distance between the distributions
B1. Enable request-response logging on Vertex AI Endpoints2. Schedule a TensorFlow Data Validation job to monitor training/serving skew3. Execute model retraining if there is significant distance between the distributions
C1. Create a Vertex AI Model Monitoring job configured to monitor prediction drift2. Configure alert monitoring to publish a message to a Pub/Sub queue when a monitoring alert is detected3. Use a Cloud Function to monitor the Pub/Sub queue, and trigger retraining in BigQuery
D1. Create a Vertex AI Model Monitoring job configured to monitor training/serving skew2. Configure alert monitoring to publish a message to a Pub/Sub queue when a monitoring alert is detected3. Use a Cloud Function to monitor the Pub/Sub queue, and trigger retraining in BigQuery
Question #106Part 2Serving and scaling models

You work for a toy manufacturer that is experiencing a major rise in demand. You need to build an ML model that reduces the time quality-control inspectors spend checking for product defects. Faster defect detection is a priority. The factory has unreliable Wi-Fi. Your company wants to deploy the new ML model as soon as possible. Which model should you use?

AAutoML Vision Edge mobile-high-accuracy-1 model
BAutoML Vision Edge mobile-low-latency-1 model
CAutoML Vision model
DAutoML Vision Edge mobile-versatile-1 model
Question #107Part 2Serving and scaling models

You deployed a scikit-learn model to a Vertex AI endpoint through a custom model server. You enabled autoscaling; however, the deployed model does not scale beyond one replica, resulting in dropped requests. CPU utilization stays low even during high-load periods. What should you do?

AAttach a GPU to the prediction nodes
BIncrease the number of workers in your model server
CSchedule scaling of the nodes to match expected demand
DIncrease the minReplicaCount in your DeployedModel configuration
Question #108Part 2Serving and scaling models

You recently trained an XGBoost model that you intend to deploy to production for online inference. Before you send a prediction request to the model binary, you must perform a simple data-preprocessing step. This step exposes a REST API that accepts requests within your internal VPC Service Controls and returns predictions. You want to configure this preprocessing step while minimizing cost and effort. What should you do?

AStore a pickled model in Cloud Storage. Build a Flask-based app, package the app in a custom container image, and deploy the model to Vertex AI Endpoints.
BBuild a Flask-based app, package the app and a pickled model in a custom container image, and deploy the model to Vertex AI Endpoints.
CBuild a custom predictor class based on XGBoost Predictor from the Vertex AI SDK, package it and a pickled model in a custom container image based on a Vertex built-in image, and deploy the model to Vertex AI Endpoints.
DBuild a custom predictor class based on XGBoost Predictor from the Vertex AI SDK, and package the handler in a custom container image based on a Vertex built-in container image. Store a pickled model in Cloud Storage, and deploy the model to Vertex AI Endpoints.
Question #109Part 2Architecting low-code AI solutions

You work for a company that constructs bridges for cities worldwide. To monitor project progress at construction sites, the company has installed cameras at every location. Each hour, the cameras capture a picture and send it to a Cloud Storage bucket. A team of specialists reviews the images, filters the important ones, and annotates particular objects within them. You want to recommend an ML solution that helps the company scale while reducing costs. The solution must have minimal up-front cost. What method should you recommend?

ATrain an AutoML object detection model to annotate the objects in the images to help specialists with the annotation task.
BUse the Cloud Vision API to automatically annotate objects in the images to help specialists with the annotation task.
CCreate a BigQuery ML classification model to classify important images. Use the model to predict which new images are important to help specialists with the filtering task.
DUse Vertex AI to train an open source object detection to annotate the objects in the images to help specialists with the annotation task.
Question #110Part 2Scaling prototypes into ML models

You trained a deep neural network model on Google Cloud. It has low loss on the training data but performs worse on the validation data. You want the model to be robust against overfitting. Which strategy should you use when retraining the model?

AApply a dropout parameter of 0.2, and decrease the learning rate by a factor of 10.
BApply a L2 regularization parameter of 0.4, and decrease the learning rate by a factor of 10.
CRun a hyperparameter tuning job on AI Platform to optimize for the L2 regularization and dropout parameters.
DRun a hyperparameter tuning job on AI Platform to optimize for the learning rate, and increase the number of neurons by a factor of 2.
Question #111Part 2Scaling prototypes into ML models

You need to build an ML model for a social media application that predicts whether a user-submitted profile photo meets the requirements. The application will tell the user whether the picture meets those requirements. How should you build a model to ensure that the application does not incorrectly accept a non-compliant picture?

AUse AutoML to optimize the model’s recall in order to minimize false negatives.
BUse AutoML to optimize the model’s F1 score in order to balance the accuracy of false positives and false negatives.
CUse Vertex AI Workbench user-managed notebooks to build a custom model that has three times as many examples of pictures that meet the profile photo requirements.
DUse Vertex AI Workbench user-managed notebooks to build a custom model that has three times as many examples of pictures that do not meet the profile photo requirements.
Question #112Part 2Scaling prototypes into ML models

You are on the data science team at a manufacturing company. You are reviewing the company’s historical sales data, which contains hundreds of millions of records. For exploratory data analysis, you must calculate descriptive statistics, such as mean, median, and mode; perform complex statistical tests for hypothesis testing; and plot feature variation over time. You want to use as much of the sales data as possible in the analyses while minimizing computational resources. What should you do?

AVisualize the time plots in Google Data Studio. Import the dataset into Vertex Al Workbench user-managed notebooks. Use this data to calculate the descriptive statistics and run the statistical analyses.
BSpin up a Vertex Al Workbench user-managed notebooks instance and import the dataset. Use this data to create statistical and visual analyses.
CUse BigQuery to calculate the descriptive statistics. Use Vertex Al Workbench user-managed notebooks to visualize the time plots and run the statistical analyses.
DUse BigQuery to calculate the descriptive statistics, and use Google Data Studio to visualize the time plots. Use Vertex Al Workbench user-managed notebooks to run the statistical analyses.
Question #113Part 2Automating and orchestrating ML pipelines

Your team must create a Google Cloud ML solution that classifies support requests for one of your platforms. After analyzing the requirements, you chose TensorFlow for the classifier to retain full control over the model code, serving, and deployment. You will use Kubeflow pipelines as the ML platform. To reduce development time, you want to build on existing resources and use managed services rather than create an entirely 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.
DUse an established text classification model on AI Platform as-is to classify support requests.
Question #114Part 2Scaling prototypes into ML models

You are working on a neural network-based project. The dataset supplied to you contains columns with differing ranges. While preparing data for model training, you find that gradient optimization is struggling to move the weights toward a good solution. What should you do?

AUse feature construction to combine the strongest features.
BUse the representation transformation (normalization) technique.
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.
Question #115Part 2Architecting low-code AI solutions

You need to train a regression model using a dataset of 50,000 records stored in BigQuery. The data contains 20 categorical and numerical features in total, along with a target variable that may contain negative values. You need to minimize effort and training time while maximizing model performance. Which approach should you use to train this regression model?

ACreate a custom TensorFlow DNN model
BUse BQML XGBoost regression to train the model.
CUse AutoML Tables to train the model without early stopping.
DUse AutoML Tables to train the model with RMSLE as the optimization objective.
Question #116Part 2Scaling prototypes into ML models

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

AChange the optimizer.
BReduce the batch size.
CChange the learning rate.
DReduce the image shape.
Question #117Part 2Serving and scaling models

You trained a text-classification model in TensorFlow with 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.
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.
Question #118Part 2Serving and scaling models

You recently deployed a scikit-learn model to a Vertex AI endpoint and are testing it with live production traffic. While monitoring the endpoint, you find that it receives twice as many requests per hour as expected throughout the day. You want the endpoint to scale efficiently when demand grows in the future so that users do not experience high latency. What should you do?

ADeploy two models to the same endpoint, and distribute requests among them evenly
BConfigure an appropriate minReplicaCount value based on expected baseline traffic
CSet the target utilization percentage in the autoscailngMetricSpecs configuration to a higher value
DChange the model’s machine type to one that utilizes GPUs
Question #119Part 2Scaling prototypes into ML models

You developed a custom ML model with scikit-learn. Its training time is longer than anticipated. You decide to move the model to Vertex AI Training and want to reduce its training time. What should you try first?

ATrain your model in a distributed mode using multiple Compute Engine VMs.
BTrain your model using Vertex AI Training with CPUs.
CMigrate your model to TensorFlow, and train it using Vertex AI Training.
DTrain your model using Vertex AI Training with GPUs.
Question #120Part 2Collaborating within and across teams to manage data and models

You are training an ML model with data stored in BigQuery that includes several values considered Personally Identifiable Information (PII). You must reduce the dataset’s sensitivity before training the model. Every column is essential to the model. How should you proceed?

AUsing Dataflow, ingest the columns with sensitive data from BigQuery, and then randomize the values in each sensitive column.
BUse the Cloud Data Loss Prevention (DLP) API to scan for sensitive data, and use Dataflow with the DLP API to encrypt sensitive values with Format Preserving Encryption.
CUse the Cloud Data Loss Prevention (DLP) API to scan for sensitive data, and use Dataflow to replace all sensitive data by using the encryption algorithm AES-256 with a salt.
DBefore training, use BigQuery to select only the columns that do not contain sensitive data. Create an authorized view of the data so that sensitive values cannot be accessed by unauthorized individuals.
Question #121Part 3Automating and orchestrating ML pipelines

You have a large collection of written support cases that fall into 3 distinct categories: Technical Support, Billing Support, or Other Issues. You need to rapidly build, test, and deploy a service that automatically assigns future written requests to one of these categories. How should you configure the pipeline?

AUse the Cloud Natural Language API to obtain metadata to classify the incoming cases.
BUse AutoML Natural Language to build and test a classifier. Deploy the model as a REST API.
CUse BigQuery ML to build and test a logistic regression model to classify incoming requests. Use BigQuery ML to perform inference.
DCreate a TensorFlow model using Google’s BERT pre-trained model. Build and test a classifier, and deploy the model using Vertex AI.
Question #122Part 3Scaling prototypes into ML models

You manage a data science team at a large international corporation. Most models the team trains are large-scale models that use high-level TensorFlow APIs on AI Platform with GPUs. The team typically spends a few weeks or months iterating on a new model version. You have recently been asked to review the team’s spending. How should you lower Google Cloud compute costs without affecting model performance?

AUse AI Platform to run distributed training jobs with checkpoints.
BUse AI Platform to run distributed training jobs without checkpoints.
CMigrate to training with Kuberflow on Google Kubernetes Engine, and use preemptible VMs with checkpoints.
DMigrate to training with Kuberflow on Google Kubernetes Engine, and use preemptible VMs without checkpoints.
Question #123Part 3Serving and scaling models

You are working with a dataset that includes customer transactions. You need to build an ML model that predicts customer purchase behavior. You intend to develop the model in BigQuery ML and export it to Cloud Storage for online prediction. The input data includes a few categorical features, including product category and payment method. You want to deploy the model as fast as possible. What should you do?

AUse the TRANSFORM clause with the ML.ONE_HOT_ENCODER function on the categorical features at model creation and select the categorical and non-categorical features.
BUse the ML.ONE_HOT_ENCODER function on the categorical features and select the encoded categorical features and non-categorical features as inputs to create your model.
CUse the CREATE MODEL statement and select the categorical and non-categorical features.
DUse the ML.MULTI_HOT_ENCODER function on the categorical features, and select the encoded categorical features and non-categorical features as inputs to create your model.
Question #124Part 3Monitoring AI solutions

You work for a retail company and have created a Vertex AI forecast model that generates monthly predictions of item sales. You need to quickly create a report that helps explain how the model calculates its predictions. You have one month of recent actual sales data that was not included in the training dataset. How should you generate the data for the report?

ACreate a batch prediction job by using the actual sales data. Compare the predictions to the actuals in the report.
BCreate a batch prediction job by using the actual sales data, and configure the job settings to generate feature attributions. Compare the results in the report.
CGenerate counterfactual examples by using the actual sales data. Create a batch prediction job using the actual sales data and the counterfactual examples. Compare the results in the report.
DTrain another model by using the same training dataset as the original, and exclude some columns. Using the actual sales data create one batch prediction job by using the new model and another one with the original model. Compare the two sets of predictions in the report.
Question #125Part 3Automating and orchestrating ML pipelines

You are investigating the root cause of a misclassification made by one of your models. You used Vertex AI Pipelines to train and deploy the model. The pipeline reads data from BigQuery, creates a copy of the data in Cloud Storage in TFRecord format, trains the model in Vertex AI Training using that copy, and deploys the model to a Vertex AI endpoint. You have identified the particular version of the model that misclassified, and need to recover the data on which this model was trained. How should you locate that data copy?

AUse Vertex AI Feature Store. Modify the pipeline to use the feature store, and ensure that all training data is stored in it. Search the feature store for the data used for the training.
BUse the lineage feature of Vertex AI Metadata to find the model artifact. Determine the version of the model and identify the step that creates the data copy and search in the metadata for its location.
CUse the logging features in the Vertex AI endpoint to determine the timestamp of the model’s deployment. Find the pipeline run at that timestamp. Identify the step that creates the data copy, and search in the logs for its location.
DFind the job ID in Vertex AI Training corresponding to the training for the model. Search in the logs of that job for the data used for the training.
Question #126Part 3Monitoring AI solutions

You have successfully deployed a large, complex TensorFlow model trained on tabular data to production. You want to predict the lifetime value (LTV) field for every subscription stored in the BigQuery table named subscription.subscriptionPurchase in the project named my-fortune500-company-project. You have organized all training code—from preprocessing data from the BigQuery table through deploying the validated model to the Vertex AI endpoint—into a TensorFlow Extended (TFX) pipeline. You want to prevent prediction drift: a situation in which a production feature-data distribution changes significantly over time. What should you do?

AImplement continuous retraining of the model daily using Vertex AI Pipelines.
BAdd a model monitoring job where 10% of incoming predictions are sampled 24 hours.
CAdd a model monitoring job where 90% of incoming predictions are sampled 24 hours.
DAdd a model monitoring job where 10% of incoming predictions are sampled every hour.
Question #127Part 3Monitoring AI solutions

You recently deployed a model to a Vertex AI endpoint. Because your data drifts frequently, you enabled request-response logging and created a Vertex AI Model Monitoring job. You have found that the model receives more traffic than expected. You need to lower model-monitoring cost while still detecting drift quickly. What should you do?

AReplace the monitoring job with a DataFlow pipeline that uses TensorFlow Data Validation (TFDV)
BReplace the monitoring job with a custom SQL script to calculate statistics on the features and predictions in BigQuery
CDecrease the sample_rate parameter in the RandomSampleConfig of the monitoring job
DIncrease the monitor_interval parameter in the ScheduleConfig of the monitoring job
Question #128Part 3Architecting low-code AI solutions

You are on the data science team for a multinational beverage company. You need to build an ML model that predicts the company’s profitability for a new line of naturally flavored bottled waters across different locations. Historical data is available for every region and includes product types, product sales volumes, expenses, and profits. What should be used as the model’s inputs and output?

AUse latitude, longitude, and product type as features. Use profit as model output.
BUse latitude, longitude, and product type as features. Use revenue and expenses as model outputs.
CUse product type and the feature cross of latitude with longitude, followed by binning, as features. Use profit as model output.
DUse product type and the feature cross of latitude with longitude, followed by binning, as features. Use revenue and expenses as model outputs.
Question #129Part 3Monitoring AI solutions

You trained an XGBoost model that you intend to deploy to Vertex AI for online predictions. You are now uploading the model to Vertex AI Model Registry and must configure the explanation method so that online prediction requests are served with minimal latency. You also want an alert when the model’s feature attributions change meaningfully over time. What should you do?

A1. Specify sampled Shapley as the explanation method with a path count of 5.2. Deploy the model to Vertex AI Endpoints.3. Create a Model Monitoring job that uses prediction drift as the monitoring objective.
B1. Specify Integrated Gradients as the explanation method with a path count of 5.2. Deploy the model to Vertex AI Endpoints.3. Create a Model Monitoring job that uses prediction drift as the monitoring objective.
C1. Specify sampled Shapley as the explanation method with a path count of 50.2. Deploy the model to Vertex AI Endpoints.3. Create a Model Monitoring job that uses training-serving skew as the monitoring objective.
D1. Specify Integrated Gradients as the explanation method with a path count of 50.2. Deploy the model to Vertex AI Endpoints.3. Create a Model Monitoring job that uses training-serving skew as the monitoring objective.
Question #130Part 3Collaborating within and across teams to manage data and models

You work for a retailer that sells clothing to customers worldwide. You have been tasked with ensuring that ML models are developed securely. In particular, you must protect sensitive customer data that might be used in the models. You have identified four sensitive fields used by your data science team: AGE, IS_EXISTING_CUSTOMER, LATITUDE_LONGITUDE, and SHIRT_SIZE. What should be done to the data before it is made available to the data science team for training?

ATokenize all of the fields using hashed dummy values to replace the real values.
BUse principal component analysis (PCA) to reduce the four sensitive fields to one PCA vector.
CCoarsen the data by putting AGE into quantiles and rounding LATITUDE_LONGTTUDE into single precision. The other two fields are already as coarse as possible.
DRemove all sensitive data fields, and ask the data science team to build their models using non-sensitive data.
Question #131Part 3Scaling prototypes into ML models

You manage a team of data scientists who use a cloud-based backend to submit training jobs. The system has become very difficult to administer, and you want to move to a managed service. The data scientists use many different frameworks, including Keras, PyTorch, theano, Scikit-learn, and custom libraries. What should you do?

AUse the AI Platform custom containers feature to receive training jobs using any framework.
BConfigure Kubeflow to run on Google Kubernetes Engine and receive training jobs through TF Job.
CCreate a library of VM images on Compute Engine, and publish these images on a centralized repository.
DSet up Slurm workload manager to receive jobs that can be scheduled to run on your cloud infrastructure.
Question #132Part 3Automating and orchestrating ML pipelines

You developed a BigQuery ML linear-regression model using a training dataset stored in a BigQuery table. New data is added to the table every minute. You use Cloud Scheduler and Vertex AI Pipelines to automate hourly model training, and you use the model for direct inference. The feature-preprocessing logic includes quantile bucketization and MinMax scaling on data received in the last hour. You want to minimize storage and computational overhead. What should you do?

APreprocess and stage the data in BigQuery prior to feeding it to the model during training and inference.
BUse the TRANSFORM clause in the CREATE MODEL statement in the SQL query to calculate the required statistics.
CCreate a component in the Vertex AI Pipelines directed acyclic graph (DAG) to calculate the required statistics, and pass the statistics on to subsequent components.
DCreate SQL queries to calculate and store the required statistics in separate BigQuery tables that are referenced in the CREATE MODEL statement.
Question #133Part 3Automating and orchestrating ML pipelines

You created a custom model with Vertex AI to predict the user churn rate for your application. You use Vertex AI Model Monitoring for skew detection. The training data in BigQuery contains two feature sets: demographic and behavioral. You later find that two separate models, each trained on one feature set, perform better than the original model. You need to configure a new model-monitoring pipeline that distributes traffic between the two models. You want to use the same prediction-sampling-rate and monitoring-frequency for each model, while minimizing management effort. What should you do?

AKeep the training dataset as is. Deploy the models to two separate endpoints, and submit two Vertex AI Model Monitoring jobs with appropriately selected feature-thresholds parameters.
BKeep the training dataset as is. Deploy both models to the same endpoint and submit a Vertex AI Model Monitoring job with a monitoring-config-from-file parameter that accounts for the model IDs and feature selections.
CSeparate the training dataset into two tables based on demographic and behavioral features. Deploy the models to two separate endpoints, and submit two Vertex AI Model Monitoring jobs.
DSeparate the training dataset into two tables based on demographic and behavioral features. Deploy both models to the same endpoint, and submit a Vertex AI Model Monitoring job with a monitoring-config-from-file parameter that accounts for the model IDs and training datasets.
Question #134Part 3Scaling prototypes into ML models

You work for a retail company and have a managed tabular dataset in Vertex AI containing sales data from three different stores. The dataset includes several features, including store name and sale timestamp. You want to use this data to train a model that predicts sales for a new store that will open soon. You must split the data into training, validation, and test sets. Which approach should you use to split the data?

AUse Vertex AI manual split, using the store name feature to assign one store for each set
BUse Vertex AI default data split
CUse Vertex AI chronological split, and specify the sales timestamp feature as the time variable
DUse Vertex AI random split, assigning 70% of the rows to the training set, 10% to the validation set, and 20% to the test set
Question #135Part 3Scaling prototypes into ML models

You are solving a classification problem using time-series data. After performing only a few experiments with random cross-validation, you obtained an Area Under the Receiver Operating Characteristic Curve (AUC ROC) of 99% on the training data. You have not tried sophisticated algorithms or spent time tuning hyperparameters. What should be your next step to identify and correct the problem?

AAddress the model overfitting by using a less complex algorithm and use k-fold cross-validation.
BAddress data leakage by applying nested cross-validation during model training.
CAddress data leakage by removing features highly correlated with the target value.
DAddress the model overfitting by tuning the hyperparameters to reduce the AUC ROC value.
Question #136Part 3Scaling prototypes into ML models

You are an ML engineer at a manufacturing company developing a classification model for a predictive-maintenance use case. You must predict whether a critical machine will fail within the next three days, giving the repair crew enough time to fix it before it breaks. Regular machine maintenance is relatively inexpensive, but a failure would be very costly. You have trained several binary classifiers to predict whether the machine will fail; a prediction of 1 means the ML model predicts a failure. You are now evaluating each model on an evaluation dataset. You want to select a model that prioritizes detection while ensuring that more than 50% of the maintenance jobs initiated by the model address an imminent machine failure. Which model should you choose?

AThe model with the highest area under the receiver operating characteristic curve (AUC ROC) and precision greater than 0.5
BThe model with the lowest root mean squared error (RMSE) and recall greater than 0.5.
CThe model with the highest recall where precision is greater than 0.5.
DThe model with the highest precision where recall is greater than 0.5.
Question #137Part 3Automating and orchestrating ML pipelines

You are creating an ML pipeline to process and analyze both streaming and batch datasets. The pipeline must handle data validation, preprocessing, model training, and model deployment consistently and automatically. You want an efficient, scalable solution that records model-training metadata and is easy to reproduce. You also want to reuse custom components across different parts of the pipeline. What should you do?

AUse Cloud Composer for distributed processing of batch and streaming data in the pipeline.
BUse Dataflow for distributed processing of batch and streaming data in the pipeline.
CUse Cloud Build to build and push Docker images for each pipeline component.
DImplement an orchestration framework such as Kubeflow Pipelines or Vertex AI Pipelines.
Question #138Part 3Serving and scaling models

You are a SQL analyst. You need to use a TensorFlow customer-segmentation model stored in Cloud Storage. You want the simplest and most efficient approach. What should you do?

AImport the model into Vertex AI Model Registry. Deploy the model to a Vertex AI endpoint, and use SQL for inference in BigQuery.
BDeploy the model by using TensorFlow Serving, and call for inference from BigQuery.
CConvert the model into a BigQuery ML model, and use SQL for inference.
DImport the model into BigQuery, and use SQL for inference.
Question #139Part 3Architecting low-code AI solutions

You are developing a prototype text-classification model in a managed Vertex AI Workbench notebook. You want to quickly experiment with tokenizing text using the Natural Language Toolkit (NLTK) library. How should you add the library to your Jupyter kernel?

AInstall the NLTK library from a terminal by using the pip install nltk command.
BWrite a custom Dataflow job that uses NLTK to tokenize your text and saves the output to Cloud Storage.
CCreate a new Vertex AI Workbench notebook with a custom image that includes the NLTK library.
DInstall the NLTK library from a Jupyter cell by using the !pip install nltk --user command.
Question #140Part 3Scaling prototypes into ML models

You want to train an AutoML model to predict home prices using a small public dataset stored in BigQuery. You need to prepare the data and want the simplest, most efficient approach. What should you do?

AWrite a query that preprocesses the data by using BigQuery and creates a new table. Create a Vertex AI managed dataset with the new table as the data source.
BUse Dataflow to preprocess the data. Write the output in TFRecord format to a Cloud Storage bucket.
CWrite a query that preprocesses the data by using BigQuery. Export the query results as CSV files, and use those files to create a Vertex AI managed dataset.
DUse a Vertex AI Workbench notebook instance to preprocess the data by using the pandas library. Export the data as CSV files, and use those files to create a Vertex AI managed dataset.
Question #141Part 3Monitoring AI solutions

You work for a bank and have been asked to develop an ML model to support loan-application decisions. You need to determine which Vertex AI services to include in the workflow. You want to track the model's training parameters and metrics for each training epoch. You plan to compare the performance of every model version to identify the best model using your selected metrics. Which Vertex AI services should you use?

AVertex ML Metadata, Vertex AI Feature Store, and Vertex AI Vizier
BVertex AI Pipelines, Vertex AI Experiments, and Vertex AI Vizier
CVertex ML Metadata, Vertex AI Experiments, and Vertex AI TensorBoard
DVertex AI Pipelines, Vertex AI Feature Store, and Vertex AI TensorBoard
Question #142Part 3Automating and orchestrating ML pipelines

One of your models is trained using data supplied by a third-party data broker. The data broker does not reliably notify you about data-format changes. You want to make your model-training pipeline more robust against issues like this. What should you do?

AUse TensorFlow Data Validation to detect and flag schema anomalies.
BUse TensorFlow Transform to create a preprocessing component that will normalize data to the expected distribution, and replace values that don’t match the schema with 0.
CUse tf.math to analyze the data, compute summary statistics, and flag statistical anomalies.
DUse custom TensorFlow functions at the start of your model training to detect and flag known formatting errors.
Question #143Part 3Automating and orchestrating ML pipelines

You created a Vertex AI ML pipeline with preprocessing and training steps, with each set of steps running in its own custom Docker image. Your organization uses GitHub and GitHub Actions for CI/CD to execute unit and integration tests. You must automate the model-retraining workflow so it can be started both manually and when a new code version is merged into the main branch. You want to minimize the workflow-building steps while retaining maximum flexibility. How should you configure the CI/CD workflow?

ATrigger a Cloud Build workflow to run tests, build custom Docker images, push the images to Artifact Registry, and launch the pipeline in Vertex AI Pipelines.
BTrigger GitHub Actions to run the tests, launch a job on Cloud Run to build custom Docker images, push the images to Artifact Registry, and launch the pipeline in Vertex AI Pipelines.
CTrigger GitHub Actions to run the tests, build custom Docker images, push the images to Artifact Registry, and launch the pipeline in Vertex AI Pipelines.
DTrigger GitHub Actions to run the tests, launch a Cloud Build workflow to build custom Docker images, push the images to Artifact Registry, and launch the pipeline in Vertex AI Pipelines.
Question #144Part 3Scaling prototypes into ML models

You are building a classification model to help predict your company’s various products. The dataset supplied for model development has class imbalance. You must minimize both false positives and false negatives. Which evaluation metric should you use to train the model appropriately?

AF1 score
BRecall
CAccuracy
DPrecision
Question #145Part 3Collaborating within and across teams to manage data and models

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

ARedaction, reproducibility, and explainability
BTraceability, reproducibility, and explainability
CFederated learning, reproducibility, and explainability
DDifferential privacy, federated learning, and explainability
Question #146Part 3Scaling prototypes into ML models

You need to train a natural-language model for text classification on product descriptions containing millions of examples and 100,000 distinct words. You want to preprocess each word individually so it can be supplied to a recurrent neural network. What should you do?

ACreate a hot-encoding of words, and feed the encodings into your model.
BIdentify word embeddings from a pre-trained model, and use the embeddings in your model.
CSort the words by frequency of occurrence, and use the frequencies as the encodings in your model.
DAssign a numerical value to each word from 1 to 100,000 and feed the values as inputs in your model.
Question #147Part 3Serving and scaling models

You need to build a custom TensorFlow model for online predictions. The training data is stored in BigQuery. You need to apply instance-level data transformations for model training and serving, and you want to use the same preprocessing routine during both. How should you configure the preprocessing routine?

ACreate a BigQuery script to preprocess the data, and write the result to another BigQuery table.
BCreate a pipeline in Vertex AI Pipelines to read the data from BigQuery and preprocess it using a custom preprocessing component.
CCreate a preprocessing function that reads and transforms the data from BigQuery. Create a Vertex AI custom prediction routine that calls the preprocessing function at serving time.
DCreate an Apache Beam pipeline to read the data from BigQuery and preprocess it by using TensorFlow Transform and Dataflow.
Question #148Part 3Automating and orchestrating ML pipelines

You are building an ML pipeline with Vertex AI Pipelines. You want the pipeline to upload a new version of an XGBoost model to Vertex AI Model Registry and deploy it to Vertex AI Endpoints for online inference. You want the simplest approach. What should you do?

AUse the Vertex AI REST API within a custom component based on a vertex-ai/prediction/xgboost-cpu image
BUse the Vertex AI ModelEvaluationOp component to evaluate the model
CUse the Vertex AI SDK for Python within a custom component based on a python:3.10 image
DChain the Vertex AI ModelUploadOp and ModelDeployOp components together
Question #149Part 3Automating and orchestrating ML pipelines

A production demand-forecasting pipeline uses Dataflow to preprocess raw data before model training and prediction. During preprocessing, it applies Z-score normalization to data stored in BigQuery and writes the results back to BigQuery. New training data is added every week. You want to improve efficiency by reducing 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.
CUse the normalizer_fn argument in TensorFlow's Feature Column API.
DNormalize the data with Apache Spark using the Dataproc connector for BigQuery.
Question #150Part 3Monitoring AI solutions

While monitoring GPU utilization during model training, you find that the implementation is natively synchronous. The training data is divided across multiple files. You want to decrease the execution time of the input pipeline. What should you do?

AIncrease the CPU load
BAdd caching to the pipeline
CIncrease the network bandwidth
DAdd parallel interleave to the pipeline
Question #151Part 3Automating and orchestrating ML pipelines

You are using Kubeflow Pipelines to build an end-to-end, PyTorch-based MLOps pipeline. The pipeline reads data from BigQuery, processes the data, performs feature engineering, model training, model evaluation, and deploys the model as a binary file to Cloud Storage. You are writing code for several different versions of the feature-engineering and model-training steps and running each new version in Vertex AI Pipelines. Each pipeline run takes more than an hour to finish. You want to accelerate pipeline execution to reduce development time while avoiding additional costs. What should you do?

AComment out the part of the pipeline that you are not currently updating.
BEnable caching in all the steps of the Kubeflow pipeline.
CDelegate feature engineering to BigQuery and remove it from the pipeline.
DAdd a GPU to the model training step.
Question #152Part 3Scaling prototypes into ML models

A data science team is training a PyTorch image-classification model based on a pre-trained RestNet model. You need to conduct hyperparameter tuning to optimize several parameters. What should you do?

AConvert the model to a Keras model, and run a Keras Tuner job.
BRun a hyperparameter tuning job on AI Platform using custom containers.
CCreate a Kuberflow Pipelines instance, and run a hyperparameter tuning job on Katib.
DConvert the model to a TensorFlow model, and run a hyperparameter tuning job on AI Platform.
Question #153Part 3Scaling prototypes into ML models

You are training an ML model on a large dataset and using a TPU to speed up the training process. You notice that training is taking longer than expected and discover that the TPU is not operating at full capacity. What should you do?

AIncrease the learning rate
BIncrease the number of epochs
CDecrease the learning rate
DIncrease the batch size
Question #154Part 3Serving and scaling models

You are designing a serverless ML architecture that enriches customer-support tickets with useful metadata before routing them to a support agent. You need models to predict ticket priority, estimate ticket resolution time, and perform sentiment analysis so agents can make strategic decisions while handling support requests. Tickets are not expected to include domain-specific terminology or jargon. The proposed architecture uses the following flow: ![Question Image](https://cdn.examcademy.com/images/questions/1783793196285-13zqb7un.png) Which endpoints should the Enrichment Cloud Functions invoke?

A1 = AI Platform, 2 = AI Platform, 3 = AutoML Vision
B1 = AI Platform, 2 = AI Platform, 3 = AutoML Natural Language
C1 = AI Platform, 2 = AI Platform, 3 = Cloud Natural Language API
D1 = Cloud Natural Language API, 2 = AI Platform, 3 = Cloud Vision API
Question #155Part 3Scaling prototypes into ML models

You are training an object-detection machine learning model on a dataset comprising three million X-ray images, each approximately 2 GB in size. You use Vertex AI Training to run a custom training application on a Compute Engine instance with 32 cores, 128 GB of RAM, and one NVIDIA P100 GPU. You observe that model training is taking a very long time. You want to reduce training time without compromising model performance. What should you do?

AIncrease the instance memory to 512 GB and increase the batch size.
BReplace the NVIDIA P100 GPU with a v3-32 TPU in the training job.
CEnable early stopping in your Vertex AI Training job.
DUse the tf.distribute.Strategy API and run a distributed training job.
Question #156Part 3Automating and orchestrating ML pipelines

You are a data scientist at an industrial-equipment manufacturing company. You are building a regression model to estimate power consumption in the company’s manufacturing plants from sensor data collected across all plants. The sensors collect tens of millions of records each day. You must schedule daily training runs that use all data collected through the current date. You want the model to scale smoothly while requiring minimal development effort. What should you do?

ATrain a regression model using AutoML Tables.
BDevelop a custom TensorFlow regression model, and optimize it using Vertex AI Training.
CDevelop a custom scikit-learn regression model, and optimize it using Vertex AI Training.
DDevelop a regression model using BigQuery ML.
Question #157Part 3Serving and scaling models

You need to design an architecture that provides asynchronous predictions to determine whether a specific mission-critical machine part will fail. Your system gathers data from multiple sensors on the machine. You want to build a model that predicts a failure in the next N minutes, based on the average of each sensor’s data from the previous 12 hours. How should you design the architecture?

A1. HTTP requests are sent by the sensors to your ML model, which is deployed as a microservice and exposes a REST API for prediction2. Your application queries a Vertex AI endpoint where you deployed your model.3. Responses are received by the caller application as soon as the model produces the prediction.
B1. Events are sent by the sensors to Pub/Sub, consumed in real time, and processed by a Dataflow stream processing pipeline.2. The pipeline invokes the model for prediction and sends the predictions to another Pub/Sub topic.3. Pub/Sub messages containing predictions are then consumed by a downstream system for monitoring.
C1. Export your data to Cloud Storage using Dataflow.2. Submit a Vertex AI batch prediction job that uses your trained model in Cloud Storage to perform scoring on the preprocessed data.3. Export the batch prediction job outputs from Cloud Storage and import them into Cloud SQL.
D1. Export the data to Cloud Storage using the BigQuery command-line tool2. Submit a Vertex AI batch prediction job that uses your trained model in Cloud Storage to perform scoring on the preprocessed data.3. Export the batch prediction job outputs from Cloud Storage and import them into BigQuery.
Question #158Part 3Monitoring AI solutions

You are on a team that develops state-of-the-art deep learning models using the TensorFlow framework. Your team conducts multiple ML experiments every week, making experiment runs hard to track. You want a straightforward way to efficiently track, visualize, and debug ML experiment runs on Google Cloud while minimizing overhead code. How should you proceed?

ASet up Vertex AI Experiments to track metrics and parameters. Configure Vertex AI TensorBoard for visualization.
BSet up a Cloud Function to write and save metrics files to a Cloud Storage bucket. Configure a Google Cloud VM to host TensorBoard locally for visualization.
CSet up a Vertex AI Workbench notebook instance. Use the instance to save metrics data in a Cloud Storage bucket and to host TensorBoard locally for visualization.
DSet up a Cloud Function to write and save metrics files to a BigQuery table. Configure a Google Cloud VM to host TensorBoard locally for visualization.
Question #159Part 3Collaborating within and across teams to manage data and modelsSelect 2

You are developing a model to help your company create more targeted online advertising campaigns. You need to build a dataset to train the model, while avoiding the creation or reinforcement of unfair bias in it. What should you do? (Choose two.)

AInclude a comprehensive set of demographic features
BInclude only the demographic groups that most frequently interact with advertisements
CCollect a random sample of production traffic to build the training dataset
DCollect a stratified sample of production traffic to build the training dataset
EConduct fairness tests across sensitive categories and demographics on the trained model
Question #160Part 3Automating and orchestrating ML pipelines

You are developing a real-time prediction engine that streams files, which might contain Personally Identifiable Information (PII), to Google Cloud. You plan to use the Cloud Data Loss Prevention (DLP) API to scan the files. How should you make sure that unauthorized individuals cannot access the PII?

AStream all files to Google Cloud, and then write the data to BigQuery. Periodically conduct a bulk scan of the table using the DLP API.
BStream all files to Google Cloud, and write batches of the data to BigQuery. While the data is being written to BigQuery, conduct a bulk scan of the data using the DLP API.
CCreate two buckets of data: Sensitive and Non-sensitive. Write all data to the Non-sensitive bucket. Periodically conduct a bulk scan of that bucket using the DLP API, and move the sensitive data to the Sensitive bucket.
DCreate three buckets of data: Quarantine, Sensitive, and Non-sensitive. Write all data to the Quarantine bucket. Periodically conduct a bulk scan of that bucket using the DLP API, and move the data to either the Sensitive or Non-Sensitive bucket.
Question #161Part 3Scaling prototypes into ML models

You must train an XGBoost model on a small dataset. Your training code has custom dependencies. You need to configure a Vertex AI custom training job and want to minimize training-job startup time while following Google-recommended practices. What should you do?

ACreate a custom container that includes the data and the custom dependencies. In your training application, load the data into a pandas DataFrame and train the model.
BStore the data in a Cloud Storage bucket, and use the XGBoost prebuilt custom container to run your training application. Create a Python source distribution that installs the custom dependencies at runtime. In your training application, read the data from Cloud Storage and train the model.
CUse the XGBoost prebuilt custom container. Create a Python source distribution that includes the data and installs the custom dependencies at runtime. In your training application, load the data into a pandas DataFrame and train the model.
DStore the data in a Cloud Storage bucket, and create a custom container with your training application and its custom dependencies. In your training application, read the data from Cloud Storage and train the model.
Question #162Part 3Serving and scaling models

You work for an organization that operates a popular payment app. You created a fraudulent-transaction detection model with scikit-learn and deployed it to a Vertex AI endpoint. The endpoint currently uses 1 e2-standard-2 machine with 2 vCPUs and 8 GB of memory. You find that gateway traffic fluctuates to as much as four times the endpoint's capacity. You need to resolve this issue using the most cost-effective approach. What should you do?

ARe-deploy the model with a TPU accelerator.
BChange the machine type to e2-highcpu-32 with 32 vCPUs and 32 GB of memory.
CSet up a monitoring job and an alert for CPU usage. If you receive an alert, scale the vCPUs as needed.
DIncrease the number of maximum replicas to 6 nodes, each with 1 e2-standard-2 machine.
Question #163Part 3Serving and scaling models

You work for a pet food company that operates an online forum. Customers upload photos of their pets to the forum to share with other users. About 20 photos are uploaded each day. You need to automatically detect, in near real time, whether every uploaded photo contains an animal. You want to prioritize speed and minimize the cost of application development and deployment. What should you do?

ASend user-submitted images to the Cloud Vision API. Use object localization to identify all objects in the image and compare the results against a list of animals.
BDownload an object detection model from TensorFlow Hub. Deploy the model to a Vertex AI endpoint. Send new user-submitted images to the model endpoint to classify whether each photo has an animal.
CManually label previously submitted images with bounding boxes around any animals. Build an AutoML object detection model by using Vertex AI. Deploy the model to a Vertex AI endpoint Send new user-submitted images to your model endpoint to detect whether each photo has an animal.
DManually label previously submitted images as having animals or not. Create an image dataset on Vertex AI. Train a classification model by using Vertex AutoML to distinguish the two classes. Deploy the model to a Vertex AI endpoint. Send new user-submitted images to your model endpoint to classify whether each photo has an animal.
Question #164Part 3Monitoring AI solutions

You are part of a data-center team responsible for server maintenance. Management wants a predictive-maintenance solution that uses monitoring data to identify possible server failures. The incident data has not yet been labeled. What should you do first?

ATrain a time-series model to predict the machines’ performance values. Configure an alert if a machine’s actual performance values significantly differ from the predicted performance values.
BDevelop a simple heuristic (e.g., based on z-score) to label the machines’ historical performance data. Use this heuristic to monitor server performance in real time.
CDevelop a simple heuristic (e.g., based on z-score) to label the machines’ historical performance data. Train a model to predict anomalies based on this labeled dataset.
DHire a team of qualified analysts to review and label the machines’ historical performance data. Train a model based on this manually labeled dataset.
Question #165Part 3Automating and orchestrating ML pipelines

Your team is experimenting with developing smaller, distilled LLMs for a particular domain. You have run batch inference on a dataset using several versions of your distilled LLMs and stored the batch-inference outputs in Cloud Storage. You need to build an evaluation workflow that integrates with your existing Vertex AI pipeline to evaluate the LLM versions’ performance while tracking artifacts. What should you do?

ADevelop a custom Python component that reads the batch inference outputs from Cloud Storage, calculates evaluation metrics, and writes the results to a BigQuery table.
BUse a Dataflow component that processes the batch inference outputs from Cloud Storage, calculates evaluation metrics in a distributed manner, and writes the results to a BigQuery table.
CCreate a custom Vertex AI Pipelines component that reads the batch inference outputs from Cloud Storage, calculates evaluation metrics, and writes the results to a BigQuery table.
DUse the Automatic side-by-side (AutoSxS) pipeline component that processes the batch inference outputs from Cloud Storage, aggregates evaluation metrics, and writes the results to a BigQuery table.
Question #166Part 3Scaling prototypes into ML models

Your team must build a model to predict whether images contain a driver's license, passport, or credit card. The data engineering team has already created the pipeline and generated a dataset consisting of 10,000 images with driver's licenses, 1,000 images with passports, and 1,000 images with credit cards. You now need to train a model using the following label map: [˜drivers_license', ˜passport', `˜credit_card']. Which loss function should be used?

ACategorical hinge
BBinary cross-entropy
CCategorical cross-entropy
DSparse categorical cross-entropy
Question #167Part 3Monitoring AI solutions

You are developing a predictive-maintenance model to proactively identify component defects in bridges. You intend to use high-definition images of the bridges as inputs to the model. You must explain the model’s output to the relevant stakeholders so they can take suitable action. How should you build the model?

AUse scikit-learn to build a tree-based model, and use SHAP values to explain the model output.
BUse scikit-learn to build a tree-based model, and use partial dependence plots (PDP) to explain the model output.
CUse TensorFlow to create a deep learning-based model, and use Integrated Gradients to explain the model output.
DUse TensorFlow to create a deep learning-based model, and use the sampled Shapley method to explain the model output.
Question #168Part 3Scaling prototypes into ML models

You are developing an ML model to classify whether X-ray images show bone-fracture risk. You trained a ResNet architecture on Vertex AI with a TPU accelerator, but you are dissatisfied with its training time and memory consumption. You want to iterate on the training code quickly while making minimal code changes, and you also want to minimize the impact on model accuracy. What should you do?

AReduce the number of layers in the model architecture.
BReduce the global batch size from 1024 to 256.
CReduce the dimensions of the images used in the model.
DConfigure your model to use bfloat16 instead of float32.
Question #169Part 3Scaling prototypes into ML models

You are an AI engineer at an apparel retail company. The sales team has identified seasonal sales patterns over the last 5–6 years. The team analyzes and visualizes weekly sales data that is stored in CSV files. You have been asked to estimate weekly sales for upcoming seasons to optimize inventory and personnel workloads. You want to use the most efficient approach. What should you do?

AUpload the files into Cloud Storage. Use Python to preprocess and load the tabular data into BigQuery. Use time series forecasting models to predict weekly sales.
BUpload the files into Cloud Storage. Use Python to preprocess and load the tabular data into BigQuery. Train a logistic regression model by using BigQuery ML to predict each product's weekly sales as one of three categories: high, medium, or low.
CLoad the files into BigQuery. Preprocess data by using BigQuery SQL. Connect BigQuery to Looker. Create a Looker dashboard that shows weekly sales trends in real time and can slice and dice the data based on relevant filters.
DCreate a custom conversational application using Vertex AI Agent Builder. Include code that enables file upload functionality, and upload the files. Use few-shot prompting and retrieval-augmented generation (RAG) to predict future sales trends by using the Gemini large language model (LLM).
Question #170Part 3Monitoring AI solutions

You work on an operations team at an international company that manages a large fleet of on-premises servers in a few data centers worldwide. Your team gathers monitoring data from the servers, including CPU and memory consumption. When an incident happens on a server, your team is responsible for resolving it. Incident data has not yet been properly labeled. Your management team wants you to build a predictive-maintenance solution that uses monitoring data from the VMs to identify potential failures and alert the service desk team. What should you do first?

ATrain a time-series model to predict the machines’ performance values. Configure an alert if a machine’s actual performance values significantly differ from the predicted performance values.
BImplement a simple heuristic (e.g., based on z-score) to label the machines’ historical performance data. Train a model to predict anomalies based on this labeled dataset.
CDevelop a simple heuristic (e.g., based on z-score) to label the machines’ historical performance data. Test this heuristic in a production environment.
DHire a team of qualified analysts to review and label the machines’ historical performance data. Train a model based on this manually labeled dataset.
Question #171Part 3Collaborating within and across teams to manage data and models

You work for an advertising company and need 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 query results 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.
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.
Question #172Part 3Automating and orchestrating ML pipelines

You have developed an application that uses a chain of multiple scikit-learn models to predict the optimal price for your company’s products. The workflow logic is shown below. Individual models are also used by members of your team in other solution workflows. You want to deploy this workflow while maintaining version control for every individual model and for the overall workflow. Your application must be able to scale down to zero. You want to minimize compute-resource usage and the manual effort needed to manage this solution. What should you do? ![Question Image](https://cdn.examcademy.com/images/questions/1783861283974-97x0h7gw.png)

AExpose each individual model as an endpoint in Vertex AI Endpoints. Create a custom container endpoint to orchestrate the workflow.
BCreate a custom container endpoint for the workflow that loads each model’s individual files Track the versions of each individual model in BigQuery.
CExpose each individual model as an endpoint in Vertex AI Endpoints. Use Cloud Run to orchestrate the workflow.
DLoad each model’s individual files into Cloud Run. Use Cloud Run to orchestrate the workflow. Track the versions of each individual model in BigQuery.
Question #173Part 3Serving and scaling models

You are developing a system-log anomaly-detection model for a cybersecurity organization. You built the model with TensorFlow and intend to use it for real-time prediction. You need to create a Dataflow pipeline that ingests data through Pub/Sub and writes results to BigQuery. You want to minimize serving latency as much as possible. What should you do?

AContainerize the model prediction logic in Cloud Run, which is invoked by Dataflow.
BLoad the model directly into the Dataflow job as a dependency, and use it for prediction.
CDeploy the model to a Vertex AI endpoint, and invoke this endpoint in the Dataflow job.
DDeploy the model in a TFServing container on Google Kubernetes Engine, and invoke it in the Dataflow job.
Question #174Part 3Monitoring AI solutions

You have deployed a conversational application that uses a large language model (LLM). The application has 1,000 users. You gather user feedback on the verbosity and accuracy of the model's responses. The feedback shows that responses are factually correct, but users prefer varying levels of verbosity based on the type of question. You want the model to produce responses that more consistently meet user expectations, using a scalable solution. What should you do?

AImplement a keyword-based routing layer. If the user's input contains the words "detailed" or "description," return a verbose response. If the user's input contains the word "fact." re-prompt the language model to summarize the response and return a concise response.
BAsk users to provide examples of responses with the appropriate verbosity as a list of question and answer pairs. Use this dataset to perform supervised fine tuning of the foundational model. Re-evaluate the verbosity of responses with the tuned model.
CAsk users to indicate all scenarios where they expect concise responses versus verbose responses. Modify the application 's prompt to include these scenarios and their respective verbosity levels. Re-evaluate the verbosity of responses with updated prompts.
DExperiment with other proprietary and open-source LLMs. Perform A/B testing by setting each model as your application's default model. Choose a model based on the results.
Question #175Part 3Scaling prototypes into ML models

You work for a rapidly expanding social media company. Your team develops TensorFlow recommender models in an on-premises CPU cluster. The data includes billions of historical user events and 100,000 categorical features. You observe that model-training time rises as the data grows. You plan to move the models to Google Cloud. You want the most scalable approach that also minimizes training time. What should you do?

ADeploy the training jobs by using TPU VMs with TPUv3 Pod slices, and use the TPUEmbeading API
BDeploy the training jobs in an autoscaling Google Kubernetes Engine cluster with CPUs
CDeploy a matrix factorization model training job by using BigQuery ML
DDeploy the training jobs by using Compute Engine instances with A100 GPUs, and use the tf.nn.embedding_lookup API
Question #176Part 3Monitoring AI solutions

You are developing an ML model to predict customer churn for a subscription service. You trained the model on Vertex AI with historical data and deployed it to a Vertex AI endpoint for real-time predictions. After several weeks, you observe that the model’s production AUC (area under the ROC curve) has decreased significantly compared with its training performance. How should you troubleshoot this issue?

AMonitor the training/serving skew of feature values for requests sent to the endpoint.
BMonitor the resource utilization of the endpoint, such as CPU and memory usage, to identify potential bottlenecks in performance.
CEnable Vertex Explainable AI feature attribution to analyze model predictions and understand the impact of each feature on the model's predictions.
DMonitor the latency of the endpoint to determine whether predictions are being served within the expected time frame.
Question #177Part 3Scaling prototypes into ML models

You are building a deep neural-network classification model from a dataset containing categorical input values. Some columns have a cardinality of more than 10,000 unique values. How should these categorical values be encoded as model input?

AConvert each categorical value into an integer value.
BConvert the categorical string data to one-hot hash buckets.
CMap the categorical variables into a vector of boolean values.
DConvert each categorical value into a run-length encoded string.
Question #178Part 3Automating and orchestrating ML pipelines

While executing a model-training pipeline on Vertex Al, you find that the evaluation step is failing with an out-of-memory error. You are using TensorFlow Model Analysis (TFMA) with a standard Evaluator TensorFlow Extended (TFX) pipeline component for that evaluation step. You want to stabilize the pipeline without reducing evaluation quality and while minimizing infrastructure overhead. What should you do?

AInclude the flag -runner=DataflowRunner in beam_pipeline_args to run the evaluation step on Dataflow.
BMove the evaluation step out of your pipeline and run it on custom Compute Engine VMs with sufficient memory.
CMigrate your pipeline to Kubeflow hosted on Google Kubernetes Engine, and specify the appropriate node parameters for the evaluation step.
DAdd tfma.MetricsSpec () to limit the number of metrics in the evaluation step.
Question #179Part 3Automating and orchestrating ML pipelines

You work with a data engineering team that has built a pipeline to clean your dataset and store it in a Cloud Storage bucket. You have created an ML model and want to use this data to refresh the model as soon as new data becomes 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 design 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.
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.
Question #180Part 3Serving and scaling models

You trained a model on a dataset that required computationally costly preprocessing operations. You must perform the same preprocessing at prediction time. The model is deployed 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.
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.
Question #181Part 4Architecting low-code AI solutions

Your company needs to create product summaries for vendors. You evaluate a Model Garden foundation model for text summarization and determine that the summaries’ style does not align with your company’s brand voice. How should you enhance this LLM-based summarization model to better achieve your business objectives?

AReplace the pre-trained model with another model in Model Garden.
BFine-tune the model using a company-specific dataset.
CIncrease the model's temperature parameter.
DTune the token output limit in the response.
Question #182Part 4Automating and orchestrating ML pipelines

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

AUse the batch prediction functionality of AI Platform.
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.
Question #183Part 4Collaborating within and across teams to manage data and models

You work for a bank that has strict data-governance requirements. You recently implemented a custom model to detect fraudulent transactions. You want the training code to download internal data through an API endpoint hosted in your project’s network. You need the data to be accessed as securely as possible while reducing the risk of data exfiltration. What should you do?

AEnable VPC Service Controls for peerings, and add Vertex AI to a service perimeter.
BCreate a Cloud Run endpoint as a proxy to the data. Use Identity and Access Management (IAM) authentication to secure access to the endpoint from the training job.
CConfigure VPC Peering with Vertex AI, and specify the network of the training job.
DDownload the data to a Cloud Storage bucket before calling the training job.
Question #184Part 4Automating and orchestrating ML pipelines

Your organization’s call center asks you to build a model that analyzes customer sentiment for every call. The call center receives more than one million calls each day, and the data is stored in Cloud Storage. The collected data must remain in the region where the call originated, and no Personally Identifiable Information (PII) may be stored or analyzed. The data science team uses a third-party visualization and access tool that requires a SQL ANSI-2011-compliant interface. You must select components for data processing and analytics. How should the data pipeline be designed? ![Question Image](https://cdn.examcademy.com/images/questions/1783793208659-f6lzpv3o.png)

A1= Dataflow, 2= BigQuery
B1 = Pub/Sub, 2= Datastore
C1 = Dataflow, 2 = Cloud SQL
D1 = Cloud Function, 2= Cloud SQL
Question #185Part 4Serving and scaling models

You are an AI engineer working for a popular video-streaming platform. You built a PyTorch classification model to predict customer churn. Each week, the customer-retention team plans to contact customers identified as at risk of churning with personalized offers. You want to deploy the model while minimizing maintenance effort. What should you do?

AUse Vertex AI’s prebuilt containers for prediction. Deploy the container on Cloud Run to generate online predictions.
BUse Vertex AI’s prebuilt containers for prediction. Deploy the model on Google Kubernetes Engine (GKE), and configure the model for batch prediction.
CDeploy the model to a Vertex AI endpoint, and configure the model for batch prediction. Schedule the batch prediction to run weekly.
DDeploy the model to a Vertex AI endpoint, and configure the model for online prediction. Schedule a job to query this endpoint weekly.
Question #186Part 4Scaling prototypes into ML models

During exploratory data analysis of a dataset, you discover that an important categorical feature contains 5% null values. You want to reduce the bias that missing values could cause. How should the missing values be handled?

ARemove the rows with missing values, and upsample your dataset by 5%.
BReplace the missing values with the feature’s mean.
CReplace the missing values with a placeholder category indicating a missing value.
DMove the rows with missing values to your validation dataset.
Question #187Part 4Serving and scaling models

You have created several versions of an ML model and imported them into Vertex AI Model Registry. You want to conduct A/B testing to determine the best-performing model by using the simplest approach. What should you do?

ASplit incoming traffic to distribute prediction requests among the versions. Monitor the performance of each version using Vertex AI's built-in monitoring tools.
BSplit incoming traffic among Google Kubernetes Engine (GKE) clusters, and use Traffic Director to distribute prediction requests to different versions. Monitor the performance of each version using Cloud Monitoring.
CSplit incoming traffic to distribute prediction requests among the versions. Monitor the performance of each version using Looker Studio dashboards that compare logged data for each version.
DSplit incoming traffic among separate Cloud Run instances of deployed models. Monitor the performance of each version using Cloud Monitoring.
Question #188Part 4Monitoring AI solutions

You use Vertex AI to manage your ML models and datasets. You recently updated one of your models and want to track and compare the new version with its previous version while also incorporating dataset versioning. What should you do?

AUse Vertex AI TensorBoard to visualize the training metrics of the new model version, and use Data Catalog to manage dataset versioning.
BUse Vertex AI Model Monitoring to monitor the performance of the new model version, and use Vertex AI Training to manage dataset versioning.
CUse Vertex AI Experiments to track and compare model artifacts and versions, and use Vertex ML Metadata to manage dataset versioning.
DUse Vertex AI Experiments to track and compare model artifacts and versions, and use Vertex AI managed datasets to manage dataset versioning.

📢 Unlock Full Access to Success!

"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."

👉 Click the button and follow the instructions to secure your full access immediately!