An HTTP Request operation sends an HTTP request with a non-empty JSON object payload to an external HTTP endpoint.The response from the external HTTP endpoint
returns an XML body. The result is stored in a target named the Result.
What is the payload at the event processor after the HTTP Request?
A.
The XML response body
B.
null
C.
The original JSON request body
D.
Anon-empty Java object
The original JSON request body
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 exhibits. APIKit router is used to generate the flow components for RAML
specification.
The Mule application must be available to REST clients using the two URL's
http://localhost:8081/internal and http://localhost:8081/external
How many APIKit Router components are generated to handle requests to every endpoint
defined in RAML specification?
1.Library.raml
2./books
3. get:
4. post:
5./order:
6. get
7. patch
8./members
9. get:
A. 1
B. 2
C. 3
D. 5
Correct answer is 5 as APIkit for REST generates a backend flow for each resource-action pairing in a RAML file.
Refer to the exhibits.
What is written to the records.csv file when the flow executes?
A. The JSON payload
B. An error message
C. Nothing
D. The payload convert to CVS
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.
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. Option A
B. Option B
C. Option C
D. Option D
Refer to the exhibits.
A web client sends a POST request to the HTTP Listener with the payload "Hello-". What
response is returned to the web client?
What response is returned to the web client?
A.
Hello- HTTP-] MS2-Three
B.
HTTP-JMS2-Three
C.
Helb-JMS1-HTTP-JMS2 -Three
D.
Hello-HTTP-Three
Hello- HTTP-] MS2-Three
What statement is a part of MuleSoft's description of an application network?
A. Creates and manages high availability and fault tolerant services and infrastructure
B. Creates reusable APIs and assets designed to be consumed by other business units
C. Creates and manages a collection of JMS messaging services and infrastructure
D. Leverages Central IT to deliver complete point-to-point solutions with master data management
| Page 1 out of 29 Pages |