ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 158 - MCD - Level 1 discussion

Report
Export

Refer to the exhibits.

This main mule application calls a separate flow called as ShippingAddress which returns the address corresponding to the name of the user sent to it as input. Output of this ShippingAddress is stored in a target variable named address.

Next set of requirement is to have a setPayload transformer which will set below two values

1) orderkey which needs to set to be equal to the order element received in the original request payload.

2) addressKey which needs to be set to be equal to the address received in response of ShippingAddress flow

What is the straightforward way to properly configure the Set Payload transformer with the required data?

A mule application is being developed which will process POST requests coming from clients containing the name and order information. Sample request is as below

A.
1. 1. { 2. 2. orderkey: 'payload.order', 3. 3. addresskey: 'vars.address' 4. 4. }
Answers
A.
1. 1. { 2. 2. orderkey: 'payload.order', 3. 3. addresskey: 'vars.address' 4. 4. }
B.
1. 1. { 2. 2. orderkey: 'attributes.shippingaddress.order', 3. 3. addresskey: 'payload' 4. }
Answers
B.
1. 1. { 2. 2. orderkey: 'attributes.shippingaddress.order', 3. 3. addresskey: 'payload' 4. }
C.
1. 1. { 2. 2. orderkey: 'payload.order', 3. 3. addresskey: 'address' 4. }
Answers
C.
1. 1. { 2. 2. orderkey: 'payload.order', 3. 3. addresskey: 'address' 4. }
D.
1. 1. { 2. 2. orderkey: 'attributes.order', 3. 3. addresskey: 'vars.address' 4. }
Answers
D.
1. 1. { 2. 2. orderkey: 'attributes.order', 3. 3. addresskey: 'vars.address' 4. }
Suggested answer: A

Explanation:

Correct answer is as below. In this case address will be stored in a variable. Hence payload will not be overwritten and will contain order details

{

orderkey: 'payload.order',

addresskey: 'vars.address'

}

asked 18/09/2024
MIGUEL GAITERO GIL
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first