Cisco 200-901 Practice Test 22
Question 210
For an original CCNA Automation educational scenario, consider: A service design uses an RPC action endpoint for a command but expects standard resource GET semantics and cache behavior without reading its contract. Select TWO complementary steps: the targeted correction and its strongest prechange validation.
- Change: Register an event webhook with an authenticated delivery target and validate sender signatures and event identity before processing changes.
- Change: Honor the API's interaction style, polling or callback workflow and final job-status contract rather than assuming immediate completion.
- Treat every HTTP 202 response as proof that all infrastructure updates have already taken effect.
- Check: Trace documented response status, operation ID, callback or polling URL and final completion or failure state in a sandbox.
- Check: Seed a mock API with multiple pages and validate unique device IDs, next-link traversal and the final count against the documented total.
Explanation
Correct Answer
B:Synchronous calls return operation results in the current response, while asynchronous workflows acknowledge acceptance and complete later; RPC actions differ from resource-oriented operations. Acceptance: Long-running jobs are confirmed complete or failed before subsequent dependent changes begin, without confusing accepted with finished.
D:Synchronous calls return operation results in the current response, while asynchronous workflows acknowledge acceptance and complete later; RPC actions differ from resource-oriented operations. Required intervention: Honor the API's interaction style, polling or callback workflow and final job-status contract rather than assuming immediate completion.
Incorrect Answers
A:Change: Register an event webhook with an authenticated delivery target and validate sender signatures and event identity before processing changes. Synchronous calls return operation results in the current response, while asynchronous workflows acknowledge acceptance and complete later; RPC actions differ from resource-oriented operations.
C:Synchronous calls return operation results in the current response, while asynchronous workflows acknowledge acceptance and complete later; RPC actions differ from resource-oriented operations.
E:Check: Seed a mock API with multiple pages and validate unique device IDs, next-link traversal and the final count against the documented total. Synchronous calls return operation results in the current response, while asynchronous workflows acknowledge acceptance and complete later; RPC actions differ from resource-oriented operations.
Question 211
A network automation engineer is examining this network automation situation: A device poller calls requests.get without a timeout and a single unreachable controller hangs the entire nightly inventory job. A proposed shortcut is: Call requests.get indefinitely with verify=False and no exception handling because the development controller is usually available. What should the network automation engineer recommend as the narrowly scoped correction? Select ONE best answer.
- Honor the API's interaction style, polling or callback workflow and final job-status contract rather than assuming immediate completion.
- Follow the provider's supported page, cursor or link-pagination protocol until completion while retaining authorization and bounded processing.
- Use requests with a bounded timeout, a reusable Session where suitable, explicit headers, checked status and safe parsing.
- Call requests.get indefinitely with verify=False and no exception handling because the development controller is usually available.
Explanation
Correct Answer
C:A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
Incorrect Answers
A:This option addresses a different network automation topic (REST versus RPC and sync versus async) rather than the documented Python requests session and timeouts decision.
B:Follow the provider's supported page, cursor or link-pagination protocol until completion while retaining authorization and bounded processing. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
D:A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
Question 212
A Cisco network automation implementation review finds: A device poller calls requests.get without a timeout and a single unreachable controller hangs the entire nightly inventory job. The team proposes: Use requests with a bounded timeout, a reusable Session where suitable, explicit headers, checked status and safe parsing. Which engineering principle most strongly supports the recommended response? Select ONE best answer.
- A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
- HTTP Basic encodes credentials rather than encrypting them, bearer tokens confer access to their holder, and API keys use vendor-defined header conventions.
- REST methods have distinct intended semantics, with GET retrieving state and PATCH making a partial update; the API contract controls resource paths and accepted methods.
- Asynchronous control-plane APIs separate request admission from execution and may report operation failure after an initial successful acceptance.
Explanation
Correct Answer
A:Demonstrable success requires: The script retrieves complete data within configured timeouts and reports failures without silently losing records. This principle explains the proposed technical approach, which is: Use requests with a bounded timeout, a reusable Session where suitable, explicit headers, checked status and safe parsing.
Incorrect Answers
B:HTTP Basic encodes credentials rather than encrypting them, bearer tokens confer access to their holder, and API keys use vendor-defined header conventions. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
C:REST methods have distinct intended semantics, with GET retrieving state and PATCH making a partial update; the API contract controls resource paths and accepted methods. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
D:Asynchronous control-plane APIs separate request admission from execution and may report operation failure after an initial successful acceptance. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
Question 213
The network automation team has not yet approved changes. Current evidence indicates: A device poller calls requests.get without a timeout and a single unreachable controller hangs the entire nightly inventory job. Which evidence best tests the technical diagnosis before approving a disruptive change? Select ONE best answer.
- Mock a slow server, an invalid JSON response and a multi-page successful response to verify timeout handling and session headers.
- Simulate a queued task that transitions through running to failed and inspect whether the client stops subsequent dependency steps.
- Capture a representative 200, 201 and 204 response with its headers, media type, body and continuation metadata and trace parsing decisions.
- Inspect the request and response headers alongside actual bytes and retry with a documented supported format in a sandbox.
Explanation
Correct Answer
A:A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy. If confirmed, the proportionate intervention is: Use requests with a bounded timeout, a reusable Session where suitable, explicit headers, checked status and safe parsing.
Incorrect Answers
B:Simulate a queued task that transitions through running to failed and inspect whether the client stops subsequent dependency steps. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
C:Capture a representative 200, 201 and 204 response with its headers, media type, body and continuation metadata and trace parsing decisions. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
D:Inspect the request and response headers alongside actual bytes and retry with a documented supported format in a sandbox. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
Question 214
A candidate correction has been tested and the platform team requires a post-change acceptance check. Original problem: A device poller calls requests.get without a timeout and a single unreachable controller hangs the entire nightly inventory job. The service owner needs positive and negative results and evidence that legitimate data workflows still function. Which acceptance result demonstrates correct network automation behavior without disrupting authorized workflows? Select ONE best answer.
- A retried workflow converges on one intended resource and the client can distinguish ambiguous network outcomes.
- The script retrieves complete data within configured timeouts and reports failures without silently losing records.
- Downstream automation waits for confirmed success or takes a documented failure action rather than assuming job acceptance equals completion.
- Every permitted device appears once in the result set and the client terminates safely at the last page.
Explanation
Correct Answer
B:A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy. The approved implementation step was: Use requests with a bounded timeout, a reusable Session where suitable, explicit headers, checked status and safe parsing.
Incorrect Answers
A:A retried workflow converges on one intended resource and the client can distinguish ambiguous network outcomes. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
C:Downstream automation waits for confirmed success or takes a documented failure action rather than assuming job acceptance equals completion. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
D:Every permitted device appears once in the result set and the client terminates safely at the last page. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
Question 215
An implementation sign-off request identifies the following problem: A device poller calls requests.get without a timeout and a single unreachable controller hangs the entire nightly inventory job. Which paired technical change and validation should close the implementation review? Select ONE best answer.
- Change: Prefer documented idempotent update methods or stable resource identifiers and use supported idempotency tokens for retryable creation. Verify: Reissue the identical request after a simulated lost response and compare resource IDs, counts and final field values across attempts.
- Change: Set Accept and Content-Type according to the endpoint contract and choose a response parser using the returned media type. Verify: Inspect the request and response headers alongside actual bytes and retry with a documented supported format in a sandbox.
- Change: Use requests with a bounded timeout, a reusable Session where suitable, explicit headers, checked status and safe parsing. Verify: Mock a slow server, an invalid JSON response and a multi-page successful response to verify timeout handling and session headers.
- Change: Apply the vendor-documented authentication scheme and transmit secrets through supported protected headers and secure storage rather than loggable URLs. Verify: Verify scheme and header placement with a sandbox 401 negative test, inspect client debug logging and ensure TLS validation is active.
Explanation
Correct Answer
C:A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy. The change is successful only when: The script retrieves complete data within configured timeouts and reports failures without silently losing records.
Incorrect Answers
A:Change: Prefer documented idempotent update methods or stable resource identifiers and use supported idempotency tokens for retryable creation. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
B:Change: Set Accept and Content-Type according to the endpoint contract and choose a response parser using the returned media type. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
D:Change: Apply the vendor-documented authentication scheme and transmit secrets through supported protected headers and secure storage rather than loggable URLs. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
Question 216
A network automation engineer is examining this network automation situation: A service repeatedly authenticates for every page of an API response, adding latency and inconsistent token handling. A proposed shortcut is: Call requests.get indefinitely with verify=False and no exception handling because the development controller is usually available. What should the network automation engineer recommend as the narrowly scoped correction? Select ONE best answer.
- Preserve the returned task identifier and query its documented final status, backoff interval and detailed error payload before dependent operations.
- Separate credential validity from resource authorization and correct the specific token, scope or role mismatch established by the documented response.
- Call requests.get indefinitely with verify=False and no exception handling because the development controller is usually available.
- Use requests with a bounded timeout, a reusable Session where suitable, explicit headers, checked status and safe parsing.
Explanation
Correct Answer
D:A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy. This targeted change addresses the stated automation or network-control gap without discarding necessary controls.
Incorrect Answers
A:Preserve the returned task identifier and query its documented final status, backoff interval and detailed error payload before dependent operations. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
B:This option addresses a different network automation topic (Authorization versus authentication failures) rather than the documented Python requests session and timeouts decision.
C:A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy. Use this instead: Use requests with a bounded timeout, a reusable Session where suitable, explicit headers, checked status and safe parsing.
Question 217
A Cisco network automation implementation review finds: A service repeatedly authenticates for every page of an API response, adding latency and inconsistent token handling. The team proposes: Use requests with a bounded timeout, a reusable Session where suitable, explicit headers, checked status and safe parsing. Which engineering principle most strongly supports the recommended response? Select ONE best answer.
- A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
- Event delivery may be at least once, delayed or out of order; durable consumers must deduplicate and handle stale events.
- Client throughput is constrained by quotas and network failures; retries should distinguish transient failures from permanent invalid requests and avoid duplicating writes.
- HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
Explanation
Correct Answer
A:Demonstrable success requires: The script retrieves complete data within configured timeouts and reports failures without silently losing records.
Incorrect Answers
B:This option addresses a different network automation topic (Webhook replay prevention and durable delivery) rather than the documented Python requests session and timeouts decision.
C:This option addresses a different network automation topic (Rate limiting and retry backoff) rather than the documented Python requests session and timeouts decision.
D:HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
Question 218
The network automation team has not yet approved changes. Current evidence indicates: A service repeatedly authenticates for every page of an API response, adding latency and inconsistent token handling. Which evidence best tests the technical diagnosis before approving a disruptive change? Select ONE best answer.
- Mock a slow server, an invalid JSON response and a multi-page successful response to verify timeout handling and session headers.
- Compare prepared request URLs and server-observed decoded parameters for spaces, ampersands and Unicode identifiers in unit fixtures.
- Verify scheme and header placement with a sandbox 401 negative test, inspect client debug logging and ensure TLS validation is active.
- Seed a mock API with multiple pages and validate unique device IDs, next-link traversal and the final count against the documented total.
Explanation
Correct Answer
A:A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy. Confirm afterward that: The script retrieves complete data within configured timeouts and reports failures without silently losing records.
Incorrect Answers
B:Compare prepared request URLs and server-observed decoded parameters for spaces, ampersands and Unicode identifiers in unit fixtures. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
C:Verify scheme and header placement with a sandbox 401 negative test, inspect client debug logging and ensure TLS validation is active. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
D:Seed a mock API with multiple pages and validate unique device IDs, next-link traversal and the final count against the documented total. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
Question 219
A candidate correction has been tested and the platform team requires a post-change acceptance check. Original problem: A service repeatedly authenticates for every page of an API response, adding latency and inconsistent token handling. The service owner needs positive and negative results and evidence that legitimate data workflows still function. Which acceptance result demonstrates correct network automation behavior without disrupting authorized workflows? Select ONE best answer.
- Valid calls authenticate through the prescribed method without leaking secrets through source control, query strings or debug output.
- Every permitted device appears once in the result set and the client terminates safely at the last page.
- The API sees the intended single filter value and the client retrieves the correct resource without parameter injection or accidental truncation.
- The script retrieves complete data within configured timeouts and reports failures without silently losing records.
Explanation
Correct Answer
D:A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy. The result must be validated using the documented device, service or access context.
Incorrect Answers
A:Valid calls authenticate through the prescribed method without leaking secrets through source control, query strings or debug output. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
B:Every permitted device appears once in the result set and the client terminates safely at the last page. A service repeatedly authenticates for every page of an API response, adding latency and inconsistent token handling.
C:The API sees the intended single filter value and the client retrieves the correct resource without parameter injection or accidental truncation. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
Question 220
For an original CCNA Automation educational scenario, consider: A service repeatedly authenticates for every page of an API response, adding latency and inconsistent token handling. Select TWO complementary steps: the targeted correction and its strongest prechange validation.
- Change: Choose the documented endpoint path and appropriate GET POST PATCH PUT or DELETE method for the intended resource operation and required payload.
- Change: Use requests with a bounded timeout, a reusable Session where suitable, explicit headers, checked status and safe parsing.
- Check: Mock a slow server, an invalid JSON response and a multi-page successful response to verify timeout handling and session headers.
- Check: Capture a representative 200, 201 and 204 response with its headers, media type, body and continuation metadata and trace parsing decisions.
- Call requests.get indefinitely with verify=False and no exception handling because the development controller is usually available.
Explanation
Correct Answer
B:A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy. Acceptance: The script retrieves complete data within configured timeouts and reports failures without silently losing records.
C:A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy. Required intervention: Use requests with a bounded timeout, a reusable Session where suitable, explicit headers, checked status and safe parsing.
Incorrect Answers
A:Change: Choose the documented endpoint path and appropriate GET POST PATCH PUT or DELETE method for the intended resource operation and required payload. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
D:Check: Capture a representative 200, 201 and 204 response with its headers, media type, body and continuation metadata and trace parsing decisions. A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.
E:A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy.