nerdexam
MuleSoft

MCD-LEVEL-1 · Question #22

Refer to the exhibit. What Database expression transforms the input to the output? A) B) C) D)

The correct answer is D. Option D. This kind of questions are best solved with filtering technique. Key thing to note here is XML attributes are always access by @ notation. So in this example orderId can be accessed as @OrderId which makes option 3 and option 4 false. Now difference in optin and option 2 is in…

Consume and Transform Data

Question

Refer to the exhibit. What Database expression transforms the input to the output? A) B) C) D)

Exhibit

MCD-LEVEL-1 question #22 exhibit

Options

  • AOption A
  • BOption B
  • COption C
  • DOption D

How the community answered

(46 responses)
  • A
    2% (1)
  • B
    11% (5)
  • C
    7% (3)
  • D
    80% (37)

Explanation

This kind of questions are best solved with filtering technique. Key thing to note here is XML attributes are always access by @ notation. So in this example orderId can be accessed as @OrderId which makes option 3 and option 4 false. Now difference in optin and option 2 is in mapping of lineItemPrice. Correct syntax to format a String in Numbse is value.price as Number. Hence option 2

Topics

#DataWeave#Database connector#data transformation

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice