Google Cloud Professional Cloud Architect — Question 129

Your company provides a recommendation engine for retail customers. You are providing retail customers with an API where they can submit a user ID and the
API returns a list of recommendations for that user. You are responsible for the API lifecycle and want to ensure stability for your customers in case the API makes backward-incompatible changes. You want to follow Google-recommended practices. What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C, as a versioning strategy that increments the version number with each backward-incompatible change allows clients to understand which version they are using and adapt accordingly. Option A is insufficient because simply notifying clients does not prevent issues caused by incompatible changes. Option B, while useful for documentation, does not address the versioning of the API itself. Option D may cause confusion for clients, as marking the current version as deprecated without a clear increment in versioning can lead to uncertainty about the API's stability.