ASSOCIATE-CLOUD-ENGINEER · Question #100
You need to produce a list of the enabled Google Cloud Platform APIs for a GCP project using the gcloud command line in the Cloud Shell. The project name is my-project. What should you do?
The correct answer is A. Run gcloud projects list to get the project ID, and then run gcloud services list -. https://cloud.google.com/sdk/gcloud/reference/services/list#--available Return the services available to the project to enable. This list will include any services that the project has already enabled. To list the services the current project has enabled for consumption, run: gcl
Question
Options
- ARun gcloud projects list to get the project ID, and then run gcloud services list -
- BRun gcloud init to set the current project to my-project, and then run gcloud services
- CRun to view the account value, and then run gcloud
- DRun to verify the project value, and then run
How the community answered
(39 responses)- A92% (36)
- C5% (2)
- D3% (1)
Explanation
https://cloud.google.com/sdk/gcloud/reference/services/list#--available Return the services available to the project to enable. This list will include any services that the project has already enabled. To list the services the current project has enabled for consumption, run: gcloud services list --enabled To list the services the current project can enable for consumption, run: gcloud services list --available
Topics
Community Discussion
No community discussion yet for this question.