Question 209 of 500

Quick Answer

The answer is that stale connections in application connection pools are the most likely cause of intermittent errors after a Cloud SQL HA failover. This occurs because while the failover promotes the standby instance to primary with the same IP address, any TCP connections established to the old primary are severed and become invalid. Connection pools that do not validate connections before reusing them will hand out these broken connections to the application, leading to sporadic failures. On the Google Associate Cloud Engineer exam, this scenario tests your understanding that HA failover preserves the endpoint but not the underlying session state, making connection validation essential. A common trap is assuming the IP change or DNS propagation is the issue, but the IP remains static. Remember the mnemonic “Same IP, dead socket” — the address stays, but the connection is gone, so always configure pools with a validation query like `SELECT 1` to force a fresh connection after failover.

Google ACE Practice Question: Ensuring successful operation of a cloud solution

This ACE practice question tests your understanding of ensuring successful operation of a cloud solution. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Your Cloud SQL for MySQL primary instance in `us-central1` has failed. Cloud SQL HA automatically fails over to the standby. After the failover, your application is experiencing intermittent connection errors. What is the most likely cause and solution?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "most likely"

    Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

  • Clue: "primary"

    Why it matters: Asks for the main purpose or function, not a secondary benefit. Eliminate answers that describe side-effects or partial functions.

Question 1hardmultiple choice
Full question →

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

Application connection pools hold stale connections to the failed primary; configure pools to validate connections and reconnect after failure.

Option B is correct because after a Cloud SQL HA failover, the standby instance becomes the new primary with the same IP address, but existing application connections that were established to the old primary are now broken. Connection pools that do not validate connections before reuse will attempt to use these stale connections, causing intermittent errors. Configuring the pool to test connections (e.g., via `SELECT 1` or JDBC `connectionTestQuery`) and automatically reconnect resolves this by discarding dead connections and establishing fresh ones to the new primary.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The standby instance has a different IP address; update the connection string.

    Why it's wrong here

    Cloud SQL HA failover preserves the same instance IP address — the application connection string doesn't need to change for IP.

  • Application connection pools hold stale connections to the failed primary; configure pools to validate connections and reconnect after failure.

    Why this is correct

    Stale connection pool entries are the most common cause of post-failover errors. Configuring connection validation on borrow and using the Cloud SQL Auth Proxy (which handles reconnection transparently) resolves this.

    Clue confirmation

    The clue words "most likely", "primary" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • The standby replica must be manually promoted before it can accept connections.

    Why it's wrong here

    Cloud SQL HA failover is automatic — the standby is automatically promoted and begins accepting connections without manual intervention.

  • The MySQL binary log is incomplete after failover; run `mysqlcheck` to repair tables.

    Why it's wrong here

    Cloud SQL HA uses synchronous replication, ensuring the standby has all committed transactions before failover. Table repair is not needed.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the misconception that IP addresses change during HA failover, leading candidates to incorrectly choose Option A, but in Cloud SQL HA the VIP remains constant, and the real issue is stale connections in the application pool.

Detailed technical explanation

How to think about this question

Under the hood, Cloud SQL HA uses a regional persistent disk and synchronous replication to the standby; after failover, the standby mounts the same disk and assumes the VIP, so the IP address remains unchanged. Connection pool libraries like HikariCP or Tomcat JDBC can be configured with `connectionTestQuery` or `validationQuery` to run a lightweight query (e.g., `SELECT 1`) before handing a connection to the application, ensuring the connection is still valid. In real-world scenarios, without this validation, applications may see `CommunicationsException` or `SQLException` until the pool evicts the stale connections, which can take minutes depending on idle timeout settings.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related ACE practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free ACE practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this ACE question test?

Ensuring successful operation of a cloud solution — This question tests Ensuring successful operation of a cloud solution — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Application connection pools hold stale connections to the failed primary; configure pools to validate connections and reconnect after failure. — Option B is correct because after a Cloud SQL HA failover, the standby instance becomes the new primary with the same IP address, but existing application connections that were established to the old primary are now broken. Connection pools that do not validate connections before reuse will attempt to use these stale connections, causing intermittent errors. Configuring the pool to test connections (e.g., via `SELECT 1` or JDBC `connectionTestQuery`) and automatically reconnect resolves this by discarding dead connections and establishing fresh ones to the new primary.

What should I do if I get this ACE question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "most likely", "primary". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More ACE practice questions

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This ACE 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 ACE exam.