MULE-101 practice question 15 of 15

According to MuleSoft's API development best practices, which type of API development approach starts with writing and approving an API contract?

Full set: 55 questions
Answer options
A: Implement-first
B: Agile
C: Design-first Correct answer
D: Catalyst
Correct Answer:
C. Design-first
Explanation

The design-first approach to API development prioritizes creating an API contract (specification) before writing any implementation code. This contract, often written in RAML or OpenAPI Specification (OAS), defines the API's resources, methods, data models, and expected behaviors. By starting with the design, stakeholders can review and approve the contract early in the lifecycle. This practice promotes parallel development, as consumer teams can build against a mock service generated from the contract while the provider team implements the backend logic, ensuring alignment and reducing rework.

Why Incorrect

A. Implement-first: This approach, also known as code-first, involves writing the application code first and then generating the API contract from the implementation, which is the opposite of the described practice.
B. Agile: Agile is a project management methodology focused on iterative development and collaboration. While a design-first approach can be used within an Agile framework, Agile itself is not the API development approach.
D. Catalyst: MuleSoft Catalyst is a comprehensive methodology and set of best practices for achieving business outcomes using the Anypoint Platform. The design-first approach is a key principle within the Catalyst methodology, but not the name of the approach itself.

References

1. MuleSoft Documentation, "API-led Connectivity": "The design-first approach is a central tenet of API-led connectivity. You begin by designing your API with a specification language like RAML or OAS. This contract acts as a blueprint for both the API provider and consumers." (Found in the "Design and build APIs" section).

2. MuleSoft Anypoint Platform Development: Fundamentals Course Guide: Module 2, "Designing APIs," explicitly introduces the "design-first" approach. It states, "In a design-first approach, you create the API specification before the API is implemented... The API specification is the contract between the API provider and the API consumer."

3. MuleSoft Blog, "What is a design-first approach to APIs?": "A design-first approach to building APIs means you are designing the API's contract first before writing any code. This contract is then shared with your stakeholders and teams for feedback." (Paragraph 1).

Scroll to Top