Please correct.
"Standard REST methods are supported on the API, which includes POST, GET, PUT, and DELETE operations through HTTP. The PUT methods are idempotent, meaning that there is no additional effect if they are called more than once with the same input parameters. The GET method is nullipotent, meaning that it can be called zero or more times without making any changes (or that it is a read-only operation)."
https://www.cisco.com/c/en/us/td/docs/switches/datacenter/aci/aci_multi-site/sw/1x/rest_api_config/b_Cisco_ACI_Multi-Site_REST_Configuration_Guide/b_Cisco_ACI_Multi-Site_REST_Config_Guide_chapter_01.pdf
The PUT method is used within HTTP when a client wants to update an existing resource on the server. Therefore, the correct option is A: to update a resource on a server.
The PUT method is a part of the HTTP protocol that allows a client to update or replace a resource on the server with a new version. It is an idempotent operation, which means that making multiple identical requests has the same effect as making a single request.
The other options are incorrect:
B. The PUT method is not used for non-idempotent operations; it is used for idempotent operations.
C. The GET method is typically used to display a web site.
D. The GET method is used for read-only operations, not the PUT method.
The correct answer is B. when a nonidempotent operation is needed.
The PUT method in HTTP is used to update or create a resource on the server. It is typically used for idempotent operations, meaning that making the same request multiple times should have the same result as making it once. However, it's important to note that the PUT method is used for updating resources, not read-only operations or displaying web pages. Option A is incorrect because updating a DNS server typically involves administrative actions and may use different protocols. Option C is incorrect because displaying a web page is a read operation and would usually involve the GET method. Option D is incorrect because the PUT method is not used for read-only operations.
But B says: "when a nonidempotent operation is needed"... but mate, PUT is actually idempotent. It seams to me that you just use chatgpt for this answer without argue with it. Try to tell to chatgpt that PUT is idempotent and then you will see chatgpt correct him self and give you the right option. If we want to talk about the fact that DNS uses a specific DNS protocol to updates, let's talk about it, but for the context of these options and strictly speaking about the HTTP protocol, A would be the most appropriate choice.
The PUT method in HTTP (Hypertext Transfer Protocol) is used to update a resource on the server. Non-idempotent methods are those that can have different outcomes when called multiple times with the same input parameters. Examples of non-idempotent methods include POST, PATCH, and non-idempotent PUT requests. Common non-idempotent methods: POST, PATCH, CONNECT. PUT isn't a non-idempotent methods.
"B" is incorrect > NON-IDEMPOTENT: If an operation always causes a change in state, like POSTing the same message to a user over and over, resulting in a new message sent and stored in the database every time.
Must be "A".
upvoted 2 times
...
This section is not available anymore. Please use the main Exam Page.200-301 Exam Questions
Log in to ExamTopics
Sign in:
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.
oatmealturkey
Highly Voted 2 years, 3 months agoCiscoman021
Highly Voted 2 years, 2 months agoKafka_Tamura
Most Recent 6 months ago[Removed]
1 year, 2 months ago[Removed]
1 year, 5 months agoraptuz
1 year, 9 months agoRick3390
1 year, 8 months agoVikramaditya_J
1 year, 10 months agoRynurr
2 years, 3 months ago