Resilience Testing for Regional MIG with Cloud SQL
Your customer wants to do resilience testing of their authentication layer. This consists of a regional managed instance group serving a public REST API that reads from and writes to a Cloud SQL instance. What should you do?
Community Insight
The question tests understanding of resilience testing versus security monitoring or database replication, with the common trap being to choose the database failover option when read replicas in Cloud SQL do not provide failover capability.
This question tests how to properly perform resilience testing on an authentication layer composed of a regional managed instance group and a Cloud SQL database. The correct approach is to simulate a zone-level failure by shutting down all VMs in one zone, which directly validates whether the regional MIG can withstand and recover from compute resource loss.
Many learners choose option D, believing that manually triggering a Cloud SQL read replica failover constitutes resilience testing. However, Google Cloud documentation explicitly states that read replicas do not provide failover capability—they are designed for read scaling, not automatic or manual HA failover to replace a primary instance.
Community Discussion (132 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Option C is correct because resilience testing specifically evaluates whether a system continues to function despite failures of its components. Shutting off all VMs in a zone simulates a realistic failure scenario and tests whether the regional managed instance group can automatically redistribute traffic to healthy zones. This aligns directly with Google Cloud's guidance on resilience: a resilient application should withstand the loss of one or more compute resources. By monitoring application behavior during this simulated failure, you gain actionable insight into the authentication layer's actual resilience posture.
Why the Other Options Are Wrong
Option A describes credential monitoring services (like Google's Dark Web monitoring), which is a security measure, not resilience testing—it does not test how the system behaves under failure conditions. Option B deploys intrusion detection software, which addresses unauthorized access detection, a security concern rather than a resilience or availability concern. Option D proposes configuring a Cloud SQL read replica and manually triggering failover; however, Google's documentation explicitly states that read replicas do not provide failover capability. Additionally, the REST API performs writes, which a read replica cannot serve, making this approach technically unsound for the described workload.
Community Comment Notes
Multiple commenters converge on C, with vartiklis clarifying the distinction between testing authentication itself versus testing "the resilience of the authentication layer" by simulating component failure. PeppaPig initially argues for D, reasoning that the database is the single point of failure, but Tamim321 correctly counters that "Read replicas do not provide failover capability" per Google's own documentation. juliansierra further notes that because the REST API reads and writes, a read replica alone cannot handle writes, reinforcing that D is technically flawed. Kri_2525 anchors the answer in Google's scalable and resilient apps documentation, where resilience is defined as the ability to withstand unexpected failures.
Official Reference
Exam Strategy
When you see 'resilience testing' or 'disaster simulation' in the question stem, focus on options that directly simulate component failure (e.g., shutting down VMs in a zone) rather than monitoring or detective controls. Also verify vendor-specific limitations—Google Cloud read replicas explicitly do not provide failover capability, which eliminates database-failover distractors.
Frequently Asked Questions
Why can't I use a Cloud SQL read replica to test failover for the authentication layer?
Google Cloud documentation states that read replicas do not provide failover capability; they are for read scaling. For HA failover, you need a regional HA configuration with a standby instance in another zone.
Is shutting down VMs in a zone considered proper resilience testing?
Yes. Simulating a zone failure directly tests whether the regional MIG can withstand the loss of compute resources in one zone, which is a core principle of resilience design.
Related Analysis
Practice All PCA Questions
Access 81 questions with complete answers and detailed explanations.
View Full PCA Practice Test →