A cloud engineer needs to limit the maximum number of container instances for an existing Cloud Run service named `inventory-api` to preventing overloading a backend database. Which `gcloud` command should the engineer execute?
- gcloud run services update inventory-api --max-instances=10Cevap
- Bgcloud functions deploy inventory-api --max-instances=10
- Cgcloud run services update-traffic inventory-api --max-instances=10
- Dgcloud compute instances update inventory-api --max-instances=10
Cevap
Execute `gcloud run services update inventory-api --max-instances=10` to adjust scaling settings on an existing Cloud Run service.
The correct command uses `gcloud run services update` along with the `--max-instances` flag to modify scaling limits on an existing Cloud Run service without affecting traffic splitting or target compute paradigms.
Adım Adım Çözüm
Anahtar Kavram
Managing Cloud Run scaling parameters via the gcloud CLI