nerdexam
Google

ASSOCIATE-CLOUD-ENGINEER · Question #73

Which is the correct command to bind an IAM policy to a service account at an organisation or folder level?

The correct answer is A. gcloud organizations add-iam-policy-binding org_id --member serviceAccount:whizlab@amazon-. This question asks for the correct gcloud command to bind an IAM policy to a service account at the organization or folder level.

Submitted by brentm· Mar 30, 2026Configuring access and security

Question

Which is the correct command to bind an IAM policy to a service account at an organisation or folder level?

Options

  • Agcloud organizations add-iam-policy-binding org_id --member serviceAccount:whizlab@amazon-
  • Bgcloud projects add-iam-policy-binding amazon-prj --member serviceAccount:amazonamazon-
  • Cgcloud iam service-accounts keys create amazon-prj --iam-account amazon@amazon-
  • Dgcloud organizations add-iam-policy-binding --member serviceAccount:whizlab@amazon-

How the community answered

(58 responses)
  • A
    86% (50)
  • B
    3% (2)
  • C
    2% (1)
  • D
    9% (5)

Why each option

This question asks for the correct gcloud command to bind an IAM policy to a service account at the organization or folder level.

Agcloud organizations add-iam-policy-binding org_id --member serviceAccount:whizlab@amazon-Correct

The command `gcloud organizations add-iam-policy-binding` is used to grant an IAM role to a member at the organization level, requiring the organization ID and specifying the service account as the member in the format `serviceAccount:email`.

Bgcloud projects add-iam-policy-binding amazon-prj --member serviceAccount:amazonamazon-

`gcloud projects add-iam-policy-binding` is used to bind policies at the project level, not the organization or folder level.

Cgcloud iam service-accounts keys create amazon-prj --iam-account amazon@amazon-

`gcloud iam service-accounts keys create` is used to create a service account key, not to bind an IAM policy.

Dgcloud organizations add-iam-policy-binding --member serviceAccount:whizlab@amazon-

This command is missing the organization ID (`org_id`) which is a required positional argument to specify which organization the policy binding applies to.

Concept tested: GCP IAM Policy Binding Organizations

Source: https://cloud.google.com/sdk/gcloud/reference/organizations/add-iam-policy-binding

Topics

#gcloud CLI#IAM policy binding#organization level#service accounts

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice