0
0
GCPcloud~10 mins

Serverless vs GKE 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 best option for a fully managed, event-driven compute service.

GCP
service = "[1]"  # Choose the serverless compute option
Drag options to blanks, or click blank then click option'
AGoogle Kubernetes Engine
BCloud Run
CCompute Engine
DApp Engine Flexible
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing GKE which requires cluster management.
Selecting Compute Engine which is VM-based, not serverless.
2fill in blank
medium

Complete the code to select the best option for running containerized applications with full control over orchestration.

GCP
service = "[1]"  # Choose the container orchestration platform
Drag options to blanks, or click blank then click option'
AGoogle Kubernetes Engine
BApp Engine Standard
CCloud Run
DCloud Functions
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing Cloud Run which is serverless and abstracts orchestration.
Selecting Cloud Functions which is for event-driven functions, not containers.
3fill in blank
hard

Fix the error in the decision code to select the best option for a workload needing automatic scaling without cluster management.

GCP
if workload == "event-driven" and needs_scaling:
    platform = "[1]"
Drag options to blanks, or click blank then click option'
AApp Engine Flexible
BGoogle Kubernetes Engine
CCloud Run
DCompute Engine
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing GKE which requires manual cluster management.
Selecting Compute Engine which is VM-based and not serverless.
4fill in blank
hard

Fill both blanks to complete the decision logic for choosing between serverless and GKE based on control and scaling needs.

GCP
if needs_full_control == [1] and wants_serverless == [2]:
    platform = "Google Kubernetes Engine"
Drag options to blanks, or click blank then click option'
ATrue
BFalse
CNone
DMaybe
Attempts:
3 left
💡 Hint
Common Mistakes
Setting wants_serverless to True when choosing GKE.
Using None or Maybe which are not boolean values.
5fill in blank
hard

Fill all three blanks to complete the function that decides the platform based on workload type, control, and scaling.

GCP
def choose_platform(workload_type, needs_control, auto_scale):
    if workload_type == [1] and not needs_control and auto_scale:
        return [2]
    else:
        return [3]
Drag options to blanks, or click blank then click option'
A"event-driven"
B"Cloud Run"
C"Google Kubernetes Engine"
D"batch"
Attempts:
3 left
💡 Hint
Common Mistakes
Using batch instead of event-driven for workload_type.
Returning GKE for event-driven without control needs.