MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 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?

Show Answer
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

9 comments
Sign in to comment
almoraimaOption: B
Mar 28, 2021

B is correct

LESANTI
May 12, 2021

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

DineshsinghalOption: B
Jun 19, 2021

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

ExamDevOption: B
Jan 23, 2024

B is correct.

miguel_romeroOption: B
Dec 15, 2021

B is correct

frediepulgosoOption: B
Mar 7, 2022

B is correct

MaxroyoOption: B
Aug 29, 2022

B is correct

reklame_infoOption: A
Nov 13, 2023

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.

AntarJalilOption: B
Jan 8, 2024

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.

aook002Option: B
Apr 20, 2024

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.