MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 127


Refer to the exhibits. The main flow contains an HTTP Request operation configured to call the child flow’s HTTP Listener.

A web client sends a GET request the HTTP Listener with the qty query parameter set to 30.

After the HTTP Request operation completes, what parts of the Mule event at the main flow’s Logger component are the same as the Mule event that was input to the HTTP Request operation?

Show Answer
Correct Answer: C

In MuleSoft, when an HTTP Request operation completes, the variables set before the request are maintained, but the payload and attributes usually reflect the response received from the request. In this case, after the HTTP Request operation, the only parts of the Mule event that do not change are the variables. The payload is updated by the child flow and the attributes are related to the HTTP response. Therefore, the correct answer is that only the variables remain the same.

Discussion

5 comments
Sign in to comment
AntarJalilOption: C
Jan 28, 2024

Correct answer is “C”. I have re- created the scenario on Studio to confirm it. Request operation input : (I have placed an extra logger just before the request operation) "flow": "main", "qty Attribute": "30", "quantity Var": "30", "payload": "\"Order01\"" Logger after the request operation : "flow": "main", "qty Attribute": null, "quantity Var": "30", "payload": "\"child flow finished\"" In this particular case, the payload was changed at the child flow. Then , after the request operation completes , the only part of the mule event that did not changed was the variable “quantity”.

Alandt
Feb 5, 2024

You are correct

ExamDevOption: B
Jan 23, 2024

In MuleSoft, when a web client sends a GET request to the HTTP Listener with the qty query parameter set to 30, and the HTTP Request operation completes, the parts of the Mule event at the main flow's Logger component that are the same as the input Mule event to the HTTP Request operation depend on the configuration of your flow. However, typically, in MuleSoft, the answer would be: B. The payload and all variables This means that the payload and all variables in the Mule event at the Logger component would be the same as the Mule event that was input to the HTTP Request operation. The payload represents the data being transferred, and variables store additional information that can be carried along with the Mule event.

AlandtOption: C
Feb 5, 2024

ChatGPT: C. All variables. In MuleSoft, variables set before an HTTP Request are maintained after it executes, but the payload and attributes typically change to reflect the response of the request.

AlandtOption: C
Feb 5, 2024

Everyone says answer is C: https://help.mulesoft.com/s/question/0D56R00008fJNMHSA4/mule-4-training-question-on-variable-scope

minu21Option: D
May 8, 2024

Correct answer is D