PROFESSIONAL-CLOUD-DEVELOPER · Question #124
You recently migrated a monolithic application to Google Cloud by breaking it down into microservices. One of the microservices is deployed using Cloud Functions. As you modernize the application, you
The correct answer is C. Leave the original Cloud Function as-is and deploy a second Cloud Function with the new API.. https://cloud.google.com/endpoints/docs/openapi/versioning-an-api#backwards-incompatible When you make changes to your API that breaks your customers' client code, as a best practice, increment the major version number of your API. Endpoints can run more than one major version of
Question
You recently migrated a monolithic application to Google Cloud by breaking it down into microservices. One of the microservices is deployed using Cloud Functions. As you modernize the application, you make a change to the API of the service that is backward-incompatible. You need to support both existing callers who use the original API and new callers who use the new API. What should you do?
Options
- ALeave the original Cloud Function as-is and deploy a second Cloud Function with the new API.
- BLeave the original Cloud Function as-is and deploy a second Cloud Function that includes only
- CLeave the original Cloud Function as-is and deploy a second Cloud Function with the new API.
- DRe-deploy the Cloud Function after making code changes to support the new API. Requests for
How the community answered
(38 responses)- A11% (4)
- B5% (2)
- C82% (31)
- D3% (1)
Explanation
https://cloud.google.com/endpoints/docs/openapi/versioning-an-api#backwards-incompatible When you make changes to your API that breaks your customers' client code, as a best practice, increment the major version number of your API. Endpoints can run more than one major version of an API concurrently. By providing both versions of the API, your customers can pick which version they want to use and control when they migrate to the new version.
Topics
Community Discussion
No community discussion yet for this question.