0
0
GCPcloud~20 mins

Why Cloud Run matters for containers in GCP - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Cloud Run Container Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why choose Cloud Run for container deployment?

Cloud Run is a service to run containers. Which of these is the main reason Cloud Run is useful?

AIt automatically scales containers up and down based on traffic without manual setup.
BIt requires you to manage virtual machines for container hosting.
CIt only supports containers built with specific programming languages.
DIt needs you to configure load balancers manually before deployment.
Attempts:
2 left
💡 Hint

Think about what makes Cloud Run easy compared to traditional container hosting.

Architecture
intermediate
2:00remaining
How does Cloud Run handle container instances?

Imagine you deploy a container to Cloud Run. What happens when no requests come in for a while?

ACloud Run requires manual intervention to stop or start containers.
BCloud Run keeps the container running indefinitely to reduce startup time.
CCloud Run converts the container into a virtual machine for better performance.
DCloud Run automatically stops the container to save resources and restarts it on new requests.
Attempts:
2 left
💡 Hint

Think about how serverless services save resources when idle.

service_behavior
advanced
2:00remaining
What is the effect of setting concurrency to 1 in Cloud Run?

Cloud Run allows setting concurrency, the number of requests a container instance handles at once. What happens if concurrency is set to 1?

ACloud Run merges all requests into a single batch to process at once.
BEach container instance handles only one request at a time, potentially increasing instances but reducing request wait time.
CCloud Run disables autoscaling and uses a fixed number of container instances.
DEach container instance handles multiple requests simultaneously, improving resource use but increasing latency.
Attempts:
2 left
💡 Hint

Think about how concurrency affects parallel request handling.

security
advanced
2:00remaining
How does Cloud Run secure container access by default?

When you deploy a container on Cloud Run, who can access it by default?

AOnly authenticated users with explicit permission can access the container service.
BAnyone on the internet can access the container without restrictions.
COnly users inside the same virtual private cloud (VPC) can access the container.
DAccess is blocked by default and requires manual firewall rules to open.
Attempts:
2 left
💡 Hint

Think about default security best practices for cloud services.

Best Practice
expert
3:00remaining
What is the best practice for deploying stateless containers on Cloud Run?

You want to deploy a containerized app on Cloud Run. Which practice ensures smooth scaling and reliability?

ADisable autoscaling to keep container instances always running.
BStore session data inside the container's local filesystem for faster access.
CDesign the container to be stateless, so any instance can handle requests without relying on local data.
DUse a single container instance to avoid scaling issues with shared state.
Attempts:
2 left
💡 Hint

Think about how containers scale and share workload in Cloud Run.