Google ACE Setting Up a Cloud Solution Environment Practice Question
An engineer needs to enable the Cloud Build API and the Kubernetes Engine API for a project. Which TWO commands should they run?
⚠ Common exam trap
ACE often tests exact service names and project scoping. Candidates may incorrectly choose kubernetes-engine.googleapis.com or a command with an explicit --project flag that assumes a specific project ID not given in the 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
✓
gcloud services enable cloudbuild.googleapis.com
Option A is correct because `gcloud services enable cloudbuild.googleapis.com` enables the Cloud Build API using the configured project. Option B is correct because `gcloud services enable container.googleapis.com` enables the Kubernetes Engine API (service name `container.googleapis.com`). Option C is wrong because `compute.googleapis.com` is the Compute Engine API. Option D is wrong because `kubernetes-engine.googleapis.com` is not the correct service name. Option E is wrong because `--project=my-project` targets a specific project named `my-project`, but the question does not provide that project ID; without this flag the command applies to the default configured project. Therefore E is not one of the two required commands.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
gcloud services enable cloudbuild.googleapis.com
Why this is correct
Enabling cloudbuild.googleapis.com activates the Cloud Build service for the project, satisfying the requirement to enable the Cloud Build API. The paired command must enable container.googleapis.com for Kubernetes Engine, since each Google Cloud API is enabled individually by its own service name.
- ✓
gcloud services enable container.googleapis.com
Why this is correct
This command enables the Kubernetes Engine API (container.googleapis.com). It is the second required command.
- ✗
gcloud services enable compute.googleapis.com
Why it's wrong here
This command enables the Compute Engine API, not the required APIs.
- ✗
gcloud services enable kubernetes-engine.googleapis.com
Why it's wrong here
This command uses an incorrect service name 'kubernetes-engine.googleapis.com'. The correct service is 'container.googleapis.com'.
- ✗
gcloud services enable cloudbuild.googleapis.com --project=my-project
Why it's wrong here
While this command also enables the Cloud Build API, it is redundant with option A. Only two commands are required, so the best choice is A and B.
Go deeper
Related to this question
Learn chapter
GCP Security Services
Key term
Service
A service is a software component or system that performs a specific function and is available to be used by other programs or users over a network.
Key term
Cloud Build
Cloud Build is a managed service that compiles source code into deployable artifacts, often used in continuous integration and continuous delivery pipelines.
About these practice questions
One of 775 original ACE 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 and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Google Cloud exam blueprint
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.