Exam MCD - Level 1 All QuestionsBrowse all questions from this exam
Question 69

A web client sends a request to http://localhost:8081?dept=sales.

What is the correct DataWeave expression to access the value of dept?

    Correct Answer: A

    The correct DataWeave expression to access the value of 'dept' from the query parameters in a URL is 'attributes.queryParams.dept'. This syntax is used to retrieve query parameters from the request attributes in MuleSoft.

Discussion
alexstamOption: A

Its A. Correct

martademanzanaOption: A

https://developer.mulesoft.com/tutorials-and-howtos/dataweave/how-to-retrieve-custom-headers-query-uri-parameters-dataweave/