mediumMultiple ChoiceObjective-mapped
Google ACE Practice Question: A developer attempts to create a Cloud SQL…
A developer attempts to create a Cloud SQL instance but receives the error: 'API [sqladmin.googleapis.com] not enabled.' What is the correct resolution?
⚠ Common exam trap
Google Cloud often tests the distinction between enabling an API and assigning IAM roles, trapping candidates who think granting permissions automatically activates the underlying service.
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
✓
Enable the Cloud SQL Admin API via APIs & Services > Library in the Console
The error 'API [sqladmin.googleapis.com] not enabled' indicates that the Cloud SQL Admin API has not been activated for the project. The correct resolution is to enable the API via APIs & Services > Library in the Google Cloud Console, as this is a prerequisite for creating any Cloud SQL instance. Assigning IAM roles or requesting quota increases does not enable the underlying API service.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Assign the developer the Cloud SQL Admin IAM role
Why it's wrong here
Assigning the developer the Cloud SQL Admin IAM role is not the fix because IAM roles govern what actions a user is permitted to take on existing resources, not whether the underlying service API is enabled at the project level. The 'API not enabled' error originates from the serviceusage system, indicating that sqladmin.googleapis.com has not been activated for that specific project. Even a user with the Owner role would still receive the same error until the API is explicitly enabled, since IAM authorization and API enablement are two separate layers of access control.
- ✗
Request a quota increase for Cloud SQL in the project
Why it's wrong here
Requesting a quota increase for Cloud SQL would not address the 'API not enabled' error because quota limits are project-level constraints on resource usage once the API is already operational, such as the maximum number of Cloud SQL instances or total CPU cores. If the Cloud SQL Admin API is disabled, no request reaches the quota system, so the error would appear before quota checks are even performed. Quota increases are for exceeding resource limits, not for activating a service, and attempting to raise quotas for a disabled API will not change its enabled state.
- ✓
Enable the Cloud SQL Admin API via APIs & Services > Library in the Console
Why this is correct
Enabling the Cloud SQL Admin API via APIs & Services > Library is the correct solution because this error directly indicates that sqladmin.googleapis.com has not been enabled in the project. In the Google Cloud Console, you navigate to APIs & Services > Library, search for 'Cloud SQL Admin API', and click Enable, which turns on the service for that project. The equivalent command-line approach is `gcloud services enable sqladmin.googleapis.com`, and once the API is enabled, the previously failing operation will succeed without any further IAM or quota changes.
- ✗
Create a new project — Cloud SQL is enabled by default in new projects
Why it's wrong here
Creating a new project is not a valid fix because Google Cloud does not enable most APIs, including the Cloud SQL Admin API, by default in any new project. Only a small set of core APIs like Compute Engine and Cloud Deployment Manager are pre-enabled; all other services, including Cloud SQL, must be explicitly enabled in each project where they are used. The error will simply recur in the new project, so the correct action is to enable the API in the original project rather than abandoning it, which wastes time and does not resolve the root cause.
Go deeper
Related to this question
Learn chapter
Google Cloud Platform Overview
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
IAM
Identity and Access Management (IAM) is a framework of policies and technologies that ensures the right individuals have the appropriate access to technology resources.
About these practice questions
This ACE question is part of Courseiva's 769-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.