0
0
GCPcloud~20 mins

Cloud Run for containerized services 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!
service_behavior
intermediate
2:00remaining
How does Cloud Run handle incoming requests?

Cloud Run automatically scales container instances based on incoming requests. What happens when there are no requests?

ACloud Run keeps at least one container instance running at all times.
BCloud Run shuts down the service completely until manually restarted.
CCloud Run queues requests until a container instance becomes available.
DCloud Run scales down to zero container instances to save resources.
Attempts:
2 left
💡 Hint

Think about how serverless services save costs when idle.

Configuration
intermediate
2:00remaining
Which Cloud Run configuration sets the maximum number of container instances?

You want to limit the maximum number of container instances Cloud Run can create for your service. Which configuration option do you set?

Amin-instances
Bmax-instances
Cconcurrency
Dmemory-limit
Attempts:
2 left
💡 Hint

Look for the setting that controls the upper limit of instances.

Architecture
advanced
3:00remaining
What is the best architecture to securely connect Cloud Run to a private Cloud SQL instance?

You have a Cloud Run service that needs to connect to a Cloud SQL database that is not publicly accessible. Which architecture ensures secure connectivity?

AConfigure Cloud Run to use a Serverless VPC Connector and connect via private IP.
BUse Cloud SQL Proxy sidecar container inside Cloud Run service.
CExpose Cloud SQL with a public IP and restrict access by IP whitelist.
DConnect directly using Cloud SQL public IP without additional security.
Attempts:
2 left
💡 Hint

Think about private network connectivity options for serverless.

security
advanced
3:00remaining
How to restrict Cloud Run service access to only authenticated users?

You want your Cloud Run service to only allow requests from users who have signed in with Google accounts. Which setting enforces this?

AEnable IAM-based authentication and remove 'allUsers' from invoker role.
BUse a firewall rule to block all external traffic.
CSet the service to allow unauthenticated invocations.
DDeploy the service in a private subnet.
Attempts:
2 left
💡 Hint

Think about Cloud Run's integration with IAM permissions.

Best Practice
expert
3:00remaining
What is the recommended concurrency setting for a Cloud Run service handling CPU-intensive tasks?

Your Cloud Run service runs CPU-heavy computations. Which concurrency setting optimizes performance and resource usage?

ASet concurrency to 0 to disable concurrency and allow unlimited requests.
BSet concurrency to 80 (default) to maximize instance utilization.
CSet concurrency to 1 to dedicate one request per container instance.
DSet concurrency to 10 to balance between throughput and CPU usage.
Attempts:
2 left
💡 Hint

Consider how concurrency affects CPU-bound workloads.