Complete the code to specify the rollback method used in a deployment pipeline.
deployment.rollback_method = "[1]"
The manual rollback method requires explicit intervention to revert changes, which is a common basic rollback strategy.
Complete the code to define the rollback trigger condition based on error rate.
if error_rate > [1]: trigger_rollback()
An error rate threshold of 0.05 (5%) is a common trigger for rollback in microservices deployments.
Fix the error in the rollback function call to correctly revert to the previous stable version.
rollback_to_version([1])The function should rollback to the last_stable_version to ensure stability after failure.
Fill both blanks to implement a canary rollback strategy with traffic shifting and monitoring.
canary_deployment.shift_traffic([1]) monitoring.set_alert_threshold([2])
Shift 10% traffic initially and set alert threshold to trigger rollback if error rate exceeds 5%.
Fill all three blanks to define a rollback plan with version tagging, backup creation, and rollback execution.
tag_version([1]) create_backup([2]) execute_rollback([3])
Tag the new_release, create a backup of the current_state, and rollback to the last_stable_release if needed.