Mulesoft Certified Developer Mcd · Free Practice Question Easy
Question 14
Refer to the exhibits. The Database Select operation returns five rows from a database.
What is logged by the Logger component?


-
A
LinkedHashMap
-
B
Array
-
C
CaseInsensitiveHashMap
-
D
Object
Reveal correct answer
Correct answer: B
Explanation
Mule Ref Doc : typeOf | MuleSoft Documentation
typeOf
Returns the type of a value.
Parameters
Name : value
Description : A string, object, array, number, or other supported type.
Example
This example identifies the type of several input values.
Source
- %dw 2.0output application/json---[ typeOf("A b"), typeOf([1,2]), typeOf(34), typeOf(true), typeOf({ a : 5 }) ]
Output
- [ "String", "Array", "Number", "Boolean", "Object" ]
As DB select return array as payload. Hence logger will log typeOf(Payload) as array
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
