A Cloud Engineer needs to enable the Cloud Run API (`run.googleapis.com`) on a newly created Google Cloud project named `app-prod-101` using the `gcloud` command-line interface and verify that it is properly activated. In what order should the engineer execute the following procedural steps?
- 1Authenticate to Google Cloud CLI using `gcloud auth login` with an identity assigned the Service Usage Admin role.
- 2Set the active project context using `gcloud config set project app-prod-101`.
- 3Enable the Cloud Run service using `gcloud services enable run.googleapis.com`.
- 4Confirm activation by running `gcloud services list --enabled --filter="NAME:run.googleapis.com"`.
Cevap
The correct sequence of steps is: 1) Authenticate to Google Cloud CLI using gcloud auth login, 2) Set the active project context using gcloud config set project app-prod-101, 3) Enable the Cloud Run service using gcloud services enable run.googleapis.com, and 4) Confirm activation by running gcloud services list --enabled.
The correct procedural order requires authentication first, followed by establishing the project context, enabling the service API, and finally verifying that the API status is enabled.
Adım Adım Çözüm
Anahtar Kavram
Managing Google Cloud Service APIs via gcloud CLI