You are working in Cloud Shell in project analytics-prod. Security asks you to create a new service account called etl-runner and set its display name to "ETL Batch SA" before any roles are granted. Which single gcloud command will accomplish this task?
gcloud iam service-accounts add-iam-policy-binding [email protected] --role="roles/iam.serviceAccountUser"
To create a new service account you use gcloud iam service-accounts create. The command requires only the account ID; optional flags like --display-name (and --description) let you set metadata at creation time. Supplying the --project flag ensures the account is created in the intended project. The other commands either try to bind roles (which presumes the account already exists), add a key, or update an existing account-all of which do not create a new service account.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of a service account in GCP?
Open an interactive chat with Bash
What does the `--display-name` flag do in the `gcloud iam service-accounts create` command?
Open an interactive chat with Bash
Why is the `--project` flag required when creating a service account?
Open an interactive chat with Bash
What is a service account in GCP?
Open an interactive chat with Bash
What does the gcloud 'iam service-accounts create' command do?
Open an interactive chat with Bash
Why use the '--display-name' flag when creating a service account?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Configuring access and security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .