A Utlility.dwl is located in a Mule project at src/main/resources/modules. The Utility.dwl file defines a function named encryptString that encrypts a String What is the correct DataWeave to call the encryptString function in a Transform Message component?
A. 1. %dw 2.0
2. output application/json
3. import modules::Utility
4. ---
5. Utility::encryptString( "John Smith" )
B. 1. %dw 2.0
2. output application/json
3. import modules::Utility
4. ---
5. encryptString( "John Smith" )
C. 1. %dw 2.0
2. output application/json
3. import modules.Utility
4. ---
5. encryptString( "John Smith" )
D. 1. %dw 2.0
2. output application/json
3. import modules.Utility
4. ---
5. Utility.encryptString( "John Smith" )
Explanation:
Correct answer is
%dw 2.0
output application/json
import modules::Utility
---
Utility::encryptString( "John Smith" )
DataWeave 2.0 functions are packaged in modules. Before you begin, note that
DataWeave 2.0 is for Mule 4 apps. For Mule 3 apps, refer to DataWeave Operators in the
Mule 3.9 documentation. For other Mule versions, you can use the version selector for the
Mule Runtime table of contents.
Functions in the Core (dw::Core) module are imported automatically into your DataWeave
scripts. To use other modules, you need to import the module or functions you want to use
by adding the import directive to the head of your DataWeave script, for example:
import dw::core::Strings
import camelize, capitalize from dw::core::Strings
import * from dw::core::Strings
The way you import a module impacts the way you need to call its functions from a
DataWeave script. If the directive does not list specific functions to import or use * from to
import all functions from a function module, you need to specify the module when you call
the function from your script. For example, this import directive does not identify any
functions to import from the String module, so it calls the pluralize function like this:
Strings::pluralize("box").
Transform
%dw 2.0
import dw::core::Strings
output application/json
---
{ 'plural': Strings::pluralize("box") }
Refer to the exhibit.
All three of the condition for the Choice router are true. What log messages are written?
A. Route 1
B. Route2
C. Route1, Route2
D. Route1, Route2, Default
A Utility.dwl file is located in a Mule project at src/main/resources/modules. The Utility.dwl hie defines afunction named pascalize that reformats strings to pascal case. What is the correct DataWeave to call the pascalize function in a Transform Message component?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Option B
Refer to the exhibits. 
A web client sends a POST request with thepayload {"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:CONNECnvnY'
B.
"ORDER:NOT_CREATED"
C.
"OTHER ERROR"
D.
"File written"
‘’FILE:CONNECnvnY'
How does APIkit determine the number of flows to generate from a RAML specification?
A. Creates a separate flow for each resource
B. Creates a separate flow for each HTTP method
C. Creates a separate flow for each response status code
D. Creates a separate flow for each resource that contains child res
APIKIt Creates a separate flow for each HTTP method.
Where would you create SLA Tiers for an API?
A. Exchange
B. API Manager
C. Anypoint Studio
D. In RAML specifications
Explanation:
MuleSoft Doc Ref : https://docs.mulesoft.com/api-manager/2.x/policy-mule3-tutorialmanage-
an-api#to-add-the-tier
Steps to create SLA Tier are as follows:
1) In API Manager, in API Administration, click a version.
2) Check that the API supports resource-level policies: On the API version details page, in
Status, click Configure Endpoint, and check that Type is RAML.
3) Choose the SLA Tiers, and click Add SLA Tier. Set up limit on SLA tier.
A function named newProdCode needs to be defined thataccepts 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)
fun newProdCode(itemID: Number, productCategory: String) = "PC-" ++
productCategory ++ (itemID as String)
Refer to the exhibits.

A. Option A
B. Option B
C. Option C
D. Option D
| Page 1 out of 29 Pages |