MuleSoft Certified Developer - Level 1 (Mule 4) MCD-Level-1 Exam Practice Test

Page: 1 / 14
Total 235 questions
Question 1

Refer to the exhibits.

The mule application implements a REST API that accepts GET request from two URL's which are as follows

1) http://acme.com/order/status

2) http://acme.com/customer/status

What path value should be set in HTTP listener configuration so that requests can be accepted for both these URL's using a single HTTP listener event source?



Answer : C

Correct answer is */status as it is the correct way to use wildcards while configuring path value in HTTP listener


Question 2

Refer to the exhibits.

A web client submits the request to the HTTP Listener. What response message would be returned to web client?



Answer : B

Correct answer is String is not blank.

-------------------------------------------------------------------------------------------------------------------------------------------------

Here's specifically what is happening here:

1) Payload is successfully set to ''Start''

2) The Is Blank String validator creates an Error Object because the payload is string 'Start'. Execution stops

#[error.description] = ''String is not blank''

3) Because no error handler is defined, the Mule default error handler handles the error. Remember, at its heart, the Mule Default Error handler is an error handling scope with just an on error propagate

4) ''String is not blank'' is the error message returned to the requestor in the body of the HTTP requestHTTP Status Code: 500

Reference Diagram:


Question 3

Refer to the exhibits.

The expression for the Choice router needs to be written.

What is a valid expression to route Mule events to the non-default flow?



Answer : A


Question 4

Refer to the exhibits.

The input array of strings is processed by the batch job that processes, fitters, and aggregates the values.

What is the last message logged by the Logger component after the batch job completes processing?

A)

B)

C)

D)



Answer : D


Question 5

Refer to the exhibit.

In the execution of the Scatter_Gather, the flow1 route completes after 10 seconds and the flow2 route completes after 20 seconds.

How many seconds does it take for the Scatter_Gather to complete?



Answer : C


Question 6

Refer to the payload.

The Set payload transformer sets the payload to an object. The logger component's message attribute is configured with the string "Result #["INFO"++ payload]"

What is the output of logger when this flow executes?



Answer : C

Correct answer is as below as concatenation operation works only with string and not with the objects. In this case payload is object.

'You called the function '++' with these arguments:

1: String ('INFO')

2: Object ({student: {name: 'Anay' as String {class: 'java.lang.String'},age


Question 7

Refer to the exhibits.

The Mule application does NOT define any global error handlers.

The Validation component in the private flow throws an error

What response message is returned to a web client request to the main flow's HTTP Listener?



Answer : C


Page:    1 / 14   
Total 235 questions