MULESOFT-DEVELOPER-I practice question 28 of 30
How are query parameters dynamically passed to an outbound REST request using an HTTP Request operation?
Full set: 235 questionsThe HTTP Request operation in Mule 4 provides a specific configuration section named "Query Parameters" to build the query string of an outbound URL. To pass values dynamically, you define key-value pairs in this section, where the value for each key is a DataWeave expression. These expressions can dynamically access data from the Mule event, such as variables (vars), the payload (payload), or attributes (attributes). This is the direct and intended method for dynamically constructing query parameters like ?status=active®ion=emea for an outbound REST request.
B. URI parameters are placeholders within the URL path (e.g., /orders/{orderId}), which is distinct from query parameters.
C. The Mule event's payload is typically mapped to the HTTP request body, not used to define URL query parameters.
D. While flow variables can be the source of the data, they must be referenced via expressions within the "Query Parameters" section.
1. MuleSoft Documentation, "HTTP Connector 1.7 Reference", Request Operation. The configuration details list "Query Parameters" as a field that accepts a "Map of key-value pairs for the query string of the request."
2. MuleSoft Documentation, "Studio Visual Editor", HTTP Request Connector. The UI screenshots and descriptions clearly show the "Query Parameters" tab for adding key-value pairs, which can be set to literal or expression mode (fx).
Keep practicing
Take the free MULESOFT-DEVELOPER-I practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other MULESOFT-DEVELOPER-I practice questions
- Question 1How many Mule applications can run on a CloudHub worker?
- Question 4What does C4E stands for in MuleSoft recommended IT operating model?
- Question 15A flow needs to combine and return data from two different data sources. It contains a Da…
- Question 16What of the below is not a feature of API Notebooks?
- Question 17What should this endpoint return? http://dev.acme.com/api/patients?name=John&surname=Bell
- Question 18An API has been created in Design Center. What is the next step to make the API discovera…
