A cloud engineer needs to update an existing Cloud Run service named `analytics-service` in the `us-central1` region to meet two operational requirements: ensure that unauthenticated invocations are disallowed, and cap the maximum number of container instances at 50 to limit billing exposure. Which of the following commands achieve these requirements? (Select TWO.)
- gcloud run services update analytics-service --no-allow-unauthenticated --region=us-central1Cevap
- gcloud run services update analytics-service --max-instances=50 --region=us-central1Cevap
- Cgcloud functions deploy analytics-service --max-instances=50 --region=us-central1
- Dgcloud projects add-iam-policy-binding my-project --member="allUsers" --role="roles/owner" --region=us-central1
Cevap
To enforce authentication and set autoscaling limits on an existing Cloud Run service, use 'gcloud run services update analytics-service --no-allow-unauthenticated --region=us-central1' and 'gcloud run services update analytics-service --max-instances=50 --region=us-central1'.
To update an existing Cloud Run service, the 'gcloud run services update' command is used. Disallowing unauthenticated access requires the '--no-allow-unauthenticated' flag, while capping active instances requires setting the '--max-instances' flag.
Adım Adım Çözüm
Anahtar Kavram
Cloud Run Resource Management via gcloud CLI