MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 61


Refer to the exhibits.

In the requestFlow an HTTP Request operation is configured to send an HTTP request with an XML payload. The request is sent to the HTTP Listener in the transformFlow.

That flow transforms the incoming payload into JSON format and returns the response to the HTTP request. The response of the request is stored in a target variable named theResult.

What is the payload at the Logger component after the HTTP Request?

Show Answer
Correct Answer: B

The payload at the Logger component after the HTTP Request is the original XML payload. This is because the HTTP Request operation is configured to store the response in a target variable named 'theResult'. Therefore, the original payload, which is the XML message, remains unchanged. The JSON response from the 'transformFlow' is stored in the variable 'theResult' and does not overwrite the original payload.

Discussion

17 comments
Sign in to comment
pgarciarOption: B
Mar 26, 2021

The payload is the original XML payload

Goat1234
Sep 30, 2021

Can you explain why?

test_nick1_
Oct 9, 2021

Because, the returned payload is stored in the target variable . So the original payload which is the xml message is Intact. Ok.. SO answer is the " original xml payload" ......IF IF the returned response is not saved to target variable then the original payload gets overwritten to JSON and the answer should have been json...... But here in this case Anwer is Original XML Payload. Thanks !

IvanlmlOption: B
May 18, 2021

Yes, I did a test about this Question, the real answer is B: "The payload is the original XML payload"

ahhdarnitOption: C
Aug 20, 2021

The Answer is C. When you make an HTTP Request, you are crossing the Transport Boundary, so when returned the payload is changed

senthil_Kumar_MuruganOption: B
Dec 8, 2021

the payload will be in XML since we are storing the payload in target variable in the child flow

66666Option: B
Jan 25, 2022

the rigth answer is letter b, I did this program in anypoint studio an the answer is B

Al_HamadOption: B
Dec 8, 2021

the returned payload is stored in the target variable

trithien1Option: B
Mar 4, 2022

B is correctly

MaxroyoOption: B
Aug 26, 2022

MAT : ANSWER B

MaxroyoOption: B
Aug 29, 2022

B is correct

vibhu1996Option: B
Mar 13, 2023

The returned payload is stored in variable.

SuckerForPunishmentOption: B
Aug 1, 2023

The XML payload before the HTTP request is preserved because the response from the HTTP request goes into the target variable.

Raju039Option: B
Aug 19, 2023

B is correct

notthatgerryOption: B
Oct 24, 2023

Every time a processor stores a payload into a target variable, the payload is not affected. https://docs.mulesoft.com/mule-runtime/4.4/target-variables

peeman004Option: B
Oct 27, 2023

I tried it to be sure.

ExamDevOption: B
Jan 22, 2024

I think correct answer is B

ExamDevOption: B
Jan 25, 2024

The question is "What is the payload at the Logger component after the HTTP Request?" not "What is the value of a variable?" So payload remains the same (xml) while the varaible contains the json.

xasihih752Option: B
Feb 14, 2024

I tested using Anypoint Studio and that's the correct answer