You need to create a Compute Engine instance in a new project that doesn't exist yet. What should you do?
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 is (A):
Quickstart: Creating a New Instance Using the Command Line
Before you begin
1. In the Cloud Console, on the project selector page, select or create a Cloud project.
2. Make sure that billing is enabled for your Google Cloud project. Learn how to confirm billing is enabled for your project.
To use the gcloud command-line tool for this quickstart, you must first install and initialize the Cloud SDK:
1. Download and install the Cloud SDK using the instructions given on Installing Google Cloud SDK.
2. Initialize the SDK using the instructions given on Initializing Cloud SDK.
To use gcloud in Cloud Shell for this quickstart, first activate Cloud Shell using the instructions given on Starting Cloud Shell.
https://cloud.google.com/ai-platform/deep-learning-vm/docs/quickstart-cli#before-you-begin
I would choose 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.
as first I need to create a project. Instance creation cannot automatically create a project.
I always think of "PAP" to help me with this question: Project: A new project must exist as a container for all your resources.
API: Enable the necessary API, in this case, the Compute Engine API, so you can use its services.
Provision: Now you can actually create the resource, like your Compute Engine instance.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ESP_SAP
Highly Voted 4 years agofilco72
Highly Voted 4 years agoPiperMe
Most Recent 5 months, 3 weeks agoCaptain1212
1 year agotatyavinchu
1 year agodr1ka
2 years, 8 months agojaffarali
2 years, 8 months agoalaahakim
2 years, 9 months agoarsh1916
3 years, 3 months agokopper2019
3 years, 4 months agopondai
3 years, 5 months agoDevgela
3 years, 5 months agoEABDAJA
3 years, 5 months agoneerajgoyal
3 years, 5 months agoGCP_Student1
3 years, 6 months agoJackGlemins
3 years, 6 months agolutoa
3 years, 6 months ago