GCP ACE · Question 43 · Domain 5.1: Managing Identity and Access Management (IAM)
You need to create a Custom IAM Role because none of the predefined roles exactly match your security requirements. You want to create this role using a YAML file that defines the title, description, and included permissions.
Which command should you use to create the role at the project level?
Answer options:
gcloud iam roles create [ROLE_ID] --project=[PROJECT_ID] --file=[YAML_FILE]
gcloud projects add-iam-policy-binding [PROJECT_ID] --role=[YAML_FILE]
kubectl apply -f [YAML_FILE]
gcloud iam custom-roles apply [YAML_FILE]
50 questions · hints · full answers · grading