GoogleGoogle
ASSOCIATE-CLOUD-ENGINEER · Question #62
ASSOCIATE-CLOUD-ENGINEER Question #62: Real Exam Question with Answer & Explanation
The correct answer is A: gcloud compute instances create --machine-type=n1-standard-4 whiz-server-1. This question asks for the correct gcloud command to create a new VM instance with a specific number of CPUs.
Submitted by mike_84· Mar 30, 2026
Question
A cloud engineer wants to create a VM named whiz-server-1 with four CPUs. Which of the following commands would he use to create the VM whiz-server-1?
Options
- Agcloud compute instances create --machine-type=n1-standard-4 whiz-server-1
- Bgcloud compute instances create --cpus=4 whiz-server-1
- Cgcloud compute instances create --machine-type=n1-standard-4 -instancename whiz-server-1
- Dgcloud compute instances create --machine-type=n1-4-cpu whiz-server-1
Explanation
This question asks for the correct gcloud command to create a new VM instance with a specific number of CPUs.
Common mistakes.
- B. The
--cpusflag is not a valid option forgcloud compute instances create; CPU count is specified as part of the machine type. - C. The
-instancenameflag is not a valid or standard flag for specifying the instance name; the instance name is typically provided as a positional argument. - D.
n1-4-cpuis not a valid machine type name; machine types follow patterns liken1-standard-4ore2-medium.
Concept tested. GCP Compute Engine VM Creation
Reference. https://cloud.google.com/sdk/gcloud/reference/compute/instances/create
Community Discussion
No community discussion yet for this question.