Bird
0
0

Which of the following is the correct JSON structure to define a basic Access Level with an IP subnet condition?

easy📝 Syntax Q3 of 15
GCP - Cloud IAM Advanced
Which of the following is the correct JSON structure to define a basic Access Level with an IP subnet condition?
A{\"condition\": {\"ipSubnet\": \"192.168.1.0/24\"}}
B{\"basic\": {\"conditions\": [{\"ipSubnetworks\": [\"192.168.1.0/24\"]}]}}
C{\"accessLevel\": {\"ipRange\": [\"192.168.1.0/24\"]}}
D{\"basicLevel\": {\"ipSubnets\": [\"192.168.1.0/24\"]}}
Step-by-Step Solution
Solution:
  1. Step 1: Recall Access Level JSON format

    Access Levels use a 'basic' key with 'conditions' array containing 'ipSubnetworks' list.
  2. Step 2: Compare options to correct format

    {\"basic\": {\"conditions\": [{\"ipSubnetworks\": [\"192.168.1.0/24\"]}]}} matches the correct JSON structure with 'basic' and 'conditions' including 'ipSubnetworks'. Others have incorrect keys or structure.
  3. Final Answer:

    Correct JSON with 'basic' and 'conditions' including 'ipSubnetworks' -> Option B
  4. Quick Check:

    Access Level JSON uses 'basic' and 'ipSubnetworks' keys [OK]
Quick Trick: Use 'basic' and 'conditions' with 'ipSubnetworks' for IP-based Access Levels [OK]
Common Mistakes:
  • Using wrong keys like 'ipRange' or 'ipSubnet'
  • Missing 'conditions' array
  • Incorrect nesting of JSON keys

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes