A development team wants to enable the Cloud Vision API for their project using the gcloud CLI. After enabling the API, they also want to verify the current quota limits for the API in their project. Which sequence of commands correctly accomplishes BOTH tasks?
- A.
gcloud services enable vision.googleapis.comfollowed bygcloud services list --available - B.
gcloud services enable vision.googleapis.comfollowed bygcloud services quota list --service=vision.googleapis.com - C.
gcloud services enable vision.googleapis.comfollowed bygcloud alpha services quota list --service=vision.googleapis.com --consumer=project:PROJECT_ID✓ Correct - D.
gcloud services enable cloudvision.googleapis.comfollowed bygcloud alpha services quota list --service=cloudvision.googleapis.com --consumer=project:PROJECT_ID
Explanation
The correct service name for Cloud Vision API is vision.googleapis.com. The command to list quota for a specific service is gcloud alpha services quota list (or gcloud beta services quota list) and requires both the --service flag and the --consumer=project:PROJECT_ID flag to scope the quota lookup to the project. (A) is incorrect because gcloud services list --available lists all available services, not quota limits for a specific API. (B) is incorrect because gcloud services quota list is not the right subcommand structure — quota commands live under gcloud alpha/beta services quota. (D) uses the wrong service identifier — the correct name is vision.googleapis.com, not cloudvision.googleapis.com.