
Answer-first summary for fast verification
Answer: Using the Cloud SDK, create a new project, enable the Compute Engine API in that project, and then create the instance specifying your new project.
The correct answer is A. To create a Compute Engine instance in a new project that doesn't exist yet, you first need to create a new project using the Cloud SDK, enable the Compute Engine API in that project, and then create the instance specifying your new project. This sequence ensures that all required steps are completed in the correct order, avoiding any missing prerequisites. Enabling APIs and creating the project are necessary preliminary steps before creating resources like instances.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
To create a Compute Engine instance, you must first set up a new project within Google Cloud Platform (GCP), as the project where the instance will reside does not currently exist. What steps should you take to achieve this?
A
Using the Cloud SDK, create a new project, enable the Compute Engine API in that project, and then create the instance specifying your new project.
B
Enable the Compute Engine API in the Cloud Console, use the Cloud SDK to create the instance, and then use the --project flag to specify a new project.
C
Using the Cloud SDK, create the new instance, and use the --project flag to specify the new project. Answer yes when prompted by Cloud SDK to enable the Compute Engine API.
D
Enable the Compute Engine API in the Cloud Console. Go to the Compute Engine section of the Console to create a new instance, and look for the Create In A New Project option in the creation form.
No comments yet.