Google Professional Cloud Network Engineer Question 191
Single answerGoogle Cloud PlatformYou are designing a VPC network for a new application in Google Cloud. The application requires multiple microservices to run on different instances within the same subnet. Each instance must have its own dedicated IP range for containerized workloads. Which approach should you take to meet this requirement?
- A
Assign alias IP ranges to the instances within the subnet.
- B
Create a separate subnet for each instance and assign unique IP ranges.
- C
Use VPC peering to connect instances and assign different IP ranges.
- D
Use Shared VPC to manage IP ranges for each instance.
Show answer and explanation
Correct answer: A
Explanation
To meet the requirement of assigning dedicated IP ranges to containerized workloads on instances within the same subnet, alias IPs are the recommended approach. Alias IP ranges enable you to assign additional IP ranges to the primary network interface of an instance, which can be used by applications or containers running on that instance.
- A. Correct.
Correct: Alias IP ranges allow you to assign additional IP ranges to an instance, which can be used by containerized workloads or other applications running on the instance.
- B. Incorrect.
Incorrect: Creating separate subnets for each instance is unnecessary and would lead to increased management complexity. Alias IPs are a better solution for this scenario.
- C. Incorrect.
Incorrect: VPC peering is used for connecting different VPC networks and is not applicable for assigning dedicated IP ranges to instances within the same subnet.
- D. Incorrect.
Incorrect: Shared VPC allows resource sharing across projects, but it does not provide a mechanism for assigning dedicated IP ranges to instances within the same subnet.