FoMS Experts

News / Exam Questions

QUESTION, ANSWER, EXPLANATION

Exam Question MS-21-031 for MuleSoft Certified Developer (MCD) - Level 1

Exam Question MS-21-031 for MuleSoft Certified Developer (MCD) - Level 1
Share
FacebookGoogle plusLinkedInStumbleuponTwitter
FoMS12.4.2021

This question has been asked by one of our members and a similar question could most likely be on the exam. All answers have been verified by MuleSoft certified FoMS experts.

Question

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

A) bookISBN
B) attributes.bookISBN
C) flowVars.bookISBN
D) vars.bookISBN

The correct answer to this question is D.

Explanation

To access a value of any flow variable, it is necessary to use "vars." before the name of the variable.

Register now