A data engineering team is attempting to deploy an automated batch processing pipeline inside a target Google Cloud project named `warehouse-analytics-live`. The execution fails because the Cloud Dataflow API (`dataflow.googleapis.com`) has not been activated in the project. As a Cloud Engineer, you must enable this service specifically for `warehouse-analytics-live` using the Google Cloud CLI. Which command should you execute?
- gcloud services enable dataflow.googleapis.com --project=warehouse-analytics-liveCevap
- Bgcloud services enable dataflow.googleapis.com
- Cgcloud resource-manager folders add-iam-policy-binding --id=12345678 --role=roles/owner
- Dgcloud compute quotas update --service=dataflow.googleapis.com --project=warehouse-analytics-live
Cevap
Execute `gcloud services enable dataflow.googleapis.com --project=warehouse-analytics-live` to activate the Dataflow API explicitly in the target project.
The command `gcloud services enable dataflow.googleapis.com --project=warehouse-analytics-live` directly activates the specified Google Cloud API endpoint for the designated project. Including the `--project` flag ensures deterministic execution against the target environment.
Adım Adım Çözüm
Anahtar Kavram
Enabling Cloud Service APIs using gcloud CLI with explicit project flags
Tahmini Süre:1m 0s