Question 800
A configuration schema requires an array of interface dictionaries, but automation sends a single JSON object instead. During troubleshooting: The API reports expected array but received object for the `interfaces` field. Which underlying cause best explains the recorded behavior?
- Python's boolean literal syntax is not the JSON `true` literal.
- JSON duplicate property names are ambiguous and common decoders overwrite earlier values.
- The payload uses `{}` object syntax where list `[]` is required.
- JSON syntax requires double quotation marks for string keys and values.
Explanation
Correct Answer
C:The actual technical cause is: The payload uses `{}` object syntax where list `[]` is required. It specifically explains the observation: the API reports expected array but received object for the `interfaces` field. The correcting configuration is: encode the collection as a JSON array `[...]` containing one object per interface.
Incorrect Answers
A:That diagnosis is supported by a different symptom: The API rejects a JSON payload containing bare capitalized `True`. Here the recorded observation is: the API reports expected array but received object for the `interfaces` field. The applicable cause is: the payload uses `{}` object syntax where list `[]` is required.
B:That diagnosis is supported by a different symptom: Only the last hostname value is visible after decoding the object. Here the recorded observation is: the API reports expected array but received object for the `interfaces` field. The applicable cause is: the payload uses `{}` object syntax where list `[]` is required.
D:That diagnosis is supported by a different symptom: The REST controller reports malformed JSON at the first single-quoted property. Here the recorded observation is: the API reports expected array but received object for the `interfaces` field. The applicable cause is: the payload uses `{}` object syntax where list `[]` is required.
Question 801
A configuration schema requires an array of interface dictionaries, but automation sends a single JSON object instead. The initial change is: Encode the collection as a JSON array `[...]` containing one object per interface. Which continuing control most directly prevents a recurrence of the documented problem: The API reports expected array but received object for the `interfaces` field.
- Validate payload types and required fields against the controller schema before PATCH/POST.
- Validate every generated payload with a standard JSON parser before sending API requests.
- Use a strict linter to detect duplicate JSON object keys before controller API calls.
- Serialize language-native booleans with a JSON encoder rather than manual text substitution.
Explanation
Correct Answer
A:The continuing protective control is: Validate payload types and required fields against the controller schema before PATCH/POST. This addresses the underlying failure mechanism: the payload uses `{}` object syntax where list `[]` is required. The corresponding operational check is: decode and verify array length and each interface field against the intended schema.
Incorrect Answers
B:That control reduces a separate risk: JSON syntax requires double quotation marks for string keys and values. For the described design, the recurring risk arises from: the payload uses `{}` object syntax where list `[]` is required. The specific required safeguard is: validate payload types and required fields against the controller schema before PATCH/POST.
C:That control reduces a separate risk: JSON duplicate property names are ambiguous and common decoders overwrite earlier values. For the described design, the recurring risk arises from: the payload uses `{}` object syntax where list `[]` is required. The specific required safeguard is: validate payload types and required fields against the controller schema before PATCH/POST.
D:That control reduces a separate risk: Python's boolean literal syntax is not the JSON `true` literal. For the described design, the recurring risk arises from: the payload uses `{}` object syntax where list `[]` is required. The specific required safeguard is: validate payload types and required fields against the controller schema before PATCH/POST.
Question 802
An API accepts a nullable property, but the automation sends the literal JSON string "null" instead of an absent value. The incident evidence is: The controller stores the text null rather than treating the optional property as unset. Which targeted configuration or design change best addresses the failure?
- Send a JSON numeric literal 120 matching the documented field type.
- Assign a unique key or use an array for multiple hostnames instead of duplicate object property names.
- Use the JSON null literal for an explicitly empty value, not the quoted string text.
- Encode valid JSON using double-quoted property names and strings.
Explanation
Correct Answer
C:The required correction is: Use the JSON null literal for an explicitly empty value, not the quoted string text. The underlying failure mechanism is: The client serialized a string token instead of the JSON null type. Verify success by carrying out this direct test: decode the JSON and confirm the field is null rather than a nonempty four-character string.
Incorrect Answers
A:Sending a JSON numeric literal 120 matching the documented field type would not meet the need for the JSON null literal for an explicitly empty value, not the quoted string text.
B:Assigning a unique key or use an array for multiple hostnames would not meet the need for the JSON null literal for an explicitly empty value, not the quoted string text.
D:Encode valid JSON using double-quoted property names and strings would not meet the need for the JSON null literal for an explicitly empty value, not the quoted string text.
Question 803
An API accepts a nullable property, but the automation sends the literal JSON string "null" instead of an absent value. The proposed remedy is: Use the JSON null literal for an explicitly empty value, not the quoted string text. Which observation would most directly confirm that remedy works as intended?
- Submit the payload to a JSON parser and ensure the original key/value pairs decode.
- Parse the payload with a duplicate-key-aware validator and verify both intended records persist.
- Parse the payload and confirm the VLAN value is numeric and schema validation succeeds.
- Decode the JSON and confirm the field is null rather than a nonempty four-character string.
Explanation
Correct Answer
D:The decisive acceptance observation is: Decode the JSON and confirm the field is null rather than a nonempty four-character string. This tests the working mechanism, while the original incident was: the controller stores the text null rather than treating the optional property as unset.
Incorrect Answers
A:This test measures a different behavior: Submit the payload to a JSON parser and ensure the original key/value pairs decode. It does not establish the target outcome. For the documented fault, the direct acceptance test is: decode the JSON and confirm the field is null rather than a nonempty four-character string.
B:This test measures a different behavior: Parse the payload with a duplicate-key-aware validator and verify both intended records persist. It does not establish the target outcome. For the documented fault, the direct acceptance test is: decode the JSON and confirm the field is null rather than a nonempty four-character string.
C:This test measures a different behavior: Parse the payload and confirm the VLAN value is numeric and schema validation succeeds. It does not establish the target outcome. For the documented fault, the direct acceptance test is: decode the JSON and confirm the field is null rather than a nonempty four-character string.
Question 804
An API accepts a nullable property, but the automation sends the literal JSON string "null" instead of an absent value. During troubleshooting: The controller stores the text null rather than treating the optional property as unset. Which underlying cause best explains the recorded behavior?
- JSON duplicate property names are ambiguous and common decoders overwrite earlier values.
- The client serialized a string token instead of the JSON null type.
- The value was encoded as a JSON string instead of an integer.
- JSON syntax requires double quotation marks for string keys and values.
Explanation
Correct Answer
B:The actual technical cause is: The client serialized a string token instead of the JSON null type. It specifically explains the observation: the controller stores the text null rather than treating the optional property as unset. The correcting configuration is: use the JSON null literal for an explicitly empty value, not the quoted string text.
Incorrect Answers
A:That diagnosis is supported by a different symptom: Only the last hostname value is visible after decoding the object. Here the recorded observation is: the controller stores the text null rather than treating the optional property as unset. The applicable cause is: the client serialized a string token instead of the JSON null type.
C:That diagnosis is supported by a different symptom: The controller rejects the payload because VLAN ID is not a numeric type. Here the recorded observation is: the controller stores the text null rather than treating the optional property as unset. The applicable cause is: the client serialized a string token instead of the JSON null type.
D:That diagnosis is supported by a different symptom: The REST controller reports malformed JSON at the first single-quoted property. Here the recorded observation is: the controller stores the text null rather than treating the optional property as unset. The applicable cause is: the client serialized a string token instead of the JSON null type.
Question 805
An API accepts a nullable property, but the automation sends the literal JSON string "null" instead of an absent value. The initial change is: Use the JSON null literal for an explicitly empty value, not the quoted string text. Which continuing control most directly prevents a recurrence of the documented problem: The controller stores the text null rather than treating the optional property as unset.
- Use a strict linter to detect duplicate JSON object keys before controller API calls.
- Use type-aware serialization and test optional-field semantics for null and omission.
- Validate every generated payload with a standard JSON parser before sending API requests.
- Validate schema field types in addition to syntactic JSON validity.
Explanation
Correct Answer
B:The continuing protective control is: Use type-aware serialization and test optional-field semantics for null and omission. This addresses the underlying failure mechanism: the client serialized a string token instead of the JSON null type. The corresponding operational check is: decode the JSON and confirm the field is null rather than a nonempty four-character string.
Incorrect Answers
A:That control reduces a separate risk: JSON duplicate property names are ambiguous and common decoders overwrite earlier values. For the described design, the recurring risk arises from: the client serialized a string token instead of the JSON null type. The specific required safeguard is: use type-aware serialization and test optional-field semantics for null and omission.
C:That control reduces a separate risk: JSON syntax requires double quotation marks for string keys and values. For the described design, the recurring risk arises from: the client serialized a string token instead of the JSON null type. The specific required safeguard is: use type-aware serialization and test optional-field semantics for null and omission.
D:That control reduces a separate risk: The value was encoded as a JSON string instead of an integer. For the described design, the recurring risk arises from: the client serialized a string token instead of the JSON null type. The specific required safeguard is: use type-aware serialization and test optional-field semantics for null and omission.
Question 806
A user intends to represent the integer VLAN ID 120 but sends a JSON string rather than a numeric value to an API field typed as integer. The incident evidence is: The controller rejects the payload because VLAN ID is not a numeric type. Which targeted configuration or design change best addresses the failure?
- Use the JSON null literal for an explicitly empty value, not the quoted string text.
- Send a JSON numeric literal 120 matching the documented field type.
- Encode valid JSON using double-quoted property names and strings.
- Use lowercase `true` or `false` JSON literals in wire-format JSON.
Explanation
Correct Answer
B:The required correction is: Send a JSON numeric literal 120 matching the documented field type. The underlying failure mechanism is: The value was encoded as a JSON string instead of an integer. Verify success by carrying out this direct test: parse the payload and confirm the VLAN value is numeric and schema validation succeeds.
Incorrect Answers
A:Using the JSON null literal for an explicitly empty value, not the quoted string text would not send a JSON numeric literal 120 matching the documented field type.
C:Encode valid JSON using double-quoted property names and strings would not send a JSON numeric literal 120 matching the documented field type. The value was encoded as a JSON string instead of an integer.
D:Using lowercase `true` or `false` JSON literals in wire-format JSON would not send a JSON numeric literal 120 matching the documented field type. The value was encoded as a JSON string instead of an integer.
Question 807
A user intends to represent the integer VLAN ID 120 but sends a JSON string rather than a numeric value to an API field typed as integer. The proposed remedy is: Send a JSON numeric literal 120 matching the documented field type. Which observation would most directly confirm that remedy works as intended?
- Submit the payload to a JSON parser and ensure the original key/value pairs decode.
- Decode the JSON and confirm the field is null rather than a nonempty four-character string.
- Round-trip the payload through strict JSON decoding and check the boolean type.
- Parse the payload and confirm the VLAN value is numeric and schema validation succeeds.
Explanation
Correct Answer
D:The decisive acceptance observation is: Parse the payload and confirm the VLAN value is numeric and schema validation succeeds. This tests the working mechanism, while the original incident was: the controller rejects the payload because VLAN ID is not a numeric type.
Incorrect Answers
A:This test measures a different behavior: Submit the payload to a JSON parser and ensure the original key/value pairs decode. It does not establish the target outcome. For the documented fault, the direct acceptance test is: parse the payload and confirm the VLAN value is numeric and schema validation succeeds.
B:This test measures a different behavior: Decode the JSON and confirm the field is null rather than a nonempty four-character string. It does not establish the target outcome. For the documented fault, the direct acceptance test is: parse the payload and confirm the VLAN value is numeric and schema validation succeeds.
C:This test measures a different behavior: Round-trip the payload through strict JSON decoding and check the boolean type. It does not establish the target outcome. For the documented fault, the direct acceptance test is: parse the payload and confirm the VLAN value is numeric and schema validation succeeds.
Question 808
A user intends to represent the integer VLAN ID 120 but sends a JSON string rather than a numeric value to an API field typed as integer. During troubleshooting: The controller rejects the payload because VLAN ID is not a numeric type. Which underlying cause best explains the recorded behavior?
- Python's boolean literal syntax is not the JSON `true` literal.
- The client serialized a string token instead of the JSON null type.
- JSON syntax requires double quotation marks for string keys and values.
- The value was encoded as a JSON string instead of an integer.
Explanation
Correct Answer
D:The actual technical cause is: The value was encoded as a JSON string instead of an integer. It specifically explains the observation: the controller rejects the payload because VLAN ID is not a numeric type. The correcting configuration is: send a JSON numeric literal 120 matching the documented field type.
Incorrect Answers
A:That diagnosis is supported by a different symptom: The API rejects a JSON payload containing bare capitalized `True`. Here the recorded observation is: the controller rejects the payload because VLAN ID is not a numeric type. The applicable cause is: the value was encoded as a JSON string instead of an integer.
B:That diagnosis is supported by a different symptom: The controller stores the text null rather than treating the optional property as unset. Here the recorded observation is: the controller rejects the payload because VLAN ID is not a numeric type. The applicable cause is: the value was encoded as a JSON string instead of an integer.
C:That diagnosis is supported by a different symptom: The REST controller reports malformed JSON at the first single-quoted property. Here the recorded observation is: the controller rejects the payload because VLAN ID is not a numeric type. The applicable cause is: the value was encoded as a JSON string instead of an integer.
Question 809
A user intends to represent the integer VLAN ID 120 but sends a JSON string rather than a numeric value to an API field typed as integer. The initial change is: Send a JSON numeric literal 120 matching the documented field type. Which continuing control most directly prevents a recurrence of the documented problem: The controller rejects the payload because VLAN ID is not a numeric type.
- Validate payload types and required fields against the controller schema before PATCH/POST.
- Serialize language-native booleans with a JSON encoder rather than manual text substitution.
- Validate schema field types in addition to syntactic JSON validity.
- Use type-aware serialization and test optional-field semantics for null and omission.
Explanation
Correct Answer
C:The continuing protective control is: Validate schema field types in addition to syntactic JSON validity. This addresses the underlying failure mechanism: the value was encoded as a JSON string instead of an integer. The corresponding operational check is: parse the payload and confirm the VLAN value is numeric and schema validation succeeds.
Incorrect Answers
A:That control reduces a separate risk: The payload uses `{}` object syntax where list `[]` is required. For the described design, the recurring risk arises from: the value was encoded as a JSON string instead of an integer. The specific required safeguard is: validate schema field types in addition to syntactic JSON validity.
B:That control reduces a separate risk: Python's boolean literal syntax is not the JSON `true` literal. For the described design, the recurring risk arises from: the value was encoded as a JSON string instead of an integer. The specific required safeguard is: validate schema field types in addition to syntactic JSON validity.
D:That control reduces a separate risk: The client serialized a string token instead of the JSON null type. For the described design, the recurring risk arises from: the value was encoded as a JSON string instead of an integer. The specific required safeguard is: validate schema field types in addition to syntactic JSON validity.
Question 810
A network script emits a JSON object with duplicate hostname property names and expects both names to survive parsing. The incident evidence is: Only the last hostname value is visible after decoding the object. Which targeted configuration or design change best addresses the failure?
- Encode the collection as a JSON array `[...]` containing one object per interface.
- Send a JSON numeric literal 120 matching the documented field type.
- Assign a unique key or use an array for multiple hostnames instead of duplicate object property names.
- Encode valid JSON using double-quoted property names and strings.
Explanation
Correct Answer
C:The required correction is: Assign a unique key or use an array for multiple hostnames instead of duplicate object property names. The underlying failure mechanism is: JSON duplicate property names are ambiguous and common decoders overwrite earlier values. Verify success by carrying out this direct test: parse the payload with a duplicate-key-aware validator and verify both intended records persist.
Incorrect Answers
A:Encode the collection as a JSON array `[...]` containing one object per interface would not assign a unique key or use an array for multiple hostnames.
B:Sending a JSON numeric literal 120 matching the documented field type would not assign a unique key or use an array for multiple hostnames.
D:Encode valid JSON using double-quoted property names and strings would not assign a unique key or use an array for multiple hostnames.
Implementing Cisco Enterprise Network Core Technologies (ENCOR) (350-401) Practice Tests