An organization exposes an internal human resources API through Azure API Management (APIM). The API must meet the following security requirements:
1. Restrict access to clients originating from the IP subnet .
2. Validate a JSON Web Token (JWT) issued by Microsoft Entra ID before routing the request to the backend service.
A developer defines the following APIM policy:
xml
<policies>
<inbound>
<base />
</inbound>
<backend>
<base />
</backend>
<outbound>
<ip-filter action="allow">
<address-subnet>192.168.100.0/24</address-subnet>
</ip-filter>
<jwt-validate header-name="Authorization" failed-validation-httpcode="401" failed-validation-error-message="Unauthorized">
<openid-config url="https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration" />
</jwt-validate>
<base />
</outbound>
<on-error>
<base />
</on-error>
</policies>
Which of the following describes the behavior of this policy configuration?
- The backend service will receive and process unauthorized and unfiltered requests because the IP filtering and JWT validation policies are defined in the outbound section, which executes after the backend service responds.Cevap
- BThe API Management gateway will block all incoming requests before they reach the backend because security-related policies placed in the outbound section are automatically hoisted and executed during the inbound pipeline.
- CThe policy will fail at runtime because the JWT validation policy requires a system-assigned managed identity to authenticate and fetch the OpenID Connect metadata document from the Microsoft Entra ID endpoint.
- DThe policy will throw a runtime error during JWT validation because APIM requires a Key Vault access policy to retrieve the public keys needed to verify the token's signature.