Professional Cloud Architect Exam QuestionsBrowse all questions from this exam

Professional Cloud Architect Exam - Question 137


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?

Show Answer
Correct Answer: C

To ensure stability for customers in case the API makes backward-incompatible changes, the best approach is to use a versioning strategy for the APIs that increases the version number with every backward-incompatible change. This allows developers to introduce changes without disrupting the existing users of an API. It is a widely accepted practice in API development to manage and communicate changes clearly and effectively.

Discussion

17 comments
Sign in to comment
kopper2019Option: C
Jul 3, 2021

It is C

sebafranek
Aug 4, 2021

https://cloud.google.com/apis/design/versioning

[Removed]
Jan 6, 2023

more specifically: https://cloud.google.com/apis/design/versioning#release-based_versioning

VishalBOption: C
Jul 13, 2021

Answer C All Google API interfaces must provide a major version number, which is encoded at the end of the protobuf package, and included as the first part of the URI path for REST APIs. If an API introduces a breaking change, such as removing or renaming a field, it must increment its API version number to ensure that existing user code does not suddenly break.

mastrrrr
Dec 6, 2023

I had a test today. The overall question was almost the same, but question mentioned Apigee.

CGS22Option: C
Mar 9, 2023

The correct answer is: C. Use a versioning strategy for the APIs that increases the version number on every backward-incompatible change. A versioning strategy for the APIs that increases the version number on every backward-incompatible change is the best way to ensure stability for your customers in case the API makes backward-incompatible changes. This will allow you to track the changes that have been made to the API and allow your customers to easily identify the latest version of the API.

surajkrishnamurthyOption: C
Dec 14, 2022

C is the correct answer

Balaji_SakthiOption: C
Oct 27, 2022

option C

meguminOption: C
Nov 16, 2022

C is ok

HenkHOption: C
Dec 22, 2022

If 'A' is the correct answer, one would wonder why. The new version might be back-ward incompatible but does not necessarily mean its a breaking one. In that case A might be sufficient, although C remains mandatoryBest Practice imho.

zerg0Option: C
Feb 1, 2023

See @seafranek comment

bharath2k5Option: C
Mar 18, 2023

c version numbers cannot be changed as given in d

gu_ppOption: C
Apr 19, 2023

Clearly C

AtanuOption: A
May 30, 2023

Anyways option A is also a recommended best practice. Its version incompatible change afterall.

BiddlyBdoyngOption: C
Jun 10, 2023

Maybe A on top of C but are we really going to mandate customers only have 1 month to be ready? I don't think so, use the version strategy and let them migrate when ready!

heretolearnazureOption: C
Aug 29, 2023

C is correct

convers39Option: C
Jan 11, 2024

This is not a GCP-specific or even cloud-specific question, but a development best practice. No need to look at other options.

spuyolOption: A
Feb 6, 2024

Answer is A Question asks: You are responsible for the API lifecycle and want to ensure stability for your customers in case the API makes backward-incompatible changes. Option C is a must for the API lifecycle but doing only that will not help your customers. In my opinion they have to be notified of backward-incompatible changes with time enough to stay ready

de1001cOption: C
Jun 7, 2024

Breaking changes = version bump in the API url