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.
Question 821
A RESTCONF path references a YANG list keyed by name, but the script targets the parent container and replaces all list entries. The initial change is: Address the particular list instance using its YANG list key in the resource URL or payload as required. Which continuing control most directly prevents a recurrence of the documented problem: Updating one interface unintentionally replaces the entire list of interfaces.
- Test scoped list-instance edits on a sandbox dataset before production PATCH.
- Separate desired configuration from observed state in data-model-aware automation.
- Check model revisions, namespaces and supported deviations before automation rollout.
- Validate YANG types and enumerations before generating configuration edits.
Explanation
Correct Answer
A:The continuing protective control is: Test scoped list-instance edits on a sandbox dataset before production PATCH. This addresses the underlying failure mechanism: the request addressed an enclosing YANG container instead of the keyed list entry. The corresponding operational check is: gET the specific list entry before and after the edit to confirm only that instance changed.
Incorrect Answers
B:That control reduces a separate risk: Operational state nodes are read-only and do not accept configuration edits. For the described design, the recurring risk arises from: the request addressed an enclosing YANG container instead of the keyed list entry. The specific required safeguard is: test scoped list-instance edits on a sandbox dataset before production PATCH.
C:That control reduces a separate risk: The requested data does not conform to the YANG schema hierarchy. For the described design, the recurring risk arises from: the request addressed an enclosing YANG container instead of the keyed list entry. The specific required safeguard is: test scoped list-instance edits on a sandbox dataset before production PATCH.
D:That control reduces a separate risk: The supplied value is outside the YANG leaf's declared type/constraints. For the described design, the recurring risk arises from: the request addressed an enclosing YANG container instead of the keyed list entry. The specific required safeguard is: test scoped list-instance edits on a sandbox dataset before production PATCH.
Question 822
A device model represents interface enabled state as a boolean YANG leaf, but automation supplies the string maybe. The incident evidence is: NETCONF returns invalid-value or validation failure for the leaf. 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.
- Read operational leaves from the supported state datastore and edit only schema-writable configuration leaves.
- 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.
Explanation
Correct Answer
D:The required correction is: Send a schema-valid boolean value according to the model rather than an arbitrary string. The underlying failure mechanism is: The supplied value is outside the YANG leaf's declared type/constraints. Verify success by carrying out this direct test: check model validation and verify the resulting enabled state through the operational datastore.
Incorrect Answers
A:Using the JSON null literal for an explicitly empty value, not the quoted string text would not send a schema-valid boolean value according to the model rather than an arbitrary string.
B:Reading operational leaves from the supported state datastore and edit only schema-writable configuration leaves would not send a schema-valid boolean value according to the model rather than an arbitrary string.
C:Using an appropriate YANG data model to represent typed configuration/operational data trees and constraints would not send a schema-valid boolean value according to the model rather than an arbitrary string.
Question 823
A device model represents interface enabled state as a boolean YANG leaf, but automation supplies the string maybe. The proposed remedy is: Send a schema-valid boolean value according to the model rather than an arbitrary string. Which observation would most directly confirm that remedy works as intended?
- Decode the JSON and confirm the field is null rather than a nonempty four-character string.
- Check model validation and verify the resulting enabled state through the operational datastore.
- 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.
Explanation
Correct Answer
B:The decisive acceptance observation is: Check model validation and verify the resulting enabled state through the operational datastore. This tests the working mechanism, while the original incident was: nETCONF returns invalid-value or validation failure for the leaf.
Incorrect Answers
A: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: check model validation and verify the resulting enabled state through the operational datastore.
C: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: check model validation and verify the resulting enabled state through the operational datastore.
D: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: check model validation and verify the resulting enabled state through the operational datastore.
Question 824
A device model represents interface enabled state as a boolean YANG leaf, but automation supplies the string maybe. During troubleshooting: NETCONF returns invalid-value or validation failure for the leaf. 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 client serialized a string token instead of the JSON null type.
- The requested data does not conform to the YANG schema hierarchy.
Explanation
Correct Answer
B:The actual technical cause is: The supplied value is outside the YANG leaf's declared type/constraints. It specifically explains the observation: nETCONF returns invalid-value or validation failure for the leaf. The correcting configuration is: send a schema-valid boolean value according to the model rather than an arbitrary string.
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: nETCONF returns invalid-value or validation failure for the leaf. The applicable cause is: the supplied value is outside the YANG leaf's declared type/constraints.
C: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: nETCONF returns invalid-value or validation failure for the leaf. The applicable cause is: the supplied value is outside the YANG leaf's declared type/constraints.
D: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: nETCONF returns invalid-value or validation failure for the leaf. The applicable cause is: the supplied value is outside the YANG leaf's declared type/constraints.
Question 825
A device model represents interface enabled state as a boolean YANG leaf, but automation supplies the string maybe. The initial change is: Send a schema-valid boolean value according to the model rather than an arbitrary string. Which continuing control most directly prevents a recurrence of the documented problem: NETCONF returns invalid-value or validation failure for the leaf.
- Use type-aware serialization and test optional-field semantics for null and omission.
- Validate YANG types and enumerations before generating configuration edits.
- Separate desired configuration from observed state in data-model-aware automation.
- Check model revisions, namespaces and supported deviations before automation rollout.
Explanation
Correct Answer
B:The continuing protective control is: Validate YANG types and enumerations before generating configuration edits. This addresses the underlying failure mechanism: the supplied value is outside the YANG leaf's declared type/constraints. The corresponding operational check is: check model validation and verify the resulting enabled state through the operational datastore.
Incorrect Answers
A: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 supplied value is outside the YANG leaf's declared type/constraints. The specific required safeguard is: validate YANG types and enumerations before generating configuration edits.
C:That control reduces a separate risk: Operational state nodes are read-only and do not accept configuration edits. For the described design, the recurring risk arises from: the supplied value is outside the YANG leaf's declared type/constraints. The specific required safeguard is: validate YANG types and enumerations before generating configuration edits.
D:That control reduces a separate risk: The requested data does not conform to the YANG schema hierarchy. For the described design, the recurring risk arises from: the supplied value is outside the YANG leaf's declared type/constraints. The specific required safeguard is: validate YANG types and enumerations before generating configuration edits.
Question 826
A monitoring client confuses YANG configuration nodes with operational read-only data. The incident evidence is: An automation tries to write a packet counter as if it were user configuration. 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.
- Read operational leaves from the supported state datastore and edit only schema-writable configuration leaves.
- Use an appropriate YANG data model to represent typed configuration/operational data trees and constraints.
- Encode the collection as a JSON array `[...]` containing one object per interface.
Explanation
Correct Answer
B:The required correction is: Read operational leaves from the supported state datastore and edit only schema-writable configuration leaves. The underlying failure mechanism is: Operational state nodes are read-only and do not accept configuration edits. Verify success by carrying out this direct test: test a read-only operational statistic and confirm an edit attempt is rejected appropriately.
Incorrect Answers
A:Sending a schema-valid boolean value according to the model rather than an arbitrary string would not read operational leaves from the supported state datastore and edit only schema-writable configuration leaves.
C:Using an appropriate YANG data model to represent typed configuration/operational data trees and constraints would not read operational leaves from the supported state datastore and edit only schema-writable configuration leaves.
D:Encode the collection as a JSON array `[...]` containing one object per interface would not read operational leaves from the supported state datastore and edit only schema-writable configuration leaves.
Question 827
A monitoring client confuses YANG configuration nodes with operational read-only data. The proposed remedy is: Read operational leaves from the supported state datastore and edit only schema-writable configuration leaves. 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.
- Check model validation and verify the resulting enabled state through the operational datastore.
- Inspect model module, path and leaf types before sending an edit to the supported datastore.
- Decode and verify array length and each interface field against the intended schema.
Explanation
Correct Answer
A:The decisive acceptance observation is: Test a read-only operational statistic and confirm an edit attempt is rejected appropriately. This tests the working mechanism, while the original incident was: an automation tries to write a packet counter as if it were user configuration.
Incorrect Answers
B: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: test a read-only operational statistic and confirm an edit attempt is rejected appropriately.
C: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: test a read-only operational statistic and confirm an edit attempt is rejected appropriately.
D: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: test a read-only operational statistic and confirm an edit attempt is rejected appropriately.
Question 828
A monitoring client confuses YANG configuration nodes with operational read-only data. During troubleshooting: An automation tries to write a packet counter as if it were user configuration. 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 payload uses `{}` object syntax where list `[]` is required.
Explanation
Correct Answer
A:The actual technical cause is: Operational state nodes are read-only and do not accept configuration edits. It specifically explains the observation: an automation tries to write a packet counter as if it were user configuration. The correcting configuration is: read operational leaves from the supported state datastore and edit only schema-writable configuration leaves.
Incorrect Answers
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 automation tries to write a packet counter as if it were user configuration. The applicable cause is: operational state nodes are read-only and do not accept configuration edits.
C: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: an automation tries to write a packet counter as if it were user configuration. The applicable cause is: operational state nodes are read-only and do not accept configuration edits.
D: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: an automation tries to write a packet counter as if it were user configuration. The applicable cause is: operational state nodes are read-only and do not accept configuration edits.
Question 829
A monitoring client confuses YANG configuration nodes with operational read-only data. The initial change is: Read operational leaves from the supported state datastore and edit only schema-writable configuration leaves. Which continuing control most directly prevents a recurrence of the documented problem: An automation tries to write a packet counter as if it were user configuration.
- Separate desired configuration from observed state in data-model-aware automation.
- Validate YANG types and enumerations before generating configuration edits.
- Check model revisions, namespaces and supported deviations before automation rollout.
- Validate payload types and required fields against the controller schema before PATCH/POST.
Explanation
Correct Answer
A:The continuing protective control is: Separate desired configuration from observed state in data-model-aware automation. This addresses the underlying failure mechanism: operational state nodes are read-only and do not accept configuration edits. The corresponding operational check is: test a read-only operational statistic and confirm an edit attempt is rejected appropriately.
Incorrect Answers
B:That control reduces a separate risk: The supplied value is outside the YANG leaf's declared type/constraints. For the described design, the recurring risk arises from: operational state nodes are read-only and do not accept configuration edits. The specific required safeguard is: separate desired configuration from observed state in data-model-aware automation.
C:That control reduces a separate risk: The requested data does not conform to the YANG schema hierarchy. For the described design, the recurring risk arises from: operational state nodes are read-only and do not accept configuration edits. The specific required safeguard is: separate desired configuration from observed state in data-model-aware automation.
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: operational state nodes are read-only and do not accept configuration edits. The specific required safeguard is: separate desired configuration from observed state in data-model-aware automation.
Question 830
A network automation service needs to discover Catalyst Center devices and sites through a supported controller endpoint rather than scraping its GUI HTML. The incident evidence is: A script fails after a UI redesign because it scraped page text rather than a stable API contract. Which targeted configuration or design change best addresses the failure?
- Use an authorized identity and the documented site-changing API with least necessary action grants.
- Limit concurrent API requests and use response-aware retry/backoff rather than blind rapid retries.
- Call the documented Catalyst Center REST API with scoped authentication and correct resource paths.
- Implement the supported API token lifecycle including expiry detection and authorized token refresh.
Explanation
Correct Answer
C:The required correction is: Call the documented Catalyst Center REST API with scoped authentication and correct resource paths. The underlying failure mechanism is: The solution relies on browser presentation instead of the supported controller API. Verify success by carrying out this direct test: inspect authenticated device inventory response and reconcile a known device identifier.
Incorrect Answers
A:Using an authorized identity and the documented site-changing API with least necessary action grants would not address the need for call the documented Catalyst Center REST API with scoped authentication and correct resource paths.
B:Limiting concurrent API requests and using response-aware retry/backoff rather than blind rapid retries would not address the need for call the documented Catalyst Center REST API with scoped authentication and correct resource paths.
D:Implementing the supported API token lifecycle including expiry detection and authorized token refresh would not address the need for call the documented Catalyst Center REST API with scoped authentication and correct resource paths.
Implementing Cisco Enterprise Network Core Technologies (ENCOR) (350-401) Practice Tests