CS FundamentalsEasyProduct-company MCQ pattern
A REST client wants to change only the email field of an existing user resource without sending the whole resource. Which HTTP method fits best?
- A. PUT
- B. GET
- C. POST
- D. PATCH
Correct answer: D. PATCH
PATCH applies a partial update. PUT replaces the entire resource with the representation sent, so fields left out may be wiped.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A POST request successfully creates a new resource on a REST server. Which status code is the most appropriate response?
- What is the difference between git fetch and git pull?
- The 'O' in SOLID states that a software module should be:
- Which statement correctly describes a Type 1 hypervisor?
- Why do containers usually start faster and use less memory than virtual machines?
- Which of these is one of the four value statements of the Agile Manifesto?