nerdexam
MuleSoft

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…

Consume and Transform Data

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)
  • A
    6% (2)
  • B
    12% (4)
  • C
    3% (1)
  • D
    79% (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

#variables#Database connector#payload management#HTTP Request

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice