CertKeen
Google CloudBeta · expanding bank

Google Cloud Professional Machine Learning Engineer Practice Exam

Practice questions for the Google Cloud Professional Machine Learning Engineer certification: low-code AI with BigQuery ML model types, the TRANSFORM clause and ML.FORECAST, pretrained ML APIs, Document AI and the Retail API, AutoML tabular, image and forecasting models, and retrieval augmented generation with Agent Search (formerly Vertex AI Search) and RAG Engine; data preparation with Dataflow, TensorFlow Transform, Managed Service for Apache Spark (formerly Dataproc), managed datasets, Feature Store and Sensitive Data Protection; prototyping in Colab Enterprise and Agent Platform Workbench (formerly Vertex AI Workbench), Model Garden, Agent Platform Experiments and TensorBoard, and the Gen AI evaluation service; training on Gemini Enterprise Agent Platform (formerly Vertex AI) with custom containers, distributed worker pools, Reduction Server, GPUs and TPUs, hyperparameter tuning, troubleshooting and fine-tuning Gemini and open models; serving with batch and online inference, Dataflow RunInference, prebuilt and custom containers, Model Registry versions and aliases, traffic splits, Private Service Connect endpoints, autoscaling, co-hosting and model compression; MLOps with Agent Platform Pipelines (formerly Vertex AI Pipelines), Kubeflow Pipelines, TFX validation and evaluation, Managed Service for Apache Airflow (formerly Cloud Composer), MLflow, Cloud Build and Jenkins CI/CD, retraining policies, ML Metadata lineage and dataset versioning; and monitoring with Model Monitoring skew and drift detection, feature attributions, Model Armor, VPC Service Controls, sliced fairness evaluation and baseline comparisons. Every question includes a written explanation.

100 questions · 12 free preview

$19 · lifetime access
Try free sample

Studying more than one? All Google Cloud exams for $29 · every exam for $79

Free sample questions

  1. Sample · question 1 · BigQuery ML k-means customer segments

    Marketing at Juniperhill Outfitters wants to group 3 million loyalty members into about eight segments by spend, visit frequency and product mix. No segment labels exist, and the data is already in BigQuery. Which BigQuery ML model type should the team train?

    • A.LOGISTIC_REG
    • B.ARIMA_PLUS
    • C.KMEANScorrect
    • D.BOOSTED_TREE_REGRESSOR

    Why: k-means is an unsupervised clustering model in BigQuery ML; with num_clusters set to eight it assigns each member to a segment, and ML.PREDICT returns the nearest centroid for new members. Logistic regression and boosted tree regression are supervised and need labels. ARIMA_PLUS is for time-series forecasting.

    Open this question on its own page →
  2. Sample · question 2 · Speech-to-Text for call recordings

    Oakhurst Utilities wants searchable text from 4,000 hours of recorded customer calls stored as audio files in Cloud Storage. The calls are in English, and the team has no ML staff or labeled audio. What is the quickest approach?

    • A.Use Speech-to-Text batch recognition on the files in Cloud Storagecorrect
    • B.Train a custom speech model from scratch on a GPU cluster
    • C.Upload the audio to the Vision API as spectrogram images
    • D.Label the calls manually and train an AutoML tabular model on the labels

    Why: Speech-to-Text is a pretrained API that transcribes audio, and its batch recognition reads long audio files directly from Cloud Storage, so no training or labeled data is needed. Building a speech model from scratch requires large labeled corpora and expertise. The Vision API analyzes images rather than transcribing speech, and tabular AutoML does not process audio.

    Open this question on its own page →
  3. Sample · question 3 · AutoML object detection annotations

    Fenwright Shipyards wants a model that finds and locates every hard hat in site camera images, not just report whether one is present. Which labels must the team prepare to train an AutoML image model?

    • A.One label per image naming the most common object
    • B.A count of hard hats per image stored in a CSV column with the image URI
    • C.A text caption describing each image
    • D.Bounding boxes around each hard hat with the hard_hat labelcorrect

    Why: Locating objects is an object detection task, and AutoML object detection is trained on bounding box annotations with a label for each object. A single label per image trains classification, which cannot locate objects. Captions and counts do not give the model the object positions it needs to learn.

    Open this question on its own page →
  4. Sample · question 4 · Scheduled notebook runs with the executor

    A data scientist at Pellworth Grain has a feature exploration notebook on an Agent Platform Workbench (formerly Vertex AI Workbench) instance and wants it to run every Monday with a different date parameter, even when the instance is stopped, saving the output for colleagues. What should she use?

    • A.A browser tab kept open on her laptop with a weekly reminder
    • B.The Workbench executor, scheduling a recurring parameterized runcorrect
    • C.A cron entry on the Workbench instance itself
    • D.An Agent Search (formerly Vertex AI Search) data store that indexes the notebook

    Why: The Workbench executor runs notebooks once or on a recurring schedule with parameters, uses custom training compute so it does not depend on the instance running, and saves results to Cloud Storage for sharing. A browser tab or a cron entry on the instance needs the machine to be on. A search data store indexes content but does not execute notebooks.

    Open this question on its own page →
  5. Sample · question 5 · TensorBoard Profiler for input bottlenecks

    A TensorFlow custom training job at Wexcombe Satellites runs much slower than expected, and the team is unsure whether time is spent in data loading or in model computation on the GPU. Which tool shows a step-by-step breakdown to answer this?

    • A.The TensorBoard Profiler in Agent Platform TensorBoard (formerly Vertex AI TensorBoard)correct
    • B.Cloud Billing reports for the project
    • C.Model Registry version history
    • D.The Cloud Storage bucket's object list

    Why: The TensorBoard Profiler captures device and host activity for training steps and highlights whether steps wait on the input pipeline or on accelerator computation. Billing reports show spend, Model Registry tracks model versions, and bucket listings show stored files; none show where time goes within a training step.

    Open this question on its own page →
  6. Sample · question 6 · TFX InfraValidator before pushing

    A TFX pipeline at Brackwater Insurance once pushed a model that passed evaluation but crashed the TensorFlow Serving container because of an unsupported operation. Which component checks that a model actually loads and responds in a serving binary before it is pushed?

    • A.ExampleGen
    • B.ExampleValidator
    • C.InfraValidatorcorrect
    • D.StatisticsGen

    Why: InfraValidator launches the candidate model in a sandboxed serving binary, such as TensorFlow Serving, and optionally sends sample requests, blocking the push if the model fails to load or respond. ExampleGen ingests data, ExampleValidator checks data for anomalies, and StatisticsGen computes data statistics; none of them test models in serving infrastructure.

    Open this question on its own page →
  7. Sample · question 7 · Runtime parameters for compiled pipelines

    An ML engineer at Kelderwood Health compiled a training pipeline once and wants analysts to rerun it for different regions and date ranges without editing or recompiling code. How should the pipeline be designed?

    • A.Hard-code each region in a separate copy of the pipeline file
    • B.Ask analysts to edit the compiled YAML by hand before each run
    • C.Store the values in the container image and rebuild it per run
    • D.Declare region and date range as pipeline parameters and supply their values when each run is submittedcorrect

    Why: Pipeline functions can declare input parameters that are set at submission time, so one compiled template runs with different values for each run. Copies per region multiply maintenance, rebuilding images per run is slow, and hand-editing compiled YAML is error-prone.

    Open this question on its own page →
  8. Sample · question 8 · CPU machines for scikit-learn serving

    Ottoline Bakeries serves a scikit-learn random forest with about 40 input features and modest traffic. A team member proposes deploying it on GPU machines to cut latency. What should the ML engineer advise?

    • A.Use GPUs, because every model runs faster on GPUs
    • B.Deploy on CPU machines with the prebuilt scikit-learn containercorrect
    • C.Use TPUs, because random forest inference is dominated by large matrix multiplications
    • D.Use Edge TPU devices in the data center

    Why: scikit-learn models such as random forests run inference on CPUs and do not benefit from GPUs, so a CPU machine type with the prebuilt scikit-learn container is the cost-effective choice. TPUs target large tensor workloads in frameworks such as JAX, TensorFlow and PyTorch, not scikit-learn trees, and Edge TPUs are on-device accelerators.

    Open this question on its own page →
  9. Sample · question 9 · Model cards for responsible AI documentation

    Before releasing a hiring-support model, the governance board at Somerleigh Group wants a standard document that describes the model's intended use, limitations, evaluation results by group and ethical considerations for reviewers. What should the ML team produce?

    • A.A model cardcorrect
    • B.A Cloud Monitoring dashboard of endpoint latency
    • C.The pipeline's compiled YAML file
    • D.A list of the model's hyperparameters

    Why: A model card is a structured document, promoted in Google's Responsible AI practices, that records a model's intended uses, limitations, performance across groups and ethical considerations. Latency dashboards, compiled pipeline files and hyperparameter lists are useful engineering artifacts but do not communicate fitness for use to reviewers.

    Open this question on its own page →
  10. Sample · question 10 · tf.data prefetch and parallel map

    Profiling of a GPU training job at Ingleby Motors shows the GPU idle while each batch is decoded and augmented on the CPU. Which TWO tf.data changes overlap or speed up input processing? (Select TWO.)

    • A.Add prefetch with tf.data.AUTOTUNE so the next batches are prepared while the GPU trainscorrect
    • B.Set num_parallel_calls=tf.data.AUTOTUNE on the map transformation for decoding and augmentationcorrect
    • C.Reduce the number of training epochs
    • D.Disable shuffling to make each epoch deterministic
    • E.Lower the model's learning rate

    Why: Prefetching overlaps input preparation with training steps, and a parallel map decodes and augments several elements at once on multiple CPU cores; both reduce GPU idle time. Fewer epochs shorten training without fixing the bottleneck, shuffling does not limit throughput in this way, and the learning rate does not affect input speed.

    Open this question on its own page →
  11. Sample · question 11 · Grounding with Google Search

    A travel assistant built on Gemini at Wyndmoor Journeys must answer questions about events that happened this week, which are not in the model's training data or in any company documents. Which feature gives responses access to current public information?

    • A.Supervised fine-tuning on last year's travel articles
    • B.A larger context window with the same prompt
    • C.Lowering the model's temperature
    • D.Grounding with Google Searchcorrect

    Why: Grounding with Google Search retrieves current public web information at request time and grounds the model's response in it, with source links. Fine-tuning on older articles cannot add events from this week. Temperature controls randomness, and a larger context window does not supply information that is not in the prompt.

    Open this question on its own page →
  12. Sample · question 12 · Point-in-time joins for training data

    Ravelston Credit builds training data by joining loan applications with customer features, but it joined each application to the customers' current feature values. Offline accuracy is far higher than production accuracy. How should the training data be built instead?

    • A.Join each application to the latest feature values available today
    • B.Drop all customer features from the model
    • C.Join each application to the feature values as of the application timestamp, using a point-in-time lookupcorrect
    • D.Join each application to the average feature values over all time

    Why: Using current or all-time values leaks information from after the application date into training, inflating offline metrics; a point-in-time lookup, such as Feature Store historical retrieval or ML.ENTITY_FEATURES_AT_TIME in BigQuery (which takes a separate cutoff time for each entity row), returns the values that existed at each application's timestamp. Dropping the features throws away signal rather than fixing the leakage.

    Open this question on its own page →

Like the sample?

Other practice exams