
Answer-first summary for fast verification
Answer: `gcloud deployment-manager deployments create my-gcp-ace-cluster --config cluster.yaml`
The correct command is `gcloud deployment-manager deployments create my-gcp-ace-cluster --config cluster.yaml`. This command uses the `create` action, which is the correct action for creating deployments in Google Cloud. The `apply` action is not supported by `gcloud deployment-manager deployments`. Additionally, specifying the `type` parameter directly in the command is unnecessary and incorrect, as all configuration should be defined within the `cluster.yaml` file. For more information, refer to the [Google Cloud SDK documentation](https://cloud.google.com/sdk/gcloud/reference/deployment-manager/deployments/create).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You have prepared a cluster.yaml file for creating a GKE cluster with the following content:
resources:
- name: cluster
type: container.v1.cluster
properties:
zone: europe-west1-b
cluster:
description: “My GCP ACE cluster”
initialNodeCount: 2
resources:
- name: cluster
type: container.v1.cluster
properties:
zone: europe-west1-b
cluster:
description: “My GCP ACE cluster”
initialNodeCount: 2
What is the correct command to use Cloud Deployment Manager to create this cluster in GKE?
A
gcloud deployment-manager deployments create my-gcp-ace-cluster --config cluster.yaml
B
gcloud deployment-manager deployments create my-gcp-ace-cluster --type container.v1.cluster --config cluster.yaml
C
gcloud deployment-manager deployments apply my-gcp-ace-cluster --config cluster.yaml
D
gcloud deployment-manager deployments apply my-gcp-ace-cluster --type container.v1.cluster --config cluster.yaml
No comments yet.