ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 163 - Professional Cloud Network Engineer discussion

Report
Export

You ate planning to use Terraform to deploy the Google Cloud infrastructure for your company, The design must meet the following requirements

* Each Google Cloud project must represent an Internal project that your team Will work on

* After an Internal project is finished, the infrastructure must be deleted

* Each Internal project must have Its own Google Cloud project owner to manage the Google Cloud resources.

* You have 10---100 projects deployed at a time

While you are writing the Terraform code, you need to ensure that the deployment is simple and the code is reusable With centralized management What should you do?

A.
Create a Single project and additional VPCs for each internal project
Answers
A.
Create a Single project and additional VPCs for each internal project
B.
Create a Single Shared VPC and attach each Google Cloud project as a service project
Answers
B.
Create a Single Shared VPC and attach each Google Cloud project as a service project
C.
Create a Single project and Single VPC for each internal project
Answers
C.
Create a Single project and Single VPC for each internal project
D.
Create a Shared VPC and service project for each internal project
Answers
D.
Create a Shared VPC and service project for each internal project
Suggested answer: D

Explanation:

The correct answer is D because it meets the following requirements:

Each internal project has its own Google Cloud project, which can be easily created and deleted by Terraform using the google_project resource1.

Each internal project has its own Google Cloud project owner, which can be assigned by Terraform using the google_project_iam_member resource1.

The deployment is simple and the code is reusable with centralized management, because the Shared VPC allows you to connect multiple service projects to a single host project that contains the network resources2.This way, you can use Terraform modules to create and manage the network resources in the host project, and then reference them in the service projects3.

Option A is incorrect because it does not create separate Google Cloud projects for each internal project, which makes it harder to delete the infrastructure and assign project owners.Option B is incorrect because it does not create separate Google Cloud projects for each internal project, and also because it attaches the service projects to a Shared VPC, which is not recommended for short-lived projects2. Option C is incorrect because it does not use a Shared VPC, which means that each internal project has to create and manage its own network resources, which increases complexity and reduces reusability.

google_project - Terraform Registry

Managing infrastructure as code with Terraform, Cloud Build, and GitOps | Google Cloud

Automating your automation by Creating Google Cloud Projects Automatically

asked 18/09/2024
Hariett Mambo
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first