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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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: B 🗳️

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, 3 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 2 weeks, 4 days 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
2 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
...
marcop1
3 months ago
Selected Answer: C
Answer is C
upvoted 1 times
...
ExamDev
3 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
6 months, 2 weeks ago
I tried. Answer is C.
upvoted 2 times
...
Neo_0000
7 months, 1 week ago
C is the correct answer.
upvoted 2 times
...
[Removed]
11 months, 1 week ago
Wouldnt an error be thrown since its trying to access a variable that it cant?
upvoted 2 times
...
aiden_03
1 year, 1 month ago
Answer is C - Variables are not accessible through HTTP request
upvoted 2 times
...
Ranjansingh
1 year, 2 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 ...