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…
Question
Refer to the exhibit. What payload is returned from a request to http//localhost.8081/
Exhibit
Options
- A1
- B2
- C3
- D4
How the community answered
(25 responses)- A4% (1)
- B16% (4)
- C72% (18)
- D8% (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
Community Discussion
No community discussion yet for this question.
