Bird
0
0

You wrote this Access Level JSON but it fails to deploy: { "basic": { "conditions": { "ipSubnetworks": ["10.1.0.0/16"] } } } What is the error?

medium📝 Debug Q6 of 15
GCP - Cloud IAM Advanced
You wrote this Access Level JSON but it fails to deploy: { "basic": { "conditions": { "ipSubnetworks": ["10.1.0.0/16"] } } } What is the error?
A"ipSubnetworks" should be a string, not an array
B"basic" key is missing
C"conditions" should be an array, not an object
DSubnet format is invalid
Step-by-Step Solution
Solution:
  1. Step 1: Check JSON structure for Access Level

    The 'conditions' field must be an array of condition objects.
  2. Step 2: Identify the mistake in given JSON

    Here, 'conditions' is an object, not an array, causing deployment failure.
  3. Final Answer:

    "conditions" should be an array, not an object -> Option C
  4. Quick Check:

    Conditions must be an array in Access Level JSON [OK]
Quick Trick: "conditions" must always be an array, even with one condition [OK]
Common Mistakes:
  • Using object instead of array for conditions
  • Misformatting IP subnet as string instead of array
  • Missing 'basic' key

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes