ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 18 - MCD - Level 2 discussion

Report
Export

A developer has created the first version of an API designed for business partners to work commodity prices.

What should developer do to allow more than one major version of the same API to be exposed by the implementation?

A.
In Design Center, open the RAML and modify each operation to include the major version number
Answers
A.
In Design Center, open the RAML and modify each operation to include the major version number
B.
In Anypoint Studio, generate scaffolding from the RAML, and the modify the <http:listerner> in the generated flows to include a parameter to replace the version number
Answers
B.
In Anypoint Studio, generate scaffolding from the RAML, and the modify the <http:listerner> in the generated flows to include a parameter to replace the version number
C.
In Design Center, open the RAML and modify baseUn to include a variable that indicates the version number
Answers
C.
In Design Center, open the RAML and modify baseUn to include a variable that indicates the version number
D.
In Anypoint Studio, generate scaffolding from the RAML, and then modify the flow names generated by APIKit to include a variable with the major version number
Answers
D.
In Anypoint Studio, generate scaffolding from the RAML, and then modify the flow names generated by APIKit to include a variable with the major version number
Suggested answer: C

Explanation:

To allow more than one major version of the same API to be exposed by the implementation, the developer should modify the baseUri property in the RAML file to include a variable that indicates the version number. The baseUri property defines the base URL of the API and can include variables that are replaced with actual values when mocking or deploying the API. By using a variable for the version number, the developer can expose different versions of the API using different base URLs and avoid conflicts or confusion.

Reference: https://docs.mulesoft.com/api-designer/design-modify-raml-specs#baseuri https://docs.mulesoft.com/api-manager/2.x/api-versioning


asked 18/09/2024
Korrakot Tianniam
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first