MuleSoft Certified Developer – Level 1 — Question 24
A web client submits a request to http://localhost:8081/books/0471767840. The value `0471767840` is captured by a Set Variable transformer to a variable named bookISBN.
What is the DataWeave expression to access bookISBN later in the flow?
Answer options
- A. attributes.bookISBN
- B. flowVars.bookISBN
- C. vars.bookISBN
- D. bookISBN
Correct answer: D
Explanation
The correct answer is D because when a variable is set in a flow, it can be accessed directly by its name. The other options (A, B, and C) refer to different scopes or contexts that do not apply to the variable directly set as bookISBN.