MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 148


Refer to the exhibits. The updateTemp and getTemp flows share the same default object store.

A web client sends one GET request to the test flow's HTTP Listener, which causes the test flow to call the updateTemp flow. After the test flow returns a response, the web client then sends a different GET request to the getTemp flow's HTTP Listener. The test flow is not called a second time.

What response is returned from the request to the getTemp flow's HTTP Listener?

Show Answer
Correct Answer: D

Based on the provided flow and object store usage, each value in the payload array from the test flow is sent to the updateTemp flow, where it overwrites the previous value stored with the 'temp' key in the object store. This means the object store only retains the last value processed. The getTemp flow retrieves the value stored in the 'temp' key, which is the last value processed and stored by the updateTemp flow. Therefore, the response returned from the request to the getTemp flow's HTTP Listener would be the last value from the array, which is 85.

Discussion

4 comments
Sign in to comment
AlandtOption: B
Feb 5, 2024

Answer is B. Because the response is returned from a Database, which will be presented as an array. Also, ChatGPT: Correct answer is B.

chetan_sharmaOption: D
Feb 14, 2024

The response returned from the request to the getTemp flow’s HTTP Listener would be the last value that was stored in the Object Store during the execution of the test flow.

aook002Option: D
Apr 9, 2024

Because of the For Each loop, each value in the test flow payload array overwrites the last value that was entered into the "temp: key in the object store. The getTemp flow gets the only variable stored in the object store which would be the last one that was entered which is 85. Answer D.

minu21Option: B
Apr 29, 2024

I tried it and correct answer is B