Bird
0
0

Which set of permissions should you include?

hard📝 Application Q8 of 15
GCP - Cloud IAM Advanced
You need to create a custom role that permits users to list and read objects in Cloud Storage buckets but prevents them from deleting or modifying any buckets or objects. Which set of permissions should you include?
Astorage.buckets.get, storage.buckets.delete, storage.objects.get
Bstorage.buckets.list, storage.objects.get, storage.objects.list
Cstorage.buckets.create, storage.objects.delete, storage.objects.list
Dstorage.buckets.update, storage.objects.get, storage.objects.delete
Step-by-Step Solution
Solution:
  1. Step 1: Identify read/list permissions

    To allow listing buckets and reading objects, include 'storage.buckets.list', 'storage.objects.get', and 'storage.objects.list'.
  2. Step 2: Exclude delete or update permissions

    Do not include 'storage.buckets.delete', 'storage.buckets.update', or 'storage.objects.delete' to prevent deletion or modification.
  3. Final Answer:

    storage.buckets.list, storage.objects.get, storage.objects.list -> Option B
  4. Quick Check:

    Include only read and list permissions, exclude delete/update [OK]
Quick Trick: Include only list/get permissions, exclude delete/update [OK]
Common Mistakes:
  • Including delete or update permissions by mistake
  • Confusing 'storage.buckets.get' with 'storage.buckets.list'
  • Assuming 'storage.buckets.create' is needed for reading

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes