MuleSoft Certified Developer – Level 1 — Question 85
http://dev.acme.com/api/patients?year=2016
What should this endpoint return?
Answer options
- A. Patient with id 2016
- B. All patients
- C. No patients
- D. Patients from year 2016
Correct answer: D
Explanation
The correct answer is D because the query parameter 'year=2016' specifies that the endpoint should return patients from that specific year. Option A is incorrect as it implies a specific patient by ID, while option B suggests all patients, and option C states no patients, none of which align with the provided query parameter.