Question 270
After resolving the following case, what should the engineer verify? A telemetry response has a top-level object containing an interfaces array and the parser assumes the root is an array.
Explanation
Correct Answer
This is the intended verification of the remedy: Read the array using its containing object key before iterating entries. Nested JSON structure must be traversed through the correct object/list levels.
Incorrect Answers
That observation would verify a different condition: an interface inventory is represented as multiple identical keys in one JSON object and later items disappear.
That observation would verify a different condition: a script emits a trailing comma after the last JSON list element and the API returns a parser error.
That observation would verify a different condition: an API expects a numeric MTU but a generated JSON payload sends "1500" as a string.