Download MuleSoft MCD-Level-1 Mock Test Study Material
MCD-Level-1 Questions Prepare with Learning Information
MuleSoft MCD-Level-1 certification is an important credential for developers who work with Mule 4. MuleSoft Certified Developer - Level 1 (Mule 4) certification validates the skills and knowledge required to develop integrations using MuleSoft. To prepare for the exam, candidates can take advantage of the resources offered by MuleSoft, including online training courses, documentation, and practice exams. With the MCD-Level-1 certification, developers can demonstrate their proficiency in using Mule 4 and enhance their career opportunities.
NEW QUESTION # 101
Refer to the exhibit.
What can be added to the flow to persist data across different flow executions?
- A. properties of the Mule runtime app object
- B. session variables
- C. Properties of the Mule runtime flow object
- D. Key/value pairs in the ObjectStore
Answer: D
NEW QUESTION # 102
Explanation:
Correct answer is {customerID}.
- A. fun toUpper(userName) -> upper(userName)
- B. fun toUpper(userName) = upper(userName)
- C. var toUpper(userName) = upper(userName)
- D. var toUpper(userName) -> upper(userName)
Answer: B
Explanation:
Reference:
A function named toUpper needs to be defined that accepts a string named userName and returns the string in uppercase.
What is the correct DW code to define the toUpper function?
NEW QUESTION # 103
Refer to the exhibit.
What is the correct syntax to add an employee ID as a URI parameter in an HTTP Listener path?
- A. # [employeelD]
- B. (employeelD)
- C. {employeelD}
- D. ${emp!oyeelD}
Answer: C
Explanation:
While configuring HTTP listener path , URI parameters are always enclosed within curly braces. Hence option 2 is correct choice
NEW QUESTION # 104
Refer to the exhibit.
What Database expression transforms the input to the output?
A)
B)
C)
D)
- A. Option B
- B. Option D
- C. Option A
- D. Option C
Answer: B
Explanation:
This kind of questions are best solved with filtering technique. Key thing to note here is XML attributes are always access by @ notation. So in this example orderId can be accessed as @OrderId which makes option 3 and option 4 false. Now difference in optin and option 2 is in mapping of lineItemPrice. Correct syntax to format a String in Numbse is value.price as Number. Hence option 2 is correct
NEW QUESTION # 105
Refer to the exhibits.
What DataWeave expression transforms the conductorIds array to the XML output?
- A. 1. 1. trains:
2. 2. conductorIds map ((engId, index) ->
3. 3. train: {
4. 4. engineerId: engId
5. 5. }
6. 6. ) - B. 1. 1. trains:
2. 2. {(
3. 3. conductorIds map ((engId, index) ->
4. 4. train: {
5. 5. engineerId: engId
6. 6. }
7. 7. )
8. 8. )} - 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: B
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 # 106
What MuleSoft product enables publishing, sharing, and searching of APIs?
- A. API Designer
- B. Anypoint Exchange
- C. Runtime Manager
- D. API Notebook
Answer: B
Explanation:
Anypoint Exchange provided a way to publish , share and search API's.
MuleSoft Doc Ref : https://docs.mulesoft.com/exchange/
NEW QUESTION # 107
According to MuleSoft. what is the first step to create a Modern API?
- A. Create a prototype of the API implementation
- B. Gather a list of requirements to secure the API
- C. Performance tune and optimize the backend systems and network
- D. Create an API specification and get feedback from stakeholders
Answer: D
NEW QUESTION # 108
What is the correct syntax to define and call a function in Database?
A)
B)
C)
D)
- A. Option D
- B. Option B
- C. Option A
- D. Option C
Answer: C
Explanation:
Keyword to ad function in Dataweave transformation is fun. Hence option 2 and 4 are invalid. Also parameters needs to be passed exactly in same order as defined in function definition. Hence correct answer is' fun addKV( object: Object, key: String, value: Any) = object ++ {(key):(value)}
---
addKV ( {"hello': "world"}, "hola", "mundo" )
MuleSoft Documentation Reference : https://docs.mulesoft.com/mule-runtime/4.3/dataweave-functions DataWeave Function Definition Syntax To define a function in DataWeave use the following syntax:
fun myFunction(param1, param2, ...) = <code to execute>
The fun keyword starts the definition of a function.
myFunction is the name you define for the function.
Function names must be valid identifiers.
(param1, param2, ... , paramn) represents the parameters that your function accepts.
You can specify from zero to any number of parameters, separated by commas (,) and enclosed in parentheses.
The = sign marks the beginning of the code block to execute when the function is called.
<code to execute> represents the actual code that you define for your function.
NEW QUESTION # 109
A Mule flow has three Set Variable transformers. What global data structure can be used to access the variables?
- A. Mule event attributes
- B. Mule event message
- C. Mule application properties
- D. Mule event
Answer: D
NEW QUESTION # 110
What is the object type returned by the File List operation?
- A. Array of Mule event objects
- B. Object of Mule event objects
- C. Array of String file names
- D. Object of String file names
Answer: A
Explanation:
The List operation returns an array of messages in which: Each message holds the file's content in its payload.
The file's attributes section carries the file's metadata (such as name, creation time, and size). The payload is empty if the element is a folder.
NEW QUESTION # 111
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. Error response body: error, description Default error response status code: 500
- C. Response body: "Error" Default response status code: 200
- D. Response body: "Success - Begin* Default response status code: 200
Answer: C
NEW QUESTION # 112
An SLA based policy has been enabled in API Manager. What is the next step to configure the API proxy to enforce the new SLA policy?
- A. Add new property placeholders and redeploy the API proxy
- B. Add required headers to the RAML specification and redeploy the new API proxy
- C. Restart the API proxy to clear the API policy cache
- D. Add new environment variables and restart the API proxy
Answer: B
NEW QUESTION # 113
To avoid hard-coding values, a flow uses some property placeholders and the corresponding values are stored in a configuration file.
Where does the configuration file's location need to be specified in the Mule application?
- A. a flow attribute
- B. The pom.xml file
- C. A global element
- D. The mule-art if act .json file
Answer: C
NEW QUESTION # 114
Refer to the exhibit.
How many private flows does APIKIT generate from the RAML specification?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: B
NEW QUESTION # 115
Refer to the exhibit.
What is a valid expression for the Choice router's when expression to route events to the documenticShipping flow?
- A. 0#[ payload = 'US' ]
- B. #[ if(payload == "US") ]
- C. #[ if(payload = 'US') J
- D. #[ payload == 'US' J
Answer: D
Explanation:
Choice Router
The Choice router dynamically routes messages through a flow according to a set of DataWeave expressions that evaluate message content. Each expression is associated with a different routing option. The effect is to add conditional processing to a flow, similar to an if/then/else code block in most programming languages.
Only one of the routes in the Choice router executes, meaning that the first expression that evaluates to true triggers that route's execution and the others are not checked. If none of the expressions are true, then the default route executes.
Properties of <when>
PropertyDescription
Expression (expression)
Expression in DataWeave language to evaluate input.If the expression evaluates to true, this routing option is used:
* <when expression="#[vars.language == 'Spanish']" >
Mulesoft Doc Ref : https://docs.mulesoft.com/mule-runtime/4.3/choice-router-concept With respect to above information , Option 1 is the correct syntax as others are incorrect because of below reasons
* Single = is not the correct syntax to validate the condition. It should be ==
* If keyword is not required in when condition.
NEW QUESTION # 116
......
Most Reliable MuleSoft MCD-Level-1 Training Materials: https://www.dumpexams.com/MCD-Level-1-real-answers.html