PASS MCD-Level-1 exam with MuleSoft Real Exam Questions - 100% Valid!
Actual MCD-Level-1 Exam Recently Updated Questions with Free Demo
NEW QUESTION # 108
What happens to the attributes of a Mule event in a flow after an outbound HTTP Request is made?
- A. Attributes are replaced with new attributes from the HTTP Request response (which might be null)
- B. New attributes may be added from the HTTP response headers, but no headers are ever removed
- C. Previous attributes are passed unchanged
- D. Attributes do not change
Answer: A
Explanation:
Attributes are replaced with new attributes from the HTTP Request response.
Attributes include everything apart from Payload/body. For ex: Headers, query parameters, URI parameters.
So, when outbound HTTP request is made, new attributes need to pass the outbound HTTP request and old attributes are replaced.
I have created below diagram to make it easy for you to understand:
NEW QUESTION # 109
What is output of Dataweave flatten function?
- A. LInkedHashMap
- B. Object
- C. Array
- D. Map
Answer: C
Explanation:
Correct answer is Array.
Flatten turns a set of subarrays (such as [ [1,2,3], [4,5,[6]], [], [null] ]) into a single, flattened array (such as [ 1,
2, 3, 4, 5, [6], null ]).
This example defines three arrays of numbers, creates another array containing those three arrays, and then uses the flatten function to convert the array of arrays into a single array with all values.
Source
%dw 2.0
output application/json
var array1 = [1,2,3]
var array2 = [4,5,6]
var array3 = [7,8,9]
var arrayOfArrays = [array1, array2, array3]
---
flatten(arrayOfArrays)
Output
[ 1,2,3,4,5,6,7,8,9 ]
NEW QUESTION # 110
Refer to the exhibit.
The Mule application's connectors are configured with property placeholders whose values are set in the config.yaml file What must be added to the Mule application to link the config.yaml file's values with the property placeholders?
- A. A file-config element in the acrne-app xml file
- B. A configuration-properties element in the acme-app xml file
- C. A dependency element in the pom xml file
- D. A propertiesFile key/value pair in the mule-artifact json file
Answer: B
NEW QUESTION # 111
A web client submits a request to http://localhost:8081?accountType=personal. The query parameter is captured using a Set Variable transformer to a variable named accountType.
What is the correct DataWeave expression to log accountType?
- A. Account Type: #[vars.accountType]
- B. Account Type: #[message.inboundProperties.accountType]
- C. Account Type: # [attributes.accountType]
- D. Account Type: #[flowVars.accountType]
Answer: A
Explanation:
vars: Keyword for accessing a variable, for example, through a DataWeave expression in a Mule component, such as the Logger, or from an Input or Output parameter of an operation. If the name of your variable is myVar, you can access it like this: vars.myVar Hence correct answer is Account Type: #[vars.accountType]
NEW QUESTION # 112
Refer to the exhibits.
A web client submits a request to below flow. What is the output at the end of the flow?


- A. String
- B. Object
- C. Java
- D. XML
Answer: A
Explanation:
String is the correct answer as XML is of an Object type String
NEW QUESTION # 113
Refer to the exhibit. The Batch Job processes, filters and aggregates records, What is the expected output from the Logger component?

- A. [10. 20] [30, 40] [50, 60]
- B. [20, 40, 60]
- C. [10. 20, 30. 40, 50, 60]
- D. [20. 40] [60]
Answer: D
NEW QUESTION # 114
A Mule application contains a global error handler configured to catch any errors.
Where must the global error handler be specified so that the global error handler catches all errors from flows without their own error handlers?
- A. A global element
- B. Nowhere, the global error handler is automatically used
- C. The pom.xml file
- D. A configuration properties file
Answer: A
Explanation:
Correct answer is A global element
Global error handlers are to be created in global element .
Quick note to remember here is Global error handlers come in to picture only when there are no error handlers specified as flow level.
Steps to create Global error handler
1) Click Global Elements to open Global Configuration Elements. Global Elements is located below the Studio canvas
2) In Global Configuration Elements, click Create to open the Choose Global Type dialog
3) From the dialog, select Global Configuration -> Configuration, and then click OK to open the Configuration dialog.
4) From the select Configuration dialog, select allErrorHandler for the Default Error Handler field, and click OK.
NEW QUESTION # 115
Refer to the below exhibit. A Mule application configures a property placeholder file named config.yaml to set some property placeholders for an HTTP connector.
What is the valid properties placeholder file to set these values?
- A. 1. http.host = localhost
2. http.port = 8081 - B. 1. http:
2. basepath: "api"
3. host : "localhost"
4. port : "8081"
(Correct) - C. 1. http:
2. host = "localhost"
3. port = "8081" - D. 1. {
2. http:
3. basePath: "api",
4. port: "8081",
5. host: " localhost"
Answer: B
Explanation:
Correct answer is as below as it follows the correct syntax
http:
basepath: "api"
host : "localhost"
port : "8081"
NEW QUESTION # 116
Refer to the exhibits.
The Set Payload transformer's value is set to {'year': '2020'}.
What message value should be added to the Logger component to output the message 'The year is 2020', without hardcoding 2020?
- A. '#[The year is $(pay load .year)]*
- B. #["The year is "++ payload.year].
- C. The year is #[payload.year]'
- D. '#[The year is " + paytoad.year]'
Answer: B
NEW QUESTION # 117
A company has defined two RAML fragments, Book Data Type and Book Example to be used in APIs.
What would be valid RAML to use these fragments ?

- A. 1. #%RAML 1.0
2. title: Books
3. types:
4. Book: ABC/Examples/bookDataType.raml
5. /books:
6. post:
7. body:
8. application/json:
9. type: Book
10. examples:
11. input: ABC/Examples/bookExample.raml
12. responses:
13. 201:
14. body:
15. application/json:
16. example:
17. message: Book added - B. 1. #%RAML 1.0
2. title: Books
3. Book: !include bookDataType.raml
4. /books:
5. post:
6. body:
7. application/json:
8. type: Book
9. examples:
10. input: !include bookExample.raml
11. responses:
12. 201:
13. body:
14. application/json:
15. example:
16. message: Book added - C. 1. #%RAML 1.0
2. title: Books
3. Book: bookDataType.raml
4. /books:
5. post:
6. body:
7. application/json:
8. type: Book
9. examples:
10. input: bookExample.raml
11. responses:
12. 201:
13. body:
14. application/json:
15. example:
16. message: Book added - D. 1. #%RAML 1.0
2. title: Books
3. Book: bookDataType.raml
4. /books:
5. post:
6. body:
7. application/json:
8. type: Book
9. examples:
10. input: bookExample.raml
11. responses:
12. 201:
13. body:
14. application/json:
15. example:
16. message: Book added
Answer: C
Explanation:
* RAML file contains lot of information that could be considered as "not API-describing". Sort of "economy-class" members.
Equally important, but not necessarily part of the main RAML file.
* Through !includes, RAML allows us to build file-distributed API definitions, which is not only useful to encourage code reuse but also improves readability.
* We can create RAML fragments with such code and then include them in main RAML project using !include like:
types:
Book: !include bookDataType.raml and
examples:
input: !include bookExample.raml
* Additionally for
Correct Answer: D
NEW QUESTION # 118
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. Error - main flow
- B. Error - Try scope
- C. Validation Error
- D. Success - main flow
Answer: A
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 # 119
Refer to the exhibits.

A web client sends a POST request with the payload {"oid": "1000", "itemid": "AC200", "qty": "4" } to the Mule application. The File Write operation throws a FILE:CONNECTIVITY error.
What response message is returned to the web client?
- A. "File written"
- B. "OTHER ERROR"
- C. ''FILE:CONNECnvnY'
- D. "ORDER:NOT_CREATED"
Answer: D
NEW QUESTION # 120
What is the minimum Cloudhub worker size that can be specified while deploying mule application?
- A. 0.1 vCores
- B. 1.0 vCores
- C. 0.5 vCores
- D. 0.2 vCores
Answer: A
Explanation:
Correct answer is 0.1 vCores
MuleSoft Doc Ref : https://docs.mulesoft.com/runtime-manager/cloudhub-architecture#cloudhub-workers CloudHub Workers Workers are dedicated instances of Mule runtime engine that run your integration applications on CloudHub.
The memory capacity and processing power of a worker depends on how you configure it at the application level.
Worker sizes have different compute, memory, and storage capacities. You can scale workers vertically by selecting one of the available worker sizes:
Table Description automatically generated
NEW QUESTION # 121
In an application network. If the implementation but not the interface of a product API changes, what needs to be done to the other APIs that consume the product API?
- A. The applications associated with the other APIs must be recoded
- B. The applications associated with the other APIs must be restarted
- C. The other APIs must be updated to consume the updated product API
- D. Nothing needs to be changed in the other APIs or their associated applications
Answer: D
Explanation:
Correct answer is Nothing needs to be changed in the other APIs or their associated applications This is the benefit of having separate interface layer. As there are no changes to interface , no changes are required on the API's which consumes this API in context
NEW QUESTION # 122
Refer to the exhibit.
In the execution of the Scatter-Gather, the "steep 1 sec" Flow Reference takes about 1 second to complete, and the "sleep 5 sees" Row Reference takes about 5 seconds to complete.
About how many seconds does it take from the time the Scatter-Gather is called until the Set Payload transformer is called?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: C
NEW QUESTION # 123
Refer to the exhibits.
The Set Payload transformer's value is set to {'year': '2020'}.
What message value should be added to the Logger component to output the message 'The year is 2020', without hardcoding 2020?
- A. '#[The year is $(pay load .year)]*
- B. #["The year is "++ payload.year].
- C. The year is #[payload.year]'
- D. '#[The year is " + paytoad.year]'
Answer: B
NEW QUESTION # 124
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 A
- B. Option D
- C. Option C
- D. Option B
Answer: B
NEW QUESTION # 125
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. Put the Database SELECT operation inside a Cache scope
- B. Put the Database SELECT operation inside a Message Enricher scope
- C. Save the payload from the Database SELECT operation to a variable
- D. Nothing, previous payloads are combined into the next payload
Answer: C
Explanation:
Correct answer is Save the payload from the Database SELECT operation to a variable Response from HTTP request will override the payload and hence response of database SELECT can be lost.
Best way to preserve is to assign payload of first operation to variable using TransformMessage.
NEW QUESTION # 126
Refer to the exhibit.
What is the response to a web client request to http://localhost:8081?
- A. Validation Error
- B. null
- C. before
- D. After
Answer: D
NEW QUESTION # 127
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. [ "Apple", "Banana" ]
- B. [ "Apptel", "Bananal", 2 ]
- C. [ "Apptel2", "Bananal2" ]
- D. Summary report of processed records
Answer: D
NEW QUESTION # 128
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
quantity var color query param - B. payload
- C. payload
color query param - D. payload
quantity var
Answer: A
NEW QUESTION # 129
What path setting is required for an HTTP Listener endpoint to route all requests to an APIkit router?
- A. /(*)
- B. /'
- C. /
- D. /()
Answer: B
NEW QUESTION # 130
What valid RAML retrieves details on a specific by its orderld as a URL parameter?
A)
B)
C)
D)
- A. Option D
- B. Option C
- C. Option A
- D. Option B
Answer: C
NEW QUESTION # 131
What path setting is required for an HTTP Listener endpoint to route all requests to an APIkit router?
- A. "/*"
- B. /(*)
- C. /
- D. /()
Answer: A
Explanation:
Option1 is correct syntax to configure HTTP Listener endpoint
NEW QUESTION # 132
Refer to the exhibits.

A web client submits a request to the HTTP Listener and the HTTP Request throws an error.
What payload and status code are returned to the web client?
Refer to the exhibits. A web client submits a request to the HTTP Listener and the HTTP Request throws an error.
What payload and status code are returned to the web client?
- A. Response body: "Success - End" Default response status code: 200
- B. Response body: "Error" Default response status code: 200
- C. Error response body: error, description Default error response status code: 500
- D. Response body: "Success - Begin* Default response status code: 200
Answer: B
NEW QUESTION # 133
......
MCD-Level-1 Free Sample Questions to Practice One Year Update: https://www.itexamreview.com/MCD-Level-1-exam-dumps.html
