nerdexam
MuleSoft

MCD-LEVEL-1 · Question #28

MCD-LEVEL-1 Question #28: Real Exam Question with Answer & Explanation

The correct answer is A. Response body: "Error" Default response status code: 200. Correct Answer: Response body: "Error" Default response status code: 200. -------------------------------------------------------------------------------------------------------------------------------------- 1) Payload is successfully set to "Success - Started Flow" 2) When HTTP

Question

Refer to the exhibits. A web client submits a request to the HTTP Listener and the HTTP Request throws an error. What payload and status code are returned to the web client? Refer to the exhibits. A web client submits a request to the HTTP Listener and the HTTP Request What payload and status code are returned to the web client?

Exhibits

MCD-LEVEL-1 question #28 exhibit 1
MCD-LEVEL-1 question #28 exhibit 2
MCD-LEVEL-1 question #28 exhibit 3

Options

  • AResponse body: "Error" Default response status code: 200
  • BResponse body: "Success - Begin* Default response status code: 200
  • CError response body: error, description Default error response status code: 500
  • DResponse body: "Success - End" Default response status code: 200

Explanation

Correct Answer: Response body: "Error" Default response status code: 200. -------------------------------------------------------------------------------------------------------------------------------------- 1) Payload is successfully set to "Success - Started Flow" 2) When HTTP Request throws an error, execution halts #[error.description] = "ABC" #[error.errorType] = "XYZ" 3) The On Error Continue scope handles the error. When On Error Continue scope is invoked, all the processors in error block are executed and success response is sent back to the client with payload which is set in error flow. In this case payload is set to "Error" value in error block. 4) "Error" is returned to the requestor in the body of the HTTP request with HTTP Status Code: 200 as On error continue always sends success error code.

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice