Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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