Google Professional Cloud Network Engineer Question 193
Single answerGoogle Cloud PlatformYou are designing a new VPC in Google Cloud for a multi-tier application. The application requires three subnets: one for the web tier, one for the application tier, and one for the database tier. Additionally, you need to assign alias IP ranges to the application tier subnet to accommodate containerized workloads. Which of the following is the most important consideration when planning the subnets and alias IP ranges?
- A
Ensure the alias IP ranges are within the primary IP range of the VPC.
- B
Assign alias IP ranges that do not overlap with the primary IP range of the subnet.
- C
Allocate a secondary IP range to the subnet for assigning alias IPs.
- D
Use the same alias IP range across multiple subnets for simplicity.
Show answer and explanation
Correct answer: C
Explanation
To use alias IPs in a Google Cloud VPC, a secondary IP range must be allocated to the subnet. Alias IPs are assigned from this secondary range to support features like containerized workloads. This allocation is a key step during planning for subnets and alias IPs.
- A. Incorrect.
Alias IP ranges do not need to be within the primary IP range of the VPC. Instead, they are assigned from a secondary IP range of a subnet.
- B. Incorrect.
Alias IP ranges cannot overlap with the primary IP range of a subnet, but this is not the most critical consideration during planning. A secondary IP range must be allocated first.
- C. Correct.
To use alias IPs in a subnet, a secondary IP range must first be allocated to that subnet. Alias IPs are then assigned from this secondary range.
- D. Incorrect.
Using the same alias IP range across multiple subnets would lead to IP conflicts and is not recommended. Each subnet should have unique IP ranges.