Mulesoft MCD-Level 1 MuleSoft Certified Developer – Level 1 (Mule 4) Online Training
Mulesoft MCD-Level 1 Online Training
The questions for MCD-Level 1 were last updated at Feb 25,2025.
- Exam Code: MCD-Level 1
- Exam Name: MuleSoft Certified Developer - Level 1 (Mule 4)
- Certification Provider: Mulesoft
- Latest update: Feb 25,2025
Refer to the exhibit.
The Mule application Is debugged in Any point Studio and stops at the breakpoint.
What is the value of the payload displayed In the debugger at this breakpoint?
- A . 0
- B . "Processing"
- C . "Start"
- D . Complete"
Refer to the exhibit.
What DataWeave expression transforms the conductorlds array to the XML output?
A)
B)
C)
D)
- A . Option A
- B . Option B
- C . Option C
- D . Option D
A function named newProdCode needs to be defined that accepts two input parameters, an integer value for itemID and a string value for productCategory, and returns a new product code.
What is the correct DataWeave code to define the newProdCode function?
- A . fun newProdCode{itemID: Number, productCategory: String) ―> "PC-" ++ productCategory ++ (itemID as String)
- B . fun newProdCode(itemID: Number, productCategory: String) = "PC-" ++ productCategory ++ (itemID as String)
- C . function newProdCode(itemID: Number, productCategory: String) =
"PC-" ++ productCategory ++ (itemID as String) - D . var newProdCode(itemID: Number, productCategory: String) -> "PC-" ++ productCategory ++ (itemID as String)
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 . addltemf { payload: { price: "100", item: "router", itemType: "cable" } > )
- B . lookupf "addltem", { payload: { price: "100", item: "router", itemType: "cable" } } )
- C . addltemf { price: "100", item: "router", itemType: "cable" })
- D . lookupf "addltem", { price: "100", item: "router", itemType: "cable" } )
A Mule project contains a DataWeave module called MyModule.dwl that defines a function named formatString. The module is located in the project’s src/main/resources/modules folder.
What is the correct way in DataWeave code to import MyModule using a wildcard and then call the module’s formatString function?
A)
B)
C)
D)
- A . Option A
- B . Option B
- C . Option C
- D . Option D
Refer to the exhibits.
What payload and quantity are logged at the end of the main flow?
- A . [[1,2,3,4], 14]
- B . [[order1, order2, order3, order4], 14]
- C . [[1,2,3,4], 10]
- D . [orderlorder2order3order4,14]
A Database On Table Row listener retrieves data from a CUSTOMER table that contains a primary key userjd column and an increasing kxjin_date_time column. Neither column allows duplicate values.
How should the listener be configured so it retrieves each row at most one time?
- A . Set the watermark column to the bgin_date_time column
- B . Set the target value to the last retrieved login_date_time value
- C . Set the target value to the last retrieved user_jd value
- D . Set the watermark column to the user_Id column
A
Explanation:
* Watermark allows the poll scope to poll for new resources instead of getting the same resource over and over again.
* The database table must be ordered so that the “watermark functionality” can move effectively in the ordered list. Watermark stores the current/last picked up “record id.”
* If the Mule application is shut down, it will store the last picked up “record id” in the Java Object Store and the data will continue to exist in the file. This watermark functionality is valuable and enables developers to have increased transparency.
* Developers do not need to create code to handle caching; it is all configurable!
* There are two columns and both are unique but user_id can’t guaranty sequence whereas date_time will always be in increasing order and table content can easily be ordered on the basis of last processed date_time.
So correct answer is: Set the watermark column to the date_time column
A company has an API to manage purchase orders, with each record identified by a unique purchase order ID. The API was built with RAML according to MuleSoft best practices.
What URI should a web client use to request order P05555?
- A . /orders/{P05555}
- B . /orders/order=P05555
- C . /orders?order=P05555
- D . /orders/P05555
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 . 5
- D . 6
A web client sends a request to http;//localhost:8081?dept=sales.
What is the correct DataWeave expression to access the value of dept?
- A . attributes.queryParams.dept
- B . attributes.dept
- C . message.queryParams.dept
- D . vars.dept