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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Daris
Highly Voted 1 year, 5 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 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
2 weeks, 1 day ago
You are totally correct. Thanks for mentioning. Ignore my other comment guys.
upvoted 1 times
...
...
Alandt
4 months, 3 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
2 weeks, 1 day ago
My answer is wrong above. Ignore it. Correct answer is C
upvoted 1 times
...
...
marcop1
5 months ago
Selected Answer: C
Answer is C
upvoted 1 times
...
[Removed]
5 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
8 months, 2 weeks ago
I tried. Answer is C.
upvoted 2 times
...
Neo_0000
9 months, 1 week ago
C is the correct answer.
upvoted 2 times
...
[Removed]
1 year, 1 month ago
Wouldnt an error be thrown since its trying to access a variable that it cant?
upvoted 2 times
...
aiden_03
1 year, 3 months ago
Answer is C - Variables are not accessible through HTTP request
upvoted 2 times
...
Ranjansingh
1 year, 4 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago