Free Google Associate Cloud Engineer Actual Exam Questions - Question 12 Discussion
gcloud command line in the Cloud Shell. The project name is my-project. What should you do?
B doesn’t work because --available lists all possible APIs, not just enabled ones. The question wants enabled APIs specifically, so B’s out. A is more on point here.
Makes sense that A is right since it directly lists enabled APIs for a specified project using --project. The others mention listing available services or account info, which doesn’t match what’s asked. A
It’s A because it specifically lists enabled APIs using --project, which fits the requirement. The other options either list available services or don’t focus on enabled APIs for the given project.
D imo, because options B and D list available services, not enabled ones. Option C is about accounts, so A remains the only one actually listing enabled APIs for a specific project.
Good point about needing the actual project ID first, so A seems solid.
A Using gcloud projects list helps confirm the exact project ID, then gcloud services list --project shows the enabled APIs specifically for that project. The other options focus on available services or accounts, not enabled APIs.
A makes the most sense because you first confirm the project ID if needed, then use gcloud services list --project to get the enabled APIs. The other options look off—B and D list available services, not enabled ones, and C is about account info, which isn’t relevant here. Also, my-project can be used as the project ID if that’s what’s set up, so no need to overthink it.
A imo, since it directly lists enabled APIs for the project, unlike others.
A/D? A makes sense because it directly lists enabled APIs using the project ID, which you can get from the project name. D is close but it uses --available, which shows all services you *could* enable, not the ones already active. B and C don’t focus on enabled services either—B sets the project but lists available services, and C is about account info, which isn’t really relevant here. So A’s approach is cleaner for what the question asks.
Probably A. The key part is showing enabled APIs, and A directly uses gcloud services list --project which lists enabled services for that project. Other options focus on available services or unrelated info.
Option A, since it lists enabled APIs, not just available ones.
A/B? The question says "enabled" APIs, but options B and D mention "--available," which seems like all services, not just enabled. Does the question want only enabled APIs or all available ones?