
Answer-first summary for fast verification
Answer: Configure a TargetServer for each region's backend host names. Configure the API proxy to choose the TargetServer based on the system.region.name flow variable.
The correct approach is to leverage Apigee's built-in system variables to dynamically route traffic based on the region. The `system.region.name` flow variable holds the region where the Apigee instance is running. By configuring separate TargetServers for each backend (Region 1 and Region 2) and using a conditional RouteRule in the TargetEndpoint to select the TargetServer matching the current region, traffic is automatically routed to the local backend. This solution avoids reliance on external load balancers or DNS configurations and directly uses Apigee's native capabilities for region-aware routing. Options A and C involve load balancing strategies that do not guarantee region-specific routing, while Option B introduces unnecessary complexity with regional load balancers and DNS records.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How should you configure Apigee to route traffic to the local region backend when you have deployed an API proxy across two regions, each with its own backend hosting the API?
Apigee Instance Region 1 → Backend Region 1
Apigee Instance Region 2 → Backend Region 2
A
Create a TargetEndpoint with a weighted load balancing algorithm. Configure the API proxy to use the same weights for each region's backend.
B
Configure a regional internal Application Load Balancer in each region, and use health checks to verify that each backend is active. Create a DNS A record that contains the IP addresses of both regions' load balancers. Configure a Targetserver for each region that uses this DNS name.
C
Configure a global external Application Load Balancer and configure each region’s backend with a different regional backend service. Each region communicates to this single global external Application Load Balancer as its TargetServer.
D
Configure a TargetServer for each region's backend host names. Configure the API proxy to choose the TargetServer based on the system.region.name flow variable.
No comments yet.