300-435 exam dumps

300-435 practice question 254 of 322

Automating Cisco Enterprise Solutions. Professional level, Cisco. Free question with the correct answer and a full explanation.

300-435 Question 254

Select 2

You are tasked with automating the retrieval of device inventory information from a Cisco SD-WAN environment using the vManage Administration APIs. Which steps must you take to construct a valid API request to achieve this?

  1. A

    Authenticate with the vManage API to obtain a valid session token or cookie

  2. B

    Send a GET request to the endpoint /dataservice/device with the required headers

  3. C

    Use a POST request to the endpoint /dataservice/device/inventory for retrieving device information

  4. D

    Include an Authorization header with a bearer token obtained from vManage

  5. E

    Ensure the request payload includes JSON-formatted device details for filtering

Show answer and explanation

Correct answers: A, B

Explanation

To construct a valid API request to retrieve device inventory information from the Cisco SD-WAN vManage Administration APIs, you must first authenticate with the vManage API to obtain a session token or cookie. Then, send a GET request to the /dataservice/device endpoint, which is specifically used for retrieving device inventory. Other options, such as using a POST request, including a bearer token, or adding unnecessary payloads, are incorrect or not required for this use case.

  • A. Correct.

    Authentication is a mandatory first step when interacting with Cisco SD-WAN vManage APIs, as it generates a session token or cookie required for subsequent requests.

  • B. Correct.

    Retrieving device inventory information requires a GET request to the /dataservice/device endpoint with appropriate headers, such as the session token.

  • C. Incorrect.

    The /dataservice/device/inventory endpoint does not exist for retrieving device inventory. A GET request to /dataservice/device is the correct approach.

  • D. Incorrect.

    While some APIs may use bearer tokens, the Cisco SD-WAN vManage APIs typically rely on session tokens or cookies for authentication, not a bearer token.

  • E. Incorrect.

    There is no need to include a request payload for a GET request to retrieve device inventory. Such payloads are typically required for POST or PUT requests.

Timed practice exam

Take a 300-435 practice test under exam conditions

75 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam