Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam MCD - Level 1 All Questions

View all questions & answers for the MCD - Level 1 exam

Exam MCD - Level 1 topic 1 question 142 discussion

Actual exam question from Mulesoft's MCD - Level 1
Question #: 142
Topic #: 1
[All MCD - Level 1 Questions]

Refer to the exhibits. In the color flow, both the variable named color and the payload are set to “red”.

An HTTP POST requests then sent to the decideColor flow's HTTP Listener.







What is the payload value at the Logger component after the HTTP Request completes?

  • A. “red”
  • B. “blue”
  • C. “white”
  • D. An error message
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Daris
Highly Voted 1 year, 10 months ago
Answer is C - White. Variable scope is within Parent flow only except when using a flow reference.
upvoted 10 times
...
aook002
Most Recent 7 months, 2 weeks ago
Selected Answer: C
- Vars.color is set to ‘Red’ in color flow. - decideColor flow is called using HTTP Post (Be aware of variable scope - note not a Flow Reference) - This means vars are not passed from color flow to decideColor flow. - When decideColor flow is run, it has no idea of the value of the color variable. - Therefore, as color variable is null. Payload response set to ‘White’. For Alandt's answer, if it were a Flow Reference the answer would be B as the variable scope of color would be visible to child flow. But is incorrect as it is a HTTP POST request.
upvoted 1 times
Alandt
5 months, 2 weeks ago
You are totally correct. Thanks for mentioning. Ignore my other comment guys.
upvoted 1 times
...
...
Alandt
9 months, 2 weeks ago
Selected Answer: B
- In the "color" flow, both the variable named "color" and the payload are set to "red". - When the HTTP POST request is made to the "decideColor" flow, the "color" variable is not null (it's set to "red"). Thus, the payload value set in the "decideColor" flow will be "blue". So, the payload value at the Logger component after the HTTP Request completes will be: B. “blue”
upvoted 1 times
Alandt
5 months, 2 weeks ago
My answer is wrong above. Ignore it. Correct answer is C
upvoted 1 times
...
...
marcop1
10 months ago
Selected Answer: C
Answer is C
upvoted 1 times
...
ExamDev
10 months ago
Selected Answer: C
Agree with Daris. Correct answer is C - White. Variable scope is within Parent flow only except when using a flow reference.
upvoted 1 times
...
n0mae
1 year, 1 month ago
I tried. Answer is C.
upvoted 2 times
...
Neo_0000
1 year, 2 months ago
C is the correct answer.
upvoted 2 times
...
[Removed]
1 year, 6 months ago
Wouldnt an error be thrown since its trying to access a variable that it cant?
upvoted 2 times
...
aiden_03
1 year, 8 months ago
Answer is C - Variables are not accessible through HTTP request
upvoted 2 times
...
Ranjansingh
1 year, 9 months ago
Selected Answer: A
A - red, the child flow is the http request and in parent flow payload remain same
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...