Exam MCD - Level 1 All QuestionsBrowse all questions from this exam
Question 103

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?

    Correct Answer: B

    When the FILE:CONNECTIVITY error is thrown by the File Write operation, the error type is mapped to ORDER:NOT_CREATED. The error handling mechanism specified in the Mule application catches this mapped error, and according to the On Error Continue scope for ORDER:NOT_CREATED, it sets the payload to `ORDER:NOT_CREATED`. Therefore, the response message returned to the web client will be `ORDER:NOT_CREATED`.

Discussion
almoraimaOption: B

B is correct

LESANTI

becouse the error of write operation is mapped like a order:not_created Error

DineshsinghalOption: B

Answer is B. I am not sure why examtopics is providing wrong answer for most of the questions.

ExamDevOption: B

B is correct.

aook002Option: B

Error "FILE:CONNECTIVITY" is thrown. Because of Error mapping - treat "FILE:CONNECTIVITY" as a "ORDER:NOT_CREATED" error. The "ORDER:NOT_CREATED" error is handled via an Error On Continue, meaning the Status is 200 and the payload is set to "ORDER:NOT_CREATED". Therefore B.

AntarJalilOption: B

B is correct . I just re-created the scenario on studio to make sure. When debugging , I noticed that the "Write" step immediately is showing the error type "ORDER:NOT_CREATED" and then it goes strait to that corresponding error handling section and finally showing "ORDER:NOT_CREATED" as response.

reklame_infoOption: A

A is correct: 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.

MaxroyoOption: B

B is correct

frediepulgosoOption: B

B is correct

miguel_romeroOption: B

B is correct