0
0
GCPcloud~10 mins

Cloud Run vs Cloud Functions decision in GCP - Interactive Practice

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

Complete the code to choose the service best suited for running containerized applications.

GCP
service = '[1]'  # Choose between Cloud Run and Cloud Functions
Drag options to blanks, or click blank then click option'
ACloud Run
BCloud Functions
CApp Engine
DCompute Engine
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing Cloud Functions for containerized apps
Confusing App Engine with Cloud Run
2fill in blank
medium

Complete the code to select the service that automatically scales based on HTTP requests.

GCP
scaling_service = '[1]'  # Cloud Run or Cloud Functions
Drag options to blanks, or click blank then click option'
AKubernetes Engine
BCloud Functions
CCompute Engine
DCloud Run
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing Compute Engine which requires manual scaling
Confusing Kubernetes Engine with serverless scaling
3fill in blank
hard

Fix the error in the code to deploy a service that supports any programming language via containers.

GCP
deploy_service = '[1]'  # Choose Cloud Run or Cloud Functions
Drag options to blanks, or click blank then click option'
AFirebase Hosting
BApp Engine Standard
CCloud Functions
DCloud Run
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing Cloud Functions for any language support
Confusing App Engine Standard with container support
4fill in blank
hard

Fill both blanks to configure a service that supports background tasks and HTTP triggers.

GCP
service_type = '[1]'
trigger_type = '[2]'  # Options: HTTP, Background
Drag options to blanks, or click blank then click option'
ACloud Functions
BCloud Run
CHTTP
DBackground
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing Cloud Run for background triggers
Mixing trigger types incorrectly
5fill in blank
hard

Fill all three blanks to set up a service with custom CPU allocation, container image, and automatic scaling.

GCP
service = '[1]'
container_image = '[2]'
cpu_allocation = '[3]'  # e.g., 2 vCPU
Drag options to blanks, or click blank then click option'
ACloud Run
Bgcr.io/my-project/my-image
C2 vCPU
DCloud Functions
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing Cloud Functions for container images
Setting CPU allocation on unsupported services