Question
You are configuring a custom connector for a web service. The web service is hosted in two different regions. The web service URL includes a common domain name and a unique sub-domain for each region.
The custom connector must allow the region to be entered for additional regions when creating the connection.
You need to create a policy template.
Which template type should you use?
- A. Set HTTP header
- B. Route request
- C. Set host URL Correct
- D. Set query string parameter
Explanation
The Set host URL policy template replaces the host of each request at runtime, and its value can reference a connection parameter, for example a region entered when the connection is created, so the regional sub-domain is built dynamically. Route request changes the path of the operation rather than the host, and Set HTTP header and Set query string parameter only change headers or query parameters, leaving the request going to the same host.