A web client submits a request tohttp://localhost:8081/books/0471767840. The value
"0471767840" is captured by a Set Variable transformer to a variable named booklSBN.
What is the DataWeave expression to access booklSBN later in the flow?
A.
booklSBN
B.
attributes.booklSBN
C.
flowVars.booklSBN
D.
vars. booklSBN
vars. booklSBN
Refer to the exhibit
What can be added to the flow to persist data across different flow executions?
A.
Key/value pairs in the ObjectStore
B.
Properties of the Mule runtime flowobject
C.
properties of the Mule runtime app object
D.
session variables
Key/value pairs in the ObjectStore
A Mule application configured with Autodiscovery implements an API. Where is governance enforced for policies defined for this Mule application?
A. In Runtime Manager
B. Runtime Manager
C. In the Mule application
D. In API manager
A flow needs to combine and return data from two different data sources. It contains a
Database SELECT operation followed by an HTTP Request operation.
What is the method to capture both payloads so the payload from the second request does
not overwrite that fromthe first?
A.
Put the Database SELECT operation inside a Cache scope
B.
Put the Database SELECT operation inside a Message Enricher scope
C.
Nothing, previous payloads are combined into the next payload
D.
Save the payload from the Database SELECT operation to a variable
Save the payload from the Database SELECT operation to a variable
Refer to the exhibit.
The Database Select operation returns five rows from a database. What is logged by the
Logger component?
A. "Array"
B. "Object"
C. "LinkedHashMap"
D. "CaselnsensitrveHashMap"
A flow has a JMS Publish consume operation followed by a JMS Publish operation. Both of these operations have the default configurations. Which operation is asynchronous and which one is synchronous?
A. Publish consume: Synchronous. Publish: Asynchronous.
B. Publish consume: Asynchronous. Publish: Synchronous
C. Publish consume: Asynchronous. Publish: Asynchronous
D. Publish consume: Synchronous. Publish: Synchronous
Which of the below is used by Mule application to manage dependencies which make sharing the projects lightweight and easier?
A. Configuration file
B. Global element
C. POM.xml
D. Cloudhub
POM.xml contains info about the project and configuration details used by Maven to build the project.
A Mule project contains a DataWeave module like WebStore.dwl that defines a function
named loginUser. The module file is located in the project's src/main/resources/libs/etl
folder.
What is correct DataWeave code to import all of the WebStore.dwl file's functions and then
call the loginUser function for the login "Todd.Pal@mulesoft.com"?
A. 1. 1. import libs.etl
2. 2. ---
3. 3. WebStore.loginUser("Todd.Pal@mulesoft.com")
B. 1. 1. import * from libs::etl
2. 2. ---
3. 3. WebStore::loginUser("Todd.Pal@mulesoft.com")
C. 1. 1. import libs.etl.WebStore
2. 2. ---
3. 3. loginUser("Todd.Pal@mulesoft.com")
D. 1. 1. import * from libs::etl::WebStore
2. 2. ---
3. 3. loginUser("Todd.Pal@mulesoft.com")
Explanation:
* To use custom 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:
1) Does not identify any functions to import from the String module:
import dw::core::Strings
2) To identify a specific function to import from the String module:
import camelize, capitalize from dw::core::Strings
3) To import all functions from the String module:
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.
* In given scenario, it's mentioned to import all of the WebStore.dwl
So correct answer is:
Reference: https://docs.mulesoft.com/mule-runtime/4.3/dw-functions
| Page 1 out of 29 Pages |