0
0
GCPcloud~10 mins

Why Cloud Run matters for containers in GCP - Test Your Understanding

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

Complete the code to deploy a container to Cloud Run.

GCP
gcloud run deploy my-service --image [1] --platform managed
Drag options to blanks, or click blank then click option'
Acloud-run
Bmy-service
Cgcr.io/my-project/my-image
Ddocker run
Attempts:
3 left
💡 Hint
Common Mistakes
Using the service name instead of the image URL.
Using a command like 'docker run' instead of an image URL.
2fill in blank
medium

Complete the code to specify the region for Cloud Run deployment.

GCP
gcloud run deploy my-service --image gcr.io/my-project/my-image --platform managed --region [1]
Drag options to blanks, or click blank then click option'
Aus-central1
Bmy-service
Cdocker
Dcloud-run
Attempts:
3 left
💡 Hint
Common Mistakes
Using the service name instead of a region.
Using platform names instead of region names.
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 --platform managed --allow-[1]
Drag options to blanks, or click blank then click option'
Aauthenticated
Bunauthenticated
Cauthorized
Dpublic
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'authenticated' which restricts access.
Using 'public' which is not a valid flag.
4fill in blank
hard

Fill both blanks to set the memory and CPU limits for a Cloud Run service.

GCP
gcloud run deploy my-service --image gcr.io/my-project/my-image --memory [1] --cpu [2] --platform managed
Drag options to blanks, or click blank then click option'
A512Mi
B1
C2
D256Mi
Attempts:
3 left
💡 Hint
Common Mistakes
Using CPU units like '1Mi' instead of just '1'.
Using memory without units.
5fill in blank
hard

Fill all three blanks to create a Cloud Run service with environment variables and concurrency setting.

GCP
gcloud run deploy my-service --image gcr.io/my-project/my-image --set-env-vars [1]=prod --concurrency [2] --platform managed --region [3]
Drag options to blanks, or click blank then click option'
AENVIRONMENT
B80
Cus-east1
DDEBUG
Attempts:
3 left
💡 Hint
Common Mistakes
Using lowercase or invalid environment variable names.
Setting concurrency to a non-numeric value.
Using invalid region names.