
Answer-first summary for fast verification
Answer: Create an API contract agreement between the microservice implementation and microservice caller., Implement a versioning scheme to permit future changes that could be incompatible with the current interface.
When refactoring a monolithic application into microservices, two critical design aspects are establishing clear API contracts (B) and implementing versioning (E). - **B**: An API contract ensures loose coupling between services by defining a formal agreement on how services communicate, enabling independent development and evolution of each service. - **E**: Versioning allows introducing changes (including backward-incompatible ones) without disrupting existing clients, supporting long-term maintainability. Options A and C are not universally required (services can use different languages and communication styles). Option D relates to operational scaling, not core design principles.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your team is tasked with refactoring a monolithic application into modular microservices. Which two design principles should you prioritize for the new architecture?
A
Develop the microservice code in the same programming language used by the microservice caller.
B
Create an API contract agreement between the microservice implementation and microservice caller.
C
Require asynchronous communications between all microservice implementations and microservice callers.
D
Ensure that sufficient instances of the microservice are running to accommodate the performance requirements.
E
Implement a versioning scheme to permit future changes that could be incompatible with the current interface.
No comments yet.