exam questions

Exam 300-535 All Questions

View all questions & answers for the 300-535 exam

Exam 300-535 topic 1 question 24 discussion

Actual exam question from Cisco's 300-535
Question #: 24
Topic #: 1
[All 300-535 Questions]


Refer to the exhibit. What is the effect of the script on the device?

  • A. All interfaces except GigabitEthernet2 are reset to their default configurations.
  • B. It replaces the entire configuration for GigabitEthernet2 on the device using RESTCONF.
  • C. It merges the new configuration with the existing configuration on the device using RESTCONF.
  • D. It compares the configuration to the device. If it matches, the device sends back an HTTP 204 status code.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
working_on_hcip
6 months, 1 week ago
Selected Answer: B
The POST method creates a new resource, and if that resource already exists, a “409 Conflict” status line is returned. The PUT method also creates a resource, but unlike the POST method, PUT replaces a resource if it finds that it already exists. When a PUT method creates a resource, a “201 Created” response is sent back to the client. If the resource already exists and is replaced by the PUT request, a “204 No Content” response is sent back to the client The primary way to edit a resource is using the PATCH method. The PATCH method enables you to selectively edit the target resource.
upvoted 1 times
...
andrew_avola
2 years ago
Selected Answer: B
PUT -> replace o create PATCH -> merge Solution: B
upvoted 2 times
...
phc1978
2 years, 10 months ago
• GET: obtaining configuration or operational data • POST – create the data • PUT - update data , add or replace the complete data e.g. adding description to the interface. • PATCH : making a configuration change in the existing data. E.g. changing interface ip address. • DELETE: removing a particular configuration
upvoted 1 times
...
ravenfz
3 years, 2 months ago
it uses "requests.put" and therefore will replace the existing configuration for the Interface Gi2. My opinion is that option B is correct
upvoted 4 times
SbudaGQ
3 years ago
Agree, I think PATCH is more suitable for the merge operation. I choose B
upvoted 1 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