0
0
GCPcloud~10 mins

Cloud Run jobs for batch work 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 job named 'batch-job'.

GCP
gcloud run jobs create batch-job --image=[1] --region=us-central1
Drag options to blanks, or click blank then click option'
Acloud-run
Bgcr.io/my-project/my-image:latest
Cbatch-job
Dus-central1
Attempts:
3 left
💡 Hint
Common Mistakes
Using region name instead of image URL
Using job name instead of image URL
2fill in blank
medium

Complete the command to run the Cloud Run job 'batch-job' once.

GCP
gcloud run jobs execute batch-job --region=[1]
Drag options to blanks, or click blank then click option'
Alatest
Bgcr.io
Cus-central1
Dbatch-job
Attempts:
3 left
💡 Hint
Common Mistakes
Using job name instead of region
Using image URL instead of region
3fill in blank
hard

Fix the error in the command to list Cloud Run jobs in the 'us-central1' region.

GCP
gcloud run jobs list --region=[1]
Drag options to blanks, or click blank then click option'
Aus-central1
Bbatch-job
Clatest
Dgcr.io
Attempts:
3 left
💡 Hint
Common Mistakes
Using job name instead of region
Using image URL instead of region
4fill in blank
hard

Fill both blanks to update the Cloud Run job 'batch-job' with a new image and set max retries to 3.

GCP
gcloud run jobs update batch-job --image=[1] --max-retries=[2] --region=us-central1
Drag options to blanks, or click blank then click option'
Agcr.io/my-project/new-image:latest
B3
C5
Dbatch-job
Attempts:
3 left
💡 Hint
Common Mistakes
Using job name instead of image URL
Setting retries to a non-numeric value
5fill in blank
hard

Fill all three blanks to create a Cloud Run job 'batch-job' with 2 tasks, each with 1 CPU and 512Mi memory.

GCP
gcloud run jobs create batch-job --tasks=[1] --cpu=[2] --memory=[3] --region=us-central1 --image=gcr.io/my-project/my-image:latest
Drag options to blanks, or click blank then click option'
A2
B1
C512Mi
Dbatch-job
Attempts:
3 left
💡 Hint
Common Mistakes
Using job name instead of number of tasks
Using memory without units
Using CPU as string with units