Google PCA Design and plan a cloud solution architecture Practice Question
A company is migrating a legacy monolithic application to Google Cloud. The application currently runs on a single on-premises server and uses a local MySQL database. The company wants to minimize changes to the application code while improving scalability and reliability. Which migration strategy should the architect recommend?
⚠ Common exam trap
The trap here is that candidates often over-engineer the solution by choosing containerization or microservices, forgetting that the primary constraint is minimizing code changes, not modernizing the architecture.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Rehost the application on Compute Engine and use Cloud SQL for MySQL as the database.
Rehosting (lift-and-shift) the monolithic application to Compute Engine with Cloud SQL for MySQL minimizes code changes while improving scalability and reliability. Cloud SQL provides managed MySQL with automated backups, replication, and failover, addressing the need for reliability without requiring application refactoring.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Refactor the application into microservices and deploy on Google Kubernetes Engine.
Why it's wrong here
Refactoring requires significant code changes, which contradicts the requirement to minimize changes.
- ✓
Rehost the application on Compute Engine and use Cloud SQL for MySQL as the database.
Why this is correct
Rehosting on Compute Engine with Cloud SQL minimizes changes and improves scalability and reliability.
- ✗
Containerize the application with Docker and run it on Cloud Run.
Why it's wrong here
Containerization may require code changes for statelessness and Cloud Run has limitations that may not suit a monolithic app.
- ✗
Migrate the database to Firestore and rewrite the application to use Firestore APIs.
Why it's wrong here
Rewriting to use Firestore involves significant code changes and is not a lift-and-shift approach.
Go deeper
Related to this question
Learn chapter
Introduction to Google Cloud Platform
Key term
Cloud SQL
Cloud SQL is a fully managed relational database service that lets you set up, maintain, and scale SQL databases (like MySQL, PostgreSQL, and SQL Server) in the cloud without managing the underlying infrastructure.
Key term
Compute Engine
Compute Engine is Google Cloud's Infrastructure-as-a-Service (IaaS) offering that lets you create and run virtual machines on Google's infrastructure.
About these practice questions
One of 955 original PCA practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This PCA practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCA exam.