MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 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?

Show Answer
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

2 comments
Sign in to comment
alexstamOption: A
Feb 14, 2023

Its A. Correct

martademanzanaOption: A
Nov 12, 2023

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