You are building a microservices gateway using an Azure API Management (APIM) instance. You need to restrict access to one of the microservices by filtering incoming traffic based on the sender's IP address. In which policy section of the API's policy XML definition must you place the ip-filter policy?
- <inbound>Cevap
- B<outbound>
- C<backend>
- D<on-error>
Cevap
The <inbound> policy section
The correct answer is the <inbound> section. In Azure API Management, the policy execution pipeline is divided into four main sections: inbound, backend, outbound, and on-error. The <inbound> section is executed immediately when a request is received from a client, before it is sent to the backend. Since the goal of IP filtering is to prevent unauthorized clients from reaching the backend API, placing the ip-filter policy within the <inbound> block is correct and ensures security at the entry point.
Adım Adım Çözüm
Anahtar Kavram
Azure API Management policy execution pipeline structure