Cisco 200-901 Practice Test 24
Question 230
For an original CCNA Automation educational scenario, consider: A client follows pagination URLs without carrying the authentication context and obtains a partial 401 after the first page. Select TWO complementary steps: the targeted correction and its strongest prechange validation.
- Check: Seed a mock API with multiple pages and validate unique device IDs, next-link traversal and the final count against the documented total.
- Check: Mock a slow server, an invalid JSON response and a multi-page successful response to verify timeout handling and session headers.
- Change: Follow the provider's supported page, cursor or link-pagination protocol until completion while retaining authorization and bounded processing.
- Change: Register an event webhook with an authenticated delivery target and validate sender signatures and event identity before processing changes.
- Stop processing after the first 200 OK response and label the limited page a complete enterprise inventory.
Explanation
Correct Answer
A:Paginated APIs intentionally partition large result sets; a successful first page is not evidence that the complete collection was retrieved. Required intervention: Follow the provider's supported page, cursor or link-pagination protocol until completion while retaining authorization and bounded processing.
C:Paginated APIs intentionally partition large result sets; a successful first page is not evidence that the complete collection was retrieved. Evidence: Seed a mock API with multiple pages and validate unique device IDs, next-link traversal and the final count against the documented total.
Incorrect Answers
B:Check: Mock a slow server, an invalid JSON response and a multi-page successful response to verify timeout handling and session headers. Paginated APIs intentionally partition large result sets; a successful first page is not evidence that the complete collection was retrieved.
D:Change: Register an event webhook with an authenticated delivery target and validate sender signatures and event identity before processing changes. Paginated APIs intentionally partition large result sets; a successful first page is not evidence that the complete collection was retrieved.
E:Paginated APIs intentionally partition large result sets; a successful first page is not evidence that the complete collection was retrieved.
Question 231
A network automation engineer is examining this network automation situation: An automation API expects Content-Type application/json for writes, but the client posts raw YAML bytes and receives 415 Unsupported Media Type. A proposed shortcut is: Assume Accept application/json magically converts an XML response into JSON without a server-side format option. What should the network automation engineer recommend as the narrowly scoped correction? Select ONE best answer.
- Supply query filters using the requests params argument and use safe documented path encoding for dynamic resource identifiers.
- Set Accept and Content-Type according to the endpoint contract and choose a response parser using the returned media type.
- Assume Accept application/json magically converts an XML response into JSON without a server-side format option.
- Inspect status and content-type before parsing and follow the documented location of pagination metadata, whether header or body.
Explanation
Correct Answer
B:Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
Incorrect Answers
A:Supply query filters using the requests params argument and use safe documented path encoding for dynamic resource identifiers. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
C:Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
D:Inspect status and content-type before parsing and follow the documented location of pagination metadata, whether header or body. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
Question 232
A Cisco network automation implementation review finds: An automation API expects Content-Type application/json for writes, but the client posts raw YAML bytes and receives 415 Unsupported Media Type. The team proposes: Set Accept and Content-Type according to the endpoint contract and choose a response parser using the returned media type. Which engineering principle most strongly supports the recommended response? Select ONE best answer.
- URL encoding separates user data from URL separators, preventing malformed filters and incorrect resource routes.
- 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.
- Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
- HTTP Basic encodes credentials rather than encrypting them, bearer tokens confer access to their holder, and API keys use vendor-defined header conventions.
Explanation
Correct Answer
C:Demonstrable success requires: Requests use a supported representation and responses are decoded using the correct parser with meaningful errors for unsupported media.
Incorrect Answers
A:URL encoding separates user data from URL separators, preventing malformed filters and incorrect resource routes. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
B: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. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
D:HTTP Basic encodes credentials rather than encrypting them, bearer tokens confer access to their holder, and API keys use vendor-defined header conventions. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
Question 233
The network automation team has not yet approved changes. Current evidence indicates: An automation API expects Content-Type application/json for writes, but the client posts raw YAML bytes and receives 415 Unsupported Media Type. Which evidence best tests the technical diagnosis before approving a disruptive change? Select ONE best answer.
- Simulate a 429 with Retry-After plus connection timeouts and measure wait intervals, maximum attempts and resulting object counts.
- Compare prepared request URLs and server-observed decoded parameters for spaces, ampersands and Unicode identifiers in unit fixtures.
- Compare the documentation's HTTP method, path parameters, body schema and expected status against a dry-run request in a sandbox.
- Inspect the request and response headers alongside actual bytes and retry with a documented supported format in a sandbox.
Explanation
Correct Answer
D:This check tests the actual network, API or deployment boundary before an operationally risky change. Applied case: An automation API expects Content-Type application/json for writes, but the client posts raw YAML bytes and receives 415 Unsupported Media Type.
Incorrect Answers
A:This option addresses a different network automation topic (Rate limiting and retry backoff) rather than the documented HTTP content negotiation and status handling decision.
B:Compare prepared request URLs and server-observed decoded parameters for spaces, ampersands and Unicode identifiers in unit fixtures. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
C:Compare the documentation's HTTP method, path parameters, body schema and expected status against a dry-run request in a sandbox. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
Question 234
A candidate correction has been tested and the platform team requires a post-change acceptance check. Original problem: An automation API expects Content-Type application/json for writes, but the client posts raw YAML bytes and receives 415 Unsupported Media Type. 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 client handles empty successful bodies and retrieves all authorized pages without assuming every response has JSON.
- Downstream automation waits for confirmed success or takes a documented failure action rather than assuming job acceptance equals completion.
- Requests use a supported representation and responses are decoded using the correct parser with meaningful errors for unsupported media.
- The target resource is read or changed exactly as intended without invoking an unintended create or delete operation.
Explanation
Correct Answer
C:Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload. The result must be validated using the documented device, service or access context.
Incorrect Answers
A:The client handles empty successful bodies and retrieves all authorized pages without assuming every response has JSON. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
B:Downstream automation waits for confirmed success or takes a documented failure action rather than assuming job acceptance equals completion. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
D:The target resource is read or changed exactly as intended without invoking an unintended create or delete operation. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
Question 235
An implementation sign-off request identifies the following problem: An automation API expects Content-Type application/json for writes, but the client posts raw YAML bytes and receives 415 Unsupported Media Type. Which paired technical change and validation should close the implementation review? Select ONE best answer.
- Change: Classify 2xx success, 3xx redirects, 4xx request or authorization failures and 5xx server failures before choosing retries or a corrective action. Verify: Record the exact status, WWW-Authenticate or relevant headers and documented error body for controlled valid and invalid requests.
- 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: Honor the API's interaction style, polling or callback workflow and final job-status contract rather than assuming immediate completion. Verify: Trace documented response status, operation ID, callback or polling URL and final completion or failure state in a sandbox.
- 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.
Explanation
Correct Answer
D:The change is successful only when: Requests use a supported representation and responses are decoded using the correct parser with meaningful errors for unsupported media.
Incorrect Answers
A:Change: Classify 2xx success, 3xx redirects, 4xx request or authorization failures and 5xx server failures before choosing retries or a corrective action. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
B:Change: Prefer documented idempotent update methods or stable resource identifiers and use supported idempotency tokens for retryable creation. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
C:Change: Honor the API's interaction style, polling or callback workflow and final job-status contract rather than assuming immediate completion. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
Question 236
A network automation engineer is examining this network automation situation: A response advertises application/xml and the parser calls json.loads on its body, producing a misleading data error. A proposed shortcut is: Assume Accept application/json magically converts an XML response into JSON without a server-side format option. What should the network automation engineer recommend as the narrowly scoped correction? Select ONE best answer.
- Set Accept and Content-Type according to the endpoint contract and choose a response parser using the returned media type.
- Substitute documented path variables with encoded identifiers and place optional search or pagination values in the supported query parameters.
- Assume Accept application/json magically converts an XML response into JSON without a server-side format option.
- Honor the API's interaction style, polling or callback workflow and final job-status contract rather than assuming immediate completion.
Explanation
Correct Answer
A:Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload. This targeted change addresses the stated automation or network-control gap without discarding necessary controls.
Incorrect Answers
B:Substitute documented path variables with encoded identifiers and place optional search or pagination values in the supported query parameters. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
C:Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload. Use this instead: Set Accept and Content-Type according to the endpoint contract and choose a response parser using the returned media type.
D:Honor the API's interaction style, polling or callback workflow and final job-status contract rather than assuming immediate completion. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
Question 237
A Cisco network automation implementation review finds: A response advertises application/xml and the parser calls json.loads on its body, producing a misleading data error. The team proposes: Set Accept and Content-Type according to the endpoint contract and choose a response parser using the returned media type. Which engineering principle most strongly supports the recommended response? Select ONE best answer.
- Event delivery may be at least once, delayed or out of order; durable consumers must deduplicate and handle stale events.
- Asynchronous control-plane APIs separate request admission from execution and may report operation failure after an initial successful acceptance.
- HTTP Basic encodes credentials rather than encrypting them, bearer tokens confer access to their holder, and API keys use vendor-defined header conventions.
- Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
Explanation
Correct Answer
D:Demonstrable success requires: Requests use a supported representation and responses are decoded using the correct parser with meaningful errors for unsupported media. This principle explains the proposed technical approach, which is: Set Accept and Content-Type according to the endpoint contract and choose a response parser using the returned media type.
Incorrect Answers
A:Event delivery may be at least once, delayed or out of order; durable consumers must deduplicate and handle stale events. A response advertises application/xml and the parser calls json.
B:Asynchronous control-plane APIs separate request admission from execution and may report operation failure after an initial successful acceptance. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
C:HTTP Basic encodes credentials rather than encrypting them, bearer tokens confer access to their holder, and API keys use vendor-defined header conventions. A response advertises application/xml and the parser calls json.
Question 238
The network automation team has not yet approved changes. Current evidence indicates: A response advertises application/xml and the parser calls json.loads on its body, producing a misleading data error. Which evidence best tests the technical diagnosis before approving a disruptive change? Select ONE best answer.
- Inspect subscription filters, signed example deliveries, timestamp freshness and a duplicate event replay in a nonproduction receiver.
- Reissue the identical request after a simulated lost response and compare resource IDs, counts and final field values across attempts.
- Capture the final URL and decoded path or query map and compare it to the API reference for known device and optional filter values.
- Inspect the request and response headers alongside actual bytes and retry with a documented supported format in a sandbox.
Explanation
Correct Answer
D:This check tests the actual network, API or deployment boundary before an operationally risky change. Applied case: A response advertises application/xml and the parser calls json.loads on its body, producing a misleading data error.
Incorrect Answers
A:Inspect subscription filters, signed example deliveries, timestamp freshness and a duplicate event replay in a nonproduction receiver. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
B:Reissue the identical request after a simulated lost response and compare resource IDs, counts and final field values across attempts. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
C:Capture the final URL and decoded path or query map and compare it to the API reference for known device and optional filter values. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
Question 239
A candidate correction has been tested and the platform team requires a post-change acceptance check. Original problem: A response advertises application/xml and the parser calls json.loads on its body, producing a misleading data error. 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.
- Requests use a supported representation and responses are decoded using the correct parser with meaningful errors for unsupported media.
- Each error prompts an appropriate credential, permission, resource, conflict or rate-limit response rather than blind retries.
- 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.
Explanation
Correct Answer
A:Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
Incorrect Answers
B:Each error prompts an appropriate credential, permission, resource, conflict or rate-limit response rather than blind retries. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
C:Authorized events are handled once logically, spoofed callbacks are rejected and delayed deliveries remain observable. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
D:Valid calls authenticate through the prescribed method without leaking secrets through source control, query strings or debug output. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
Question 240
For an original CCNA Automation educational scenario, consider: A response advertises application/xml and the parser calls json.loads on its body, producing a misleading data error. Select TWO complementary steps: the targeted correction and its strongest prechange validation.
- Change: Set Accept and Content-Type according to the endpoint contract and choose a response parser using the returned media type.
- Change: Honor the API's interaction style, polling or callback workflow and final job-status contract rather than assuming immediate completion.
- Assume Accept application/json magically converts an XML response into JSON without a server-side format option.
- Check: Inspect the request and response headers alongside actual bytes and retry with a documented supported format in a sandbox.
- Check: Compare a valid credential's scope, token lifetime, target organization and response code with a controlled insufficient-role account.
Explanation
Correct Answer
A:Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload. Evidence: Inspect the request and response headers alongside actual bytes and retry with a documented supported format in a sandbox.
D:Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload. Required intervention: Set Accept and Content-Type according to the endpoint contract and choose a response parser using the returned media type.
Incorrect Answers
B:Change: Honor the API's interaction style, polling or callback workflow and final job-status contract rather than assuming immediate completion. A response advertises application/xml and the parser calls json.
C:Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.
E:Check: Compare a valid credential's scope, token lifetime, target organization and response code with a controlled insufficient-role account. Content-Type declares the representation being sent and Accept expresses preferred response formats; neither automatically converts a payload.