Courseiva

PMLE Practice Question: Collaborating Within and Across Teams to Manage Data and Models

An ML engineer trained a model and registered it in Vertex AI Model Registry. They want to assign the alias 'champion' to the best-performing version for production deployment. Which gcloud command should they use?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

gcloud ai models versions update --model=MODEL_ID --version=VERSION_ID --update-aliases=champion

The correct command is 'gcloud ai models versions update' with the --update-aliases flag. This command updates a specific model version's aliases, allowing you to assign or remove aliases like 'champion' to denote the best-performing version for production. Option A only describes a version, option B uploads a new model, and option C deploys a model to an endpoint, none of which assign aliases to a version.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    gcloud ai models versions describe --model=MODEL_ID --version=VERSION_ID

    Why it's wrong here

    The describe subcommand only reads metadata about a version; it performs no mutation, so no alias is set. It tempts because engineers inspect versions before promoting one, and would be correct if the goal were verifying a version's details rather than assigning the champion alias.

  • ✗

    gcloud ai models upload --model-id=MODEL_ID --display-name=champion

    Why it's wrong here

    The upload command creates a new model resource with a display name; it cannot attach an alias to an existing registered version. It tempts because upload is how models enter the registry, and would be correct when first registering a model rather than promoting an already-registered version to champion.

  • ✗

    gcloud ai endpoints deploy-model --model=MODEL_ID --alias=champion

    Why it's wrong here

    Deploy-model places a model version onto an endpoint for serving; the --alias flag is not how registry aliases are assigned. It tempts because aliases are used in deployment workflows, and would be correct if the engineer were routing production traffic to a version already tagged champion.

  • ✓

    gcloud ai models versions update --model=MODEL_ID --version=VERSION_ID --update-aliases=champion

    Why this is correct

    The versions update subcommand with --update-aliases assigns the 'champion' alias to a specific registered model version, enabling production deployment by alias rather than version number. Other commands set IAM policy or labels, which do not create the deployment alias the scenario requires.

About these practice questions

One of 775 original PMLE practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

2 more ways this is tested on PMLE

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A machine learning engineer needs to deploy a model to an endpoint for real-time predictions. The model is registered in Vertex AI Model Registry. Which command should they use to create an endpoint and deploy the model with the alias 'champion'?

medium
  • A.gcloud ai models upload --model=my-model --alias=champion --endpoint=my-endpoint
  • ✓ B.gcloud ai endpoints deploy-model --endpoint=my-endpoint --model=my-model --alias=champion
  • C.gcloud ai endpoints predict --model=my-model --alias=champion
  • D.gcloud ai endpoints create --model=my-model --alias=champion

Why B: The correct command is 'gcloud ai endpoints deploy-model' because it deploys a model from the Vertex AI Model Registry to an existing endpoint. The '--alias' flag specifies the alias 'champion' for the deployed model, which is used for traffic splitting or model versioning. This command creates a deployed model resource on the endpoint.

Variation 2. An ML engineer needs to deploy a model from Vertex AI Model Registry to an endpoint. The model has multiple versions. They want to designate one version as the 'champion' for production traffic. How should they do this?

easy
  • ✓ A.Use the 'champion' alias
  • B.Set the version as default in the registry
  • C.Use the 'production' alias
  • D.Deploy the model directly to an endpoint without alias

Why A: Vertex AI Model Registry supports aliases, which are named pointers to specific model versions. The 'champion' alias is a conventional label used to designate the production-ready version that should receive live traffic. By assigning the 'champion' alias to a version, the engineer creates a stable, human-readable reference that deployment pipelines and endpoints can target without hardcoding version IDs.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PMLE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PMLE exam.