Google Professional Machine Learning Engineer PROFESSIONAL MACHINE LEARNING ENGINEER Dumps in PDF

Free Google PROFESSIONAL MACHINE LEARNING ENGINEER Real Questions (page: 8)

You developed a custom model by using Vertex AI to predict your application's user churn rate. You are using Vertex AI Model Monitoring for skew detection. The training data stored in BigQuery contains two sets of features - demographic and behavioral. You later discover that two separate models trained on each set perform better than the original model. You need to configure a new model monitoring pipeline that splits traffic among the two models. You want to use the same prediction-sampling-rate and monitoring-frequency for each model. You also want to minimize management effort.
What should you do?

  1. Keep 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.
  2. Keep 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.
  3. Separate 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.
  4. Separate 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.

Answer(s): B



Your company manages an ecommerce platform and has a large dataset of customer reviews. Each review has a positive, negative, or neutral label. You need to quickly prototype a sentiment analysis model that accurately predicts the sentiment labels of new customer reviews while minimizing time and cost.
What should you do?

  1. Use the Agent Platform Text Embeddings API to vectorize the text, and train a regression model by using Agent Platform AutoML to predict sentiment scores.
  2. Use Agent Platform AutoML to train a multi-class classification model that predicts sentiment labels based on the training data.
  3. Use the Natural Language API for real-time sentiment analysis.
  4. Train a sentiment analysis model by using a BERT-based model, and fine-tune the model by using domain-specific customer reviews.

Answer(s): B

Explanation:

Agent Platform AutoML can train a multi-class text classification model directly from the labeled customer reviews. It minimizes custom coding, infrastructure management, and tuning effort while producing predictions for the positive, negative, and neutral sentiment classes.



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

  1. Create multiple models using AutoML Tables.
  2. Automate multiple training runs using Cloud Composer.
  3. Run multiple training jobs on AI Platform with similar job names.
  4. Create an experiment in Kubeflow Pipelines to organize multiple runs.

Answer(s): D



Your team manually performs a monthly model retraining process that is slow and error-prone. You need to streamline this workflow by building a solution that automatically checks the schema of the input data and only deploys the new model if its evaluation metrics perform better than the current production model. You want to minimize the complexity of the solution. How should you build this solution?

  1. Create a pipeline in Managed Service tor Apache Airflow. Define tasks using Apache Airflow operators that execute the training, validation, and deployment scripts. Use a BranchPythonOperator command to implement the conditional logic for comparison and deploy the better-performing model.
  2. Build a workflow in Agent Platform Pipelines. Use a Managed Service for Apache Spark serverless component to run a PySpark job that validates the input data schema. Create a custom component that compares the new model's evaluation metrics against the production model and deploys the better-performing model.
  3. Schedule a recurring job in Agent Platform Serverless Training to automatically retrain the model each month. Compare the new model's performance to the current production model in an Agent Platform Workbench notebook, and deploy the new model if the performance is better than the current production model.
  4. Build a workflow in Agent Platform Pipelines. Use a data validation component to check the input data scheme. Add a subsequent component that conditionally deploys the new model to an Agent Platform endpoint if its evaluation metrics are better than the current production model.

Answer(s): D

Explanation:

Agent Platform Pipelines provides a managed orchestration framework for automating machine learning workflows, including data validation, model training, evaluation, and deployment. A data validation component checks the input data schema to ensure consistency and quality before training. After training, a model evaluation component compares the new model's performance metrics with those of the current production model. Conditional execution ensures that the new model is deployed to the Agent Platform endpoint only when its evaluation metrics demonstrate improved performance. This approach minimizes operational complexity, reduces manual errors, and enables reliable, automated monthly retraining and deployment.



You work in the credit card fraud detection department of a bank that processes millions of transactions per day. You need to create and serve a real-time fraud detection model. To address the challenge of feature engineering at this scale with limited raw data, you plan to create time-related aggregate features, such as the average transaction amount within the last month or the amount of time since the last transaction. How should you process the data for model training and serving?

  1. Ingest the transaction data into BigQuery. Use the TRANSFORM clause in BigQuery ML to create new features by applying SQL functions to the raw transaction data.
  2. Create streaming Dataflow pipelines that read transaction data from Pub/Sub. Use a windowing function to aggregate transaction data over time. Store the engineered features in Agent Platform Feature Store.
  3. Ingest the transaction data into BigQuery. Use a TRANSFORM_ONLY model in BigQuery ML to create a reusable feature engineering pipeline. Use this pipeline to preprocess the data.
  4. Orchestrate a workflow in Agent Platform Pipelines that exports raw transaction data from BigQuery to Cloud Storage. Perform feature engineering using a Python script in a custom component in the pipeline.

Answer(s): B

Explanation:

A streaming Dataflow pipeline can process millions of transaction events from Pub/Sub and use stateful, windowed aggregations to calculate time-dependent features such as monthly average transaction amounts and time since the previous transaction. Storing these engineered values in Agent Platform Feature Store makes consistent features available for both model training and low-latency online serving.


Reference:

https://docs.cloud.google.com/dataflow/docs/concepts/streaming-pipelines https://docs.cloud.google.com/dataflow/docs/concepts/streaming-with-cloud-pubsub



Your organization’s employee onboarding team wants you to build an interactive self-help tool for new employees. The tool needs to receive queries from users and provide answers from the organization’s internal documentation. This documentation is spread across standalone documents such as PDF files. You want to build a solution quickly while minimizing maintenance overhead.
What should you do?

  1. Create a custom chatbot user interface hosted on App Engine. Use Agent Platform to fine-tune a Gemini model on the organization’s internal documentation. Send users’ queries to the fine-tuned model by using the custom chatbot and return the model’s responses to the users.
  2. Deploy an internal website to a Google Kubernetes Engine (GKE) cluster. Build a search index by ingesting all of the organization’s internal documentation. Use Vector Search to implement a semantic search that retrieves results from the search index based on the query entered into the search box.
  3. Use Agent Search to create an agent. Securely index the organization’s internal documentation to the agent’s datastore. Send users’ queries to the agent and return the agent’s grounded responses to the users.
  4. Deploy an internal website to a Google Kubernetes Engine (GKE) cluster. Organize the relevant internal documentation into sections. Collect user feedback on website content and store it in BigQuery. Request that the onboarding team regularly update the links based on user feedback.

Answer(s): C

Explanation:

Agent Studio is specifically designed for building conversational AI agents quickly with minimal overhead. It allows for secure indexing of internal documents, making them accessible for semantic query resolution. By indexing the internal documentation in the Agent Search data store, the system can provide grounded and accurate responses to user queries based on the organization's documentation. This approach minimizes the maintenance overhead as the Agent Platform handles much of the complexity, including semantic search and conversational interface.



You work at a large organization that recently decided to move their ML and data workloads to Google Cloud. The data engineering team has exported the structured data to a Cloud Storage bucket in Avro format. You need to propose a workflow that performs analytics, creates features, and hosts the features that your ML models use for online prediction. How should you configure the pipeline?

  1. Ingest the Avro files into Cloud Spanner to perform analytics. Use a Dataflow pipeline to create the features, and store them in Vertex AI Feature Store for online prediction.
  2. Ingest the Avro files into BigQuery to perform analytics. Use a Dataflow pipeline to create the features, and store them in Vertex AI Feature Store for online prediction.
  3. Ingest the Avro files into Cloud Spanner to perform analytics. Use a Dataflow pipeline to create the features, and store them in BigQuery for online prediction.
  4. Ingest the Avro files into BigQuery to perform analytics. Use BigQuery SQL to create features and store them in a separate BigQuery table for online prediction.

Answer(s): B



Your company needs to generate product summaries for vendors. You evaluate a foundation model from Model Garden for text summarization and find the style of the summaries are not aligned with your company's brand voice. How should you improve this LLM-based summarization model to better meet your business objectives?

  1. Replace the pre-trained model with another model in Model Garden.
  2. Fine-tune the model using a company-specific dataset.
  3. Increase the model's temperature parameter.
  4. Tune the token output limit in the response.

Answer(s): B

Explanation:

Fine-tuning the foundation model with a company-specific dataset helps align the generated summaries with the desired brand voice and style, tailoring the model’s outputs to meet business objectives effectively.



Share your comments for Google PROFESSIONAL MACHINE LEARNING ENGINEER exam with other users:

A
Albin
10/13/2023 12:37:00 AM

good ................

AI Tutor 👋 I’m here to help!