Google Cloud Professional Cloud Developer — Question 125
Your development team has been asked to refactor an existing monolithic application into a set of composable microservices. Which design aspects should you implement for the new application? (Choose two.)
Answer options
- 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.
Correct answer: B
Explanation
The correct answer is B because having an API contract ensures that both the microservice and its caller understand the expected inputs and outputs, which facilitates seamless integration. While option A is not necessary, as microservices can be developed in different languages, option C is not a requirement since synchronous communication can also be effective. Option D is important for performance but not a design aspect of the microservice itself, and option E, while useful, is not essential for the immediate refactoring process.