What DataWeaveexpression transforms the example XML input to the CSV output?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Option A
Refer to the exhibit. What is the output of logger component?
A. String
B. Object
C. Array
D. Map
Database always return rows as an array.
Array is the correct answer
Refer to the exhibits.
In the choice router, the When expression for the domestic shipping
route is set to "#[payload= "FR"]".
What is the output of logger after the execution of choice router is completed?
A. "Domestic"
B. "International"
C. "US"
D. A dataweave syntax error
To compare, DataWeave syntax is #[payload == "FR"]. In this case only one = is used so it will give syntax error.
Refer to the exhibits.
What is valid text to set the field in the Database connector configuration to the username
value specified in the config.yaml file?
A. ${db.username>
B. #[db.username]
C. #[db:username]
D. ${db:username>
An SLA based policy has been enabled in API Manager. What is the next step to configure
the API proxy to enforce the newSLA policy?
A.
Add new property placeholders and redeploy the API proxy
B.
Add new environment variables and restart the API proxy
C.
Restart the API proxy to clear the API policy cache
D.
Add required headers to the RAML specification and redeploy the newAPI proxy
Add required headers to the RAML specification and redeploy the newAPI proxy
How would you debug Mule applications?
A. By Deploying apps on production
B. Checking RAML specifications
C. Using debugger component
D. Use third party debugger application
Debugger can be used to debug applications to see event data movine from one flow to other.
What MuleSoft product enables publishing, sharing, and searching of APIs?
A. Runtime Manager
B. API Notebook
C. API Designer
D. Anypoint Exchange
Anypoint Exchange provided a way to publish , share and search API's.
Refer to the exhibits.
What DataWeave expression transforms the conductorIds array to the XML output?
A. 1. 1. trains:
2. 2. conductorIds map ((engId, index) ->
3. 3. train: {
4. 4. engineerId: engId
5. 5. }
6. 6. )
B. 1. 1. { trains:
2. 2.
3. 3. conductorIds map ((engId, index) ->
4. 4. train: {
5. 5. engineerId: engId
6. 6. }
7. 7. )
8. 8. }
C. 1. 1. trains:
2. 2. {(
3. 3. conductorIds map ((engId, index) ->
4. 4. train: {
5. 5. engineerId: engId
6. 6. }
7. 7. )
8. 8. )}
D. 1. 1. {( trains:
2. 2.
3. 3. conductorIds map ((engId, index) ->
4. 4. train: {
5. 5. engineerId: engId
6. 6. }
7. 7. )
8. 8. )}
Explanation:
Points to remember:
* XML must have a root element.
* XML only allows one root element
* To avoid multiple root issues, you must create a root element for the XML output,
whenever we transform output
* When mapping array elements (JSON or JAVA) to XML, wrap the map operations in {(..)}
-{ } are defining the object
( ) are transforming each element in the array as a key/value pair
* The transformation to XML would fail if the above mentioned considerations were not
taken into account.
* Thus the transformation script declares a root element as trains and wraps the data in “{(
)}“.
Whenever you see such type of question, always look out for root element followed by {( )}
wrapping map.
I call this a "Wrap The Map" scenario. Hope it would help you remember !
Page 5 out of 29 Pages |
Mulesoft MCD-Level-1 Exam Questions Home | Previous |