A financial payment platform processes real-time credit transactions on Google Cloud using Compute Engine Managed Instance Groups (MIGs) fronted by an External HTTP(S) Load Balancer. The engineering team is planning a zero-downtime blue-green deployment for a major application revision that includes database schema modifications on Cloud SQL for PostgreSQL. Which TWO architectural and operational steps must the team execute to achieve zero downtime and maintain immediate rollback capabilities? (Select TWO answers.)
- Apply backward-compatible database schema changes (expand phase) prior to directing live user traffic to the new green instance group.Answer
- BExecute destructive database schema column removals concurrently with the load balancer traffic cutover to streamline database migration.
- Pre-allocate compute instance capacity and confirm passing backend health checks on the green environment before updating load balancer target pool routing.Answer
- DRely on automatic default quota increases during traffic cutover rather than validating regional Compute Engine quotas in advance.
Answer
The platform team must apply backward-compatible database schema changes before shifting traffic and ensure green environment compute capacity and health checks are fully validated prior to load balancer cutover.
In blue-green deployments involving relational databases, zero downtime requires decoupled database and application deployments. Using an expand-contract pattern guarantees that database schema updates remain backward-compatible with the active deployment while preparing for the new code release. Additionally, verifying target pool health and regional compute capacity prior to traffic cutover ensures that the green environment can immediately sustain production load without dropping connections.
Step-by-Step Solution
Key Concept
Expand-Contract Database Migration and Health Verification in Blue-Green Deployments