Exam MCD - Level 1 All QuestionsBrowse all questions from this 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?

    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
AlandtOption: B

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

minu21Option: B

I tried it and correct answer is B

aook002Option: D

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.

chetan_sharmaOption: D

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.