ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 121 - MCD - Level 1 discussion

Report
Export

Refer to the exhibits.

<a target='_blank' href='http://localhost:8081/'>What is the response when a client submits a request to http://localhost:8081?</a>

A.
After
Answers
A.
After
B.
null
Answers
B.
null
C.
Before
Answers
C.
Before
D.
Validation error
Answers
D.
Validation error
Suggested answer: D

Explanation:

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

Here's specifically what is happening here:

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

2) Is null validation is used which will pass the message only if payload is null. In this case as payload is not null, it creates an Error Object. Flow execution stops

#[error.description] = ''Validation error''

3) Because no error handler is defined, the Mule default error handler handles the error

4) ''Validation error'' is the error message returned to the requestor in the body of the HTTP request with HTTP Status Code: 500

Reference diagram:

asked 18/09/2024
Kushantha Gunawardana
49 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first