0
0
GCPcloud~10 mins

Revision management in GCP - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to deploy a new revision of a Cloud Run service.

GCP
gcloud run deploy my-service --image gcr.io/my-project/my-image:[1] --region us-central1
Drag options to blanks, or click blank then click option'
Astable
Bprod
Cv1
Dlatest
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'latest' can cause unexpected updates.
Using environment names like 'prod' without tagging the image.
2fill in blank
medium

Complete the command to list all revisions of a Cloud Run service.

GCP
gcloud run revisions list --service=[1] --region us-central1
Drag options to blanks, or click blank then click option'
Alatest
Bdefault
Call
Dmy-service
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'default' which is not a service name.
Using 'latest' which is a tag, not a service.
3fill in blank
hard

Fix the error in the command to delete a specific revision.

GCP
gcloud run revisions delete [1] --region us-central1 --service my-service
Drag options to blanks, or click blank then click option'
Amy-service-00001-abc
Blatest
Cmy-service
Dall
Attempts:
3 left
💡 Hint
Common Mistakes
Using the service name instead of the revision name.
Using 'latest' which is not a revision identifier.
4fill in blank
hard

Fill both blanks to set traffic to 100% on a specific revision.

GCP
gcloud run services update-traffic my-service --to-revisions [1]=100 --region [2]
Drag options to blanks, or click blank then click option'
Amy-service-00002-def
Bus-central1
Ceurope-west1
Dmy-service-00001-abc
Attempts:
3 left
💡 Hint
Common Mistakes
Using the service name instead of the revision name.
Using the wrong region.
5fill in blank
hard

Fill all three blanks to create a new revision with environment variables and specify the region.

GCP
gcloud run deploy my-service --image gcr.io/my-project/my-image:[1] --set-env-vars [2]=production --region [3]
Drag options to blanks, or click blank then click option'
Av3
BENV
Cus-east1
Dv2
Attempts:
3 left
💡 Hint
Common Mistakes
Using an incorrect image tag.
Using an invalid environment variable name.
Specifying the wrong region.