
Referring to the exhibit, how would you correct the error?
Show answerHide answer
Correct answer: D Use valid YAML syntax of key: value.
Explanation
Explanation:Why D is correct:
Juniper Apstra Property Sets must store data as dictionaries (key: value pairs). The error "Value should be dict" appears because the input 1, 2, 3, 4, 5 is a list, not a dictionary. Changing to YAML syntax like vlans: [1,2,3,4,5] or ids: 1,2,3,4,5 provides the required key‑value structure.
Why other options are incorrect:
A (Builder option for YAML): The Builder UI doesn’t change data type rules; you still need a dictionary, not a list.
B (Remove trailing blank lines): Blank lines don’t cause the dict error; trailing spaces are ignored by YAML/JSON parsers and are unrelated to dictionary validation.
C (Change to JSON and click Create): JSON alone doesn’t fix the problem – the value must be a JSON object {"key": value}, not an array [1,2,3,4,5].
Reference:
Juniper TechLibrary – Apstra Property Sets:“A property set is a collection of key‑value pairs ... Values can be defined in YAML or JSON dictionary format.” (See “Create a Property Set” in Apstra User Guide.)


