APIGEE-API-ENGINEER practice question 24 of 25

Which proxy endpoint configuration determines the target endpoint that will be used?

Full set: 126 questions
Answer options
A: Step
B: TargetConfiguration
C: RouteRule Correct answer
D: Connection
E: Path
Correct Answer:
C. RouteRule
Explanation

The RouteRule is the specific configuration element within an API proxy's ProxyEndpoint that determines which TargetEndpoint will process the request. RouteRules are evaluated after all policies in the ProxyEndpoint's PostFlow. They can contain conditional logic, allowing a single ProxyEndpoint to dynamically route requests to different backend services (defined by different TargetEndpoints) based on headers, query parameters, or other variables in the request. If no conditional RouteRule evaluates to true, a default RouteRule (one without a condition) is executed.

Why Incorrect

A. Step: A Step is a container for a policy within a flow; it executes a specific action but does not handle routing between endpoints.
B. TargetConfiguration: This is not a valid XML element within the Apigee ProxyEndpoint configuration for defining routing logic.
D. Connection: The Connection element (or HTTPTargetConnection) is part of a TargetEndpoint's configuration and defines the backend service URL, not the routing rule itself.
E. Path: A Path is typically used in a flow's condition to match an incoming request URI, but the RouteRule makes the final routing decision to a TargetEndpoint.

References

1. Google Cloud Apigee Documentation, "API proxy configuration reference": Under the "ProxyEndpoint configuration" section, the RouteRule element is defined. The documentation states, "A RouteRule forwards a request to the TargetEndpoint of the API proxy... By creating more than one RouteRule, you can route requests to different TargetEndpoints based on... differences in the request message." This directly confirms that RouteRule determines the target.

2. Google Cloud Apigee Documentation, "Endpoint properties reference": This reference details the structure of ProxyEndpoint and TargetEndpoint. It shows that RouteRule is a child element of ProxyEndpoint and is used for "conditional routing to targets." Conversely, it shows that connection properties like URL are configured within the HTTPTargetConnection element of a TargetEndpoint, not the ProxyEndpoint.

Scroll to Top