You have built a model that is trained on data stored in Parquet files. You access the data through a Hive table hosted on Google Cloud. You preprocessed these data with PySpark and exported it as a CSV file into Cloud Storage. After preprocessing, you execute additional steps to train and evaluate your model. You want to parametrize this model training in Kubeflow Pipelines. What should you do?
Answer(s): C
You are profiling the performance of your TensorFlow model training time and notice a performance issue caused by inefficiencies in the input data pipeline for a single 5 terabyte CSV file dataset on Cloud Storage. You need to optimize the input pipeline performance. Which action should you try first to increase the efficiency of your pipeline?
You are developing a Gemini-based onboarding chatbot to answer users’ questions based on five PDF onboarding documents in Cloud Storage. The documents are updated weekly or monthly as needed. You expect that the application will receive high-volume, repeated user queries against this documentation context.You need to use the most appropriate and cost-effective solution for managing the context and ensuring that the chatbot has up-to-date information. What should you do?
Explicit context caching is designed for high-volume requests that repeatedly use the same large document context, reducing input-processing costs and latency. Recreating the cache whenever the source PDFs change ensures that responses remain grounded in the latest onboarding information without paying to process all five documents with every request.
https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/context-cache/context-cache-overview https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/context-cache/context-cache-create https://docs.cloud.google.com/vertex-ai/generative-ai/docs/samples/googlegenaisdk-contentcache-create-with-txt-gcs-pdf
You have developed an ML model to detect the sentiment of users’ posts on your company's social media page to identify outages or bugs. You are using Dataflow to provide real-time predictions on data ingested from Pub/Sub. You plan to have multiple training iterations for your model and keep the latest two versions live after every run. You want to split the traffic between the versions in an 80:20 ratio, with the newest model getting the majority of the traffic. You want to keep the pipeline as simple as possible, with minimal management required. What should you do?
Answer(s): A
You developed an ML model with AI Platform, and you want to move it to production. You serve a few thousand queries per second and are experiencing latency issues. Incoming requests are served by a load balancer that distributes them across multiple Kubeflow CPU-only pods running on Google Kubernetes Engine (GKE). Your goal is to improve the serving latency without changing the underlying infrastructure. What should you do?
You need to create a working environment in Agent Platform Workbench for a team of data scientists. Each data scientist has different VM CPU and RAM and package requirements, and will be assigned a personal notebook instance. You want each instance to have a custom set of packages pre-installed. Your company wants to minimize the running cost of notebook instances. How should you create the environment?
A custom container image derived from a Deep Learning Containers image allows each notebook environment to include the required pre-installed packages while retaining a supported ML software base. Enabling idle shutdown reduces costs by automatically stopping notebook instances when they are not being used, while allowing each data scientist to select the VM CPU and RAM configuration appropriate for their workload.
You have a demand forecasting pipeline in production that uses Dataflow to preprocess raw data prior to model training and prediction. The only preprocessing step applies Z-score normalization on data stored in BigQuery and writes it back to BigQuery. New training data is added every week. You want to make the process more efficient by minimizing computation time and manual intervention. What should you do?
Answer(s): B
You work at a large retail company that uses a time series forecasting model to predict daily sales. You have developed a new ARIMA_PLUS model to predict daily sales using historical sales data in BigQuery. The model has performed significantly better in offline evaluations than the current model which is deployed in a separate Agent Platform endpoint. You need to deploy the new model to production and replace the current production model. You want to manage the transition carefully to avoid any negative impact on business operations. What should you do?
Answer(s): D
BigQuery ML ARIMA_PLUS models support time series forecasting through the ML.FORECAST function but cannot be deployed directly to Agent Platform endpoints. Running the new model as a daily batch forecasting job and exporting its predictions to a BigQuery table allows the company to evaluate its performance alongside the existing production model without disrupting business operations. Comparing forecasts over several weeks provides additional evidence of the new model's reliability under real-world conditions. This controlled, parallel evaluation approach minimizes deployment risk and supports a safe transition to the new forecasting solution.
https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/bigqueryml-syntax-create-mult ivariate-time-series https://docs.cloud.google.com/bigquery/docs/managing-models-vertex
Share your comments for Google PROFESSIONAL MACHINE LEARNING ENGINEER exam with other users:
good ................