D4: Viewing & Creating IAM Policies
Google Cloud Associate Cloud Engineer exam practice questions · 12 flashcards
Question
What is an IAM allow policy?
1 / 12
Tip: Space flips the card, ← / → navigate.
Show all 12 Viewing & Creating IAM Policies practice questions and answers
- What is an IAM allow policy?A set of bindings connecting principals to roles on a resource.
- What is a binding?A role plus a list of members, optionally with a condition.
- What is the etag in an IAM policy?A version marker that prevents overwriting concurrent changes.
- How do you view a project's IAM policy?gcloud projects get-iam-policy PROJECT_ID.
- How do you replace a whole policy?gcloud projects set-iam-policy PROJECT_ID policy.json.
- Why prefer add-iam-policy-binding over set-iam-policy?It changes one binding instead of risking overwriting the whole policy.
- Which policy version supports conditions?Version 3.
- Example IAM condition?Access only until a date, or only to resources with a name prefix.
- What are IAM deny policies?Rules that deny specific permissions regardless of allow policies.
- Deny vs allow precedence?Deny policies are evaluated first and override allows.
- Can policies be set on individual resources?Yes, for resources that support IAM (e.g. buckets, topics, service accounts).
- What is Policy Troubleshooter?Explains why a principal does or doesn't have a permission.