Question 427 of 503
Plan and manage database infrastructurehardMultiple ChoiceObjective-mapped

Quick Answer

The answer is an incorrect database name in the connection string. This is the most likely cause because SQL Server requires a valid database context to complete a login; even with correct user credentials and a running Cloud SQL SQL Server instance, specifying a database name that does not exist on the server triggers a login failure error. On the Google Professional Cloud Database Engineer exam, this scenario tests your understanding that authentication and database context are separate layers—a common trap is to assume the issue is with the user or instance when the error explicitly points to the database name. The search intent for "cloud sql sql server connection error database name" directly maps to this misconfiguration, where the connection string’s database parameter must exactly match an existing database. Memory tip: think of it as needing the right key (credentials) and the right door (database name)—both must be correct to enter.

PCDE Plan and manage database infrastructure Practice Question

This PCDE practice question tests your understanding of plan and manage database infrastructure. 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.

Exhibit

Refer to the exhibit.

```
Failed to create connection to Cloud SQL instance `myproject:us-central1:myinstance`.
Error: SQL Server does not exist or access denied.
```

A developer reports that an application cannot connect to a Cloud SQL SQL Server instance. The error log shows the message in the exhibit. The instance exists and the user credentials are correct. What is the most likely cause?

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.

Question 1hardmultiple choice
Full question →

Exhibit

Refer to the exhibit.

```
Failed to create connection to Cloud SQL instance `myproject:us-central1:myinstance`.
Error: SQL Server does not exist or access denied.
```

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

The database name specified in the connection string is incorrect.

The error message in the exhibit indicates that the login failed for the user, which is a common symptom when the database name in the connection string does not match an existing database on the Cloud SQL SQL Server instance. Even though the user credentials are correct, SQL Server requires a valid database context to establish the connection; an incorrect database name causes the server to reject the login attempt. This is a configuration issue, not an authentication or network problem.

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 Cloud SQL instance has reached its maximum number of connections.

    Why it's wrong here

    Max connections would result in a 'too many connections' error, not this one.

  • The database name specified in the connection string is incorrect.

    Why this is correct

    This error commonly occurs when the database name is misspelled or does not exist.

    Clue confirmation

    The clue word "most likely" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • The Cloud SQL proxy is not running.

    Why it's wrong here

    Without proxy, the error would be about unable to connect to the proxy or socket.

  • The Cloud SQL instance is not in the same VPC network as the application.

    Why it's wrong here

    VPC network mismatch would produce a different error, such as connection timeout.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the distinction between authentication errors and database context errors, leading candidates to incorrectly blame network or proxy issues when the actual problem is a simple misconfiguration in the connection string's database name.

Detailed technical explanation

How to think about this question

When SQL Server receives a connection request, it first authenticates the user and then attempts to set the default database context to the database specified in the connection string (or the user's default database if none is specified). If the specified database does not exist, SQL Server returns error 4060: 'Cannot open database "<name>" requested by the login. The login failed.' This is distinct from authentication failures (error 18456) which occur when the username or password is wrong. In Cloud SQL, the database name is case-sensitive and must exactly match the database created in the instance.

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 company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.

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 PCDE 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 PCDE 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 PCDE question test?

Plan and manage database infrastructure — This question tests Plan and manage database infrastructure — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: The database name specified in the connection string is incorrect. — The error message in the exhibit indicates that the login failed for the user, which is a common symptom when the database name in the connection string does not match an existing database on the Cloud SQL SQL Server instance. Even though the user credentials are correct, SQL Server requires a valid database context to establish the connection; an incorrect database name causes the server to reject the login attempt. This is a configuration issue, not an authentication or network problem.

What should I do if I get this PCDE 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". 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 PCDE 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 PCDE 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 PCDE exam.