Google Professional Cloud Network Engineer Question 390
Select 2Google Cloud PlatformYou are configuring backend services for a new application on Google Cloud. The application has two components: a web server and a batch processing system. The web server requires an external HTTP(S) load balancer to route traffic to Compute Engine VMs, while the batch processing system uses internal IPs to communicate within the network. Which backend configurations should you use to meet these requirements?
- A
Create an internet NEG for the web server and configure it with the external HTTP(S) load balancer.
- B
Use a zonal NEG with GCE_VM_IP_PORT for the web server to integrate with the external HTTP(S) load balancer.
- C
Set up a managed instance group as the backend for the batch processing system to handle internal traffic.
- D
Use an internal HTTP(S) load balancer with a zonal NEG for the batch processing system.
- E
Configure the backend service for the web server to use the batch processing system's internal IPs.
Show answer and explanation
Correct answers: B, C
Explanation
To meet the requirements, the web server must use an external HTTP(S) load balancer with a zonal NEG (GCE_VM_IP_PORT) to route traffic to Compute Engine VMs. The batch processing system, on the other hand, benefits from a managed instance group to manage and scale internal traffic efficiently. Internet NEGs and internal HTTP(S) load balancers are not suitable for this use case, and the backend services for the web server and batch system should remain distinct.
- A. Incorrect.
Incorrect. An internet NEG is used for external endpoints not hosted on Compute Engine, like services running outside Google Cloud or on-premises. This is not appropriate for the web server hosted on Compute Engine VMs.
- B. Correct.
Correct. A zonal NEG with GCE_VM_IP_PORT is the correct configuration for Compute Engine VMs to integrate with the external HTTP(S) load balancer, as it allows the load balancer to route traffic directly to VM instances.
- C. Correct.
Correct. A managed instance group is the appropriate backend for batch processing systems since it allows scaling and handling of internal traffic within the network.
- D. Incorrect.
Incorrect. While an internal HTTP(S) load balancer can handle internal traffic, in this scenario, the batch processing system does not require load balancing; it communicates directly via internal IPs.
- E. Incorrect.
Incorrect. The backend service for the web server should not use the batch processing system's internal IPs, as they serve different purposes and are not interconnected in this way.