Google Cloud Professional Cloud Developer — Question 117

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?

Answer options

Correct answer: C

Explanation

The correct answer is C because using Cloud Endpoints allows you to manage different versions of the API effectively and provides an API gateway that can route requests to the correct function based on the version. Option A is incorrect because a load balancer cannot handle API versioning effectively. Option B does not provide a way to manage the old and new APIs together. Option D also fails to maintain the original API, which is essential for existing users.