nerdexam
Google

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

Designing highly scalable, available, and reliable cloud-native applications

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)
  • A
    11% (4)
  • B
    5% (2)
  • C
    82% (31)
  • D
    3% (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

#Cloud Functions#API Versioning#Microservices Design#Backward Compatibility

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice