Request Transformation Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering API Management for AI

What you'll be asked

  1. Which policy in Azure API Management is primarily used to modify the body of an incoming request before it reaches the backend service?
  2. When using the 'set-header' policy in the inbound section of an API Management policy, what happens if the header already exists?
  3. You need to transform a JSON request body from an external client to match the schema expected by an Azure OpenAI backend. Which approach is most efficient for complex transformations?
  4. If you want to hide internal backend details from the client, which policy should you use to modify the response headers before they are sent back?
  5. You are implementing a request transformation that uses the 'set-body' policy with a Liquid template. You need to access a specific value from a custom header named 'X-User-ID' to inject it into the JSON body. What is the correct syntax to reference this header?

Answers and explanations come after you submit.