Developing Solutions for Microsoft Azure (AZ-204) Practice Exam 2026 - Free Azure Practice Questions and Solutions Guide

Question: 1 / 400

Which policy in API Management allows applying multiple enclosed policy statements based on conditions?

Set-variable

Choose

The choice of selecting the 'Choose' policy in API Management is appropriate because this policy is specifically designed to evaluate conditions and execute different sets of policies based on the results of those evaluations. The 'Choose' policy allows developers to create branching logic where multiple enclosed policy statements can be defined and executed depending on whether certain conditions are met.

For instance, you can set up a 'Choose' policy to check certain headers or query parameters and then apply specific transformations, call rate limits, or other policies based on the condition being true or false. This versatility enables nuanced and adaptable API management, ensuring that the services can respond differently under varying circumstances.

In contrast, the 'Set-variable' policy is used to create or modify variables, the 'Remove-header' policy is focused solely on removing HTTP headers from requests or responses, and the 'Limit-call-rate' policy is designed to control the number of requests made to an API over a specific time period. These options do not provide the same level of conditional logic and branching capability that the 'Choose' policy offers, making 'Choose' the correct answer in this context.

Get further explanation with Examzify DeepDiveBeta

Remove-header

Limit-call-rate

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy