exam questions

Exam 350-701 All Questions

View all questions & answers for the 350-701 exam

Exam 350-701 topic 1 question 487 discussion

Actual exam question from Cisco's 350-701
Question #: 487
Topic #: 1
[All 350-701 Questions]

Which API method and required attribute are used to add a device into Cisco DNA Center with the native API?

  • A. GET and serialNumber
  • B. userSudiSerlalNos and deviceInfo
  • C. POST and name
  • D. lastSyncTime and pid
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
PiX2
Highly Voted 2 years, 2 months ago
Selected Answer: A
https://developer.cisco.com/docs/dna-center/#!device-provisioning/device-provisioning-guide The question is poorly worded, I guess it asks how to provision (discover & add) a device into DNAC. According to this doc, it is indeed using GET + serial .
upvoted 10 times
MPoels
1 year, 2 months ago
Absoult. This is correct. There is no specific attribute called "name" for used in a POST requests (to add a device). For adding a device with POST you would typically include other attributes such as the device's hostname, IP address, platform, serial number, credentials and other relevant information. Example for that: POST /dna/intent/api/v1/network-device Content-Type: application/json Authorization: Bearer <access_token> { "hostname": "example-device", "platformId": "C9300-48U", "serialNumber": "ABC123", "managementIpAddress": "192.168.1.10", "credentials": { "cli": { "username": "admin", "password": "password123" } } }
upvoted 2 times
Nian
2 months ago
Actually attribute managementIpAddress is mandatory (hostname, serialnumber etc. are optional)
upvoted 1 times
...
...
...
Premium_Pils
Most Recent 8 months, 3 weeks ago
Selected Answer: C
In my logic, adding a device can only be a POST method. I do not see "name" as a correct attribute, but at least the method is the right one. Check the diagram for device provisioning: https://developer.cisco.com/docs/dna-center/device-provisioning/#goal Add Device to Site with POST. https://developer.cisco.com/docs/dna-center/device-onboarding/#onboarding-pnp-api response = requests.post
upvoted 1 times
...
Tthurston1
1 year ago
Selected Answer: C
Would have to vote C here for the following reason: The GET API call is primarily used for RETRIEVAL of information from a server or specified resource. When you send a GET request to a server, for example, you are asking it to PROVIDE you with data. Whereas, with the POST API call, this is primarily used for ADDING or CREATING a resource on the server/device. The "name", in this particular instance, can refer to the hostname of the device.
upvoted 1 times
...
Tthurston1
1 year ago
Would have to vote C here for the following reason: The GET API call is primarily used for RETRIEVAL of information from a server or specified resource. When you send a GET request to a server, for example, you are asking it to PROVIDE you with data. Whereas, with the POST API call, this is primarily used for the ADDING or CREATING a new resource on the server. The "name", in this instance, can refer to the hostname of the device.
upvoted 2 times
...
CCNPWILL
1 year, 6 months ago
Selected Answer: C
"are used to ADD a device " ... GET requests doesnt do this. You need to at a minimum PUT or in this case... POST. The answer is clearly C.
upvoted 2 times
...
[Removed]
1 year, 7 months ago
Get is for read. Post is for write so C should be the right one
upvoted 3 times
...
fdl543
1 year, 9 months ago
Selected Answer: C
C is correct . To onboard/add a device use POST and device attributes name is one of them and of course serial... https://developer.cisco.com/docs/dna-center/#!device-onboarding/onboarding-pnp-api
upvoted 1 times
...
cyberwhizzy0
1 year, 10 months ago
GET /dna/intent/api/v1/network-device/serial-number/{serial_number} https://developer.cisco.com/docs/dna-center/#!device-provisioning/endpoints-and-methods-used
upvoted 1 times
...
jku2cya
1 year, 10 months ago
Selected Answer: A
As per the links provided by others who say A is the answer: - GET + serial is one of many API methods/attributes used. - POST + name isn't.
upvoted 1 times
...
DWizard
1 year, 10 months ago
Selected Answer: A
The answer from a logic perspective seems to be C, but from this URL, specifically from the diagram, you can see that the answer is A: https://developer.cisco.com/docs/dna-center/#!device-provisioning/goal The question is about method AND required attribute. The option C would be right if the attribute would be "site_id". What do you people think?
upvoted 2 times
jku2cya
1 year, 10 months ago
Agree with A - I don't see the combination of POST and 'name' anywhere.
upvoted 1 times
...
...
tramollaaaa
2 years, 1 month ago
Selected Answer: C
o add a device into Cisco DNA Center with the native API, you can use the POST method with the /dna/intent/api/v1/network-device endpoint. The required attributes that must be included in the request body are: hostname: The hostname of the device ipAddress: The IP address of the device siteId: The ID of the site where the device is located type: The type of the device (e.g. switch, router, wireless access point) serialNumber: The serial number of the device
upvoted 2 times
tramollaaaa
2 years, 1 month ago
To add a device into Cisco DNA Center with the native API, you can use the POST method with the /dna/intent/api/v1/network-device endpoint. The required attributes that must be included in the request body are: hostname: The hostname of the device ipAddress: The IP address of the device siteId: The ID of the site where the device is located type: The type of the device (e.g. switch, router, wireless access point) serialNumber: The serial number of the device
upvoted 2 times
...
...
Totosos1
2 years, 1 month ago
Selected Answer: C
I checked Cisco documentation, it's C: To add a device into Cisco DNA Center with the native API, the API method used is POST which creates a new resource. One of the required attribute to add a device is the "name" attribute, which is used to specify the name of the device being added. The device name should be unique and it's used to identify the device within the Cisco DNA Center platform. A GET request is used to retrieve information from a resource. "SerialNumber" and "userSudiSerialNos" are attributes used to identify a device but they are not required to add a device into Cisco DNA Center, they are needed to retrieve a specific device information. "lastSyncTime" is an attribute used to indicate when the device last synced with Cisco DNA Center, it's not required to add a device. "pid" is an attribute used to identify a device's product ID, and it's not required to add a device.
upvoted 1 times
cyberwhizzy0
1 year, 10 months ago
Where is the link to the documentation? Stop confusing people
upvoted 1 times
...
...
Tuxzinator
2 years, 2 months ago
Selected Answer: C
C is correct
upvoted 2 times
...
Anonymous983475
2 years, 3 months ago
Selected Answer: C
We use POST to send commands to the server. With GET we request information from the server. C should be the correct answer.
upvoted 4 times
...
sull3y
2 years, 3 months ago
C. To add a device into Cisco DNA Center with the native API, the API method used is POST which creates a new resource. One of the required attribute to add a device is the "name" attribute, which is used to specify the name of the device being added. The device name should be unique and it's used to identify the device within the Cisco DNA Center platform. A GET request is used to retrieve information from a resource. "SerialNumber" and "userSudiSerialNos" are attributes used to identify a device but they are not required to add a device into Cisco DNA Center, they are needed to retrieve a specific device information. "lastSyncTime" is an attribute used to indicate when the device last synced with Cisco DNA Center, it's not required to add a device. "pid" is an attribute used to identify a device's product ID, and it's not required to add a device.
upvoted 4 times
...
Net4dd
2 years, 3 months ago
It is C
upvoted 1 times
...
SPARNABUS
2 years, 4 months ago
For me it's C Create (Créer) : POST (Publier) Update (Mettre à jour) : PUT (Mettre) Action CRUD : Verbe HTTP associé Read (Lire) : GET (Obtenir)
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago