Which of the following is invalid type of event processor which can be used as a router?
A. Choice
B. Round Robin
C. Pick First
D. First Successful
Pick First is not valid type. Rest all are valid type of event processor.
How can you call a subflow from Dataweave?
A. Not possible in Mule 4
B. Import function
C. Lookup function
D. Include function
This is a trick question.
You can call only flows from DataWeave using lookup function. Note that lookup function
does not support calling subflows.
A subflow needs a parent context to inherit behaviors from such as exception handling,
which a flow does not need.
Hence correct answer is Not possible in Mule 4
Refer to the exhibit.
What is the correct syntax to add a customer ID as a URI parameter in an HTTP Listener's
path attribute?
A. (customerlD)
B. {customerlD}
C. #[customerlD]
D. ${ customerID}
Refer to the exhibit.
The default scope in choice router recursively calls the color flow.
A web client sends a PUT request to the HTTP listener with payload Blue.
What response is returned to the web client?
A. "Blk"
B. "Green"
C. A timeout error
D. ["Blue", "Red", "Blk"]
Explanation:
Sequence can be described as follows.
* When web client sends the request , it sends payload as Blue (mentioned in question)
* In first iteration this will go to default choice , which sets payload to Red
* Via default route , flow will call itself with payload as Red
* In second iteration , as payload is Red , it will go to first route in choice router which will
set payload to Blk and second iteration will end returning back payload as Blk to first iteration.
* This Blk will be again set to payload and first iteration will end returning back response as Blk
Refer to the exhibits.
A web client submits a request to http://localhQst:8081 /flights. What is the result at the end
of the flow?
A.
"string"
B.
"Java"
C.
"object"
D.
"XML"
"object"
Refer to the exhibit.
What should be changed to fix the 415 error?
A.
set the response Content-Type header to text/plain
B.
set the response Content-Type header to application/json
C.
Set the request Content-Type header toapplication/] son
D.
set the request Content-Type header to text/plain
Set the request Content-Type header toapplication/] son
Refer to the exhibits.
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Option C
What is the correct way to format the decimal 200.1234 as a string to two decimal places?
A. 200.1234 as string as format: ".0#"
B. 200.1234 as String {format: ".0#"}
C. 200.1234 as String as format: ".0#"
D. 200.1234 as string {format: ".0#"}
Correct answer is 200.1234 as String {format: ".0#"} . Rest all options are not syntactically correct.
Page 4 out of 29 Pages |
Mulesoft MCD-Level-1 Exam Questions Home | Previous |