200-301 exam dumps

200-301 practice question 486 of 506

Cisco Certified Network Associate. Free level, Cisco. Free question with the correct answer and a full explanation.

200-301 Question 486

Select 3

A network administrator is implementing a REST-based API to interact with a network device. The API needs to allow the client to securely authenticate, retrieve device configurations, and update interface settings. Which of the following HTTP verbs and authentication methods should be used in this scenario?

  1. A

    Use HTTP GET to retrieve device configurations

  2. B

    Use HTTP POST to update interface settings

  3. C

    Use HTTP DELETE to retrieve device configurations

  4. D

    Use Basic Authentication for secure communication

  5. E

    Use OAuth for secure communication

Show answer and explanation

Correct answers: A, B, E

Explanation

In REST-based APIs, HTTP verbs like GET, POST, PUT, and DELETE define the action to be performed. GET is used for retrieving data, while POST is used for creating or updating resources. For secure communication, OAuth is the preferred authentication method over Basic Authentication, as it provides better security and scalability.

  • A. Correct.

    Correct: HTTP GET is the standard HTTP verb used to retrieve data from a resource in REST-based APIs.

  • B. Correct.

    Correct: HTTP POST is used to create or update resources, such as modifying interface settings.

  • C. Incorrect.

    Incorrect: HTTP DELETE is used to remove a resource and is not suitable for retrieving data.

  • D. Incorrect.

    Incorrect: Basic Authentication is a less secure method and is not recommended for secure communication compared to OAuth.

  • E. Correct.

    Correct: OAuth is a modern and secure authentication method commonly used in REST-based APIs.

Timed practice exam

Take a 200-301 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