M11 Mulesoft DataWeave

M11 Mulesoft DataWeave

Professional Development

5 Qs

quiz-placeholder

Similar activities

PKT Supply_Week-1_December'22

PKT Supply_Week-1_December'22

Professional Development

10 Qs

FinTech 18-2 Blockchain

FinTech 18-2 Blockchain

Professional Development

8 Qs

The ICT Essentials

The ICT Essentials

Professional Development

10 Qs

Quiz Webinar MIKA 15 NOV 2020 (IF)

Quiz Webinar MIKA 15 NOV 2020 (IF)

Professional Development

10 Qs

November MSV

November MSV

Professional Development

10 Qs

Bus. Eco_Ch1: Nature & Scope of Business Economics (SM 11 to 20)

Bus. Eco_Ch1: Nature & Scope of Business Economics (SM 11 to 20)

Professional Development

10 Qs

Week 16 Ratio Pleanry

Week 16 Ratio Pleanry

Professional Development

8 Qs

FinTech 05-3 APIs

FinTech 05-3 APIs

Professional Development

9 Qs

M11 Mulesoft DataWeave

M11 Mulesoft DataWeave

Assessment

Quiz

Professional Development, Computers

Professional Development

Medium

Created by

freddy forero

Used 6+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Refer to the exhibit. An event payload contains an unordered array of flight objects, where every object has a price key and a toAirport key. 

What is valid DataWeave code to return flights with price under 500, grouped by toAirport in ascending order, with the lowest price first?

payload groupBy $.toAirport filter $.price < 500 orderBy $.price

payload groupBy $.toAirport filter $.price > 500 orderBy $.price

payload filter $.price < 500 orderBy $.price groupBy $.toAirport

payload filter $.price > 500 orderBy $.price groupBy $.toAirport

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Refer to the exhibit. What is valid DataWeave code to transform the input JSON payload to the output XML payload?

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

A Mule application has a main flow and a combineNames flow. In the main flow, a variable named fullName is set to the object {firstName: "Max", lastName: "Mule"}.

What is valid DataWeave code to call the combineNames flow with the input object stored in the fullName variable?

#[ dw::Flow::lookup( "combineNames", vars.fullName ) ]

#[ dw::Runtime::lookup( "combineNames", vars.fullName ) ]

#[ lookup( "combineNames", vars.fullName ) ]

#[ combineNames( vars.fullName ) ]

#[ lookup( combineNames( vars.fullName ) ) ]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What DataWeave 2.0 type can be used as input to a map operation?

Array

Object

Map

String

Key

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct way to format the decimal 20.3844 as a string to two decimal places?

20.3844 as String {format: ".0#"}

20.3844 as :string {format: ".0#"}

20.3844 as String as format: ".0#"

20.3844 as :string as format: ".0#"

20.3844 as String (format = ".0#")

Discover more resources for Professional Development