You need to create a new service account named "app-scanner" in your Google Cloud project using the command-line interface. Which gcloud command should you run to accomplish this?
- gcloud iam service-accounts create app-scanner --display-name="App Scanner"Cevap
- Bgcloud iam service-accounts keys create app-scanner.json [email protected]
- Cgcloud projects add-iam-policy-binding project-id --member="serviceAccount:app-scanner" --role="roles/editor"
- Dgcloud services enable iam.googleapis.com
Cevap
Execute the command 'gcloud iam service-accounts create app-scanner --display-name="App Scanner"' to create the service account.
To create a new service account in GCP using the gcloud CLI, the correct command syntax is 'gcloud iam service-accounts create [SA_NAME]'. Additional options such as '--display-name' can be specified to provide a descriptive label.
Adım Adım Çözüm
Anahtar Kavram
Creating service accounts using gcloud CLI