Google Cloud Professional Machine Learning Engineer Free Sample Questions

12 free sample questions135 in the full practice test Other version: GCP-PMLE(241)

Try simulator

GCP-PMLE-Ext Sample Questions

  1. Question 1

    Intermediate

    Architecting Low-Code AI Solutions · Developing ML models by using BigQuery ML

    You are designing a demand forecasting solution for a global retail chain. The data resides in BigQuery and consists of 5 years of historical sales data across 50,000 SKUs. The business requires a solution that minimizes development time while handling seasonality and holiday effects automatically. You need to create a model that forecasts sales for the next 30 days. Which BigQuery ML statement should you execute?

    Answer and explanation

    Correct answer: C

    The ARIMA_PLUS model in BigQuery ML is specifically designed for time-series forecasting. It automatically handles seasonality, holiday effects, and trend changes. Specifying time_series_id_col allows the model to forecast for multiple SKUs (50,000) in a single query, which is essential for scaling. LINEAR_REG is inappropriate for complex time-series with seasonality without extensive manual feature engineering.

  2. Question 2

    Intermediate

    Architecting Low-Code AI Solutions · Building AI solutions using ML APIs or foundation models

    Your organization wants to build an internal knowledge base search application using Generative AI. The application must answer employee questions based strictly on internal PDF policy documents stored in Cloud Storage. External knowledge should be minimized to prevent hallucinations. You need to implement this using Vertex AI Agent Builder. Which configuration should you choose?

    Answer and explanation

    Correct answer: D

    Vertex AI Agent Builder (formerly Gen App Builder) handles PDF documents via unstructured data stores. By selecting 'Answer' mode and using the data store as the grounding source, the system implements a RAG (Retrieval Augmented Generation) architecture that retrieves relevant chunks from the PDFs and summarizes the answer, strictly adhering to the provided content.

  3. Question 3

    Advanced

    Architecting Low-Code AI Solutions · Developing ML models by using BigQuery ML

    You are using BigQuery ML to build a propensity to purchase model. Your dataset contains a user_age column where null values indicate users who haven't provided their birthdate. You want to replace these nulls with the average age of known users during the training process, but you want to ensure the exact same mean value is used during prediction to avoid training-serving skew. Which approach should you use?

    Answer and explanation

    Correct answer: A

    The TRANSFORM clause in BigQuery ML allows you to define preprocessing logic that is baked into the model artifact. By using ML.MEAN_IMPUTER or manual logic within TRANSFORM, BQML calculates the statistics (mean) during training and automatically applies the same stored statistic to input data during prediction (ML.PREDICT), guaranteeing consistency and preventing skew.

  4. Question 4

    Intermediate

    Architecting Low-Code AI Solutions · Training models by using AutoML

    A financial services company needs to train a fraud detection model using a highly imbalanced dataset (0.1% fraud cases). They want to use Vertex AI AutoML for Tabular Data. Which configuration step is most critical to ensure the model learns effectively from the minority class?

    Answer and explanation

    Correct answer: B

    For highly imbalanced datasets, accuracy is a misleading metric (a model predicting 'no fraud' always would be 99.9% accurate). Maximizing 'AUC-PR' focuses the AutoML optimization on the trade-off between precision and recall for the positive (minority) class, which is standard practice for fraud detection scenarios.

  5. Question 5

    Intermediate

    Architecting Low-Code AI Solutions · Building AI solutions using ML APIs or foundation models

    You are building a movie recommendation system using the Vertex AI Retail API. You have a catalog of 10,000 movies and user event data (views, purchases). You want to ensure that the recommendations include a healthy mix of popular movies and niche content to encourage discovery. Which configuration should you adjust?

    Answer and explanation

    Correct answer: D

    The Vertex AI Retail API provides a diversity optimization setting. Enabling this ensures that the returned recommendations are not just the top-N most probable items (which are often just the most popular ones) but include a diverse set of items, helping to expose the long-tail catalog and improve user discovery.

  6. Question 6

    Intermediate

    Collaborating Within and Across Teams to Manage Data and Models · Exploring and preprocessing organization-wide data

    You are processing 50 TB of raw log data daily stored in Cloud Storage. The logs need to be cleaned, transformed, and aggregated into features for a fraud detection model. The transformation logic involves complex session windowing (aggregating events within 15-minute user sessions). Which Google Cloud service and tool combination is optimal for this preprocessing pipeline?

    Answer and explanation

    Correct answer: B

    While BigQuery is powerful, complex sessionization (windowing based on activity gaps) is natively and efficiently handled by Apache Beam's session windows running on Dataflow. Dataflow provides a fully managed, serverless runner that auto-scales to handle 50 TB of data, making it the robust choice for this specific type of complex windowed aggregation.

Register free for 6 more questions

Or unlock all 135 GCP-PMLE-Ext questions with explanations, timed mode and flashcards.