Bird
0
0

Which of the following is the correct HTTP method typically used by REST APIs to update a resource?

easy📝 Syntax Q12 of 15
Rest API - REST API Fundamentals
Which of the following is the correct HTTP method typically used by REST APIs to update a resource?
APUT
BPOST
CGET
DCONNECT
Step-by-Step Solution
Solution:
  1. Step 1: Recall REST HTTP methods

    REST commonly uses PUT to update or replace a resource at a URL.
  2. Step 2: Differentiate from other methods

    GET retrieves data, POST creates new resources, CONNECT is for network tunnels, so only PUT updates.
  3. Final Answer:

    PUT -> Option A
  4. Quick Check:

    Update resource = PUT [OK]
Quick Trick: PUT method updates resources in REST [OK]
Common Mistakes:
  • Using GET to update data
  • Confusing POST with update instead of create
  • Selecting non-REST HTTP methods like CONNECT

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes