Soru

Zorluk: KolayPlanning Serverless Compute Options (Cloud Run and Cloud Functions)

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?

  1. Cloud Run automatically scales compute instances down to zero when no incoming traffic is detected to minimize costs.Cevap
  2. Cloud Run can execute custom binaries and unsupported language runtimes by packaging them inside a container image.Cevap
  3. C
    Cloud Functions is designed for multi-container pod deployments, whereas Cloud Run is restricted strictly to single-threaded code snippets.
  4. D
    Cloud 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

1
Evaluate the scaling features of Cloud Run
Cloud Run supports scaling to zero instances when there are no active requests.
Scaling to zero is a core serverless feature of Cloud Run designed to reduce compute costs for idle applications.
2
Evaluate runtime flexibility between Cloud Run and Cloud Functions
Cloud Run accepts standard container images containing any custom binary or runtime environment.
Cloud Functions requires selecting a supported programming language runtime, while Cloud Run abstracts the runtime inside a container image.

Anahtar Kavram

Planning Serverless Compute Options (Cloud Run vs. Cloud Functions)
Bu soruyu puanla