Which two HTTP methods are appropriate for REST-based APIs? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: POST, GET.
Why this is the answer
GET and POST are fundamental HTTP methods commonly used in RESTful APIs. GET is used to retrieve data from a specified resource without altering the server's state. It's idempotent, meaning multiple identical requests have the same effect as a single request. POST is used to submit data to a specified resource, often resulting in a change in state or the creation of a new resource on the server. Unlike GET, POST requests are not idempotent. REMOVE, REDIRECT, and POP are not standard HTTP methods used for RESTful API interactions. While DELETE is a valid HTTP method for removing resources, REMOVE is not. REDIRECT is a response status code, not a method, and POP is not an HTTP method.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed