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 questionsThe 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.
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.
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).
Keep practicing
Take the free MULE-101 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other MULE-101 practice questions
- Question 1A MuleSoft developer must implement an API as a Mule application, run the application loc…
- Question 2CloudHub is an example of which cloud computing service model?
- Question 3According to MuleSoft, which major benefit does a Center for Enablement (C4E) provide for…
- Question 4According to MuleSoft's IT delivery and operating model, which approach can an organizati…
- Question 5According to MuleSoft, what action should an IT organization take regarding its technolog…
- Question 6A key CI/CD capability of any enterprise solution is a testing framework to write and run…
