Salesforce Certified Platform Developer II — Question 48
Which is a valid Apex REST Annotation? (Choose two.)
Answer options
- A. @HttpPatch
- B. @HttpDelete
- C. @HttpUpsert
- D. @HttpAction
Correct answer: A, B
Explanation
The correct answers are A and B because @HttpPatch and @HttpDelete are valid annotations used in Apex REST services to handle PATCH and DELETE HTTP requests, respectively. Options C and D are incorrect as @HttpUpsert and @HttpAction are not recognized Apex REST annotations.