Complete the code to create a new GCP project using the gcloud CLI.
gcloud projects create [1] --name="My Project"
The gcloud projects create command requires a unique project ID. Option A is a valid project ID format.
Complete the code to list all projects under your organization using gcloud CLI.
gcloud projects list --filter='parent.type:organization AND parent.id=[1]'
The parent.id filter requires the numeric organization ID. Option D is the correct numeric ID format.
Fix the error in the command to set the billing account for a project.
gcloud beta billing projects [1] --billing-account=000000-000000-000000
The correct subcommand to link a billing account to a project is link.
Fill both blanks to assign a role to a user on a project using gcloud CLI.
gcloud projects [1]-iam-policy-binding [2] --member='user:alice@example.com' --role='roles/viewer'
The command to assign a role is add-iam-policy-binding. The project ID must be specified after it. Option A fills the action, and option C is a valid project ID.
Fill all three blanks to create a new project with a specific organization and folder.
gcloud projects create [1] --name="New Project" --organization=[2] --folder=[3]
To create a project under an organization and folder, specify the project ID, organization ID, and folder ID respectively. Options A, B, and C correctly fill these blanks.