Practice Exam

Question 19 of 75

Understand API Management URI Rewriting

You work as an API Gateway Administrator for MDFT Pro, a well-known training agency that provides professional certification courses globally. Mark, the Integration Architect, has configured an Azure API Management policy for the Student Assignment Submission API.

The policy examines the Content-Length header to route requests appropriately. When students submit assignments with large attachments (body size > 512KB), such as project portfolios or video presentations, the policy applies two transformations:

  1. It uses rewrite-uri with template="/put" to change the request path
  2. It uses set-backend-service with base-url=“mdftpro.com/api/9.1/” to point to a backend optimized for large file handling.

A developer has questioned whether a GET request with a body size larger than 512KB would be redirected to the URL “mdftpro.com/api/9.1/put”.

What is the behavior when these two policies are applied to a request meeting the size condition?

Choose the correct answer from the options below.

Explanations for each answer:

Learn more about Set Backend Service:
Backend Service Policy
Next Question
Discuss this question on social media: