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.
Question 811
A network script emits a JSON object with duplicate hostname property names and expects both names to survive parsing. The proposed remedy is: Assign a unique key or use an array for multiple hostnames instead of duplicate object property names. Which observation would most directly confirm that remedy works as intended?
- Decode and verify array length and each interface field against the intended schema.
- Parse the payload and confirm the VLAN value is numeric and schema validation succeeds.
- 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.
Explanation
Correct Answer
D:The decisive acceptance observation is: Parse the payload with a duplicate-key-aware validator and verify both intended records persist. This tests the working mechanism, while the original incident was: only the last hostname value is visible after decoding the object.
Incorrect Answers
A:This test measures a different behavior: Decode and verify array length and each interface field against the intended schema. It does not establish the target outcome. For the documented fault, the direct acceptance test is: parse the payload with a duplicate-key-aware validator and verify both intended records persist.
B: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: parse the payload with a duplicate-key-aware validator and verify both intended records persist.
C: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 with a duplicate-key-aware validator and verify both intended records persist.
Question 812
A network script emits a JSON object with duplicate hostname property names and expects both names to survive parsing. During troubleshooting: Only the last hostname value is visible after decoding the object. Which underlying cause best explains the recorded behavior?
- JSON syntax requires double quotation marks for string keys and values.
- The value was encoded as a JSON string instead of an integer.
- The payload uses `{}` object syntax where list `[]` is required.
- JSON duplicate property names are ambiguous and common decoders overwrite earlier values.
Explanation
Correct Answer
D:The actual technical cause is: JSON duplicate property names are ambiguous and common decoders overwrite earlier values. It specifically explains the observation: only the last hostname value is visible after decoding the object. The correcting configuration is: assign a unique key or use an array for multiple hostnames instead of duplicate object property names.
Incorrect Answers
A: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: only the last hostname value is visible after decoding the object. The applicable cause is: jSON duplicate property names are ambiguous and common decoders overwrite earlier values.
B: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: only the last hostname value is visible after decoding the object. The applicable cause is: jSON duplicate property names are ambiguous and common decoders overwrite earlier values.
C:That diagnosis is supported by a different symptom: The API reports expected array but received object for the `interfaces` field. Here the recorded observation is: only the last hostname value is visible after decoding the object. The applicable cause is: jSON duplicate property names are ambiguous and common decoders overwrite earlier values.
Question 813
A network script emits a JSON object with duplicate hostname property names and expects both names to survive parsing. The initial change is: Assign a unique key or use an array for multiple hostnames instead of duplicate object property names. Which continuing control most directly prevents a recurrence of the documented problem: Only the last hostname value is visible after decoding the object.
- Use a strict linter to detect duplicate JSON object keys before controller API calls.
- Validate every generated payload with a standard JSON parser before sending API requests.
- Validate schema field types in addition to syntactic JSON validity.
- Validate payload types and required fields against the controller schema before PATCH/POST.
Explanation
Correct Answer
A:The continuing protective control is: Use a strict linter to detect duplicate JSON object keys before controller API calls. This addresses the underlying failure mechanism: jSON duplicate property names are ambiguous and common decoders overwrite earlier values. The corresponding operational check is: parse the payload with a duplicate-key-aware validator and verify both intended records persist.
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: jSON duplicate property names are ambiguous and common decoders overwrite earlier values. The specific required safeguard is: use a strict linter to detect duplicate JSON object keys before controller API calls.
C: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: jSON duplicate property names are ambiguous and common decoders overwrite earlier values. The specific required safeguard is: use a strict linter to detect duplicate JSON object keys before controller API calls.
D:That control reduces a separate risk: The payload uses `{}` object syntax where list `[]` is required. For the described design, the recurring risk arises from: jSON duplicate property names are ambiguous and common decoders overwrite earlier values. The specific required safeguard is: use a strict linter to detect duplicate JSON object keys before controller API calls.
Question 814
An engineer wants a vendor-neutral hierarchy for configuring interface descriptions and admin-state through NETCONF/RESTCONF. The incident evidence is: An API payload fails validation because a leaf is sent under the wrong YANG container path. Which targeted configuration or design change best addresses the failure?
- Send a schema-valid boolean value according to the model rather than an arbitrary string.
- Address the particular list instance using its YANG list key in the resource URL or payload as required.
- Use an appropriate YANG data model to represent typed configuration/operational data trees and constraints.
- Read operational leaves from the supported state datastore and edit only schema-writable configuration leaves.
Explanation
Correct Answer
C:The required correction is: Use an appropriate YANG data model to represent typed configuration/operational data trees and constraints. The underlying failure mechanism is: The requested data does not conform to the YANG schema hierarchy. Verify success by carrying out this direct test: inspect model module, path and leaf types before sending an edit to the supported datastore.
Incorrect Answers
A:Sending a schema-valid boolean value according to the model rather than an arbitrary string would not meet the need for an appropriate YANG data model to represent typed configuration/operational data trees and constraints.
B:Addressing the particular list instance using its YANG list key in the resource URL or payload as required would not meet the need for an appropriate YANG data model to represent typed configuration/operational data trees and constraints.
D:Reading operational leaves from the supported state datastore and edit only schema-writable configuration leaves would not meet the need for an appropriate YANG data model to represent typed configuration/operational data trees and constraints.
Question 815
An engineer wants a vendor-neutral hierarchy for configuring interface descriptions and admin-state through NETCONF/RESTCONF. The proposed remedy is: Use an appropriate YANG data model to represent typed configuration/operational data trees and constraints. Which observation would most directly confirm that remedy works as intended?
- Test a read-only operational statistic and confirm an edit attempt is rejected appropriately.
- Inspect model module, path and leaf types before sending an edit to the supported datastore.
- GET the specific list entry before and after the edit to confirm only that instance changed.
- Check model validation and verify the resulting enabled state through the operational datastore.
Explanation
Correct Answer
B:The decisive acceptance observation is: Inspect model module, path and leaf types before sending an edit to the supported datastore. This tests the working mechanism, while the original incident was: an API payload fails validation because a leaf is sent under the wrong YANG container path.
Incorrect Answers
A:This test measures a different behavior: Test a read-only operational statistic and confirm an edit attempt is rejected appropriately. It does not establish the target outcome. For the documented fault, the direct acceptance test is: inspect model module, path and leaf types before sending an edit to the supported datastore.
C:This test measures a different behavior: GET the specific list entry before and after the edit to confirm only that instance changed. It does not establish the target outcome. For the documented fault, the direct acceptance test is: inspect model module, path and leaf types before sending an edit to the supported datastore.
D:This test measures a different behavior: Check model validation and verify the resulting enabled state through the operational datastore. It does not establish the target outcome. For the documented fault, the direct acceptance test is: inspect model module, path and leaf types before sending an edit to the supported datastore.
Question 816
An engineer wants a vendor-neutral hierarchy for configuring interface descriptions and admin-state through NETCONF/RESTCONF. During troubleshooting: An API payload fails validation because a leaf is sent under the wrong YANG container path. Which underlying cause best explains the recorded behavior?
- Operational state nodes are read-only and do not accept configuration edits.
- The supplied value is outside the YANG leaf's declared type/constraints.
- The requested data does not conform to the YANG schema hierarchy.
- The request addressed an enclosing YANG container instead of the keyed list entry.
Explanation
Correct Answer
C:The actual technical cause is: The requested data does not conform to the YANG schema hierarchy. It specifically explains the observation: an API payload fails validation because a leaf is sent under the wrong YANG container path. The correcting configuration is: use an appropriate YANG data model to represent typed configuration/operational data trees and constraints.
Incorrect Answers
A:That diagnosis is supported by a different symptom: An automation tries to write a packet counter as if it were user configuration. Here the recorded observation is: an API payload fails validation because a leaf is sent under the wrong YANG container path. The applicable cause is: the requested data does not conform to the YANG schema hierarchy.
B:That diagnosis is supported by a different symptom: NETCONF returns invalid-value or validation failure for the leaf. Here the recorded observation is: an API payload fails validation because a leaf is sent under the wrong YANG container path. The applicable cause is: the requested data does not conform to the YANG schema hierarchy.
D:That diagnosis is supported by a different symptom: Updating one interface unintentionally replaces the entire list of interfaces. Here the recorded observation is: an API payload fails validation because a leaf is sent under the wrong YANG container path. The applicable cause is: the requested data does not conform to the YANG schema hierarchy.
Question 817
An engineer wants a vendor-neutral hierarchy for configuring interface descriptions and admin-state through NETCONF/RESTCONF. Select TWO complementary decisions: the direct technical remedy and a safeguard against recurrence. A verification-only step cannot substitute for either action.
- Use an appropriate YANG data model to represent typed configuration/operational data trees and constraints.
- Send a schema-valid boolean value according to the model rather than an arbitrary string.
- Test scoped list-instance edits on a sandbox dataset before production PATCH.
- Read operational leaves from the supported state datastore and edit only schema-writable configuration leaves.
- Check model revisions, namespaces and supported deviations before automation rollout.
Explanation
Correct Answers
A:The required correction is: Use an appropriate YANG data model to represent typed configuration/operational data trees and constraints. The underlying failure mechanism is: The requested data does not conform to the YANG schema hierarchy. Verify success by carrying out this direct test: inspect model module, path and leaf types before sending an edit to the supported datastore.
E:The continuing protective control is: Check model revisions, namespaces and supported deviations before automation rollout. This addresses the underlying failure mechanism: the requested data does not conform to the YANG schema hierarchy. The corresponding operational check is: inspect model module, path and leaf types before sending an edit to the supported datastore.
Incorrect Answers
B:Sending a properly typed boolean addresses one field value, but it does not provide the vendor-neutral data hierarchy that models interface configuration.
C:That control reduces a separate risk: The request addressed an enclosing YANG container instead of the keyed list entry. For the described design, the recurring risk arises from: the requested data does not conform to the YANG schema hierarchy. The specific required safeguard is: check model revisions, namespaces and supported deviations before automation rollout.
D:Separating operational from writable leaves helps safe edits, but it does not define the YANG schema and supported model structure required here.
Question 818
A RESTCONF path references a YANG list keyed by name, but the script targets the parent container and replaces all list entries. The incident evidence is: Updating one interface unintentionally replaces the entire list of interfaces. Which targeted configuration or design change best addresses the failure?
- Send a schema-valid boolean value according to the model rather than an arbitrary string.
- Build the resource URL using the documented current API version and full base path.
- Address the particular list instance using its YANG list key in the resource URL or payload as required.
- Use an appropriate YANG data model to represent typed configuration/operational data trees and constraints.
Explanation
Correct Answer
C:The required correction is: Address the particular list instance using its YANG list key in the resource URL or payload as required. The underlying failure mechanism is: The request addressed an enclosing YANG container instead of the keyed list entry. Verify success by carrying out this direct test: gET the specific list entry before and after the edit to confirm only that instance changed.
Incorrect Answers
A:Sending a schema-valid boolean value according to the model rather than an arbitrary string would not address the particular list instance using its YANG list key in the resource URL or payload as required.
B:Building the resource URL using the documented current API version and full base path would not address the particular list instance using its YANG list key in the resource URL or payload as required.
D:Using an appropriate YANG data model to represent typed configuration/operational data trees and constraints would not address the particular list instance using its YANG list key in the resource URL or payload as required.
Question 819
A RESTCONF path references a YANG list keyed by name, but the script targets the parent container and replaces all list entries. The proposed remedy is: Address the particular list instance using its YANG list key in the resource URL or payload as required. Which observation would most directly confirm that remedy works as intended?
- Inspect model module, path and leaf types before sending an edit to the supported datastore.
- GET the specific list entry before and after the edit to confirm only that instance changed.
- Compare the requested route with the published API catalog and confirm a valid inventory response.
- Check model validation and verify the resulting enabled state through the operational datastore.
Explanation
Correct Answer
B:The decisive acceptance observation is: GET the specific list entry before and after the edit to confirm only that instance changed. This tests the working mechanism, while the original incident was: updating one interface unintentionally replaces the entire list of interfaces.
Incorrect Answers
A:This test measures a different behavior: Inspect model module, path and leaf types before sending an edit to the supported datastore. It does not establish the target outcome. For the documented fault, the direct acceptance test is: gET the specific list entry before and after the edit to confirm only that instance changed.
C:This test measures a different behavior: Compare the requested route with the published API catalog and confirm a valid inventory response. It does not establish the target outcome. For the documented fault, the direct acceptance test is: gET the specific list entry before and after the edit to confirm only that instance changed.
D:This test measures a different behavior: Check model validation and verify the resulting enabled state through the operational datastore. It does not establish the target outcome. For the documented fault, the direct acceptance test is: gET the specific list entry before and after the edit to confirm only that instance changed.
Question 820
A RESTCONF path references a YANG list keyed by name, but the script targets the parent container and replaces all list entries. During troubleshooting: Updating one interface unintentionally replaces the entire list of interfaces. Which underlying cause best explains the recorded behavior?
- The supplied value is outside the YANG leaf's declared type/constraints.
- The requested data does not conform to the YANG schema hierarchy.
- The request addressed an enclosing YANG container instead of the keyed list entry.
- The old API route or version was removed or renamed in the controller release.
Explanation
Correct Answer
C:The actual technical cause is: The request addressed an enclosing YANG container instead of the keyed list entry. It specifically explains the observation: updating one interface unintentionally replaces the entire list of interfaces. The correcting configuration is: address the particular list instance using its YANG list key in the resource URL or payload as required.
Incorrect Answers
A:That diagnosis is supported by a different symptom: NETCONF returns invalid-value or validation failure for the leaf. Here the recorded observation is: updating one interface unintentionally replaces the entire list of interfaces. The applicable cause is: the request addressed an enclosing YANG container instead of the keyed list entry.
B:That diagnosis is supported by a different symptom: An API payload fails validation because a leaf is sent under the wrong YANG container path. Here the recorded observation is: updating one interface unintentionally replaces the entire list of interfaces. The applicable cause is: the request addressed an enclosing YANG container instead of the keyed list entry.
D:That diagnosis is supported by a different symptom: Previously working inventory collection now returns not found for every device. Here the recorded observation is: updating one interface unintentionally replaces the entire list of interfaces. The applicable cause is: the request addressed an enclosing YANG container instead of the keyed list entry.
Implementing Cisco Enterprise Network Core Technologies (ENCOR) (350-401) Practice Tests