Bird
0
0

Which of the following is the correct JSON structure snippet to define a custom role's permissions in GCP?

easy📝 Syntax Q3 of 15
GCP - Cloud IAM Advanced
Which of the following is the correct JSON structure snippet to define a custom role's permissions in GCP?
A{"name": "MyRole", "permissions": ["storage.buckets.get"]}
B{"roleTitle": "MyRole", "allowedPermissions": ["storage.buckets.get"]}
C{"title": "MyRole", "includedPermissions": ["storage.buckets.get"]}
D{"roleName": "MyRole", "permissionsList": ["storage.buckets.get"]}
Step-by-Step Solution
Solution:
  1. Step 1: Recall the correct JSON keys for custom roles

    The key for permissions is 'includedPermissions' and for title is 'title'.
  2. Step 2: Match keys with options

    Only {"title": "MyRole", "includedPermissions": ["storage.buckets.get"]} uses correct keys 'title' and 'includedPermissions'. Others use incorrect keys.
  3. Final Answer:

    {"title": "MyRole", "includedPermissions": ["storage.buckets.get"]} -> Option C
  4. Quick Check:

    Correct keys = title + includedPermissions [OK]
Quick Trick: Use 'includedPermissions' key for permissions in JSON [OK]
Common Mistakes:
  • Using wrong keys like 'permissions' or 'allowedPermissions'
  • Confusing role title key names
  • Incorrect JSON structure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes