Question 1
A financial services company is implementing a blue-green deployment strategy for a critical, stateful microservice running on an OKE cluster. The deployment pipeline must ensure zero downtime and provide an immediate rollback capability if post-deployment health checks fail. The current process involves manually updating a Kubernetes service selector to switch traffic. Which OCI DevOps Deployment Pipeline stage configuration is the most effective and automated way to manage the traffic shift between the blue and green environments?
Answer and explanation
Correct answer: D
The OCI DevOps Deployment Pipeline includes a dedicated 'Traffic Shift' stage for managing blue-green and canary deployments on OKE. This stage is the most effective and automated method as it natively handles the controlled redirection of traffic between backend sets (representing the blue and green deployments) associated with a Kubernetes Service of type LoadBalancer. It provides fine-grained control and integrates seamlessly with validation and rollback stages. Using shell scripts or CLI commands introduces manual scripting overhead and is less robust than the purpose-built stage. Redeploying the service manifest is a valid but less controlled approach compared to the Traffic Shift stage.