
Answer-first summary for fast verification
Answer: Run gcloud projects list to get the project ID, and then run gcloud services list --project <project ID>.
The correct answer is A. To list the enabled Google Cloud Platform APIs for a specific project, you first need to get the project ID using the command gcloud projects list. Then you can use the command gcloud services list --project <project ID> to list all the enabled APIs for that project. Other options are incorrect because they either list all available services (not just the enabled ones) or require unnecessary steps to achieve the goal.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
To generate a list of all the Google Cloud Platform APIs that are enabled for a specific GCP project using the gcloud command-line tool within the Cloud Shell environment, and given that the project name is my-project, what commands and steps should you perform?
A
Run gcloud projects list to get the project ID, and then run gcloud services list --project <project ID>.
B
Run gcloud init to set the current project to my-project, and then run gcloud services list --available.
C
Run gcloud info to view the account value, and then run gcloud services list --account <Account>.
D
Run gcloud projects describe <project ID> to verify the project value, and then run gcloud services list --available.
No comments yet.