Google Cloud Associate Cloud Engineer — Question 117
You need to create a Compute Engine instance in a new project that doesn't exist yet. What should you do?
Answer options
- 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.
Correct answer: A
Explanation
The correct answer is A, as it outlines the necessary steps of creating a project, enabling the Compute Engine API specifically for that project, and then creating the instance. Option B is incorrect because it suggests enabling the API in the Cloud Console first, which does not create the project. Option C does not pre-create the project before trying to create an instance, and option D misguides by indicating a non-existent option in the creation form for a new project.