0
0
GCPcloud~20 mins

Cloud Run service concept in GCP - Practice Problems & Coding Challenges

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

What happens when a Cloud Run service receives a sudden spike of 1000 requests at the same time?

ACloud Run rejects all requests exceeding the first instance's capacity without scaling.
BCloud Run queues all requests and processes them one by one on a single instance.
CCloud Run automatically creates multiple instances to handle the requests concurrently, scaling up quickly.
DCloud Run requires manual intervention to add more instances to handle the load.
Attempts:
2 left
💡 Hint

Think about how serverless platforms handle sudden traffic.

Architecture
intermediate
2:00remaining
Cloud Run Service and Traffic Splitting

You want to deploy a new version of your Cloud Run service and gradually send 20% of traffic to it while keeping 80% on the current version. How can you achieve this?

ADeploy the new version to a separate Cloud Run service and manually route 20% of requests via DNS.
BUse Cloud Run's traffic splitting feature to assign 20% traffic to the new revision and 80% to the old revision.
CUpdate the existing service to the new version and rely on Cloud Run to automatically split traffic.
DCreate a load balancer in front of Cloud Run and configure it to split traffic by percentage.
Attempts:
2 left
💡 Hint

Cloud Run supports gradual rollouts using built-in features.

security
advanced
2:00remaining
Cloud Run Service Authentication Configuration

You want to restrict access to your Cloud Run service so only authenticated users from your Google Workspace domain can invoke it. Which configuration achieves this?

ASet the Cloud Run service to allow only authenticated invocations and configure IAM to grant the 'Cloud Run Invoker' role to your Google Workspace domain users.
BMake the Cloud Run service public and rely on application-level authentication inside the container.
CDisable authentication on Cloud Run and use a firewall to block unwanted IP addresses.
DUse a VPN to restrict network access to the Cloud Run service.
Attempts:
2 left
💡 Hint

Think about how Cloud Run integrates with IAM and Google identities.

service_behavior
advanced
2:00remaining
Cloud Run Service Concurrency Setting Impact

If you set the concurrency of a Cloud Run service to 1, what is the effect on instance scaling and request handling?

AEach instance handles only one request at a time, so Cloud Run may create more instances under load to handle concurrent requests.
BEach instance can handle multiple requests simultaneously, reducing the number of instances needed.
CCloud Run queues requests internally and processes them sequentially on a single instance regardless of concurrency setting.
DSetting concurrency to 1 disables autoscaling and limits the service to one instance.
Attempts:
2 left
💡 Hint

Consider how concurrency affects instance utilization and scaling.

Best Practice
expert
2:00remaining
Optimizing Cloud Run Service Startup Time

Your Cloud Run service experiences high latency on the first request after a period of inactivity. Which approach best reduces this cold start delay?

AUse a scheduled Cloud Function to send requests periodically to keep the service active.
BIncrease the CPU and memory allocation to the service to speed up startup.
CDeploy the service to multiple regions to distribute the load.
DUse Cloud Run's minimum instance setting to keep a small number of instances always warm and ready.
Attempts:
2 left
💡 Hint

Think about how to keep instances ready without manual pings.