All Google Cloud exams

Free Professional Machine Learning Engineer practice test: 30 questions with answers

30 original questions for Professional Machine Learning Engineer, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.

Free questions
30
Full bank
112 questions
Real exam
120 min

Professional Machine Learning Engineer exam guide: topics, cost and format

All 30 Professional Machine Learning Engineer questions with answers

The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.

Collaborate within and across teams to manage data and models (5 questions)

  1. Question 1

    Several teams reuse the same features for training and online prediction, and the values must match in both places. Which capability provides this?

    1. APer-user notebook folders that each hold a local copy of the feature CSV files for their own use
    2. BA shared spreadsheet that engineers update by hand with feature values before each training run
    3. CA managed feature store that keeps features consistent between offline training and online serving
    4. DA Pub/Sub topic that broadcasts each new feature value once to all of its subscribers in order
    Show answer and explanation
    Correct answer: C

    A managed feature store serves the same feature definitions to offline training and online prediction, which prevents mismatched values. A spreadsheet or local copies depend on people keeping them aligned, and a Pub/Sub topic delivers messages but does not manage feature consistency.

  2. Question 2

    Two teams need to use the same training dataset, while the data owner keeps control over who can read it. Which approach fits?

    1. AGranting each team IAM access to the same BigQuery dataset, with table-level controls for sensitive columns
    2. BEmailing a copy of the dataset to each team whenever the source data changes during the quarter
    3. CStoring the dataset on a personal laptop, which the team lead shares with others through screen sharing
    4. DCreating a separate copy on each notebook's local disk so that each team can edit the data independently
    Show answer and explanation
    Correct answer: A

    Granting each team IAM access to one dataset keeps a single governed source, with the owner controlling access and sensitive columns. Emailed copies and local laptop copies drift apart and escape control. Separate local copies in notebooks are the same problem in another form.

  3. Question 3

    A data scientist and an ML engineer need to compare experiments and trace which datasets and parameters produced a deployed model. Which Vertex AI capability records this?

    1. AVertex ML Metadata and Experiments, which record artifacts, parameters and lineage across runs
    2. BCloud Storage object versioning on the training folder, which keeps older copies of each file
    3. CCloud Logging sinks that route job logs to a Cloud Storage bucket for long-term archival
    4. DA shared notebook in which the team pastes the outputs of each run into a separate cell
    Show answer and explanation
    Correct answer: A

    Vertex ML Metadata and Experiments record artifacts, parameters and the lineage between datasets, runs and models, which supports comparison and tracing. Log sinks and object versions keep records but do not link them into lineage. A shared notebook with pasted outputs is manual and not traceable.

  4. Question 4

    A team needs its model versions held in a registry, with a review step before any version is used in production. Which capability supports this?

    1. AA Cloud Storage bucket with lifecycle rules that delete older model files after thirty days
    2. BVertex AI Model Registry, which stores model versions with labels and aliases
    3. CA notebook output log that records the model's accuracy after each training run for later reading
    4. DCloud Build triggers that deploy every commit directly to the production endpoint without review
    Show answer and explanation
    Correct answer: B

    The Vertex AI Model Registry stores model versions with labels and aliases, and its deployment history supports a review step before a version is promoted. Lifecycle rules delete files rather than manage versions, and deploying every commit skips review. A notebook log is not a registry.

  5. Question 5

    Which TWO practices help teams collaborate safely on ML data and models? (Choose two.)

    1. ASharing service account keys across teams so that every job can start immediately without setup
    2. BVersioning datasets and models, and recording which version each training run used
    3. CEditing the production model in place without keeping any version history of earlier models
    4. DDocumenting data owners and access policies in the catalog for each dataset the teams share
    5. EKeeping training data only in personal folders, so that shared copies cannot be overwritten
    Show answer and explanation
    Correct answer: B, D

    Versioning datasets and models, and recording the version each run used, makes results traceable. Documenting owners and access policies in the catalog keeps sharing governed. Shared service keys weaken security, in-place edits remove history, and personal-only data prevents collaboration.

Scale prototypes into ML models (5 questions)

  1. Question 6

    A prototype trains on a 10,000-row sample in a notebook, and the production model must train on 500 million rows. Which approach scales the training best?

    1. ASplitting the data by hand into files that one engineer copies to laptops for separate training runs
    2. BRunning the same notebook on a larger single VM, resizing that VM repeatedly as the data grows
    3. CDownsampling the production training to the original 10,000 rows, to keep every run fast and cheap
    4. DCustom training on Vertex AI with distributed workers, reading data from BigQuery or Cloud Storage
    Show answer and explanation
    Correct answer: D

    Custom training on Vertex AI with distributed workers reads the full data from storage and parallelises the work, which is how a prototype becomes a scalable model. A single bigger VM hits limits, and downsampling discards most of the data. Manual splits on laptops are slow and hard to reproduce.

  2. Question 7

    A deep learning training job takes several days on CPUs. Which change most directly reduces the training time?

    1. AIncreasing the number of training epochs, so that the model converges more slowly on the same data
    2. BRemoving the validation set so that the job skips the evaluation step at the end of each epoch
    3. CUsing GPU or TPU accelerators with a distributed strategy suited to the model architecture in use
    4. DLowering the batch size to a single example, so that each individual training step finishes sooner
    Show answer and explanation
    Correct answer: C

    Accelerators with a suitable distributed strategy speed up the heavy matrix operations that dominate deep learning training. More epochs lengthen training, removing validation does not speed up the main compute, and a batch size of one usually slows throughput.

  3. Question 8

    A team needs to find the best hyperparameter values for a model by running many training configurations. Which Vertex AI capability does this?

    1. ABatch prediction jobs that score large volumes of rows with a fixed model version for reporting
    2. BModel Monitoring alerts that fire when the distribution of input features changes in production
    3. CExplainable AI attributions that rank the contribution of each feature to every individual prediction
    4. DHyperparameter tuning jobs that search the parameter space and report the best trial found
    Show answer and explanation
    Correct answer: D

    Hyperparameter tuning jobs run many trials across a defined search space and report the best one. Batch prediction, Model Monitoring and Explainable AI each support a different stage, and none of them searches for training hyperparameters.

  4. Question 9

    Which practice prevents training-serving skew when a notebook prototype is turned into a production model?

    1. AKeeping the preprocessing in the notebook, with the serving team reimplementing it by hand in its own code
    2. BTraining on one dataset and serving predictions from a different raw dataset with no matching transformations
    3. CRunning feature engineering only in the notebook, while the serving team writes its own separate version of it
    4. DPackaging the same preprocessing code in the pipeline and applying it in both training and serving
    Show answer and explanation
    Correct answer: D

    Using the same preprocessing code, packaged with the pipeline, for training and serving keeps the transformations identical, which prevents skew. Reimplementing the steps by hand or running different versions in each place is the cause of training-serving skew.

  5. Question 10

    Which TWO are valid ways to reduce the cost of training large models? (Choose two.)

    1. AUsing preemptible or Spot VMs for fault-tolerant training, with checkpoints saved as training progresses
    2. BTraining every experiment on the largest accelerator available, regardless of the model's actual size
    3. CStopping unpromising runs early with early stopping, instead of training each run to its full epoch count
    4. DKeeping every idle training cluster running between experiments to avoid the start-up time of each job
    5. ECopying the full dataset to every worker's local disk, regardless of how the training job reads the data
    Show answer and explanation
    Correct answer: A, C

    Preemptible or Spot capacity with checkpoints lowers the price of compute without losing completed progress, and early stopping avoids paying for runs that will not improve. The largest accelerator for every run, idle clusters and full copies to every worker all increase cost without a benefit.

Serve and scale models (5 questions)

  1. Question 11

    A web application needs predictions returned in under 200 milliseconds for each request. Which Vertex AI option fits?

    1. AA BigQuery scheduled query that refreshes the predictions once every twenty-four hours for all rows
    2. BA nightly batch prediction job that writes its results to a Cloud Storage bucket for later reading
    3. CA Vertex AI Pipelines run that someone starts by hand each time a user wants a prediction
    4. DAn online prediction endpoint with autoscaling and a deployed model version serving the requests
    Show answer and explanation
    Correct answer: D

    An online endpoint with autoscaling returns predictions for individual requests with low latency. Batch jobs and scheduled queries produce results on a schedule rather than per request, and a manually started pipeline is far too slow for a live request.

  2. Question 12

    A new model version should first receive 10 percent of the traffic, while the current version keeps the rest. Which endpoint feature supports this?

    1. ADeleting the current model from the endpoint before deploying the new version to it
    2. BSetting the endpoint's minimum replicas to zero until the rollout is complete for all users
    3. CCreating a second project for the new version, and asking users to switch to it manually
    4. DTraffic splitting across the model versions deployed to the same endpoint, by percentage
    Show answer and explanation
    Correct answer: D

    Traffic splitting across versions deployed to the same endpoint sends a set percentage of requests to the new version, which supports a gradual rollout. Deleting the current model removes the fallback, and a second project forces users to change. Zero minimum replicas affects scaling, not traffic routing.

  3. Question 13

    A prediction endpoint is expensive because it runs at peak capacity all day. Which change most reduces cost while keeping latency acceptable?

    1. AMoving the endpoint to a batch job that runs once a week, so that it is not running all the time
    2. BDisabling autoscaling and pinning the replica count at the highest traffic level seen in the business
    3. CConfiguring autoscaling with a minimum and maximum replica count that match the real traffic pattern
    4. DServing the model from an open notebook session, which stays running so that there is no start-up delay
    Show answer and explanation
    Correct answer: C

    Autoscaling with a sensible minimum and maximum matches capacity to traffic, which reduces cost while keeping latency acceptable. Pinning replicas at peak wastes money all day, and a weekly batch job cannot answer online requests. An open notebook is not a production serving pattern.

  4. Question 14

    A model must be served with a custom inference server and custom libraries. Which option supports this?

    1. AAutoML tabular models, which can use only the built-in prediction service with its fixed settings
    2. BBigQuery ML models, which can only be scored with SQL statements inside the data warehouse
    3. CA custom prediction container image stored in Artifact Registry and deployed to a Vertex AI endpoint
    4. DA Cloud Vision API key with no model upload, used to call the managed Vision service directly
    Show answer and explanation
    Correct answer: C

    A custom prediction container image lets the team choose its inference server and libraries, and Vertex AI deploys it to an endpoint. AutoML tabular models and BigQuery ML models use their own serving paths, and a Vision API key uses a managed model that the team cannot modify.

  5. Question 15

    Which TWO are efficient ways to produce predictions for very large volumes of data? (Choose two.)

    1. ACalling an online endpoint once for each row in a loop, for a billion rows of input data
    2. BRunning a batch prediction job that reads from BigQuery and writes the results back to BigQuery
    3. CLoading the model into each client application so that predictions run on user devices with no network
    4. DCaching predictions for inputs that repeat often, so that the same request is not scored again
    5. ECompressing the model file into a single text file, so that each row is scored with fewer computations
    Show answer and explanation
    Correct answer: B, D

    Batch prediction over BigQuery scales to large volumes without per-row calls, and caching repeated inputs avoids scoring the same request again. Calling an endpoint row by row is slow at that size, and client-side loading or text compression do not address throughput.

Automate and orchestrate ML pipelines (5 questions)

  1. Question 16

    A team retrains its model every week with the same steps, and it needs each run's artifacts and lineage recorded. Which service orchestrates this?

    1. AVertex AI Pipelines, which runs a defined set of steps with tracked artifacts and lineage for each run
    2. BA cron job on a single VM that runs a notebook by hand each week and copies the output to a folder
    3. CCloud Storage notifications that send an email to the team whenever a new file is uploaded to the bucket
    4. DA dashboard that displays the latest model accuracy each week for the team to read in a browser
    Show answer and explanation
    Correct answer: A

    Vertex AI Pipelines orchestrates defined steps and records artifacts and lineage for every run, which suits a repeatable weekly retrain. A cron-driven notebook and notifications lack tracked lineage, and a dashboard only displays results rather than running the pipeline.

  2. Question 17

    A retraining pipeline should start automatically when new labelled data lands in a Cloud Storage bucket. Which trigger does this?

    1. AA manual approval in the console each time that new data is uploaded to the bucket by the source system
    2. BAn Eventarc event trigger on the Cloud Storage upload, which starts a pipeline run for the new data
    3. CA monthly calendar reminder that asks a team member to start the pipeline run by hand each month
    4. DA Cloud Monitoring dashboard that shows the number of files in the bucket, updated every hour
    Show answer and explanation
    Correct answer: B

    An Eventarc trigger on the Cloud Storage upload starts the pipeline as soon as new data arrives, which removes manual steps. Approvals, reminders and dashboards all depend on a person acting, or they only display information.

  3. Question 18

    A pipeline must deploy a new model only when its evaluation metrics beat the current production model. Where should this condition live?

    1. AIn a manual review step that the team performs by reading the metrics table at the end of each run
    2. BA conditional pipeline step that compares the candidate's metrics with a threshold or baseline
    3. CIn the training notebook's comments, so that the reviewer remembers the rule when reading the code
    4. DIn the endpoint's display name, which the team updates whenever it believes a model is better than before
    Show answer and explanation
    Correct answer: B

    A conditional pipeline step compares the candidate's metrics with a threshold or the current baseline, so the rule is enforced on every run. Manual reviews and comments depend on people following them, and a display name does not gate deployment.

  4. Question 19

    Which practice makes a pipeline's runs reproducible across environments?

    1. ARunning each step with whatever library version happens to be installed on the machine at the time
    2. BStoring the pipeline definition only on a local laptop, copying it to the cluster before each run
    3. CPinning container image versions and recording the parameters and input data versions of each run
    4. DUsing the latest container image tag for every step, so that the newest fixes apply automatically
    Show answer and explanation
    Correct answer: C

    Pinned image versions and recorded parameters and data versions let a run be recreated later and in another environment. Whatever library happens to be installed, a laptop-only definition and the latest tag all change behaviour between runs without warning.

  5. Question 20

    Which TWO are benefits of applying CI/CD practices to ML pipelines? (Choose two.)

    1. AChanges to pipeline code are tested and deployed through a repeatable, reviewed path
    2. BModels are promoted to production without any evaluation, which speeds up each release
    3. CEach team keeps its own unversioned copy of the pipeline on a personal machine for its experiments
    4. DPipeline failures are hidden so that the release schedule for the models stays unchanged
    5. EInfrastructure and pipeline definitions are versioned and reviewed like application code
    Show answer and explanation
    Correct answer: A, E

    Testing and deploying pipeline changes through a reviewed path, and versioning infrastructure and pipeline definitions, make ML delivery repeatable and auditable. Skipping evaluation, personal unversioned copies and hidden failures all undermine reliability.

Architect low-code AI solutions (5 questions)

  1. Question 21

    A business analyst who knows SQL needs a churn model built on data that is already in BigQuery, without writing Python. Which approach is most appropriate?

    1. AA custom TensorFlow model trained on a GKE cluster from a Jupyter notebook that the analyst maintains
    2. BBigQuery ML, which creates and evaluates models with SQL statements inside the data warehouse
    3. CExporting the data to a laptop and training a scikit-learn model there, then uploading its results
    4. DA Dataflow job that writes a new feature table each time a prediction request arrives from a client
    Show answer and explanation
    Correct answer: B

    BigQuery ML trains and evaluates models with SQL where the data already lives, which matches an analyst's skills and avoids moving data. A custom TensorFlow cluster and a laptop workflow require engineering effort and copies of the data. Writing feature tables per request is an inference pipeline, not a way to build the model.

  2. Question 22

    A team wants to classify product photographs using its own labelled images, with managed training and minimal code. Which Vertex AI option fits?

    1. AAutoML image classification in Vertex AI, trained on the team's own labelled images
    2. BA custom container on Compute Engine with CUDA drivers that the team installs and maintains by hand
    3. CCloud Vision label detection, which returns generic labels without any custom training on the team's images
    4. DA BigQuery ML matrix factorisation model that is trained on the raw pixel values of each image
    Show answer and explanation
    Correct answer: A

    AutoML image classification trains a model on the team's labelled images with managed infrastructure and little code, which is the requirement. A custom container needs manual setup, and Vision label detection uses generic labels rather than the team's categories. Matrix factorisation is for recommendation-style problems and is a poor fit for raw pixels.

  3. Question 23

    A company wants a question-answering assistant over its help-centre articles, with minimal ML engineering effort. Which option is the best choice?

    1. ATraining a transformer model from scratch on Cloud TPUs, using the article text as the only input
    2. BVertex AI Search, or a grounded generative model over an index of the articles, with a tuned prompt
    3. CHand-coding a keyword search with a fixed synonym list, deployed as a Cloud Function
    4. DExporting the articles to a spreadsheet, and asking an analyst to answer each incoming question by hand
    Show answer and explanation
    Correct answer: B

    Vertex AI Search or a grounded generative model over an index of the articles gives answers based on the company's content with little custom ML work. Training a transformer from scratch needs large data and specialist effort. Keyword search and manual answers do not meet the assistant requirement.

  4. Question 24

    Which statement about AutoML tabular models in Vertex AI is correct?

    1. AThey can be trained only on image data, and they cannot be used with structured tabular data at all
    2. BThey search candidate models automatically, and the best one can be deployed to an endpoint
    3. CThey must be deployed outside Vertex AI before any prediction can be requested from the model
    4. DThey require the user to write the training loop and manage the accelerators used for each trial
    Show answer and explanation
    Correct answer: B

    AutoML tabular in Vertex AI trains and tunes candidate models automatically, and the chosen model can be deployed to an endpoint in Vertex AI. It is designed for structured tabular data, and it does not require hand-written training loops or deployment outside the platform.

  5. Question 25

    A retail team wants weekly demand forecasts for each store, built from three years of sales data in BigQuery, with minimal custom code. Which option fits?

    1. ABigQuery ML time-series forecasting with ARIMA_PLUS, trained and run with SQL statements
    2. BA recurrent network hand-built in PyTorch and trained on a custom GPU cluster that the team manages
    3. CA spreadsheet with a moving-average formula copied down for each store on a weekly basis
    4. DA Dataflow pipeline that computes a mean per store and writes the result to a summary table
    Show answer and explanation
    Correct answer: A

    BigQuery ML's ARIMA_PLUS model forecasts time series per store with SQL, next to the sales data, which meets the minimal-code requirement. A hand-built PyTorch network needs far more engineering effort, and a moving average or a mean is not a forecasting model with the horizon and seasonality the team needs.

Monitor AI solutions (5 questions)

  1. Question 26

    After deployment, a team sees a model's prediction distribution shifting over several weeks. Which Vertex AI feature detects this?

    1. AVertex AI Model Monitoring, which detects feature and prediction drift against a baseline over time
    2. BCloud Billing reports showing the spend for each endpoint over the course of the month
    3. CCloud Storage lifecycle rules that move older prediction logs to Archive storage automatically
    4. DCloud DNS query logs that show the requests received for the endpoint's hostname each day
    Show answer and explanation
    Correct answer: A

    Vertex AI Model Monitoring compares production feature and prediction distributions against a baseline, which reveals drift over time. Billing reports, storage lifecycle rules and DNS logs describe cost, storage and traffic, not whether the model's inputs or outputs have shifted.

  2. Question 27

    Which metric shows that a feature's values in production differ from the values it had during training?

    1. ATraining-serving skew, which compares the feature distributions in serving with those seen in training
    2. BEndpoint replica count, which shows how many instances served the traffic at a given moment
    3. CAverage request size in bytes, which reports the network volume carried by each request to the endpoint
    4. DThe number of model versions in the registry, which counts the stored artifacts for the model
    Show answer and explanation
    Correct answer: A

    Training-serving skew compares serving feature distributions with the training distributions, which shows the mismatch the question describes. Replica counts, request sizes and version counts describe infrastructure or storage, not the data values.

  3. Question 28

    A team needs an alert when online predictions become slower than its service-level objective. Which combination should it use?

    1. AA manual review of the endpoint's logs at the end of each sprint, read by one engineer
    2. BA daily email from the billing account that summarises the total spend for the project
    3. CCloud Monitoring latency metrics, with an alerting policy at the objective's threshold
    4. DA Vertex AI Workbench instance that is left running, so that someone can watch the endpoint in a browser
    Show answer and explanation
    Correct answer: C

    Cloud Monitoring latency metrics with an alerting policy at the objective's threshold notify the team automatically when the objective is breached. Sprint reviews, billing emails and a watched browser are slow, indirect, or depend on someone being present.

  4. Question 29

    Which TWO practices support responsible AI monitoring after deployment? (Choose two.)

    1. APublishing the model's accuracy once at launch and never reviewing it again after that point
    2. BMonitoring performance across demographic or customer segments to detect unfair differences
    3. CRemoving explainability tooling from production to reduce the latency added to each prediction
    4. DIgnoring user feedback about incorrect outputs, since the accuracy metric already shows the truth
    5. EUsing Explainable AI feature attributions to investigate predictions that look unexpected or wrong
    Show answer and explanation
    Correct answer: B, E

    Segment-level monitoring reveals unfair performance differences, and feature attributions help investigate unexpected predictions. Reviewing accuracy only at launch misses later degradation, and removing explainability or ignoring user feedback removes the signals that responsible monitoring depends on.

  5. Question 30

    A team must confirm that its model meets its fairness goals in production. Which step is most appropriate?

    1. AChecking only overall accuracy, which is the same for every customer group by definition of the metric
    2. BAsking one engineer to review a sample of predictions once a year and record a verdict in a document
    3. CRemoving the protected characteristics from the logs, so that fairness can no longer be measured at all
    4. DEvaluating performance by customer segment, with fairness metrics tracked over time against the goals
    Show answer and explanation
    Correct answer: D

    Tracking performance by segment, with fairness metrics measured against the defined goals over time, shows whether the model treats groups fairly in production. Overall accuracy hides group differences, removing the data stops any measurement, and an annual review is too infrequent.