APIGEE-API-ENGINEER practice question 2 of 25
Your company runs their internal services across two datacenters in a hot-warm configuration The back-end system for a new API runs in both data centers You want to implement a proxy that handles failover between these data centers What should you do?
Full set: 126 questionsThe most appropriate and standard method in Apigee to implement a hot-warm (active-passive) failover is by using the built-in load balancing capabilities of the TargetEndpoint. This involves defining each datacenter endpoint as a TargetServer. Within the TargetEndpoint's LoadBalancer configuration, the warm datacenter's TargetServer is marked with the true property. Apigee will then direct all traffic to the primary (hot) server(s). If the health monitor detects that all primary servers are unavailable, Apigee automatically fails over and routes traffic to the designated fallback (warm) server. This declarative approach is the intended design pattern for this scenario.
A. Using a Java Callout is an overly complex, imperative approach that bypasses Apigee's built-in, optimized routing features, making the proxy harder to maintain and less performant.
B. A FaultRule's primary purpose is to catch errors and return a customized error response to the client, not to re-route the original request to a different backend.
C. Service Callouts are designed for invoking external services from within a proxy flow (e.g., for enrichment), not for handling the primary target request and its failover logic.
1. Google Cloud
Apigee Documentation
"Load balancing across backend servers": This official documentation explicitly describes the use of fallback servers for failover scenarios. In the section "Configuring fallback servers
" it states
"When Apigee determines that all your primary servers are unavailable
it automatically routes all traffic to your fallback servers...". The provided XML configuration example clearly shows the use of the true element within a definition to designate a server for failover.
Reference Location: Google Cloud > Apigee > Documentation > Reference > API proxy configuration reference > Endpoint properties reference > Load balancing across backend servers.
2. Google Cloud
Apigee Documentation
"TargetEndpoint configuration": This document details the structure of a TargetEndpoint. The element is shown as a child of
and it supports one or more elements. This confirms that load balancing and server definition are integral parts of the TargetEndpoint configuration
which is the correct place to manage backend routing and failover.
Reference Location: Google Cloud > Apigee > Documentation > Reference > API proxy configuration reference > Endpoint properties reference > TargetEndpoint configuration.
Keep practicing
Take the free APIGEE-API-ENGINEER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other APIGEE-API-ENGINEER practice questions
- Question 1In your last release, there were unexpected errors uncovered by users within the first 24…
- Question 3Which features are supported in the OAulhV2 policy'? Select all that are correct. Choose …
- Question 4Which is a benefit of three-legged OAuth (authonzation_code grant)'?
- Question 5Which Apigee product feature can be used to host and version your API documentation'?
- Question 6As an API Engineer your team would like to make sure you are simulating a user experience…
- Question 7Your API generates tokens to authenticate users. You have the following requirements 1. L…
