Exam4Training

Mulesoft MuleSoft Certified Developer-Level 1 MuleSoft Certified Developer-Level 1 (Mule 4) Online Training

Question #1

Refer to the exhibits.

The input array of strings is processed by the batch job that processes, fitters, and aggregates the values.

What is the last message logged by the Logger component after the batch job completes processing?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: D
Question #2

A mule project contains MySQL database dependency . The project is exported from Anypoint Studio so that it can be deployed to Cloudhub.

What export options needs to be selected to create the smallest deployable archive that will successfully deploy to Cloudhub?

  • A . Select both the options 1) Attach project sources 2) Include project module and dependencies
  • B . No need to select any of the below options 1) Attach project sources 2) Include project module and dependencies
  • C . Select only below option 2) Include project module and dependencies
  • D . Select only below option 1) Attach project sources

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

You can choose Attach Project Sources to include metadata that Studio requires to reimport the deployable file as an open Mule project into your workspace. You must keep the Attach Project Sources option selected to be able to import the packaged JAR file back into a Studio workspace. But requirement here is to create smallest deployable archive that will successfully deploy to Cloudhub. Hence we can ignore this option. We need to select Include project module and dependencies

As actual modules and external dependencies required to run the Mule application in a Mule runtime engine

Hence correct answer is Select only below option 2) Include project module and dependencies

MuleSoft Doc

Ref: https://docs.mulesoft.com/studio/7.5/import-export-packages#exporting-a-studio-project-to-a-deployable-mule-application

Question #3

A web client sends a request to http;//localhost:8081?dept=sales.

What is the correct DataWeave expression to access the value of dept?

  • A . attributes.queryParams.dept
  • B . attributes.dept
  • C . message.queryParams.dept
  • D . vars.dept

Reveal Solution Hide Solution

Correct Answer: A
Question #4

A shopping API contains a method to look up store details by department

To get information for a particular store, web clients will submit requests with a query parameter named department and a URI parameter named storeld.

What is a valid RAML snippet that supports requests from web clients to get data for a specific storeld and department name?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: C
Question #5

CORRECT TEXT

Refer to the exhibits.

In the choice router, the When expression for the domestic shipping route is set to "#[payload= "FR"]".

What is the output of logger after the execution of choice router is completed?

  • A . "Domestic"
  • B . "International"
  • C . "US"
  • D . A dataweave syntax error (Correct)

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

To compare, DataWeave syntax is #[payload == "FR"]. In this case only one = is used so it will give syntax error.

Question #6

Refer to the exhibits.

The mule application implements a REST API that accepts GET request from two URL’s which are as follows

1) http://acme.com/order/status

2) http://acme.com/customer/status

What path value should be set in HTTP listener configuration so that requests can be accepted for both these URL’s using a single HTTP listener event source?

  • A . *[order,customer]/status
  • B . ?[order,customer]/status
  • C . */status (Correct)
  • D . *status

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

Correct answer is */status as it is the correct way to use wildcards while configuring path value in HTTP listener

Question #7

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"

Reveal Solution Hide Solution

Correct Answer: C
Question #8

What does C4E stands for in MuleSoft recommended IT operating model?

  • A . Centre for Empowerment
  • B . Centre for Engagement
  • C . Centre for Enablement
  • D . Centre for Excellence

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

Centre for Enablement (C4E) is an IT operating model that enables an enterprise to build reusable assets, accumulate API’s, leverage best practices and knowledge to enable self service and efficient delivery in the organization and implement new solutions faster

Question #9

To avoid hard-coding values, a flow uses some property placeholders and the corresponding values are stored in a configuration file.

Where does the configuration file’s location need to be specified in the Mule application?

  • A . The pom.xml file
  • B . A global element
  • C . The mule-art if act .json file
  • D . a flow attribute

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Correct answer is A global element

When we create a configuration file, that file needs to added as Global Configuration file in Global element. A global element is a reusable object containing parameters that any number of elements in a flow can share. You reference a global element from Anypoint Connectors or components in your Mule application

Question #10

Refer to the exhibits.

In the request Flow an HTTP Request operation is configured to send an HTTP request with an XML payload. The request is sent to the HTTP Listener in the transform Flow.

That flow transforms the incoming payload into JSON format and returns the response to the HTTP request. The response of the request is stored in a target variable named the Result.

What is the payload at the Logger component after the HTTP Request?

  • A . A non-empty Java object
  • B . The original XML payload
  • C . null
  • D . The returned JSON response

Reveal Solution Hide Solution

Correct Answer: B

Question #11

Why would a Mule application use the ${http.port} property placeholder for its HTTP Listener port when it is deployed to CloudHub?

  • A . Allows CloudHub to automatically change the HTTP port to allow external clients to connect to the HTTP Listener
  • B . Allows CloudHub to automatically register the application with API Manager
  • C . Allows MuleSoft Support to troubleshoot the application by connecting directly to the HTTP Listener
  • D . Allows clients to VPN directly to the application at the Mule application’s configured HTTP port

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

This helps CloudHub to dynamically allocates a port at deployment time. MuleSoft Doc

Ref:

https://docs.mulesoft.com/mule-runtime/4.3/deploy-to-cloudhub#prerequisites

https://docs.mulesoft.com/runtime-manager/developing-applications-for-cloudhub

Question #12

A REST connect module is generated for a RAML specification. and then the rest connect module is imported in mule application in Anypoint Studio.

For each method of the RAML specification, what does the REST connect module provide?

  • A . A scope
  • B . A flow
  • C . An operation
  • D . An event source

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Correct answer is an operation. For each method of the RAML specification, REST connect module provide an operation.

Please refer to the below screenshot.



Question #13

A company has an API to manage purchase orders, with each record identified by a unique purchase order ID. The API was built with RAML according to MuleSoft best practices.

What URI should a web client use to request order P05555?

  • A . /orders/{P05555}
  • B . /orders/order=P05555
  • C . /orders?order=P05555
  • D . /orders/P05555

Reveal Solution Hide Solution

Correct Answer: D
Question #14

Refer to the exhibits.

What payload and variable are logged at the end of the main flow?

  • A . [[5, 10, 15, 20], 1]
  • B . [[5, 10, 15, 20], 5]
  • C . [[Req5, Req10, Req15, Req20], 5]
  • D . [Req5Req10,Req15Req20, 5]

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Correct answer is [[5, 10, 15, 20], 5]

Key thing to note here is that any changes made to payload in for each loop are not available outside for each scope where as variable value updated in for each loop is visible out side for each loop too.

Question #15

Which of the below is not a valid category for connector type?

  • A . Gold
  • B . Select
  • C . Premium
  • D . Community

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Gold is not valid category for connector types.

MuleSoft Doc

Ref: https://docs.mulesoft.com/mule-runtime/3.7/anypoint-connectors#connector-support-categories

Text

Description automatically generated with medium confidence


Question #16

Refer to the exhibit.

What is the output payload in the On Complete phase?

  • A . summary statistics with NO record data
  • B . The records processed by the last batch step: [StepTwol, StepTwo2, StepTwo3]
  • C . The records processed by all batch steps: [StepTwostepOnel, stepTwostepOne2, StepTwoStepOne3]
  • D . The original payload: [1,2,31

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

This is a trcik question. On complete phase pyalod consists of summary of records processed which gives insight on which records failed or passed. Hence option 4 is correct answer

MuleSoft Documentation

Reference: https://docs.mulesoft.com/mule-runtime/4.3/batch-processing-concept#on-complete

Question #17

Refer to the exhibits.

The Mule application does NOT define any global error handlers.

A web client sends a POST request to the Multi application with this input payload The File Write operation throws a FILECONNECTIVITY error

What response message is returned to the web client?

  • A . "ORDER NOT_CREATED"
  • B . "OTHER ERROR"
  • C . "File written"
  • D . "FILECONNECTIVITY"

Reveal Solution Hide Solution

Correct Answer: A
Question #18

Refer to the exhibits.

How many private flows does APIKIt generate from RAML specification?

  • A . 1
  • B . 2
  • C . 3
  • D . 4

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

APIKIt Creates a separate flow for each HTTP method. Hence 4 private flows would be generated.

MuleSoft Documentation

Referrence: https://docs.mulesoft.com/mule-runtime/4.3/build-application-from-api

Question #19

What is output of Dataweave flatten function?

  • A . Object
  • B . Map
  • C . Array (Correct)
  • D . LInkedHashMap

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

Correct answer is Array.

Flatten turns a set of subarrays (such as [ [1,2,3], [4,5,[6]], [], [null] ]) into a single, flattened array (such as [ 1, 2, 3, 4, 5, [6], null ]).

This example defines three arrays of numbers, creates another array containing those three arrays, and then uses the flatten function to convert the array of arrays into a single array with all values.

Source

%dw 2.0

output application/json

var array1 = [1,2,3]

var array2 = [4,5,6]

var array3 = [7,8,9]

var arrayOfArrays = [array1, array2, array3]



flatten(arrayOfArrays)

Output

[ 1,2,3,4,5,6,7,8,9 ]

Question #20

What is the purpose of the api:router element in APIkit?

  • A . Creates native connectors using a 3rd party Java library
  • B . Serves as an API implementation
  • C . Validates requests against RAML API specifications and routes them to API implementations
  • D . Validates responses returned from API requests and routes them back to the caller

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

The APIkit Router is a key message processor that validates requests against the provided definition, enriches messages (for example by adding default values to the messages) and routes requests to a particular flow. Also, the Router raises errors messages if errors occurs while routing, validating or processing the user request.

Question #21

Refer to the exhibits.

Set paylaod transformer is set the firstName and lastName of the customer as shown in below images.

What is the correct Dataweave expression which can be added in message attribute of a Logger activity to access firstName (which in this case is Madhav) from the incoming event?

  • A . firstName
  • B . customer.firstName
  • C . vars."customer.firstName"
  • D . vars."customer"."firstName"

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Correct answer is vars."customer"."firstName"

Please you can also access firstName using this syntax vars.customer.firstName.

Question #22

What is not the function of API Gateway?

  • A . Determine which traffic is authorized to pass through the API to backend services
  • B . Meter the traffic flowing through
  • C . Logs all transactions, collecting and tracking analytics data
  • D . Specify throttling, security and other policies

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Correct answer is Specify throttling, security and other policies

MuleSoft Doc

Ref: https://docs.mulesoft.com/api-manager/2.x/api-gateway-capabilities-mule4

API Gateway is responsible for below functions.

1) Determine which traffic is authorized

2) Meter the traffic

3) Logs transaction

4) Apply throttling and other policies (Not specifying. These are specified in API Manager)

Graphical user interface, text, application

Description automatically generated


Question #23

What path setting is required for an HTTP Listener endpoint to route all requests to an APIkit router?

  • A . /(*)
  • B . /
  • C . /()
  • D . “/*”

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Option1 is correct syntax to configure HTTP Listener endpoint

Question #24

Refer to the exhibits.

The main flow contains a Flow Reference to the child flow.

A web client sends a GET request to the main flow’s HTTP Listener that includes a make query parameter.

What values are accessible in the child flow?

  • A . payload
  • B . payload
    make query param
  • C . payload model var
  • D . payload
    make query param model var

Reveal Solution Hide Solution

Correct Answer: D
Question #25

As a part of requirement, application property defined below needs to be accessed as dataweave expression.

What is the correct expression to map it to port value?

  • A . { port : p(‘db.port’)}
  • B . { port : {db:port}}
  • C . { port : p[‘db.port’]}
  • D . Application property cannot be accessed in Dataweave

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Option 1 is the correct syntax

Question #26

Refer to the exhibits.

A web client submits a request to http://localhQst:8081 /flights.

What is the result at the end of the flow?

  • A . "string"
  • B . "Java"
  • C . "object"
  • D . "XML"

Reveal Solution Hide Solution

Correct Answer: A
Question #27

What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?

  • A . Data layer
  • B . Process layer
  • C . Experience layer
  • D . System layer

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Correct answer is System layer

System APIs provide a means for insulating the data consumers from the complexity or changes to the underlying backend systems.

MuleSoft recommends three-layered approach to API-led connectivity, highlighting the three layers:

* System APIs

* Process APIs

* Experience APIs

System APIs are the core systems of record underlying core systems of record (e.g. ERPs, key customer and billing systems, databases, etc.). Process APIs allow you to define a common process which the organization can share, and these APIs perform specific functions, provide access to non-central data, and may be built by either Central IT or Line of Business IT. And finally, the Experience APIs are the means by which data can be reconfigured so that it is most easily consumed by its intended audience, all from a common data source.

The three-layered structure allows for a seamless flow of data from systems of record to new experiences, and allows for reusability of assets rather than point to point connections. This approach provides a distributed and tailored approach to architecture, greater flexibility through loose coupling, and deeper operational visibility into what is being built.

Diagram

MuleSoft MCD-Level-1 : Practice Test Description automatically generated


Question #27

What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?

  • A . Data layer
  • B . Process layer
  • C . Experience layer
  • D . System layer

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Correct answer is System layer

System APIs provide a means for insulating the data consumers from the complexity or changes to the underlying backend systems.

MuleSoft recommends three-layered approach to API-led connectivity, highlighting the three layers:

* System APIs

* Process APIs

* Experience APIs

System APIs are the core systems of record underlying core systems of record (e.g. ERPs, key customer and billing systems, databases, etc.). Process APIs allow you to define a common process which the organization can share, and these APIs perform specific functions, provide access to non-central data, and may be built by either Central IT or Line of Business IT. And finally, the Experience APIs are the means by which data can be reconfigured so that it is most easily consumed by its intended audience, all from a common data source.

The three-layered structure allows for a seamless flow of data from systems of record to new experiences, and allows for reusability of assets rather than point to point connections. This approach provides a distributed and tailored approach to architecture, greater flexibility through loose coupling, and deeper operational visibility into what is being built.

Diagram

MuleSoft MCD-Level-1 : Practice Test Description automatically generated


Question #27

What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?

  • A . Data layer
  • B . Process layer
  • C . Experience layer
  • D . System layer

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Correct answer is System layer

System APIs provide a means for insulating the data consumers from the complexity or changes to the underlying backend systems.

MuleSoft recommends three-layered approach to API-led connectivity, highlighting the three layers:

* System APIs

* Process APIs

* Experience APIs

System APIs are the core systems of record underlying core systems of record (e.g. ERPs, key customer and billing systems, databases, etc.). Process APIs allow you to define a common process which the organization can share, and these APIs perform specific functions, provide access to non-central data, and may be built by either Central IT or Line of Business IT. And finally, the Experience APIs are the means by which data can be reconfigured so that it is most easily consumed by its intended audience, all from a common data source.

The three-layered structure allows for a seamless flow of data from systems of record to new experiences, and allows for reusability of assets rather than point to point connections. This approach provides a distributed and tailored approach to architecture, greater flexibility through loose coupling, and deeper operational visibility into what is being built.

Diagram

MuleSoft MCD-Level-1 : Practice Test Description automatically generated


Question #27

What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?

  • A . Data layer
  • B . Process layer
  • C . Experience layer
  • D . System layer

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Correct answer is System layer

System APIs provide a means for insulating the data consumers from the complexity or changes to the underlying backend systems.

MuleSoft recommends three-layered approach to API-led connectivity, highlighting the three layers:

* System APIs

* Process APIs

* Experience APIs

System APIs are the core systems of record underlying core systems of record (e.g. ERPs, key customer and billing systems, databases, etc.). Process APIs allow you to define a common process which the organization can share, and these APIs perform specific functions, provide access to non-central data, and may be built by either Central IT or Line of Business IT. And finally, the Experience APIs are the means by which data can be reconfigured so that it is most easily consumed by its intended audience, all from a common data source.

The three-layered structure allows for a seamless flow of data from systems of record to new experiences, and allows for reusability of assets rather than point to point connections. This approach provides a distributed and tailored approach to architecture, greater flexibility through loose coupling, and deeper operational visibility into what is being built.

Diagram

MuleSoft MCD-Level-1 : Practice Test Description automatically generated


Question #27

What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?

  • A . Data layer
  • B . Process layer
  • C . Experience layer
  • D . System layer

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Correct answer is System layer

System APIs provide a means for insulating the data consumers from the complexity or changes to the underlying backend systems.

MuleSoft recommends three-layered approach to API-led connectivity, highlighting the three layers:

* System APIs

* Process APIs

* Experience APIs

System APIs are the core systems of record underlying core systems of record (e.g. ERPs, key customer and billing systems, databases, etc.). Process APIs allow you to define a common process which the organization can share, and these APIs perform specific functions, provide access to non-central data, and may be built by either Central IT or Line of Business IT. And finally, the Experience APIs are the means by which data can be reconfigured so that it is most easily consumed by its intended audience, all from a common data source.

The three-layered structure allows for a seamless flow of data from systems of record to new experiences, and allows for reusability of assets rather than point to point connections. This approach provides a distributed and tailored approach to architecture, greater flexibility through loose coupling, and deeper operational visibility into what is being built.

Diagram

MuleSoft MCD-Level-1 : Practice Test Description automatically generated


Question #27

What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?

  • A . Data layer
  • B . Process layer
  • C . Experience layer
  • D . System layer

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Correct answer is System layer

System APIs provide a means for insulating the data consumers from the complexity or changes to the underlying backend systems.

MuleSoft recommends three-layered approach to API-led connectivity, highlighting the three layers:

* System APIs

* Process APIs

* Experience APIs

System APIs are the core systems of record underlying core systems of record (e.g. ERPs, key customer and billing systems, databases, etc.). Process APIs allow you to define a common process which the organization can share, and these APIs perform specific functions, provide access to non-central data, and may be built by either Central IT or Line of Business IT. And finally, the Experience APIs are the means by which data can be reconfigured so that it is most easily consumed by its intended audience, all from a common data source.

The three-layered structure allows for a seamless flow of data from systems of record to new experiences, and allows for reusability of assets rather than point to point connections. This approach provides a distributed and tailored approach to architecture, greater flexibility through loose coupling, and deeper operational visibility into what is being built.

Diagram

MuleSoft MCD-Level-1 : Practice Test Description automatically generated


Question #27

What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?

  • A . Data layer
  • B . Process layer
  • C . Experience layer
  • D . System layer

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Correct answer is System layer

System APIs provide a means for insulating the data consumers from the complexity or changes to the underlying backend systems.

MuleSoft recommends three-layered approach to API-led connectivity, highlighting the three layers:

* System APIs

* Process APIs

* Experience APIs

System APIs are the core systems of record underlying core systems of record (e.g. ERPs, key customer and billing systems, databases, etc.). Process APIs allow you to define a common process which the organization can share, and these APIs perform specific functions, provide access to non-central data, and may be built by either Central IT or Line of Business IT. And finally, the Experience APIs are the means by which data can be reconfigured so that it is most easily consumed by its intended audience, all from a common data source.

The three-layered structure allows for a seamless flow of data from systems of record to new experiences, and allows for reusability of assets rather than point to point connections. This approach provides a distributed and tailored approach to architecture, greater flexibility through loose coupling, and deeper operational visibility into what is being built.

Diagram

MuleSoft MCD-Level-1 : Practice Test Description automatically generated


Question #27

What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?

  • A . Data layer
  • B . Process layer
  • C . Experience layer
  • D . System layer

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Correct answer is System layer

System APIs provide a means for insulating the data consumers from the complexity or changes to the underlying backend systems.

MuleSoft recommends three-layered approach to API-led connectivity, highlighting the three layers:

* System APIs

* Process APIs

* Experience APIs

System APIs are the core systems of record underlying core systems of record (e.g. ERPs, key customer and billing systems, databases, etc.). Process APIs allow you to define a common process which the organization can share, and these APIs perform specific functions, provide access to non-central data, and may be built by either Central IT or Line of Business IT. And finally, the Experience APIs are the means by which data can be reconfigured so that it is most easily consumed by its intended audience, all from a common data source.

The three-layered structure allows for a seamless flow of data from systems of record to new experiences, and allows for reusability of assets rather than point to point connections. This approach provides a distributed and tailored approach to architecture, greater flexibility through loose coupling, and deeper operational visibility into what is being built.

Diagram

MuleSoft MCD-Level-1 : Practice Test Description automatically generated


Question #27

What MuleSoft API-led connectivity layer is intended to expose part of a backend database without business logic?

  • A . Data layer
  • B . Process layer
  • C . Experience layer
  • D . System layer

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Correct answer is System layer

System APIs provide a means for insulating the data consumers from the complexity or changes to the underlying backend systems.

MuleSoft recommends three-layered approach to API-led connectivity, highlighting the three layers:

* System APIs

* Process APIs

* Experience APIs

System APIs are the core systems of record underlying core systems of record (e.g. ERPs, key customer and billing systems, databases, etc.). Process APIs allow you to define a common process which the organization can share, and these APIs perform specific functions, provide access to non-central data, and may be built by either Central IT or Line of Business IT. And finally, the Experience APIs are the means by which data can be reconfigured so that it is most easily consumed by its intended audience, all from a common data source.

The three-layered structure allows for a seamless flow of data from systems of record to new experiences, and allows for reusability of assets rather than point to point connections. This approach provides a distributed and tailored approach to architecture, greater flexibility through loose coupling, and deeper operational visibility into what is being built.

Diagram

MuleSoft MCD-Level-1 : Practice Test Description automatically generated


Question #36

/{customerId}:

Reveal Solution Hide Solution

Correct Answer: B

Explanation:

Correct answer is below as it follows the correct syntax.

/customers:

/{customerId}:

get:

Question #37

Refer to exhibits.

What message should be added to Logger component so that logger prints "The city is Pune" (Double quote should not be part of logged message)?

  • A . #["The city is" ++ payload.City]
  • B . The city is + #[payload.City]
  • C . The city is #[payload.City]
  • D . #[The city is ${payload.City}

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

Correct answer is The city is #[payload.City]

Answer can get confused with the option #["The city is" ++ payload.City] But note that this option will not print the space between is and city name. This will print The city isPune

Question #38

Refer to the exhibits.

The main flow contains an HTTP Request in the middle of the flow.

The HTTP Listeners and HTTP Request use default configurations.

A web client submits a request to the main flow’s HTTP Listener that includes query parameters for the pedigree of the piano.

What values are accessible to the Logger component at the end of the main flow?

  • A . payload
  • B . payload
    pedigree query params
  • C . payload producer var
  • D . payload
    pedigree query params producer var

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

In this case as outbound call is made using HTTP: POST /child, all attributes will be replaced by this invocation. Hence query parameter will not be accessible at logger. Hence correct answer is option 2

Question #39

What is minimal requirement in a flow for a Mule application to compile?

  • A . Event Source
  • B . Event Processors
  • C . Error handlers
  • D . Source and processors both

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Process section is must to get compiles. Process section must have one or more processors

Diagram

Description automatically generated


Question #39

What is minimal requirement in a flow for a Mule application to compile?

  • A . Event Source
  • B . Event Processors
  • C . Error handlers
  • D . Source and processors both

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Process section is must to get compiles. Process section must have one or more processors

Diagram

Description automatically generated


Question #39

What is minimal requirement in a flow for a Mule application to compile?

  • A . Event Source
  • B . Event Processors
  • C . Error handlers
  • D . Source and processors both

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Process section is must to get compiles. Process section must have one or more processors

Diagram

Description automatically generated


Question #39

What is minimal requirement in a flow for a Mule application to compile?

  • A . Event Source
  • B . Event Processors
  • C . Error handlers
  • D . Source and processors both

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Process section is must to get compiles. Process section must have one or more processors

Diagram

Description automatically generated


Question #39

What is minimal requirement in a flow for a Mule application to compile?

  • A . Event Source
  • B . Event Processors
  • C . Error handlers
  • D . Source and processors both

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Process section is must to get compiles. Process section must have one or more processors

Diagram

Description automatically generated


Question #39

What is minimal requirement in a flow for a Mule application to compile?

  • A . Event Source
  • B . Event Processors
  • C . Error handlers
  • D . Source and processors both

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Process section is must to get compiles. Process section must have one or more processors

Diagram

Description automatically generated


Question #39

What is minimal requirement in a flow for a Mule application to compile?

  • A . Event Source
  • B . Event Processors
  • C . Error handlers
  • D . Source and processors both

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Process section is must to get compiles. Process section must have one or more processors

Diagram

Description automatically generated


Question #39

What is minimal requirement in a flow for a Mule application to compile?

  • A . Event Source
  • B . Event Processors
  • C . Error handlers
  • D . Source and processors both

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Process section is must to get compiles. Process section must have one or more processors

Diagram

Description automatically generated


Question #39

What is minimal requirement in a flow for a Mule application to compile?

  • A . Event Source
  • B . Event Processors
  • C . Error handlers
  • D . Source and processors both

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Process section is must to get compiles. Process section must have one or more processors

Diagram

Description automatically generated


Question #39

What is minimal requirement in a flow for a Mule application to compile?

  • A . Event Source
  • B . Event Processors
  • C . Error handlers
  • D . Source and processors both

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Process section is must to get compiles. Process section must have one or more processors

Diagram

Description automatically generated


Question #49

get:

  • A . 1
  • B . 2
  • C . 3
  • D . 5

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is 5 as APIkit for REST generates a backend flow for each resource-action pairing in a RAML file.

MuleSOft Doc

Ref: https://docs.mulesoft.com/mule-runtime/4.2/build-application-from-api

Question #50

Mule application contains ActiveMQ JMS dependency. Mule application was compiled and run successfully in Anypoint Studio. The mule application must now be exported from Anypoint Studio and shared with other developer.

What export options should be selected to create the smallest JAR file that can be imported into other developer’s Anypoint Studio and run successfully?

  • A . Select only Attach Project Sources only
  • B . Select both Attach Project Sources and Include project modules and dependencies option
  • C . Select the Include project modules and dependencies option only
  • D . De-select both Attach Project Sources and Include project modules and dependencies option

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is Select only Attach Project Sources only

You must keep the Attach Project Sources option selected to be able to import the packaged JAR file back into a Studio workspace.

Deselect the Include project modules and dependencies option.

This option skips bundling the actual modules and external dependencies required to run the Mule application in a Mule runtime engine, creating a lightweight JAR file package that does not include any dependencies specified in the Mule application’s pom.xml file.

The generated JAR file is not a functional deployable archive and cannot be deployed to a Mule runtime engine, but instead offers a way to archive only the source files that make up the Mule application. This is the same as using the -lightWeightPackage flag when

packaging using the Mule Maven Plugin and is useful if you want to distribute your project to other Studio installations because it only keeps a reference to all its dependencies. When you import a lightweight package into Studio, all your dependencies are automatically downloaded MuleSoft Doc

Ref: https://docs.mulesoft.com/studio/7.8/import-export-packages

Question #51

What is the output of Dataweave Map operator?

  • A . Map
  • B . Object
  • C . String
  • D . Array

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Returns an array that is the result of applying a transformation function (lambda) to each of the elements.

MuleSoft Doc

Ref: https://docs.mulesoft.com/mule-runtime/4.3/dataweave-cookbook-map The map operator is a function in Dataweave which iterates over the items in an array and outputs them into a new array. It basically accepts input as a list of items in an array and manipulates the items in the array in order to form a new array as an output. I have created below chart for your easier understanding:

Table

MuleSoft MCD-Level-1 : Practice Test Description automatically generated


Question #52

What are the latest specification of RAML available?

  • A . 1.2
  • B . 1
  • C . 0.8
  • D . 2

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

The current version of the RAML specification is 1.0

You can check RAML version in RAML definition by referring to first comment. See highlighted part in below image.

Graphical user interface, text, application, email

Description automatically generated


Question #53

A Mule project contains a MySQL Database dependency. The project is exported from Anypoint Studio so it can be deployed to CloudHub.

What export options create the smallest deployable archive that will successfully deploy to CloudHub?

What export option create their smallest deployable archive that will successfully deploy to CloudHub?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: B
Question #54

What should this endpoint return? http://dev.acme.com/api/patients?name=John&surname=Bell

  • A . Patient with name as John
  • B . Patient with surname as bell
  • C . Patients with either name as John or surname as Bell
  • D . Patients with name as John and surname as Bell

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Query parameters are a defined set of parameters attached to the end of a url. They are extensions of the URL that are used to help define specific content or actions based on the data being passed. To append query params to the end of a URL, a ‘?’ Is added followed immediately by a query parameter.

To add multiple parameters, an ‘&’ is added in between each.

Hence coming back to question, endpoint would return Patients with name as John and (and is very important here) surname as Bell

Question #55

An SLA based policy has been enabled in API Manager.

What is the next step to configure the API proxy to enforce the new SLA policy?

  • A . Add new property placeholders and redeploy the API proxy
  • B . Add new environment variables and restart the API proxy
  • C . Restart the API proxy to clear the API policy cache
  • D . Add required headers to the RAML specification and redeploy the new API proxy

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Correct answer is Add required headers to RAML specification and redeploy new API proxy

MuleSoft Doc

Ref: https://docs.mulesoft.com/api-manager/2.x/tutorial-manage-an-api

Steps are as below:

Add the Required RAML Snippet

SLA-based rate limiting requires adding a RAML or OAS snippet to your API. This

procedure demonstrates adding a RAML snippet.

Specify the client ID and secret as query parameters.

Add a section called traits: at the RAML root level to define query parameters:

traits:

– client-id-required: queryParameters: client_id:

type: string

client_secret:

type: string

Add the client-id-required trait to every method that requires these query parameters:

/users:

get:

is: [client-id-required]

description: Gets a list of JSONPlaceholder users.

Step 2: Add the SLA Tier in API Manager

Step 3: Apply the policy and redeploy

Reference: https://docs.mulesoft.com/api-manager/2.x/tutorial-manage-an-api

Question #56

Refer to the exhibits.

All three of the conditions for the Choice router are true.

What messages are written in the application log?

  • A . Route1
  • B . Route2
  • C . Route1, Route2
  • D . Route1, Route2, Default

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Only one of the routes in the Choice router executes, meaning that the first expression that evaluates to true triggers that route1 execution and the others are not checked. If none of the expressions are true, then the default route executes. Hence only Route1 will be executed as it is the first expression. hence output of logger is Route1.

MuleSoft Doc

Ref: https://docs.mulesoft.com/mule-runtime/4.3/choice-router-concept The Choice router dynamically routes messages through a flow according to a set of DataWeave expressions that evaluate message content. Each expression is associated with a different routing option. The effect is to add conditional processing to a flow, similar to an if/then/else code block in most programming languages.

Only one of the routes in the Choice router executes, meaning that the first expression that evaluates to true triggers that route’s execution and the others are not checked. If none of the expressions are true, then the default route executes.

Diagram

Description automatically generated


Question #57

Refer to the exhibits.

A company has defined this Book data type and Book example to be used in APIs.

What is valid RAML for an API that uses this Book data type and Book example?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: D
Question #58

From which application, Organization Administrators can approve/revoke/delete SLA tier access requests

  • A . API Exchange
  • B . API Portal
  • C . API Gateway
  • D . API Manager

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Organization Administrators can approve/revoke/delete SLA tier access requests via API Manager only

Question #59

A company has an API to manage departments, with each department identified by a unique deptld. The API was built with RAML according to MuleSoft best practices.

What is valid RAML to specify a method to update the details for a specific department?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

URI parameter is basically used to identify a specific resource or resources

* Here we want to update details about specific department, so question is asking ‘How to use URI parameter’ in RAML

* Correct answer is

/departments:

/{deptId}:

patch:

Reference: https://docs.mulesoft.com/design-center/design-common-problems-raml-10

Question #60

According to MuleSoft, what is the Center for Enablement’s role in the new IT operating model?

  • A . Implements line of business projects to enforce common security requirements
  • B . Creates and manages discoverable assets to be consumed by line of business developers
  • C . Centrally manages partners and consultants to implement line of business projects
  • D . Implements line of business projects to enforce common security requirements

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Correct answer is Creates and manages discoverable assets to be consumed by line of business developers.

C4E does not get directly involved in projects.

Question #61

Refer to the exhibit.

In the execution of the Scatter_Gather, the flow1 route completes after 10 seconds and the flow2 route completes after 20 seconds.

How many seconds does it take for the Scatter_Gather to complete?

  • A . 0
  • B . 10
  • C . 20
  • D . 30

Reveal Solution Hide Solution

Correct Answer: C
Question #62

What is the correct syntax for a Logger component to output a message with the contents of a 3SON Object payload?

  • A . The payload is: $(payload)
  • B . #["The payload is: " ++ payload]
  • C . The payload is: #[payload]
  • D . #["The payload is: " + payload]

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Option 3 is the only corect answer as it concatenates payload with String.

Below option wont work.

#["The payload is " ++ payload]

Concatenation function expects both arguments to be string. As the question says payload is json object, this will throw error while running it. You can try this in Anypoint Studio and you will get the same result which I mentioned. hence correct answer is

The payload is: #[payload]

Question #63

Refer to the exhibit.

How should the WHERE clause be changed to set the city and state values from the configured input parameters?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
Question #64

A RAML example fragment named StudentExample.raml is placed in the examples folder in an API specification project.

What is the correct syntax to reference the fragment?

  • A . examples: !include StudentExample.raml
  • B . examples: #import StudentExample.raml
  • C . examples: !include examples/StudentExample.raml
  • D . examples: #import examples/StudentExample.raml

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

To include property. To keep the API definition concise, you can include external content, such as documentation, schemas, and frequently used patterns outside the definition itself. The parser interprets !include as if the content of the externally-hosted file or a URL were declared in-line.

To use the fragments in RAML you have to include the exact path(copy the path) of that fragment you want to use as shown below

Option 3 is the correct as correct syntax is examples: !include examples/StudentExample.raml

Reference: https://docs.mulesoft.com/api-manager/1.x/tutorial-design-an-api

Question #65

Refer to the exhibits.

Mule application has an HTTP request configuration where host name is hardcoded. Organization is looking to move host and port values to configuration file.

What valid expression can be used to so that HTTP configuration can pick the value from configuration file?

  • A . #[training.host]
  • B . ${http.host}
  • C . #{training.host}
  • D . ${training.host}

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Correct answer is ${training.host}

Question #66

An API has been created in Design Center.

What is the next step to make the API discoverable?

  • A . Publish the API to Anypoint Exchange
  • B . Publish the API from inside flow designer
  • C . Deploy the API to a Maven repository
  • D . Enable autodiscovery in API Manager

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is Publish the API to Anypoint Exchange

Anypoint Exchange makes this possible by making it discoverable in below ways

1) In private exchange for internal developers

2) In a public portal for external developers/clients

Here is diagram created by me to help you understand sequence:

Diagram

Description automatically generated


Question #67

By default, what happens to a file after it is read using an FTP connector Read operation?

  • A . The file is deleted from the folder
  • B . The file is moved to a different folder
  • C . The file stays in the same folder unchanged
  • D . The file is renamed in the same folder

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

File is not updated when FTP read operations is performed.

MuleSoft Doc

Ref: https://docs.mulesoft.com/file-connector/1.3/file-read

Question #68

How are multiple conditions used in a Choice router to route events?

  • A . To route the same event to the matched route of EVERY true condition
  • B . To find the FIRST true condition, then distribute the event to the ONE matched route.
  • C . None of these
  • D . To find the FIRST true condition, then route the same event to the matched route and ALL FOLLOWING routes

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Choice router finds the FIRST true condition, then distribute the event to the ONE matched route.

MuleSoft Doc

Ref: https://docs.mulesoft.com/mule-runtime/4.1/choice-router-concept The Choice router dynamically routes messages through a flow according to a set of DataWeave expressions that evaluate message content. Each expression is associated with a different routing option. The effect is to add conditional processing to a flow, similar to an if/then/else code block in most programming languages.

Only one of the routes in the Choice router executes, meaning that the first expression that evaluates to true triggers that route’s execution and the others are not checked. If none of the expressions are true, then the default route executes.

Diagram

Description automatically generated


Question #69

Refer to the exhibits.

What payload is logged at the end of the main flow?

  • A . [order1, order2, order3, order4]
  • B . [1, 2, 3, 4]
  • C . order4
  • D . order1order2order3order4

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

This is a trick question. For Each does not modify the current payload. The output payload is the same as the input. Hence output of logger is the same payload which is set before invoking For Each scope. Hence option 2 is correct answer.

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #70

What DataWeave expression transforms the example XML input to the CSV output?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is as below. Attributes in the incoming xml payload are always accessed using @.Similarly *item is required as we have multiple items in the request %dw 2.0

output application/csv



payload.sale.*item map ((value, index) -> {

index: index,

sale: value.@saleId,

itemName: value.desc,

itemPrice: (value.quantity) * (value.price),

item: value.@itemId

} )

Question #101

}

Reveal Solution Hide Solution

Correct Answer: A

Explanation:

For such questions always look for Syntax:

I call it "Wrap the Map"

trains:

{(

When mapping array elements (JSON or JAVA) to XML, wrap the map operations in {(..)} -{ } are defining the object

-( ) are transforming each element in the array as a key/value pair

Question #102

What is the minimum Cloudhub worker size that can be specified while deploying mule application?

  • A . 0.2 vCores
  • B . 0.5 vCores
  • C . 1.0 vCores
  • D . 0.1 vCores

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Correct answer is 0.1 vCores

MuleSoft Doc

Ref: https://docs.mulesoft.com/runtime-manager/cloudhub-architecture#cloudhub-workers

CloudHub Workers

Workers are dedicated instances of Mule runtime engine that run your integration applications on CloudHub. The memory capacity and processing power of a worker depends on how you configure it at the application level.

Worker sizes have different compute, memory, and storage capacities. You can scale workers vertically by selecting one of the available worker sizes:

Table

Description automatically generated


Question #103

Which one of them is NOT a flow in Mule?

  • A . sync flow
  • B . subflow
  • C . async sub flow
  • D . async flow

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

Correct answer is async sub flow. Rest are valid flows in Mule.

Sub flow is always synchronous.

Question #104

Refer to the exhibits.

The Set Variable transformer is set with value #[ [ first "Max" last "Mule"} ].

What is a valid DataWeave expression to set as the message attribute of the Logger to access the value "Max" from the Mule event?

  • A . vars "customer first"
  • B . "customer first"
  • C . customer first
  • D . vars "customer" "first"

Reveal Solution Hide Solution

Correct Answer: D
Question #105

An On Table Row Database listener retrieves data from a table that contains record_id, an increasing numerical column.

How should the listener be configured so it retrieves new rows at most one time?

  • A . Set the target to store the last retrieved record_id value
  • B . Set the ObjectStore to store the last retrieved record_id value
  • C . Set the target to the record_id column
  • D . Set the watermark column to the record id column

Reveal Solution Hide Solution

Correct Answer: D
Question #106

Refer to the exhibits.

A web client submits the request to the HTTP Listener.

What response message would be returned to web client?

  • A . End
  • B . String is not blank
  • C . No response would be sent back to client and request will get errored out in Mule
  • D . Start

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Correct answer is String is not blank.

————————————————————————————————————————-

Here’s specifically what is happening here:

1) Payload is successfully set to “Start”

2) The Is Blank String validator creates an Error Object because the payload is string "Start". Execution stops

#[error.description] = “String is not blank”

3) Because no error handler is defined, the Mule default error handler handles the error. Remember, at its heart, the Mule Default Error handler is an error handling scope with just an on error propagate

4) “String is not blank” is the error message returned to the requestor in the body of the HTTP requestHTTP Status Code: 500

Reference Diagram:

A picture containing diagram

Description automatically generated


Question #107

A Batch Job scope has five batch steps. An event processor throws an error in the second batch step because the input data is incomplete.

What is the default behavior of the batch job after the error is thrown?

  • A . All processing of the batch job stops.
  • B . Event processing continues to the next batch step.
  • C . Error is ignored
  • D . Batch is retried

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

In case of an error, batch job completes in flight steps and stops further processing.

MuleSoft Doc

Ref: Handling Errors During Batch Job | MuleSoft Documentation

The default is all processing will stop but we can change it by Max Failed Record field.

General -> Max Failed Records: Mule has three options for handling a record-level error:

Finish processing, Continue processing and Continue processing until the batch job

accumulates a maximum number of failed records. This behavior can be controlled by Max Failed Records.

The default value is Zero which corresponds to Finish processing.

The value -1, corresponds to Continue processing.

The value +ve integer, corresponds to Continue processing until the batch job accumulates a maximum number of failed records

Question #108

What module and operation will throw an error if a Mule events payload is not number ?

  • A . Filter modules Is Number operation
  • B . Validation modules Is Number operation
  • C . Validation modules Is not Number operation
  • D . None of these

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Correct answer is Validation modules Is Number operation.

Mule 4 does not use filters anymore. The functionality provided by filters in Mule 3 can be achieved by using the Validation Module.

Question #109

According to MuleSoft. what is the first step to create a Modern API?

  • A . Gather a list of requirements to secure the API
  • B . Create an API specification and get feedback from stakeholders
  • C . Performance tune and optimize the backend systems and network
  • D . Create a prototype of the API implementation

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

First step in creating Modern API is to create an API specification and get feedback from stakeholders so that any future issues can be identified at early stage thereby reducing overall delivery time

Reference: https://developer.mulesoft.com/tutorials-and-howtos/quick-start/designing-your-first-api

Question #110

Which keyword do you use to create a new function in DataWeave?

  • A . function
  • B . fun
  • C . func
  • D . map

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

You can define your own DataWeave functions using the fun declaration in the header of a DataWeave script. Sample is as below. —————————————- %dw 2.0

output application/json

fun toUpper(aString) = upper(aString)



toUpper("hello")

MuleSoft Doc

Ref: https://docs.mulesoft.com/mule-runtime/4.1/dataweave-functions

Question #111

Refer to the exhibits.

The Set Payload transformer in the addltem child flow uses DataWeave to create an order object.

What is the correct DataWeave code for the Set Payload transformer in the createOrder flow to use the addltem child flow to add a router call with the price of 100 to the order?

  • A . lookup( "addltern", { price: "100", item: "router", itemType: "cable" } )
  • B . addltem( { payload: { price: "100", item: "router", itemType: "cable" > } )
  • C . lookup( "addltem", { payload: { price: "100", item: "router", itemType: "cable" } > )
  • D . addltem( { price: "100", item: "router", itemType: "cable" } )

Reveal Solution Hide Solution

Correct Answer: C
Question #112

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 . A non-empty Java object

Reveal Solution Hide Solution

Correct Answer: C
Question #113

Refer to the exhibit.

The main flow contains an HTTP Request in the middle of the flow.

The HTTP Listeners and HTTP request use default configurations.

What values are accessible to the Logger at the end of the flow after a web client submit request to http://local:801/order?color=red?

  • A . payload
  • B . payload quantity var
  • C . payload color query param
  • D . payload quantity var color query param

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Correct answer is as below. Query parameters are replaced when external HTTP call is invoked.

payload

producer var

Question #114

An API implementation has been deployed to CloudHub and now needs to be governed. IT will not allocate additional vCore for a new Mule application to act as an API proxy.

What is the next step to preseive the current vCore usage, but still allow the Mule application to be managed by API Manager?

  • A . Register the same API implementation in Runtime Manager to connect to API Manager
  • B . Modify the API implementation to use auto-discovery to register with API Manager
  • C . Upload the Mule application’s JAR file to the API instance in API Manager
  • D . Deploy the same API implementation behind a VPC and configure the VPC to connect to API Manager

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Correct answer is Modify the API implementation to use auto-discovery to register with API Manager

API Autodiscovery

Configuring autodiscovery allows a deployed Mule runtime engine (Mule) application to connect with API Manager to download and manage policies and to generate analytics data. Additionally, with autodiscovery, you can configure your Mule applications to act as their own API proxy.

When autodiscovery is correctly configured in your Mule application, you can say that your application’s API is tracked by (green dot) or paired to API Manager. You can associate an API in a Mule setup with only one autodiscovery instance at a given time.

MuleSoft Doc

Ref: https://docs.mulesoft.com/api-manager/2.x/api-auto-discovery-new-concept

Question #115

What HTTP method in a RESTful web service is typically used to completely replace an existing resource?

  • A . GET
  • B . PATCH
  • C . PUT
  • D . POST

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

PUT replaces the original version of the resource, whereas the PATCH method supplies a set of instructions to modify the resource

Question #116

Refer to the exhibits.

In the Choice router, the When expression for the domesticShipping route is set to "#[payload = ‘FR’]".

What is logged after the Choice router completes?

  • A . A string with value "FR"
  • B . A DataVVeave syntax error
  • C . The result of the intemationalShipping flow
  • D . The result of the domesticShipoing flow

Reveal Solution Hide Solution

Correct Answer: B
Question #117

Refer to the exhibits.

The web client sends a POST request to the ACME Order API with an XML payload. An error is returned.

What should be changed in the request so that a success response code is returned to the web client?

  • A . Set a request header with the name Content-Type to a value of applicatron/octet-stream
  • B . Set a request header with the name Content-Type to a value of application/xml
  • C . Set a response header with the name Content-Type to a value of applkation/xml
  • D . Set a response header with the name Content-Type to a value of application/octet-stream

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

The HTTP 415 Unsupported Media Type client error response code indicates that the server refuses to accept the request because the payload format is in an unsupported format. The format problem might be due to the request’s indicated Content-Type or Content-Encoding, or as a result of inspecting the data directly. As per RAML input is expected in application/xml.

Hence correct answer is Set a request header with the name Content-Type to a

Question #118

What should this endpoint return considering the API is build using standard practices?

http://dev.acme.com/api/patients?year=2021

  • A . Patient with id 2021
  • B . Patients from year 2021
  • C . No patients
  • D . All patients

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Correct answer is Patients from year 2021.

The thing to note here is that year is not a query parameter and not the uri parameter. Hence it will filter all the patients and return the ones for whom year is 2021

Question #119

What is the difference between a subflow and a sync flow?

  • A . No difference
  • B . Subflow has no error handling of its own and sync flow does
  • C . Sync flow has no error handling of its own and subflow does
  • D . Subflow is synchronous and sync flow is asynchronous

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Correct answer is Subflow has no error handling implementation where as sync flow has. Subflow

A subflow processes messages synchronously (relative to the flow that triggered its execution) and always inherits both the processing strategy and exception strategy employed by the triggering flow. While a subflow is running, processing on the triggering flow pauses, then resumes only after the subflow completes its processing and hands the message back to the triggering flow.

Synchronous Flow

A synchronous flow, like a subflow, processes messages synchronously (relative to the flow that triggered its execution). While a synchronous flow is running, processing on the triggering flow pauses, then resumes only after the synchronous flow completes its processing and hands the message back to the triggering flow. However, unlike a subflow, this type of flow does not inherit processing or exception strategies from the triggering flow. This type of flow processes messages along a single thread, which is ideally suited to transactional processing

Question #120

A web client submits a request to http://localhost:8081?flrstName=john.

What is the correct DataWeave expression to access the firstName parameter?

  • A . #[attributes.queryParams.firstName]
  • B . #[message.queryParams.hrstName]
  • C . #[message.inboundProperties.’http.query.params’.firstName]
  • D . #[attributes.’http.query.params’.firstName]

Reveal Solution Hide Solution

Correct Answer: A

Question #121

Refer to the exhibit.

The input array of strings is passed to the batch job, which does NOT do any filtering or aggregating.

What payload is logged by the Logger component?

  • A . Summary report of processed records
  • B . [ "Apple", "Banana" ]
  • C . [ "Apptel2", "Bananal2" ]
  • D . [ "Apptel", "Bananal", 2 ]

Reveal Solution Hide Solution

Correct Answer: A
Question #122

Refer to the exhibits.

The Mule application implements a REST API that accepts GET requests from web clients on the URLs: http://acme com/order/status and http: Vacme.com/customer/status.

What path value can be set in the HTTP GE~ event source to accept web client requests from both of these URLs?

  • A . *[order,customer]/status
  • B . */status
  • C . ?[order,customer]/status
  • D . *status

Reveal Solution Hide Solution

Correct Answer: B
Question #123

Which of the below functionality is provided by zip operator in DataWeave?

  • A . Merges elements of two lists (arrays) into a single list
  • B . Used for sending attachments
  • C . Minimize the size of long text using encoding.
  • D . All of the above

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is Merges elements of two lists (arrays) into a single list

MuleSoft Doc

Reference: https://docs.mulesoft.com/mule-runtime/4.3/dw-core-functions- zip

Question #124

Refer to the exhibits.

A web client submits a request to http://localhQst:8081.

What is the structure of the payload at the end of the flow?

A)

B)

C)

D)

  • A . Option A
  • B . Option B
  • C . Option C
  • D . Option D

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Scatter-Gather sends the event to each routes concurrently and returns a collection of all results. Collection is an Object of Objects. Each object contains attributes and payload from each Mule event returned from a flow. Hence option 4 is the correct answer.

Question #125

Which of the below is not the mandatory configurations for HTTP Listener?

  • A . Path
  • B . Allowed methods
  • C . HTTP port in Connector Configuration
  • D . HTTP host in Connector Configuration

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Allowed methods is an optional configuration. If nothing is specified then all HTTP methods are supported.

Rest all are mandatory.

Question #125

Which of the below is not the mandatory configurations for HTTP Listener?

  • A . Path
  • B . Allowed methods
  • C . HTTP port in Connector Configuration
  • D . HTTP host in Connector Configuration

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Allowed methods is an optional configuration. If nothing is specified then all HTTP methods are supported.

Rest all are mandatory.

Question #125

Which of the below is not the mandatory configurations for HTTP Listener?

  • A . Path
  • B . Allowed methods
  • C . HTTP port in Connector Configuration
  • D . HTTP host in Connector Configuration

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Allowed methods is an optional configuration. If nothing is specified then all HTTP methods are supported.

Rest all are mandatory.

Question #125

Which of the below is not the mandatory configurations for HTTP Listener?

  • A . Path
  • B . Allowed methods
  • C . HTTP port in Connector Configuration
  • D . HTTP host in Connector Configuration

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Allowed methods is an optional configuration. If nothing is specified then all HTTP methods are supported.

Rest all are mandatory.

Question #125

Which of the below is not the mandatory configurations for HTTP Listener?

  • A . Path
  • B . Allowed methods
  • C . HTTP port in Connector Configuration
  • D . HTTP host in Connector Configuration

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Allowed methods is an optional configuration. If nothing is specified then all HTTP methods are supported.

Rest all are mandatory.

Question #125

Which of the below is not the mandatory configurations for HTTP Listener?

  • A . Path
  • B . Allowed methods
  • C . HTTP port in Connector Configuration
  • D . HTTP host in Connector Configuration

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Allowed methods is an optional configuration. If nothing is specified then all HTTP methods are supported.

Rest all are mandatory.

Question #125

Which of the below is not the mandatory configurations for HTTP Listener?

  • A . Path
  • B . Allowed methods
  • C . HTTP port in Connector Configuration
  • D . HTTP host in Connector Configuration

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Allowed methods is an optional configuration. If nothing is specified then all HTTP methods are supported.

Rest all are mandatory.

Question #125

Which of the below is not the mandatory configurations for HTTP Listener?

  • A . Path
  • B . Allowed methods
  • C . HTTP port in Connector Configuration
  • D . HTTP host in Connector Configuration

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Allowed methods is an optional configuration. If nothing is specified then all HTTP methods are supported.

Rest all are mandatory.

Question #125

Which of the below is not the mandatory configurations for HTTP Listener?

  • A . Path
  • B . Allowed methods
  • C . HTTP port in Connector Configuration
  • D . HTTP host in Connector Configuration

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Allowed methods is an optional configuration. If nothing is specified then all HTTP methods are supported.

Rest all are mandatory.

Question #134

3. loginUser("Todd.Pal@mulesoft.com")

Reveal Solution Hide Solution

Correct Answer: D

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

Question #135

Refer to the exhibit.

The error occurs when a project is run in Anypoint Studio. The project, which has a dependency that is not in the MuleSoft Maven repository, was created and successfully run on a different computer.

What is the next step to fix the error to get the project to run successfully?

  • A . Edit the dependency in the Mule project’s pom.xml file
  • B . Install the dependency to the computer’s local Maven repository
  • C . Deploy the dependency to MuleSoft’s Maven repository
  • D . Add the dependency to the MULE_HOME/bin folder

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

As dependency is not present in Mulesoft Maven repository, we need to install the dependency on computer’s local Maven repository. Option 3 is correct choice.



Exit mobile version