MLA-C01 Question 253
Single answerYou are deploying a machine learning model using Amazon SageMaker. Your team wants to ensure that if a new model version causes unexpected issues in production, you can quickly revert to the previous stable version with minimal downtime. Which of the following deployment strategies would best meet this requirement?
- A
Blue/Green Deployment
- B
Canary Deployment
- C
Direct Deployment
- D
Shadow Deployment
Show answer and explanation
Correct answer: A
Explanation
Blue/Green Deployment is the best strategy for handling rollbacks because it allows you to maintain two separate environments, making it easy to revert to the previous stable version in case of issues. This minimizes downtime and ensures a stable user experience.
- A. Correct.
Blue/Green Deployment enables running two environments (blue: the current version, green: the new version) simultaneously, allowing you to easily switch back to the previous version in case of issues, making it ideal for rollback scenarios.
- B. Incorrect.
Canary Deployment gradually shifts traffic to the new version over time but doesn't inherently provide a rollback mechanism as seamless as Blue/Green Deployment.
- C. Incorrect.
Direct Deployment immediately replaces the current version with the new version, making rollback challenging and potentially causing downtime.
- D. Incorrect.
Shadow Deployment sends a copy of the traffic to the new version without affecting the current version, but it is primarily used for testing purposes and not suitable for quick rollback in production.