Google Associate Cloud Engineer Question 150
Select 2Google Cloud PlatformYou are tasked with setting up a Virtual Private Cloud (VPC) in Google Cloud Platform for a new application that requires high availability across multiple regions. Which of the following steps should you take to ensure the VPC meets the application's requirements?
- A
Create a single VPC and add subnets in each region where the application will be deployed.
- B
Create multiple VPCs, one for each region, to ensure isolation and high availability.
- C
Configure subnets as regional, allowing them to span multiple availability zones within a region.
- D
Enable VPC Peering to connect subnets across different regions.
- E
Use shared VPC to host the subnets, allowing resources from multiple projects to communicate privately.
Show answer and explanation
Correct answers: A, C
Explanation
To achieve high availability across multiple regions, the best approach is to create a single VPC with subnets in each region where the application is deployed. This setup allows centralized management and communication within the VPC, while regional subnets ensure availability across different zones within those regions. These configurations meet the requirements for a robust and scalable network architecture.
- A. Correct.
Correct: Creating a single VPC with regional subnets in each region allows the application to be deployed across multiple regions while maintaining a single network structure.
- B. Incorrect.
Incorrect: Creating multiple VPCs would increase complexity and is unnecessary for high availability across regions within a single project.
- C. Correct.
Correct: Configuring subnets as regional ensures that they can operate across multiple availability zones within a region, enhancing availability.
- D. Incorrect.
Incorrect: VPC Peering is used to connect different VPCs, not subnets across regions within the same VPC.
- E. Incorrect.
Incorrect: Shared VPC is used for resource sharing across projects, not specifically for regional high availability within a single application setup.