Google Cloud Certified Associate Cloud Engineer Practice

Disable ads (and more) with a membership for a one time $2.99 payment

Prepare for the Google Cloud Certified Associate Cloud Engineer Exam. Engage with interactive quizzes and detailed explanations tailored to help you master key concepts. Ensure you're ready for a successful career in the cloud computing industry!

Practice this question and more.


What is the Compute Engine metadata key that allows you to run code at startup?

  1. startup-code

  2. init-script

  3. bootstrap-code

  4. startup-script

The correct answer is: startup-script

The Compute Engine metadata key that allows you to run code at startup is "startup-script". This key is specifically designed to run code when your instance boots up. Option A is incorrect because there is no Compute Engine metadata key called "startup-code". Option B is incorrect because it refers to MetaData as "init-script" whereas it should be "startup-script". Option C is incorrect because "bootstrap-code" is not a Compute Engine metadata key. Make sure to use the correct metadata key "startup-script" to run code at startup.