MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 100


Refer to the exhibits.

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?

Show Answer
Correct Answer: C

When the validation component in the private flow throws an error, the error is propagated to the main flow due to the 'On Error Propagate' element in the private flow's error handler. Once the error reaches the main flow, the 'On Error Continue' element in the main flow's error handler catches the error and sets the payload to 'Error - main flow'. Consequently, the response message returned to the web client request to the main flow's HTTP Listener is 'Error - main flow'.

Discussion

7 comments
Sign in to comment
Neo_0000Option: C
Sep 22, 2023

C is the correct answer. Tested in anypoint studio as well.

ilya_tsyOption: D
Sep 28, 2022

D - is the correct answer

HADAOOption: C
Oct 19, 2022

C - Error Propqgate will propagate the error to the triggered flow, after that the triggered flow will catch error by On Error Continue scope. Because of Error Continue scope type, all processes on main flow canceled and logged error by payload in Error Continue Scope

ExamDevOption: C
Jan 25, 2024

C. Error - main flow - Because we have "On Error continue" with a custom message! - The final result will be Error - main flow with status code 200

RanjansinghOption: C
Feb 8, 2023

Private flow propagate the error which is handled by main flow error handler and override the message to "Error - main flow" and no error object will be generated as it is on error continue.

Maddy_123Option: C
Mar 14, 2023

C is the answer Refer https://blogs.mulesoft.com/dev-guides/how-to-tutorials/mule4-error-handling-deep-dive/

Sowmya0249Option: C
Oct 29, 2023

C is correct. Private flow throws the error as it is having On error propagate. So The Flow ref will throw error in main flow, then the Error handler in main flow comes into the picture. so 3rd option satisfies.