0
0
GCPcloud~10 mins

Buildpacks for source-based deployment 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 an app using Cloud Buildpacks with gcloud.

GCP
gcloud run deploy my-app --source=[1]
Drag options to blanks, or click blank then click option'
A./source
B./build
C./app
D./deploy
Attempts:
3 left
💡 Hint
Common Mistakes
Using a folder that does not contain source code
Omitting the --source flag
2fill in blank
medium

Complete the command to specify the platform for Cloud Run deployment.

GCP
gcloud run deploy my-app --source=./source --platform=[1]
Drag options to blanks, or click blank then click option'
Alocal
Bcontainer
Ccustom
Dmanaged
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'local' or 'container' which are invalid platform options
Omitting the platform flag
3fill in blank
hard

Fix the error in the buildpack deployment command by completing the missing flag.

GCP
gcloud run deploy my-app --source=./source [1] my-region
Drag options to blanks, or click blank then click option'
A--location
B--region
C--area
D--zone
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect flags like --zone or --location
Not specifying any region flag
4fill in blank
hard

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

GCP
gcloud run deploy my-app --memory=[1] --cpu=[2] --source=./source
Drag options to blanks, or click blank then click option'
A512Mi
B1
C256Mi
D2
Attempts:
3 left
💡 Hint
Common Mistakes
Using CPU as a string with units
Setting memory without units
5fill in blank
hard

Fill all three blanks to create a buildpack deployment command with service name, region, and platform.

GCP
gcloud run deploy [1] --region=[2] --platform=[3] --source=./source
Drag options to blanks, or click blank then click option'
Amy-service
Bus-central1
Cmanaged
Deurope-west1
Attempts:
3 left
💡 Hint
Common Mistakes
Using invalid region names
Omitting the platform flag