FoMS Experts

News / Exam Questions

QUESTION, ANSWER, EXPLANATION

Exam Question MS-21-012 for MuleSoft Certified Developer (MCD) - Level 1

Exam Question MS-21-012 for MuleSoft Certified Developer (MCD) - Level 1
Share
FacebookGoogle plusLinkedInStumbleuponTwitter
FoMS24.2.2021

This question has been asked by one of our members and a similar question could most likely be on the exam. All answers have been verified by MuleSoft certified FoMS experts.

Question

Refer to the exhibits! A web client sends a POST request with the payload {"oid": "1000", "itemid": "AC200", "qty": "4" } to the Mule application. The File Write operation throws a FILE:CONNECTIVITY error. What response message is returned to the web client?

Answer

A) FILE:CONNECTIVITY
B) ORDER:NOT_CREATED
C) OTHER ERROR
D) File written

The correct answer to this question is A.

Explanation

When the FILE:CONNECTIVITY error is thrown by the File Write operation, it is caught by the On Error Continue scope with the type FILE:CONNECTIVITY. Since it is an On Error Continue scope, it will set the payload to "FILE:CONNECTIVITY" which is then sent in a response with the HTTP 200 OK success status response code.

The error type mapping would affect the response, in a case of On Error Propagate, which then would not execute an error scope, would not set the payload and would not send a payload with the HTTP 200 OK success status response code.

Register now