Automation 200-901 CCNAAUTO Practice Test 1

200-901 CCNAAUTO Practice Test 1

Cisco Certified Network Associate (CCNA) Automation — 200-901 CCNAAUTO

1 / 1

A Python automation script must update the hostname of a Cisco network device through a REST API.

The API documentation specifies:

Endpoint: /api/v1/devices/{id}

Method: PUT

Authentication: API key sent in the X-API-Key header

Request body must be JSON: {"hostname": "R1-CORE"}

A successful update returns HTTP 200.

The API rejects requests that exceed the device's current configuration version. In that case, it returns HTTP 409.

The script retrieves the device information first, modifies the hostname, and then sends the update. The update fails with:

HTTP/1.1 409 Conflict
Content-Type: application/json

{
"error": "configuration version conflict",
"current_version": 12,
"submitted_version": 11
}

Which change should the developer make to correctly handle this situation?

Your score is

The average score is 0%

0%