Free MuleSoft MuleSoft Certified Developer - Level 1 (Mule 4) Exam Questions (page: 3)

Refer to the exhibits.
What payload is logged at the end of the main flow?

  1. [order1, order2, order3, order4]
  2. [1, 2, 3, 4]
  3. order4
  4. order1order2order3order4

Answer(s): B

Explanation:

For Each Scope
The For Each scope splits a payload into elements and processes them one by one through the components that you place in the scope. It is similar to a for-each/for loop code block in most programming languages and can process any collection, including lists and arrays. The collection can be any supported content type, such as application/json, application/java, or application/xml.
General considerations about the For Each scope:
By default, For Each tries to split the payload. If the payload is a simple Java collection, the For Each scope can split it without any configuration. The payload inside the For Each scope is each of the split elements. Attributes within the original message are ignored because they are related to the entire message.
For Each does not modify the current payload. The output payload is the same as the input.

Mule Doc Reference : https://docs.mulesoft.com/mule-runtime/4.3/for-each-scope-concept



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?

  1. lookupC createCustomerObJect( "Alice", "Green- ) )
  2. createCustomerObject( { first: "Alice", last: "Green" > )
  3. lookupf "createCustomerObject", { first: "Alice", last: "Green" > )
  4. createCustomerObject( "Alice", "Green")

Answer(s): C

Explanation:

lookup(String, Any, Number)
This function enables you to execute a flow within a Mule app and retrieve the resulting payload. It works in Mule apps that are running on Mule Runtime version 4.1.4 and later. Similar to the Flow Reference component (recommended), the lookup function enables you to execute another flow within your app and to retrieve the resulting payload. It takes the flow's name and an input payload as parameters. For example, lookup("anotherFlow", payload) executes a flow named anotherFlow.
Correct answer is lookup( "createCustomerObject", {first: "Aice, last: "Green"}) MuleSoft Documentation Reference : https://docs.mulesoft.com/mule-runtime/4.3/dw-mule-

functions-lookup



What is the output type of the DataWeave map operator?

  1. String
  2. Array
  3. Map
  4. Object

Answer(s): B



Refer to the exhibits.



What is written to the records.csv file when the flow executes?

  1. The JSON payload
  2. An error message
  3. Nothing
  4. The payload convert to CVS

Answer(s): A

Explanation:

Transform Message Add write_date is coverting payload in JSON format and same JSON payload is avaialble to file write processor. However, if the payload is a different format (for example, not CSV) , you can place the transformation inside the Write operation to generate content that will be written without producing a side effect on the message in transit. This is not done in this case. By default, the connector writes whatever is in the message payload. Hence JSON payload will be written to file.



Refer to the exhibit.



How many private flows does APIKIT generate from the RAML specification?

  1. 1
  2. 2
  3. 3
  4. 4

Answer(s): D



Viewing page 3 of 48
Viewing questions 11 - 15 out of 235 questions



Post your Comments and Discuss MuleSoft MuleSoft Certified Developer - Level 1 (Mule 4) exam prep with other Community members:

MuleSoft Certified Developer - Level 1 (Mule 4) Exam Discussions & Posts