Question 291 of 500
Deploying and implementing a cloud solutioneasyMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is `gcloud compute instances create web-01 --zone=us-central1-a --machine-type=e2-medium`. This command is correct because `gcloud compute instances create` is the proper syntax for provisioning a new VM, where the instance name is provided as a positional argument, and the `--machine-type` flag (not the abbreviated `--machine`) is required to specify the e2-medium machine type. On the Google Associate Cloud Engineer exam, this question tests your ability to recall the exact flag names and positional argument order for the `gcloud compute instances create` command, a fundamental task for deploying resources. A common trap is confusing `--machine-type` with `--machine` or forgetting the `--zone` flag, which leads to a default zone error. To remember, think of the command as a simple formula: `gcloud compute instances create [NAME] --zone=[ZONE] --machine-type=[TYPE]`—the flags are always fully spelled out, so never shorten them.

Google ACE Deploying and implementing a cloud solution Practice Question

This ACE practice question tests your understanding of deploying and implementing a cloud solution. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Which gcloud command creates a Compute Engine VM named 'web-01' using the e2-medium machine type in zone us-central1-a?

Question 1easymultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

gcloud compute instances create web-01 --zone=us-central1-a --machine-type=e2-medium

Option B is correct because the `gcloud compute instances create` command is the proper syntax for creating a Compute Engine VM, and it requires the `--machine-type` flag (not `--machine`) to specify the machine type. The zone is specified with `--zone`, and the VM name is provided as a positional argument.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • gcloud vm create web-01 --zone=us-central1-a --machine=e2-medium

    Why it's wrong here

    `gcloud vm` is not a valid command group. The correct group is `gcloud compute instances`.

  • gcloud compute instances create web-01 --zone=us-central1-a --machine-type=e2-medium

    Why this is correct

    This is the correct syntax. `gcloud compute instances create` is the command, `--zone` specifies the zone, and `--machine-type` specifies the VM size.

    Related concept

    Read the scenario before looking for a memorised answer.

  • gcloud instances create web-01 --region=us-central1 --type=e2-medium

    Why it's wrong here

    `gcloud instances` is not a valid subcommand group. The full path is `gcloud compute instances`. `--type` is also not a valid flag — use `--machine-type`.

  • gcloud compute create-instance web-01 --zone=us-central1-a --size=e2-medium

    Why it's wrong here

    `create-instance` is not a valid subcommand. The correct subcommand is `instances create`. `--size` is also not a valid flag.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the exact command syntax, and the trap here is that candidates confuse the `gcloud compute instances create` command with shorter, non-existent variants like `gcloud vm create` or `gcloud instances create`, or they use incorrect flag names like `--machine` or `--size` instead of the correct `--machine-type`.

Trap categories for this question

  • Command / output trap

    `gcloud vm` is not a valid command group. The correct group is `gcloud compute instances`.

Detailed technical explanation

How to think about this question

The `gcloud compute instances create` command is part of the Compute Engine API, which under the hood makes a `POST` request to the `https://compute.googleapis.com/compute/v1/projects/{project}/zones/{zone}/instances` endpoint. The `--machine-type` flag maps to the `machineType` field in the API request, which must be a fully qualified URL like `zones/us-central1-a/machineTypes/e2-medium`. In real-world scenarios, forgetting the `--zone` flag will cause the command to fail because the API requires a zone to provision the VM in a specific data center.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

An e-commerce site experiences heavy traffic on Black Friday and near-zero traffic during off-peak weeks. Rather than provisioning permanent large VMs, the team uses auto-scaling groups that add capacity automatically under load and reduce it overnight. Questions like this test whether you understand elasticity, availability zones, and cloud compute scaling patterns.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related ACE practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free ACE practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this ACE question test?

Deploying and implementing a cloud solution — This question tests Deploying and implementing a cloud solution — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: gcloud compute instances create web-01 --zone=us-central1-a --machine-type=e2-medium — Option B is correct because the `gcloud compute instances create` command is the proper syntax for creating a Compute Engine VM, and it requires the `--machine-type` flag (not `--machine`) to specify the machine type. The zone is specified with `--zone`, and the VM name is provided as a positional argument.

What should I do if I get this ACE question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.