nerdexam
MuleSoft

MCD-LEVEL-1 · Question #30

Refer to the exhibit. What payload is returned from a request to http//localhost.8081/

The correct answer is C. 3. The flow can be described as below. 1) First HTTP POST requets is made in which paylaod is set to 1 and it gets returned to our mail flow. 2) Second call is initiated for JMS Publish Consume JMS: num1 which add 1 to the payload which makes it as 2. Note that pubih consume is a…

Build Mule Applications

Question

Refer to the exhibit. What payload is returned from a request to http//localhost.8081/

Exhibit

MCD-LEVEL-1 question #30 exhibit

Options

  • A1
  • B2
  • C3
  • D4

How the community answered

(25 responses)
  • A
    4% (1)
  • B
    16% (4)
  • C
    72% (18)
  • D
    8% (2)

Explanation

The flow can be described as below. 1) First HTTP POST requets is made in which paylaod is set to 1 and it gets returned to our mail flow. 2) Second call is initiated for JMS Publish Consume JMS: num1 which add 1 to the payload which makes it as 2. Note that pubih consume is a synchronous operation. Hence paylaod is returned to main flow. 3) Third call is initiated for JMS Publish JMS: num2 which add 1 to the payload . Note that pubih is asynchronous operation. Hence paylaod is never returned to main flow. So payload in main flow is still 2. 4) Finally Set Payload increments payload by 1 making payload as 3 which is returned by the flow. Hence option 3 is the correct

Topics

#HTTP Listener#payload routing#flow control#request handling

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice