Developing Solutions for Microsoft Azure (AZ-204) Practice Exam

Disable ads (and more) with a membership for a one time $2.99 payment

Developing Solutions for Microsoft Azure Exam. Prepare with flashcards and multiple choice questions, get hints and explanations for each question. Ace your test prep!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


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

  1. Set-variable

  2. Choose

  3. Remove-header

  4. Limit-call-rate

The correct answer is: 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.