Skip to main content

Associate Cloud Engineer practice question · Setting up a cloud solution environment

A developer reads that a new Compute Engine flag is now available at the Beta launch stage.

A developer reads that a new Compute Engine flag is now available at the Beta launch stage. When they add the flag to their usual gcloud compute instances create command, gcloud reports that the flag is unrecognized. The gcloud CLI is already up to date. What should the developer do?

  • AInstall the beta component if needed and run the command as gcloud beta compute instances create with the flag
  • BEnable the Compute Engine API again with gcloud services enable, then rerun the same GA command
  • CCreate a new configuration with gcloud config configurations create and rerun the same GA command
  • DRequest a quota increase for Compute Engine in the project, then rerun the same GA command
Show the answer and explanation

Correct answer: A) Install the beta component if needed and run the command as gcloud beta compute instances create with the flag

gcloud exposes pre-GA functionality through separate release-level command groups such as gcloud beta and gcloud alpha. These components may need to be installed before a Beta flag can be used.

Why each option is right or wrong

  • A) Correct. gcloud organizes commands by release level. GA commands live under gcloud compute, and Beta functionality is under gcloud beta compute. The beta component isn't installed by default, so it may need to be added with gcloud components install beta.
  • B) Incorrect. The command already reaches Compute Engine. The flag is unrecognized because it isn't part of the GA command surface yet, and re-enabling the API doesn't add pre-GA flags to GA commands.
  • C) Incorrect. Named configurations only store property sets such as account, project, region and zone. They don't change which command release level or flags are available.
  • D) Incorrect. Quotas limit how many resources you can use. They don't affect whether a gcloud command recognizes a flag, which depends on the command's release level.
Exam domain
Setting up a cloud solution environment · ~20% of Associate Cloud Engineer
Question type
Multiple choice (one answer)

Practise the full Associate Cloud Engineer exam

This question is one of a small free sample from the CertRidge Associate Cloud Engineer bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with Google Cloud; never copied from the real exam.