2024 Valid MCD-Level-1 FREE EXAM DUMPS QUESTIONS & ANSWERS
Free MCD-Level-1 Exam Braindumps MuleSoft Pratice Exam
NEW QUESTION # 48
Refer to the exhibits.
Each route in the Scatter-Gather sets the payload to the number shown in the label. What response is returned to a web client request to the HTTP Listener?
A)
B)
C)
D)
- A. Option D
- B. Option A
- C. Option B
- D. Option C
Answer: A
Explanation:
Correct answer is as below. After all processing routes have finished execution, the Scatter-Gather component creates a new Mule event that combines all resulting Mule events from each route, and then passes the new Mule event to the next component in the flow.
{
"0": {
"attributes": ...,
"payload": "100"
},
"1": {
"attributes": ...,
"payload": "200"
}
}
NEW QUESTION # 49
Refer to the exhibit. The main flow contains an HTTP Request in the middle of the flow. The HTTP Listeners and HTTP request use default configurations.
What values are accessible to the Logger at the end of the flow after a web client submit request to http://local:801/order?color=red?
- A. payload quantity var color query param
- B. payload
- C. payload quantity var
- D. payload color query param
Answer: C
Explanation:
Correct answer is as below. Query parameters are replaced when external HTTP call is invoked.
payload
producer var
NEW QUESTION # 50
Refer to the exhibit.
The main flow contains a Flow Reference for the child flow.
What
values are accessible in the child flow after a web client submits a request to http://localhost:8Q81/order?
color=red?
- A. payload
color query param - B. payload
- C. payload
quantity var - D. payload
quantity var color query param
Answer: D
NEW QUESTION # 51
Refer to the exhibit.
What can be added to the flow to persist data across different flow executions?
- A. Properties of the Mule runtime flow object
- B. session variables
- C. properties of the Mule runtime app object
- D. Key/value pairs in the ObjectStore
Answer: D
NEW QUESTION # 52
Refer to the exhibits.

A
web client submits a request to http://localhQst:8081 /flights. What is the result at the end of the flow?
- A. "XML"
- B. "Java"
- C. "object"
- D. "string"
Answer: C
NEW QUESTION # 53
What HTTP method in a RESTful web service is typically used to completely replace an existing resource?
- A. PATCH
- B. POST
- C. PUT
- D. GET
Answer: C
Explanation:
PUT replaces the original version of the resource, whereas the PATCH method supplies a set of instructions to modify the resource
NEW QUESTION # 54
Refer to the exhibits.
The Set Payload transformer In the addltem subflow uses DataWeave to create an order object.
What is the correct DataWeave code for the Set Payload transformer in the createOrder flow to use the addltem subflow to add a router cable with the price of 100 to the order?
- A. lookupf "addltem", { price: "100", item: "router", itemType: "cable" } )
- B. addltemf { price: "100", item: "router", itemType: "cable" })
- C. addltemf { payload: { price: "100", item: "router", itemType: "cable" } > )
- D. lookupf "addltem", { payload: { price: "100", item: "router", itemType: "cable" } } )
Answer: D
NEW QUESTION # 55
Refer to the exhibit.
What is the response to a web client request to http://localhost:8081?
- A. After
- B. Validation Error
- C. null
- D. before
Answer: B
Explanation:
NEW QUESTION # 56
Refer to the exhibit.
What is the correct DataWeave expression for the Set Payload transformer to call the createCustomerObject flow with values for the first and last names of a new customer?
- A. lookupC createCustomerObJect( "Alice", "Green- ) )
- B. createCustomerObject( "Alice", "Green")
- C. createCustomerObject( { first: "Alice", last: "Green" > )
- D. lookupf "createCustomerObject", { first: "Alice", last: "Green" > )
Answer: D
NEW QUESTION # 57
Refer to the exhibits.
What DataWeave expression transforms the conductorIds array to the XML output?
- A. 1. 1. trains:
2. 2. {(
3. 3. conductorIds map ((engId, index) ->
4. 4. train: {
5. 5. engineerId: engId
6. 6. }
7. 7. )
8. 8. )} - B. 1. 1. trains:
2. 2. conductorIds map ((engId, index) ->
3. 3. train: {
4. 4. engineerId: engId
5. 5. }
6. 6. ) - C. 1. 1. { trains:
2. 2.
3. 3. conductorIds map ((engId, index) ->
4. 4. train: {
5. 5. engineerId: engId
6. 6. }
7. 7. )
8. 8. } - D. 1. 1. {( trains:
2. 2.
3. 3. conductorIds map ((engId, index) ->
4. 4. train: {
5. 5. engineerId: engId
6. 6. }
7. 7. )
8. 8. )}
Answer: A
Explanation:
Points to remember:
* XML must have a root element.
* XML only allows one root element
* To avoid multiple root issues, you must create a root element for the XML output, whenever we transform output
* When mapping array elements (JSON or JAVA) to XML, wrap the map operations in {(..)}
-{ } are defining the object
( ) are transforming each element in the array as a key/value pair
* The transformation to XML would fail if the above mentioned considerations were not taken into account.
* Thus the transformation script declares a root element as trains and wraps the data in "{( )}".
Whenever you see such type of question, always look out for root element followed by {( )} wrapping map.
I call this a "Wrap The Map" scenario. Hope it would help you remember !
NEW QUESTION # 58
Refer to the exhibit. The input array of strings is passed to the batch job, which does NOT do any filtering or aggregating. What payload is logged by the Logger component?
- A. Summary report of processed records
- B. [ "Apptel", "Bananal", 2 ]
- C. [ "Apple", "Banana" ]
- D. [ "Apptel2", "Bananal2" ]
Answer: A
NEW QUESTION # 59
Refer to the exhibits.

A web client sends a POST request to the HTTP Listener with the payload "Hello-". What response is returned to the web client?
What response is returned to the web client?
- A. Helb-JMS1-HTTP-JMS2 -Three
- B. Hello- HTTP-] MS2-Three
- C. Hello-HTTP-Three
- D. HTTP-JMS2-Three
Answer: B
NEW QUESTION # 60
Refer to the exhibits.


The Batch Job scope contains two Batch Steps scopes with different accept expression.
The input payload is passed to the Batch Job scope.
After the entire payload is processed by the batch job scope , what messages have been logged by the Logger component?
- A. 1. {amount=140}
2. {amount=102}
3. {step2amount=100}
4. {step2amount=140} - B. 1. {amount=140}
2. {amount=102}
3. {step2amount=100} - C. 1. {amount=140}
2. {amount=102}
3. {step2amount=100}
4. {step2amount=40} - D. 1. {amount=140}
2. {amount=102}
3. {step2amount=100}
4. {step2amount=140}
Answer: D
Explanation:
5. {step2amount=102}
Explanation:
Lets understand this solution step by step.
1) Batch Step (Less than 50)
Accept expression for this batch step is less than 50. Hence elements which will go in this batch step are amount value 40 and 2. Hence output of logger in first batch step is
{amount=140}
{amount=102}
2) Batch Step (Greater than 20)
Accept condition for this batch step is greater than 20. Note that input amount values for this batch step are 100 , 140 and 102 (last two values have been updated in batch step less than 50) As all values satisfy this condition out put of second logger is
{step2amount=100}
{step2amount=140}
{step2amount=102}
Hence correct answer to this question is
{amount=140}
{amount=102}
{step2amount=100}
{step2amount=140}
{step2amount=102}
NEW QUESTION # 61
A flow needs to combine and return data from two different data sources. It contains a Database SELECT operation followed by an HTTP Request operation.
What is the method to capture both payloads so the payload from the second request does not overwrite that from the first?
- A. Save the payload from the Database SELECT operation to a variable
- B. Put the Database SELECT operation inside a Message Enricher scope
- C. Nothing, previous payloads are combined into the next payload
- D. Put the Database SELECT operation inside a Cache scope
Answer: A
NEW QUESTION # 62
A RAML specification is defined to manage customers with a unique identifier for each customer record.
What URI does MuleSoft recommend to uniquely access the customer identified with the unique ID 1234?
- A. /customers/1234
- B. /customers?custid=true&custid=1234
- C. /customers/custid=1234
- D. /customers?operation=get&custid=1234
Answer: A
NEW QUESTION # 63
Refer to the exhibits.

The Validation component in the Try scope throws an error.
What response message is returned to a client request to the main flow's HTTP Listener?
The Validation component in the Try scope throws an error. What response message is returned to a client request to the main flow's HTTP Listener?
- A. Validation Error
- B. Error - main flow
- C. Error - Try scope
- D. Success - main flow
Answer: B
Explanation:
Note that private flow has error scope defined as On Error Continue . So when error occurs in private flow , it is handled by this On Error Continue scope which sends success response back to main flow and does not throw back an error. So main continues normally and payload is set to Success - main flow.
Hence correct answer is Success - main flow
1) HTTP listener received request
2) The Flow Reference calls the child flow
3) The Is Number validator creates an Error Object because the payload isn't an integer. Child Flow execution stops
#[error.description] = "payload is not a valid INTEGER value"
#[error.errorType] = VALIDATION:INVALID_NUMBER
4) The On Error Continue handles the errorThe payload is set to "Error - Sub Flow"
5) "Error - Sub Flow" is returned to the main flow as if the child flow was a success. The Set Payload is executed. The payload is reset to "Success - Finished Main Flow"
6) "Success - Main Flow" is returned to the requestor in the body of the HTTP request. HTTP Status Code: 200 As you can see, in the above example, because the error was caught by an On Error Continue scope in the child flow (RED in, GREEN out) when the Mule Message returns to the parent flow, the parent flow knows none-the-different that there was a failure because the on error continue returns a 200 success message. Note that because, to the mainFlow, the childFlow appeared to succeed, the processing of mainFlow resumed after the flow reference.
NEW QUESTION # 64
A Mule flow has three Set Variable transformers. What global data structure can be used to access the variables?
- A. Mule application properties
- B. Mule event message
- C. Mule event
- D. Mule event attributes
Answer: C
NEW QUESTION # 65
Refer to the exhibit.
The main flow contains a Flow Reference for the child flow.
What
values are accessible in the child flow after a web client submits a request to http://localhost:8Q81/order?
color=red?
- A. payload
color query param - B. payload
- C. payload
quantity var - D. payload
quantity var color query param
Answer: D
NEW QUESTION # 66
A RAML specification is defined to manage customers with a unique identifier for each customer record.
What URI does MuleSoft recommend to uniquely access the customer identified with the unique ID 1234?
- A. /customers/custid=1234
- B. /customers/1234
- C. /customers?custid=true&custid=1234
- D. /customers?operation=get&custid=1234
Answer: C
NEW QUESTION # 67
As a part of project requirement , you want to build an API for a legacy client. Legacy client can only consume SOAP webservices. Which type the interface documentation can be prepared to meet the requirement?
- A. RAML file to define SOAP services
- B. JSON file
- C. WSDL file
- D. plain text file documenting API's
Answer: C
Explanation:
Web Services Description Language. WSDL is used to describe SOAP based web services
NEW QUESTION # 68
In the Database On Table Row operation, what does the Watermark column enable the On Table Row operation to do?
- A. To delete the most recent records retrieved from a database to enable database caching
- B. To avoid duplicate processing of records in a database.
- C. To save the most recent records retrieved from a database to enable database caching
- D. To enable duplicate processing of records in a database
Answer: B
Explanation:
The correct answer is To avoid duplicate processing of records in a database.
If a watermark column is provided, the values taken from that column are used to filter the contents of the next poll, so that only rows with a greater watermark value are returned. If an ID column is provided, this component automatically verifies that the same row is not picked twice by concurrent polls.
Mule doc reference : https://docs.mulesoft.com/db-connector/1.8/database-documentation#listener
NEW QUESTION # 69
A flow has a JMS Publish consume operation followed by a JMS Publish operation. Both of these operations have the default configurations. Which operation is asynchronous and which one is synchronous?
- A. Publish consume: Synchronous. Publish: Asynchronous.
- B. Publish consume: Synchronous. Publish: Synchronous
- C. Publish consume: Asynchronous. Publish: Asynchronous
- D. Publish consume: Asynchronous. Publish: Synchronous
Answer: A
Explanation:
Publish consume: Synchronous. Publish: Asynchronous.
NEW QUESTION # 70
Refer to exhibits.
What message should be added to Logger component so that logger prints "The city is Pune" (Double quote should not be part of logged message)?
- A. The city is + #[payload.City]
- B. #[The city is ${payload.City}
- C. The city is #[payload.City]
- D. #["The city is" ++ payload.City]
Answer: C
Explanation:
Correct answer is The city is #[payload.City]
Answer can get confused with the option #["The city is" ++ payload.City] But note that this option will not print the space between is and city name. This will print The city isPune
NEW QUESTION # 71
......
Prepare For Realistic MCD-Level-1 Dumps PDF - 100% Passing Guarantee: https://www.dumpsactual.com/MCD-Level-1-actualtests-dumps.html
