0
0
GCPcloud~20 mins

GKE vs Cloud Run decision in GCP - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
GKE vs Cloud Run Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
When to choose GKE over Cloud Run?

You have a containerized application that requires fine-grained control over networking, persistent storage, and custom scheduling. Which platform is the best choice?

AUse GKE because it allows detailed control over networking, storage, and scheduling of containers.
BUse Cloud Run because it automatically scales and manages infrastructure without user control.
CUse Cloud Run because it supports stateful applications with persistent disks natively.
DUse GKE only if you want serverless deployment without managing clusters.
Attempts:
2 left
💡 Hint

Think about which platform gives you more control over infrastructure details.

service_behavior
intermediate
2:00remaining
How does Cloud Run scale compared to GKE?

Consider a web service deployed on both Cloud Run and GKE. Which statement correctly describes their scaling behavior?

AGKE scales automatically without any configuration, Cloud Run requires manual scaling settings.
BBoth Cloud Run and GKE scale only when manually triggered by the user.
CCloud Run scales automatically based on incoming requests, while GKE requires manual or configured autoscaling.
DCloud Run cannot scale beyond one instance, GKE can scale to many nodes automatically.
Attempts:
2 left
💡 Hint

Think about which platform is fully managed and serverless.

Architecture
advanced
3:00remaining
Designing a hybrid app with GKE and Cloud Run

You want to build an app where the backend API needs custom networking and persistent storage, but the frontend is a stateless service with unpredictable traffic. Which architecture is best?

ADeploy both backend and frontend on Cloud Run for simplicity and automatic scaling.
BDeploy backend on Cloud Run with persistent disks, frontend on GKE for better traffic handling.
CDeploy both backend and frontend on GKE to keep all services in one cluster.
DDeploy backend on GKE for control and persistent storage, frontend on Cloud Run for serverless scaling.
Attempts:
2 left
💡 Hint

Consider which platform supports persistent storage and which supports serverless scaling best.

security
advanced
3:00remaining
Security differences between GKE and Cloud Run

Which statement correctly describes a key security difference between GKE and Cloud Run?

AGKE automatically isolates containers with sandboxing, Cloud Run runs containers directly on host OS.
BCloud Run runs containers in isolated sandboxes managed by Google, reducing attack surface compared to GKE nodes.
CBoth GKE and Cloud Run require manual patching of the underlying OS for security updates.
DCloud Run requires users to manage Kubernetes RBAC policies, GKE does not.
Attempts:
2 left
💡 Hint

Think about who manages the infrastructure and isolation in each platform.

Best Practice
expert
4:00remaining
Cost optimization when choosing between GKE and Cloud Run

Your team wants to minimize costs for a microservices app with variable traffic and some stateful components. Which approach best optimizes cost?

ARun stateless microservices on Cloud Run to pay per use, and stateful components on GKE with autoscaling.
BRun all microservices on GKE with a large cluster to handle peak load at all times.
CRun all microservices on Cloud Run to avoid cluster management and fixed costs.
DRun stateful components on Cloud Run with persistent disks and stateless on GKE for better control.
Attempts:
2 left
💡 Hint

Consider which platform charges you only when used and which is better for stateful workloads.