Question 1
IntermediateExpose Production-Ready Anypoint Platform-Managed APIs from Mule Applications · Implement versioning of specific API-related artifacts
A MuleSoft Architect is designing a versioning strategy for a suite of System APIs that connect to a legacy mainframe. The business requirement dictates that existing consumers must not be forced to update their integrations immediately when minor non-breaking changes are deployed. However, major breaking changes must run in parallel with the old version. Which URI-based versioning strategy in the RAML definition and API implementation best supports these requirements while adhering to semantic versioning principles?
Answer and explanation
Correct answer: B
According to semantic versioning best practices for APIs, the URI should typically contain only the MAJOR version (v1). Minor and patch versions (v1.1, v1.2) should be backward compatible and thus should not require a URI change. This allows existing consumers to benefit from non-breaking changes without modification, while breaking changes trigger a new major version (v2) deployed in parallel.
