A cloud engineer wants to ensure that an existing Cloud Run service named `payments-api` always keeps a minimum of 3 container instances ready to serve incoming traffic to avoid cold start latencies. Which `gcloud` command should the engineer execute?
- gcloud run services update payments-api --min-instances 3Answer
- Bgcloud run services update payments-api --max-instances 3
- Cgcloud functions deploy payments-api --min-instances 3
- Dgcloud run services update-traffic payments-api --to-revisions=LATEST=3
Answer
The command 'gcloud run services update payments-api --min-instances 3' correctly configures the service to keep 3 warm instances active.
Executing 'gcloud run services update payments-api --min-instances 3' updates the Cloud Run service configuration so that at least 3 instances remain provisioned and warm, mitigating cold start latency.
Step-by-Step Solution
Key Concept
Cloud Run Instance Provisioning and Minimum Instances
Estimated Time:45s