MCD-LEVEL-1 · Question #33
A flow needs to combine and return data from two different data sources. It contains a Database SELECT operation followed by an HTTP Request operation. What is the method to capture both payloads so…
The correct answer is D. Save the payload from the Database SELECT operation to a variable. Correct answer is Save the payload from the Database SELECT operation to a variable Response from HTTP request will override the payload and hence response of database SELECT can be lost. Best way to preserve is to assign payload of first operation to variable using…
Question
A flow needs to combine and return data from two different data sources. It contains a Database SELECT operation followed by an HTTP Request operation. What is the method to capture both payloads so the payload from the second request does not overwrite that from the first?
Options
- APut the Database SELECT operation inside a Cache scope
- BPut the Database SELECT operation inside a Message Enricher scope
- CNothing, previous payloads are combined into the next payload
- DSave the payload from the Database SELECT operation to a variable
How the community answered
(34 responses)- A6% (2)
- B12% (4)
- C3% (1)
- D79% (27)
Explanation
Correct answer is Save the payload from the Database SELECT operation to a variable Response from HTTP request will override the payload and hence response of database SELECT can be lost. Best way to preserve is to assign payload of first operation to variable using TransformMessage.
Topics
Community Discussion
No community discussion yet for this question.