A system architect is evaluating Google Cloud serverless options for hosting microservices. Which TWO statements accurately describe key characteristics and planning considerations for Cloud Run compared to Cloud Functions?
- Cloud Run automatically scales compute instances down to zero when no incoming traffic is detected to minimize costs.Cevap
- Cloud Run can execute custom binaries and unsupported language runtimes by packaging them inside a container image.Cevap
- CCloud Functions is designed for multi-container pod deployments, whereas Cloud Run is restricted strictly to single-threaded code snippets.
- DCloud Run container images must hardcode listening on port 80 and cannot utilize the system PORT environment variable.
Cevap
The correct statements are that Cloud Run can scale down to zero instances when idle, and Cloud Run can execute custom binaries or unsupported language runtimes by packaging them into container images.
Cloud Run runs stateless containers, enabling developers to package any runtime, library, or binary inside an OCI container image. Additionally, it features automatic scaling, including scaling down to zero instances when inactive to eliminate idle resource charges.
Adım Adım Çözüm
Anahtar Kavram
Planning Serverless Compute Options (Cloud Run vs. Cloud Functions)