Soru

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

An online retail organization is designing a serverless backend infrastructure on Google Cloud to handle two distinct operational workloads:
1. Workload A: A high-throughput API gateway service packaged as a custom Docker container image that must handle up to 80 concurrent HTTP requests per instance to optimize resource utilization.
2. Workload B: A lightweight event processor executing a single JavaScript file whenever a new PDF invoice is generated and saved to a Cloud Storage bucket.

Which two architectural decisions should the cloud engineer select to meet these requirements with minimal operational overhead? (Select TWO)

  1. Deploy Workload A to Cloud Run and configure container concurrency to allow multiple requests per instance.Cevap
  2. Deploy Workload B as a Cloud Function configured with a Cloud Storage event trigger.Cevap
  3. C
    Deploy Workload A to Cloud Functions to leverage native container image multi-concurrency.
  4. D
    Deploy both Workload A and Workload B onto a managed Compute Engine instance group to avoid serverless cold starts.

Cevap

Deploy Workload A to Cloud Run with multi-request concurrency configured, and deploy Workload B to Cloud Functions triggered directly by Cloud Storage events.
Cloud Run is the optimal platform for Workload A because it allows deploying custom Docker containers with configured concurrency to process up to 80 requests simultaneously per container instance. Cloud Functions is the optimal choice for Workload B because it natively integrates with Cloud Storage events to execute lightweight code snippets without needing container maintenance.

Adım Adım Çözüm

1
Evaluate Workload A requirements against GCP serverless compute options.
Workload A requires running a custom Docker container with explicit support for serving multiple concurrent HTTP requests per instance.
Cloud Run supports containerized applications with configurable request concurrency up to 1000 requests per instance, making it the correct choice for Workload A.
2
Evaluate Workload B requirements against GCP serverless compute options.
Workload B requires executing a simple JavaScript file in response to Cloud Storage object creation events.
Cloud Functions provides a fully managed, event-driven runtime specifically designed for executing code snippets triggered by Google Cloud infrastructure events.

Anahtar Kavram

Differentiating serverless compute platforms (Cloud Run vs. Cloud Functions) based on containerization, concurrency capabilities, and event trigger mechanisms.
Bu soruyu puanla