ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 203 - MCD - Level 1 discussion

Report
Export

Refer to the exhibit.

The default scope in choice router recursively calls the color flow.

A web client sends a PUT request to the HTTP listener with payload Blue.

What response is returned to the web client?

A.
'Blk'
Answers
A.
'Blk'
B.
'Green'
Answers
B.
'Green'
C.
A timeout error
Answers
C.
A timeout error
D.
['Blue', 'Red', 'Blk']
Answers
D.
['Blue', 'Red', 'Blk']
Suggested answer: C

Explanation:

Sequence can be described as follows.

* When web client sends the request , it sends payload as Blue (mentioned in question)

* In first iteration this will go to default choice , which sets payload to Red

* Via default route , flow will call itself with payload as Red

* In second iteration , as payload is Red , it will go to first route in choice router which will set payload to Blk and second iteration will end returning back payload as Blk to first iteration.

* This Blk will be again set to payload and first iteration will end returning back response as Blk

asked 18/09/2024
Adrien Gallais
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first