GCP ACE · Question 19 · Domain 3.1: Deploying and implementing Compute Engine resources
You need to create a new Compute Engine instance named 'web-server-01' in the 'us-central1-a' zone using the e2-medium machine type. The instance should use a specific custom service account: 'web-sa@my-project.iam.gserviceaccount.com'.
Which gcloud command should you use?
You need to create a new Compute Engine instance named 'web-server-01' in the 'us-central1-a' zone using the e2-medium machine type. The instance should use a specific custom service account: 'web-sa@my-project.iam.gserviceaccount.com'.
Which gcloud command should you use?
Answer options:
gcloud compute instances create web-server-01 --zone=us-central1-a --machine-type=e2-medium --service-account=web-sa@my-project.iam.gserviceaccount.com
gcloud compute instances start web-server-01 --zone=us-central1-a --type=e2-medium --sa=web-sa@my-project.iam.gserviceaccount.com
gcloud compute create instance web-server-01 --zone=us-central1-a --machine-type=e2-medium --service-account=web-sa@my-project.iam.gserviceaccount.com
gcloud compute instances create web-server-01 --zone=us-central1-a --machine-type=e2-medium --scopes=web-sa@my-project.iam.gserviceaccount.com
How to approach this question
Full Answer
Common mistakes
Practice the full GCP Associate Cloud Engineer Practice Exam 2
50 questions · hints · full answers · grading
Expert