
Ultimate access to all questions.
You have two Kubernetes resource configuration files: deployments.yaml for creating a deployment and service.yaml for setting up a LoadBalancer service to expose the pods. You need to provision a GKE cluster in your development project where none exists. Which of the following commands will fail with an error in Cloud Shell when attempting to create a GKE cluster and deploy the YAML configuration files? (Select Two)
A
gcloud container clusters create cluster-1 --zone=us-central1-a gcloud container clusters get-credentials cluster-1 --zone=us-central1-a kubectl apply -f [deployment.yaml,service.yaml]
B
gcloud container clusters create cluster-1 --zone=us-central1-a gcloud container clusters get-credentials cluster-1 --zone=us-central1-a kubectl apply -f deployment.yaml&&service.yaml
C
gcloud config set compute/zone us-central1-a gcloud container clusters create cluster-1 gcloud container clusters get-credentials cluster-1 --zone=us-central1-a kubectl apply -f deployment.yaml kubectl apply -f service.yaml
D
gcloud container clusters create cluster-1 --zone=us-central1-a gcloud container clusters get-credentials cluster-1 --zone=us-central1-a kubectl apply -f deployment.yaml kubectl apply -f service.yaml
E
gcloud container clusters create cluster-1 --zone=us-central1-a gcloud container clusters get-credentials cluster-1 --zone=us-central1-a kubectl apply -f deployment.yaml,service.yaml