Microsoft Azure Developer Associate AZ-204 Practice Question
You are configuring an Azure API Management instance for an internal API. The OpenAPI specification declares the "X-Correlation-Id" header as a required parameter. The gateway must return HTTP 400 immediately if a request is missing this header so that the backend service is never called. In which policy section should you add a validate-parameters policy to enforce this requirement?
validate-parameters can be used to reject requests that do not satisfy parameter requirements defined in the API schema. When placed in the inbound section, the policy evaluates the request before it is forwarded to the backend, allowing the gateway to return HTTP 400 if the X-Correlation-Id header is absent. The backend section executes after inbound processing, and the outbound and on-error sections run only after the backend has been invoked or an error has occurred, so none of those sections can stop the request before it reaches the backend.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why is the inbound section used for validation?
Open an interactive chat with Bash
What are the other policy sections used for?
Open an interactive chat with Bash
What is the purpose of the validate-parameters policy?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Connect to and consume Azure services and third-party services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .