A flow contains an HTTP Listener as the event source. What is the DataWeave expression to log the Content-Type header using a Logger component?
A. #["Content-Type: " ++ attributes.headers.'content-type']
B. #["Content-Type: " + headers.'content-type']
C. #["Content-Type: " + attributes.headers.'content-type']
D. #["Content-Type: " ++ headers.'content-type']
Explanation: Option 1 is the only correct choice due to two reasons. 1) Concatenation is always with ++ sign and not with + sign which makes option 2 and 3 wrong 2) hearders can be accessed with attributes. headers and not with only headers which makes option 4 incorrect.
What is the difference between a subflow and a sync flow?
A. No difference
B. Subflow has no error handling of its own and sync flow does
C. Sync flow has no error handling of its own and subflow does
D. Subflow is synchronous and sync flow is asynchronous
Explanation:
Correct answer is Subflow has no error handling implementation where as sync flow has Subflow:
A subflow processes messages synchronously (relative to the flow that triggered its
execution) and always inherits both the processing strategy and exception strategy
employed by the triggering flow. While a subflow is running, processing on the triggering
flow pauses, then resumes only after the subflow completes its processing and hands the
message back to the triggering flow.
Synchronous Flow:
A synchronous flow, like a subflow, processes messages synchronously (relative to the
flow that triggered its execution). While a synchronous flow is running, processing on the
triggering flow pauses, then resumes only after the synchronous flow completes its
processing and hands the message back to the triggering flow. However, unlike a subflow,
this type of flow does not inherit processing or exception strategies from the triggering flow.
This type of flow processes messages along a single thread, which is ideally suited to
transactional processing.
How we can scale deployed Mule application vertically on cloudhub?
A. Changing worker size
B. Adding multiple workers
C. Mule applications can be scaled only horizontally
D. Option 1 and 2 both can be used
Explanation: Mule applications can be scaled vertically by changing worker size. Mule applications can be scaled horizontally by adding more workers.
Refer to the exhibits.
The Set Payload transformer's value is set to {'year': '2020'}.
What message value should be added to the Logger component to output the message
'The year is 2020', withouthardcoding 2020?
A.
#[The year is $(pay load .year)]*
B.
The year is #[payload.year]'
C.
'#[The year is " + paytoad.year]'
D.
#["The year is "++ payload.year].
#["The year is "++ payload.year].
Refer to the exhibit. The Batch Job processes, filters and aggregates records, What is the
expected output from the Logger component?
A.
[10. 20, 30. 40, 50, 60]
B.
[10. 20] [30, 40] [50, 60]
C.
[20, 40, 60]
D.
[20. 40] [60]
[20. 40] [60]
Refer to the exhibits.
The<when> expression for the Choice router needs to be written.
What is a valid <when> expression to route Mule events to the non-default flow?
A.
#['MuleSoft' == paytoad.company]
B.
#[ company = "MuleSoft" ]
C.
#[ if( company = "MuleSoft") ]
D.
#[ if('MuleSoff == payload.company) ]
#['MuleSoft' == paytoad.company]
How are multiple conditions used in a Choice router to route events?
A. To route the same event to the matched route of EVERY true condition
B. To find the FIRST true condition, then distribute the event to the ONE matched route.
C. None of these
D. To find the FIRST true condition, then route the same event to the matched route and ALL FOLLOWING routes
Explanation:
Choice router finds the FIRST true condition, then distribute the event to the ONE matched
route.
MuleSoft Doc Ref : https://docs.mulesoft.com/mule-runtime/4.1/choice-router-concept
The Choice router dynamically routes messages through a flow according to a set of
DataWeave expressions that evaluate message content. Each expression is associated
with a different routing option. The effect is to add conditional processing to a flow, similar
to an if/then/else code block in most programming languages.
Only one of the routes in the Choice router executes, meaning that the first expression that
evaluates to true triggers that route’s execution and the others are not checked. If none of
the expressions are true, then the default route executes.
Refer to the exhibits.
The orders.csv file is read, then processed to look up the orders in a database. The Mule
application is debugged in Any point Studioand stops at the breakpoint.
What is the payload shown in the debugger at this breakpoint?
A.
"none"
B.
The entire CSV file
C.
The database response
D.
100
100
| Page 1 out of 29 Pages |