Soru

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

An organization is designing a serverless HTTP microservice to process uploaded financial documents. The workload requires running a specialized C++ processing tool packaged inside a custom container image, serving up to 50 concurrent HTTP requests per instance to optimize cost, and supporting request execution timeouts up to 30 minutes. Which Google Cloud serverless compute option should you recommend?

  1. Cloud Run, because it natively supports custom container images, multi-request concurrency per instance, and HTTP request timeouts up to 60 minutes.Cevap
  2. B
    Cloud Functions (1st generation), because it provides the lowest cold-start latency for multi-threaded C++ binary containers.
  3. C
    Compute Engine Spot VMs in a Managed Instance Group, because serverless offerings on Google Cloud do not allow custom binary dependencies.
  4. D
    Cloud Functions (2nd generation) with strict single-concurrency enforcement, because Cloud Functions is required whenever execution time exceeds 15 minutes.

Cevap

Cloud Run, because it natively supports custom container images, multi-request concurrency per instance, and HTTP request timeouts up to 60 minutes.
Cloud Run is the ideal choice for stateless containerized workloads that require custom Linux binaries, multi-request concurrency per instance to optimize operational costs, and HTTP timeouts up to 60 minutes.

Adım Adım Çözüm

1
Analyze the workload requirements
Identified requirements: custom container image with a C++ binary, multi-request concurrency (50 requests/instance), and a 30-minute HTTP request execution timeout.
Choosing the appropriate serverless compute product requires matching runtime constraints against platform capabilities.
2
Evaluate Google Cloud serverless options against the requirements
Cloud Run allows deploying arbitrary container images, configuring concurrency up to 1000 requests per instance, and setting HTTP timeouts up to 60 minutes.
Cloud Run is tailored for containerized web applications needing high concurrency and long HTTP timeouts.
3
Select the correct compute service
Recommend Cloud Run as the optimal serverless compute option.
It satisfies all architectural, concurrency, containerization, and timeout requirements while maintaining a serverless operational model.

Anahtar Kavram

Planning Serverless Compute Options (Cloud Run vs. Cloud Functions)
Tahmini Süre:1m 30s
Bu soruyu puanla