A project administrator needs a user-managed identity for a new backend running on Compute Engine. The account must be called billing-api-sa, have a human-readable name of "Billing API service account," and include a description. Which gcloud command creates this service account in the active project with all requested metadata?
gcloud iam service-account create billing-api-sa --name "Billing API service account" --notes "Service account for the billing backend"
The gcloud iam service-accounts create command is used to generate a new user-managed service account. Supplying --display-name sets the friendly name shown in the console, and --description adds optional metadata. Omitting these flags leaves those fields blank but still creates the account. Other commands shown either target the wrong resource, misuse flags, or attempt to set roles instead of creating the identity, so they do not satisfy the requirement to create the service account with name, display name, and description.
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 a service account in GCP?
Open an interactive chat with Bash
Why use gcloud to manage service accounts?
Open an interactive chat with Bash
How can roles and permissions be applied to a GCP 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 .