0
0
GCPcloud~10 mins

Cloud Run service concept 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 Cloud Run service with the correct command.

GCP
gcloud run deploy my-service --image [1] --region us-central1
Drag options to blanks, or click blank then click option'
Amy-service
Bgcr.io/my-project/my-image
Cus-central1
Dmy-image
Attempts:
3 left
💡 Hint
Common Mistakes
Using the service name instead of the image URL.
Using only the image name without the registry path.
2fill in blank
medium

Complete the code to specify the platform when deploying a Cloud Run service.

GCP
gcloud run deploy my-service --image gcr.io/my-project/my-image --platform [1]
Drag options to blanks, or click blank then click option'
Agke
Bapp-engine
Cmanaged
Dkubernetes
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'gke' when intending to deploy to the managed platform.
Using unrelated platforms like 'app-engine'.
3fill in blank
hard

Fix the error in the command to allow unauthenticated access to the Cloud Run service.

GCP
gcloud run deploy my-service --image gcr.io/my-project/my-image --allow-[1]
Drag options to blanks, or click blank then click option'
Aprivate
Bauthenticated
Cpublic
Dunauthenticated
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'authenticated' which restricts access to logged-in users.
Using 'public' or 'private' which are not valid flag values.
4fill in blank
hard

Fill both blanks to create a Cloud Run service with 2 CPU cores and 512Mi memory.

GCP
gcloud run deploy my-service --image gcr.io/my-project/my-image --cpu [1] --memory [2]
Drag options to blanks, or click blank then click option'
A2
B1
C512Mi
D256Mi
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping CPU and memory values.
Using incorrect memory units like 'MB' instead of 'Mi'.
5fill in blank
hard

Fill all three blanks to set environment variables and concurrency for a Cloud Run service.

GCP
gcloud run deploy my-service --image gcr.io/my-project/my-image --set-env-vars [1]=prod,[2]=us-central1 --concurrency [3]
Drag options to blanks, or click blank then click option'
AENVIRONMENT
BREGION
C80
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Using lowercase or incorrect environment variable names.
Setting concurrency to a very low or invalid number.