Question 6 of 155

How to import Core (dw::Core) module into your DataWeave scripts?

    Correct Answer: B

    The Core (dw::Core) module in DataWeave is automatically imported into all DataWeave scripts and does not need to be explicitly imported. Therefore, no special import statement is required to use its functions.

Question 7 of 155

What is the value of the stepVar variable after the processing of records in a Batch Job?

    Correct Answer: C

    In a Batch Job, variables created during the batch steps are scoped to those steps and do not persist through to the On Complete phase. Therefore, the value of such a variable, stepVar in this case, would be null after the batch steps have completed, as it is not preserved or accessible in the On Complete phase.

Question 8 of 155

What is the object type returned by the File List operation?

    Correct Answer: C

    The object type returned by the File List operation is an object of Mule event objects. This is because the File List operation typically returns structured data that includes properties such as file name, size, timestamp, and type, which are encapsulated within Mule event objects.

Question 9 of 155

Where are values of query parameters stored in the Mule event by the HTTP Listener?

    Correct Answer: B

    Values of query parameters in a Mule event by the HTTP Listener are stored in the attributes. Specifically, in Mule 4, the query parameters can be accessed using expressions like #[attributes.queryParams.{paramaterName}]. This allows you to retrieve the values of the parameters that were part of the HTTP request.

Question 10 of 155

How can you call a flow from Dataweave?

    Correct Answer: C

    To call a flow from Dataweave, you can use the Lookup function. The Lookup function dynamically evaluates and executes a flow by its name and optionally allows passing parameters. It is specifically designed for calling other flows within Dataweave scripts.