nerdexam
Cisco

300-615 · Question #245

Refer to the exhibit. An engineer uses a REST API to map the interface selector with ports 1/1 to 1/20 to an interface profile. The script fails with a 400 response status code. Which action…

The correct answer is D. Post the script using the HTTPS method. requires HTTPS for security purposes. Many APIs enforce HTTPS to ensure encrypted communication, and sending the request over HTTP can result in a 400 Bad Request error. Changing the request to use HTTPS (https://10.1.1.51/api/mo/uni.xml) should resolve the issue if encryption…

Automation

Question

Refer to the exhibit. An engineer uses a REST API to map the interface selector with ports 1/1 to 1/20 to an interface profile. The script fails with a 400 response status code. Which action resolves the problem?

Exhibits

300-615 question #245 exhibit 1
300-615 question #245 exhibit 2

Options

  • ARun the script again with valid authentication values.
  • BPermit user access to the requested resource
  • CAdd a content-length header to the request.
  • DPost the script using the HTTPS method.

How the community answered

(39 responses)
  • A
    5% (2)
  • B
    10% (4)
  • C
    5% (2)
  • D
    79% (31)

Explanation

requires HTTPS for security purposes. Many APIs enforce HTTPS to ensure encrypted communication, and sending the request over HTTP can result in a 400 Bad Request error. Changing the request to use HTTPS (https://10.1.1.51/api/mo/uni.xml) should resolve the issue if encryption is required by the API server.

Topics

#REST API#ACI#HTTPS enforcement#HTTP 400 status code

Community Discussion

No community discussion yet for this question.

Full 300-615 Practice