MuleSoft Certified Platform Architect – Level 1 — Question 35
What is a best practice when building System APIs?
Answer options
- A. Document the API using an easily consumable asset like a RAML definition
- B. Model all API resources and methods to closely mimic the operations of the backend system
- C. Build an Enterprise Data Model (Canonical Data Model) for each backend system and apply it to System APIs
- D. Expose to API clients all technical details of the API implementation's interaction with the backend system
Correct answer: B
Explanation
The correct answer is B because closely mimicking the backend operations ensures that the API accurately represents the underlying system's functionality, leading to better usability. Options A and C are beneficial practices but do not directly address the core structure of the API itself. Option D is incorrect as exposing technical details can lead to security vulnerabilities and complicate API usage for clients.