MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 118


A company has an API to manage departments, with each department identified by a unique deptId. The API was built with RAML according to MuleSoft best practices.

What is valid RAML to specify a method to update the details for a specific department?

A.

B.

C.

D.

Show Answer
Correct Answer:

To specify a method to update the details for a specific department in RAML, the correct approach is to define the department's identifier as a URI parameter. Using the URI parameter in curly braces allows the deptId to be explicitly stated in the path. This approach follows RESTful principles by making the resource identifier (in this case, deptId) part of the URI. Consequently, the valid RAML to specify a method to update departmental details is: /departments/{deptId}: patch: This signifies that the department identified by {deptId} is updated using the PATCH method.

Discussion

2 comments
Sign in to comment
ExamDev
Jan 23, 2024

D is correct.

Alandt
Feb 8, 2024

D is indeed correct