nerdexam
MuleSoft

MCD-LEVEL-1 · Question #11

Refer to the exhibits. The Validation component in the private flow throws an error. What response message is returned to a client request to the main flow's HTTP Listener?

The correct answer is B. Error - main flow. Error in validation component will get processed by Processer level On Error Propagate block and then error will be rethrown which will get processed by flow level error handler which will set 1) Request is received by HTTP listener 2) Try scope gets executed 3) The validator…

Mule 4 Application Development

Question

Refer to the exhibits. The Validation component in the private flow throws an error. What response message is returned to a client request to the main flow's HTTP Listener?

Exhibit

MCD-LEVEL-1 question #11 exhibit

Options

  • AError - private flow
  • BError - main flow
  • CSuccess - main flow
  • DValidation Error

How the community answered

(30 responses)
  • A
    7% (2)
  • B
    83% (25)
  • C
    7% (2)
  • D
    3% (1)

Explanation

Error in validation component will get processed by Processer level On Error Propagate block and then error will be rethrown which will get processed by flow level error handler which will set 1) Request is received by HTTP listener 2) Try scope gets executed 3) The validator component in the Try scope creates an Error Object because the payload is not null. 4) The On Error Propagate handles the error. The payload is set to "Error - Try scope" 6) "Error - Try scope" is returned to the 'On Error Continue' block. Main flow execution stops. Payload is set to "Error - main flow" 7) "Error - main flow" is returned to the requestor in the body of the HTTP request. HTTP Status -------------------------------------------------------------------------------------------------------------------------------------- new question on error handling in real exam: https://docs.mulesoft.com/mule-runtime/4.3/on-error-scope-concept#on-error-continue

Topics

#error propagation#private flow#error scope#error handling

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice