MuleSoft Certified Developer – Level 1 — Question 82
What is the purpose of the api:router element in APIkit?
Answer options
- A. Serves as an API implementation.
- B. Validates requests against RAML API specifications and routes them to API implementations.
- C. Creates native connectors using a 3rd party Java library.
- D. Validates responses returned from API requests and routes them back to the caller.
Correct answer: B
Explanation
The correct answer is B because the api:router is specifically designed to validate incoming requests against RAML specifications and route them to the appropriate API implementations. Option A is incorrect as it does not solely function as an implementation. Option C is not relevant to the api:router's purpose, and option D misrepresents its function since it does not validate responses.