Cisco 200-901 Practice Test 18
Question 170
For an original CCNA Automation educational scenario, consider: A scheduled sync retries every failing POST immediately with no idempotency protection, creating duplicate service records during transient outages. Select TWO complementary steps: the targeted correction and its strongest prechange validation.
- Change: Respect API rate limits and published Retry-After guidance, apply bounded exponential backoff and use idempotent operations or request IDs for retryable writes.
- Change: Inspect status and content-type before parsing and follow the documented location of pagination metadata, whether header or body.
- Check: Simulate a 429 with Retry-After plus connection timeouts and measure wait intervals, maximum attempts and resulting object counts.
- Launch more parallel requests after a 429 and retry every POST forever without tracking whether the server committed it.
- Check: Inspect the request and response headers alongside actual bytes and retry with a documented supported format in a sandbox.
Explanation
Correct Answer
A:Client throughput is constrained by quotas and network failures; retries should distinguish transient failures from permanent invalid requests and avoid duplicating writes. Evidence: Simulate a 429 with Retry-After plus connection timeouts and measure wait intervals, maximum attempts and resulting object counts.
C:Required intervention: Respect API rate limits and published Retry-After guidance, apply bounded exponential backoff and use idempotent operations or request IDs for retryable writes.
Incorrect Answers
B:Change: Inspect status and content-type before parsing and follow the documented location of pagination metadata, whether header or body. Client throughput is constrained by quotas and network failures; retries should distinguish transient failures from permanent invalid requests and avoid duplicating writes.
D:Use this instead: Respect API rate limits and published Retry-After guidance, apply bounded exponential backoff and use idempotent operations or request IDs for retryable writes.
E:Check: Inspect the request and response headers alongside actual bytes and retry with a documented supported format in a sandbox. Client throughput is constrained by quotas and network failures; retries should distinguish transient failures from permanent invalid requests and avoid duplicating writes.
Question 171
A network automation engineer is examining this network automation situation: A Python API client parses a 204 No Content response as JSON and crashes even though the operation succeeded. A proposed shortcut is: Always execute response.json even when the documented successful status explicitly contains no response body. What should the network automation engineer recommend as the narrowly scoped correction? Select ONE best answer.
- Always execute response.json even when the documented successful status explicitly contains no response body.
- Follow the provider's supported page, cursor or link-pagination protocol until completion while retaining authorization and bounded processing.
- Inspect status and content-type before parsing and follow the documented location of pagination metadata, whether header or body.
- Use requests with a bounded timeout, a reusable Session where suitable, explicit headers, checked status and safe parsing.
Explanation
Correct Answer
C:The required acceptance condition is: The client handles empty successful bodies and retrieves all authorized pages without assuming every response has JSON. This targeted change addresses the stated automation or network-control gap without discarding necessary controls.
Incorrect Answers
A:HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
B:Follow the provider's supported page, cursor or link-pagination protocol until completion while retaining authorization and bounded processing. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
D:Use requests with a bounded timeout, a reusable Session where suitable, explicit headers, checked status and safe parsing. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
Question 172
A Cisco network automation implementation review finds: A Python API client parses a 204 No Content response as JSON and crashes even though the operation succeeded. The team proposes: Inspect status and content-type before parsing and follow the documented location of pagination metadata, whether header or body. Which engineering principle most strongly supports the recommended response? Select ONE best answer.
- 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.
- Paginated APIs intentionally partition large result sets; a successful first page is not evidence that the complete collection was retrieved.
- An idempotent operation can be repeated without changing the eventual state beyond its first successful application, unlike unguarded duplicate creation.
Explanation
Correct Answer
A:Demonstrable success requires: The client handles empty successful bodies and retrieves all authorized pages without assuming every response has JSON. This principle explains the proposed technical approach, which is: Inspect status and content-type before parsing and follow the documented location of pagination metadata, whether header or body.
Incorrect Answers
B:A requests Session can reuse connections and configuration, while explicit timeouts and exceptions prevent indefinite hangs and clarify retry policy. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
C:Paginated APIs intentionally partition large result sets; a successful first page is not evidence that the complete collection was retrieved. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
D:An idempotent operation can be repeated without changing the eventual state beyond its first successful application, unlike unguarded duplicate creation. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
Question 173
The network automation team has not yet approved changes. Current evidence indicates: A Python API client parses a 204 No Content response as JSON and crashes even though the operation succeeded. Which evidence best tests the technical diagnosis before approving a disruptive change? Select ONE best answer.
- Reissue the identical request after a simulated lost response and compare resource IDs, counts and final field values across attempts.
- Compare prepared request URLs and server-observed decoded parameters for spaces, ampersands and Unicode identifiers in unit fixtures.
- Record the exact status, WWW-Authenticate or relevant headers and documented error body for controlled valid and invalid requests.
- Capture a representative 200, 201 and 204 response with its headers, media type, body and continuation metadata and trace parsing decisions.
Explanation
Correct Answer
D:Confirm afterward that: The client handles empty successful bodies and retrieves all authorized pages without assuming every response has JSON.
Incorrect Answers
A:Reissue the identical request after a simulated lost response and compare resource IDs, counts and final field values across attempts. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
B:Compare prepared request URLs and server-observed decoded parameters for spaces, ampersands and Unicode identifiers in unit fixtures. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
C:Record the exact status, WWW-Authenticate or relevant headers and documented error body for controlled valid and invalid requests. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
Question 174
A candidate correction has been tested and the platform team requires a post-change acceptance check. Original problem: A Python API client parses a 204 No Content response as JSON and crashes even though the operation succeeded. 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.
- Authorized events are handled once logically, spoofed callbacks are rejected and delayed deliveries remain observable.
- Valid calls authenticate through the prescribed method without leaking secrets through source control, query strings or debug output.
- The script retrieves complete data within configured timeouts and reports failures without silently losing records.
- The client handles empty successful bodies and retrieves all authorized pages without assuming every response has JSON.
Explanation
Correct Answer
D:HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload. The result must be validated using the documented device, service or access context.
Incorrect Answers
A:Authorized events are handled once logically, spoofed callbacks are rejected and delayed deliveries remain observable. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
B:Valid calls authenticate through the prescribed method without leaking secrets through source control, query strings or debug output. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
C:The script retrieves complete data within configured timeouts and reports failures without silently losing records. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
Question 175
An implementation sign-off request identifies the following problem: A Python API client parses a 204 No Content response as JSON and crashes even though the operation succeeded. Which paired technical change and validation should close the implementation review? Select ONE best answer.
- Change: Inspect status and content-type before parsing and follow the documented location of pagination metadata, whether header or body. Verify: Capture a representative 200, 201 and 204 response with its headers, media type, body and continuation metadata and trace parsing decisions.
- Change: Respect API rate limits and published Retry-After guidance, apply bounded exponential backoff and use idempotent operations or request IDs for retryable writes. Verify: Simulate a 429 with Retry-After plus connection timeouts and measure wait intervals, maximum attempts and resulting object counts.
- 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.
- 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.
Explanation
Correct Answer
A:The change is successful only when: The client handles empty successful bodies and retrieves all authorized pages without assuming every response has JSON.
Incorrect Answers
B:This option addresses a different network automation topic (Rate limiting and retry backoff) rather than the documented Response headers versus body decision.
C:Change: Apply the vendor-documented authentication scheme and transmit secrets through supported protected headers and secure storage rather than loggable URLs.
D:Change: Use requests with a bounded timeout, a reusable Session where suitable, explicit headers, checked status and safe parsing. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
Question 176
A network automation engineer is examining this network automation situation: A paging client ignores the documented continuation token in response headers and returns only the first page of device records. A proposed shortcut is: Always execute response.json even when the documented successful status explicitly contains no response body. What should the network automation engineer recommend as the narrowly scoped correction? Select ONE best answer.
- Inspect status and content-type before parsing and follow the documented location of pagination metadata, whether header or body.
- Always execute response.json even when the documented successful status explicitly contains no response body.
- Set Accept and Content-Type according to the endpoint contract and choose a response parser using the returned media type.
- Supply query filters using the requests params argument and use safe documented path encoding for dynamic resource identifiers.
Explanation
Correct Answer
A:The required acceptance condition is: The client handles empty successful bodies and retrieves all authorized pages without assuming every response has JSON.
Incorrect Answers
B:HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
C:Set Accept and Content-Type according to the endpoint contract and choose a response parser using the returned media type. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
D:Supply query filters using the requests params argument and use safe documented path encoding for dynamic resource identifiers. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
Question 177
A Cisco network automation implementation review finds: A paging client ignores the documented continuation token in response headers and returns only the first page of device records. The team proposes: Inspect status and content-type before parsing and follow the documented location of pagination metadata, whether header or body. Which engineering principle most strongly supports the recommended response? Select ONE best answer.
- HTTP Basic encodes credentials rather than encrypting them, bearer tokens confer access to their holder, and API keys use vendor-defined header conventions.
- HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
- Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
- Paginated APIs intentionally partition large result sets; a successful first page is not evidence that the complete collection was retrieved.
Explanation
Correct Answer
B:Demonstrable success requires: The client handles empty successful bodies and retrieves all authorized pages without assuming every response has JSON.
Incorrect Answers
A:HTTP Basic encodes credentials rather than encrypting them, bearer tokens confer access to their holder, and API keys use vendor-defined header conventions. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
C:Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
D:Paginated APIs intentionally partition large result sets; a successful first page is not evidence that the complete collection was retrieved. A paging client ignores the documented continuation token in response headers and returns only the first page of device records.
Question 178
The network automation team has not yet approved changes. Current evidence indicates: A paging client ignores the documented continuation token in response headers and returns only the first page of device records. Which evidence best tests the technical diagnosis before approving a disruptive change? Select ONE best answer.
- Capture a representative 200, 201 and 204 response with its headers, media type, body and continuation metadata and trace parsing decisions.
- Inspect subscription filters, signed example deliveries, timestamp freshness and a duplicate event replay in a nonproduction receiver.
- Verify scheme and header placement with a sandbox 401 negative test, inspect client debug logging and ensure TLS validation is active.
- Compare a valid credential's scope, token lifetime, target organization and response code with a controlled insufficient-role account.
Explanation
Correct Answer
A:Confirm afterward that: The client handles empty successful bodies and retrieves all authorized pages without assuming every response has JSON.
Incorrect Answers
B:Inspect subscription filters, signed example deliveries, timestamp freshness and a duplicate event replay in a nonproduction receiver. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
C:Verify scheme and header placement with a sandbox 401 negative test, inspect client debug logging and ensure TLS validation is active. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
D:This option addresses a different network automation topic (Authorization versus authentication failures) rather than the documented Response headers versus body decision.
Question 179
A candidate correction has been tested and the platform team requires a post-change acceptance check. Original problem: A paging client ignores the documented continuation token in response headers and returns only the first page of device records. 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.
- The target resource is read or changed exactly as intended without invoking an unintended create or delete operation.
- The client handles empty successful bodies and retrieves all authorized pages without assuming every response has JSON.
- 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
B:HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload. The approved implementation step was: Inspect status and content-type before parsing and follow the documented location of pagination metadata, whether header or body.
Incorrect Answers
A:The target resource is read or changed exactly as intended without invoking an unintended create or delete operation. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
C:The API sees the intended single filter value and the client retrieves the correct resource without parameter injection or accidental truncation. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
D:The script retrieves complete data within configured timeouts and reports failures without silently losing records. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
Question 180
For an original CCNA Automation educational scenario, consider: A paging client ignores the documented continuation token in response headers and returns only the first page of device records. Select TWO complementary steps: the targeted correction and its strongest prechange validation.
- Check: Inspect subscription filters, signed example deliveries, timestamp freshness and a duplicate event replay in a nonproduction receiver.
- Always execute response.json even when the documented successful status explicitly contains no response body.
- Change: Inspect status and content-type before parsing and follow the documented location of pagination metadata, whether header or body.
- Check: Capture a representative 200, 201 and 204 response with its headers, media type, body and continuation metadata and trace parsing decisions.
- Change: Classify 2xx success, 3xx redirects, 4xx request or authorization failures and 5xx server failures before choosing retries or a corrective action.
Explanation
Correct Answer
C:Acceptance: The client handles empty successful bodies and retrieves all authorized pages without assuming every response has JSON.
D:Acceptance: The client handles empty successful bodies and retrieves all authorized pages without assuming every response has JSON. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
Incorrect Answers
A:Check: Inspect subscription filters, signed example deliveries, timestamp freshness and a duplicate event replay in a nonproduction receiver. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.
B:HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload. Use this instead: Inspect status and content-type before parsing and follow the documented location of pagination metadata, whether header or body.
E:Change: Classify 2xx success, 3xx redirects, 4xx request or authorization failures and 5xx server failures before choosing retries or a corrective action. HTTP responses contain a status line, headers and an optional body; no-content responses legitimately lack a JSON payload.