Cisco Certified Support Technician (CCST) NetworkingAutomation and ProgrammabilityMedium

A network engineer wants to automate the configuration of 50 new access points. Instead of manually logging into each device, the engineer plans to write a script that sends configuration commands to a RESTful API exposed by a central network controller. Which HTTP method would typically be used to create or update resource configurations on the API?

  1. AGET
  2. BPOST
  3. CHEAD
  4. DDELETE
Show answer & explanation

Correct answer: B. POST

The POST HTTP method is primarily used to send data to a server to create or update a resource. In the context of a RESTful API for network configuration, POST would be used to apply new configurations or modify existing ones on network devices via the controller.

Why the other options are wrong

  • A. GET is used to retrieve data from a resource, not to create or update it.
  • C. HEAD is similar to GET, but only retrieves the response headers, not the body.
  • D. DELETE is used to remove a specified resource.

HTTP POST Method

An HTTP request method used to send data to a server to create or update a resource. It often results in a change of state or side effects on the server.

  • Used for creating new resources
  • Used for submitting data for processing
  • Can update existing resources

Memory trick: CRUD operations map to HTTP methods.

More Automation and Programmability questions