A global logistics and freight management company is modernizing its on-premises dispatch tracking system to Google Cloud to resolve significant architectural technical debt. The legacy system relies on microservices accessing a shared 20 TB MySQL database directly, causing tight coupling and schema migration failures. The business demands zero downtime during migration and a decoupled architecture moving forward.
Which of the following architectural actions should the cloud architect recommend to mitigate technical debt and execute the migration successfully? (Select TWO.)
- Use Database Migration Service (DMS) with continuous change data capture (CDC) to sync to Cloud SQL for MySQL, and utilize the expand-and-contract pattern to decouple application deployments from schema changes.Cevap
- Refactor application microservices to communicate via REST APIs and Cloud Pub/Sub asynchronous messaging instead of querying shared database tables directly.Cevap
- COrder a Google Cloud Transfer Appliance to perform an offline bulk copy of the 20 TB database, followed by immediate blue-green deployment with non-backwards-compatible schema changes.
- DMigrate the database to Cloud Spanner to handle standard relational workloads, and host stateless web microservices on Google Kubernetes Engine (GKE) with dedicated node pools.
Cevap
The correct recommendations are using Database Migration Service with continuous CDC replication combined with the expand-and-contract pattern, and refactoring microservices to communicate via APIs and Cloud Pub/Sub messaging instead of accessing shared database tables directly.
To manage technical debt during cloud migration, legacy shared database dependencies must be eliminated by introducing API layers and event messaging (Cloud Pub/Sub). Additionally, migrating live data with Database Migration Service using CDC alongside an expand-and-contract schema strategy enables zero-downtime migration and safe schema evolution.
Adım Adım Çözüm
Anahtar Kavram
Managing Technical Debt and Decoupling Legacy Cloud Migrations