PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #39
Your development team has created a new version of their service's API. You need to deploy the new versions of the API with the least disruption to third-party developers and end users of third…
The correct answer is A. Introduce the new version of the API. Announce deprecation of the old version of the API. To minimize disruption when deploying a new API version, first introduce the new API, then announce the deprecation of the old version, allowing time for migration.
Question
Options
- AIntroduce the new version of the API. Announce deprecation of the old version of the API.
- BAnnounce deprecation of the old version of the API. Introduce the new version of the API. Contact
- CAnnounce deprecation of the old version of the API. Contact remaining users on the old API.
- DIntroduce the new version of the API. Contact remaining users of the old API. Announce
How the community answered
(56 responses)- A73% (41)
- B16% (9)
- C7% (4)
- D4% (2)
Why each option
To minimize disruption when deploying a new API version, first introduce the new API, then announce the deprecation of the old version, allowing time for migration.
The standard practice for API versioning to minimize disruption is to introduce the new API as a distinct, concurrently available version. Once the new version is available and stable, then you can announce the deprecation of the old version, providing third-party developers and applications ample time to migrate without immediate breakage, ensuring backward compatibility for a period.
Announcing deprecation before introducing the new API creates a period where users might not have a supported path forward, leading to disruption and uncertainty.
Announcing deprecation and contacting users without providing the new API first leaves users in a limbo state, unable to migrate, causing significant disruption.
Contacting remaining users of the old API should happen after deprecation is announced and the new API is available, providing them with a clear path and deadline for migration, rather than immediately after introduction.
Concept tested: API versioning and deprecation strategy
Source: https://cloud.google.com/apis/design/versioning
Topics
Community Discussion
No community discussion yet for this question.