Exam4Training

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

Question #1

Refer to the exhibit.

What expression correctly specifies input parameters to pass the city and state values to the SQL query?

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:

MuleSoft Documentation

Reference: https://docs.mulesoft.com/db-connector/1.9/database-connector-select

Question #2

A Mule flow has three Set Variable transformers.

What global data structure can be used to access the variables?

  • A . Mule event attributes
  • B . Mule event message
  • C . Mule application properties
  • D . Mule event

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Mule event is correct answer. Mule event has two parts which are as follows

1) Message (which contains payload and attributes like headers and query/uri parameters

2) Variables



Question #3

In an application network.

If the implementation but not the interface of a product API changes, what needs to be done to the other APIs that consume the product API?

  • A . The applications associated with the other APIs must be restarted
  • B . The applications associated with the other APIs must be recoded
  • C . The other APIs must be updated to consume the updated product API
  • D . Nothing needs to be changed in the other APIs or their associated applications

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Correct answer is Nothing needs to be changed in the other APIs or their associated applications This is the benefit of having separate interface layer. As there are no changes to interface, no changes are required on the API’s which consumes this API in context

Question #4

Refer to the exhibit.

What is the response to a web client request to http://localhost:8081?

  • A . After
  • B . before
  • C . Validation Error
  • D . null

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:



Question #5

Refer to the exhibits.

The two Mule configuration files belong to the same Mule project. Each HTTP Listener is configured with the same host string and the port number, path, and operation values are shown in the display names.

What is the minimum number of global elements that must be defined to support all these HTTP Listeners?

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

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

In this case three configurations will be required each for port 8000, 6000 and 7000.

There would be three global elements defined for HTTP connections.

Each HTTP connection will have host and port. One example shown below with host as localhost and port 6000

To use an HTTP listener, you need to declare a configuration with a corresponding connection. This declaration establishes the HTTP server that will listen to requests.

Additionally, you can configure a base path that applies to all listeners using the configuration. <http:listener-config name="HTTP_Listener_config" basePath="api/v1"> <http:listener-connection host="0.0.0.0" port="8081" />

</http:listener-config>

https://docs.mulesoft.com/http-connector/1.6/http-listener-ref#http-listener-configuration


Question #6

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:

For Each Scope

The For Each scope splits a payload into elements and processes them one by one through the components that you place in the scope. It is similar to a for-each/for loop code block in most programming languages and can process any collection, including lists and arrays. The collection can be any supported content type, such as application/json, application/java, or application/xml. General considerations about the For Each scope:

By default, For Each tries to split the payload. If the payload is a simple Java collection, the For Each scope can split it without any configuration. The payload inside the For Each scope is each of the split elements. Attributes within the original message are ignored because they are related to the entire message.

For Each does not modify the current payload. The output payload is the same as the input.

Mule Doc Reference: https://docs.mulesoft.com/mule-runtime/4.3/for-each-scope-concept

Question #7

Refer to the exhibit.

What is the correct DataWeave expression for the Set Payload transformer to call the createCustomerObject flow with values for the first and last names of a new customer?

  • A . lookupC createCustomerObJect( "Alice", "Green- ) )
  • B . createCustomerObject( { first: "Alice", last: "Green" > )
  • C . lookupf "createCustomerObject", { first: "Alice", last: "Green" > )
  • D . createCustomerObject( "Alice", "Green")

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

lookup(String, Any, Number)

This function enables you to execute a flow within a Mule app and retrieve the resulting payload.

It works in Mule apps that are running on Mule Runtime version 4.1.4 and later.

Similar to the Flow Reference component (recommended), the lookup function enables you to execute another flow within your app and to retrieve the resulting payload. It takes the flow’s name and an input payload as parameters. For example, lookup("anotherFlow", payload) executes a flow named anotherFlow. Correct answer is

lookup( "createCustomerObject", {first: "Aice, last: "Green"})

MuleSoft Documentation

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

Question #8

What is the output type of the DataWeave map operator?

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

Reveal Solution Hide Solution

Correct Answer: B
Question #9

Refer to the exhibits.

What is written to the records.csv file when the flow executes?

  • A . The JSON payload
  • B . An error message
  • C . Nothing
  • D . The payload convert to CVS

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Transform Message Add write_date is coverting payload in JSON format and same JSON payload is avaialble to file write processor. However, if the payload is a different format (for example, not CSV), you can place the transformation inside the Write operation to generate content that will be written without producing a side effect on the message in transit. This is not done in this case. By default, the connector writes whatever is in the message payload. Hence JSON payload will be written to file.

Question #10

Refer to the exhibit.

How many private flows does APIKIT generate from the RAML specification?

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

Reveal Solution Hide Solution

Correct Answer: D

Question #11

Refer to the exhibits.

The Validation component in the private flow throws an error.

What response message is returned to a client request to the main flow’s HTTP Listener?

  • A . Error – private flow
  • B . Error – main flow
  • C . Success – main flow
  • D . Validation Error

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Error in validation component will get processed by Processer level On Error Propagate block and then error will be rethrown which will get processed by flow level error handler which will set payload to "Error- main flow". Hence correct answer is Error – main flow

1) Request is received by HTTP listener

2) Try scope gets executed

3) The validator component in the Try scope creates an Error Object because the payload is not null.

4) The On Error Propagate handles the error. The payload is set to “Error C Try scope”

6) “Error C Try scope” is returned to the ‘On Error Continue’ block. Main flow execution stops. Payload is set to "Error – main flow"

7) “Error – main flow” is returned to the requestor in the body of the HTTP request. HTTP Status Code: 200

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

—————–

Reference Diagram though not exactly same, conditions are similar. They will help you answer any new question on error handling in real exam:

https://docs.mulesoft.com/mule-runtime/4.3/on-error-scope-concept#on-error-continue


Question #12

Refer to the exhibit.

What should be changed to fix the 415 error?

  • A . set the response Content-Type header to text/plain
  • B . set the response Content-Type header to application/json
  • C . Set the request Content-Type header to application/] son
  • D . set the request Content-Type header to text/plain

Reveal Solution Hide Solution

Correct Answer: C
C

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. In this case as per RAML specification data is expected in application/json and in request Content-Type is set as "text/plain" which is incorrect. Hence solution is set the request Content-Type header to application/json https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415



Question #13

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 #14

Refer to the exhibit.

The main flow is configured with their error handlers. A web client submit a request to the HTTP Listener and the HTTP Request throws an HTTP: NOT_FOUND error.

What response message is returned?’’

What response message is returned?

  • A . APP: API RESOURCE NOT FOUND
  • B . HTTP: NOT FOUND
  • C . other error
  • D . success – main flow

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is APP: API RESOURCE NOT FOUND

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

1) A web client submits the request to the HTTP Listener.

2) The HTTP Request throws an "HTTP: NOT_FOUND" error, execution halts.

3) The On Error Propagate error Handler handles the error. In this case, HTTP: NOT_FOUND error is mapped to custom error APP: API_RESOURCE_NOT_FOUND. This error processor sets payload to APP: API_RESOURCE_NOT_FOUND.

4) “APP: API_RESOURCE_NOT_FOUND. ” is the error message returned to the requestor in the body of the HTTP request with HTTP Status Code: 500

Reference Diagram:



Question #15

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 #16

Refer to the exhibit.

What data is expected by the POST /accounts endpoint?

A)

B)

C)

D)

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

Reveal Solution Hide Solution

Correct Answer: D
Question #17

An API specification is designed using RAML.

What is the next step to create a REST Connector from this API specification?

  • A . Download the API specification and build the interface using APIkit
  • B . Publish the API specification to Any point Exchange
  • C . Implement the API specification using flow designer in Design Center
  • D . Add the specification to a Mule project’s src/main/resources/api folder

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

API Exchange creates REST conenctor automtaically once API is published. Hence correct answer is Publish the API specification to Any point Exchange

Question #18

Refer to the exhibit.

The API needs to be updated using the company-wide standard for the Plan data type. The Object data type has already been published in Anypoint Exchange with the global reference. ACME/DataTypes/PlanDataType.raml.

What is a valid RAML specification that reuses the Plan data type?

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:

As can be seen in RAML, POST expects input in application/json format which eliminates two of the options as two options are in xml format.

Now out of the two remaining options, one has id field in request which is only mentioned for get response and not for POST request. Hence id field is not expected in POST request.

Hence correct answer is

{

"name": "GoerdiLa Forge",

"address": "1 Westland CA",

"customer_since": "2014-01-04",

"balance": "4829.29",

"bank_agend_id": "12556"

}

Question #19

What execution model is used by For Each and Batch Job scopes?

  • A . For Each is single-threaded and Batch Job is multi-threaded
  • B . Both are single-threaded
  • C . Both are multi-threaded
  • D . Batch Job is single-threaded and For Each Is multi-threaded

Reveal Solution Hide Solution

Correct Answer: A
Question #20

Refer to the exhibit.

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

What values are accessible in the child flow after a web client submits a request to http://localhost:8Q81/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: D
D

Explanation:

Flow Reference Component

Flow Reference routes the Mule event to another flow or subflow, executes all processors in the referenced flow, and then routes the event back within the same Mule application. The following diagram shows the order of processing when one flow references another:

When the main flow is triggered, the Mule event travels through and executes the flow until the event reaches the Flow Reference. The event then travels through and executes the referenced flow from beginning to end, and then returns to the main flow.

This process enables you to treat the entire referenced flow like a single component in your current flow.

Mule Ref Doc: https://docs.mulesoft.com/mule-runtime/4.3/flowref-about

Correct answer is

payload

quantity var

color query param


Question #21

Refer to the exhibit.

What is the correct way to create a user?

A)

B)

C)

D)

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

Reveal Solution Hide Solution

Correct Answer: B
Question #22

Refer to the exhibit.

What Database expression transforms the input to the output?

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:

This kind of questions are best solved with filtering technique. Key thing to note here is XML attributes are always access by @ notation. So in this example orderId can be accessed as @OrderId which makes option 3 and option 4 false. Now difference in optin and option 2 is in mapping of lineItemPrice. Correct syntax to format a String in Numbse is value.price as Number. Hence option 2 is correct

Question #23

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 #24

Refer to the exhibits.

The main flow contains an HTTP Request. The HTTP Listeners and HTTP Request use default configurations.

What values are accessible in the child flow after a web client submits a request to http://localhost:8081/order? col or = 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: A
Question #25

Refer to the exhibit.

What Database expression transforms the input to the output?

A)

B)

C)

D)

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

Reveal Solution Hide Solution

Correct Answer: B
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 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 #28

Refer to the exhibits.

A web client submits a request to the HTTP Listener and the HTTP Request throws an error.

What payload and status code are returned to the web client?

  • A . Response body: "Error" Default response status code: 200
  • B . Response body: "Success – Begin* Default response status code: 200
  • C . Error response body: error, description Default error response status code: 500
  • D . Response body: "Success – End" Default response status code: 200

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct Answer. Response body: "Error" Default response status code: 200.

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

1) Payload is successfully set to “Success C Started Flow”

2) When HTTP Request throws an error, execution halts

#[error.description] = “ABC"

#[error.errorType] = "XYZ"

3) The On Error Continue scope handles the error. When On Error Continue scope is invoked, all the processors in error block are executed and success response is sent back to the client with payload which is set in error flow. In this case payload is set to "Error" value in error block.

4) “Error” is returned to the requestor in the body of the HTTP request with HTTP Status Code: 200 as On error continue always sends success error code.

Reference Diagram:



Question #29

An app team is developing a mobile banking app. It took them two months to create their own APIs to access transaction information from a central database. The app team later found out that another team had already built an API that accesses the transaction information they need.

According to MuleSoft, what organization structure could have saved the app team two months of development time?

  • A . Center of Excellence
  • B . Center for Enablement
  • C . MuleSoft Support Center
  • D . Central API Review Board

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Reference: https://blogs.mulesoft.com/biz/connectivity/what-is-a-center-for-enablement-c4e/

Center for Enablement is correct answer. It is a cross-functional team typically staffed with members from central IT, line-of-business departments, and digital innovation teams charged with productizing, publishing, and harvesting reusable assets and best practices. In this case, app team would have checked first with Center for Enablement before developing their own API’s. Hence could have avoided re-work

Question #30

Refer to the exhibit.

What payload is returned from a request to http//localhost.8081/?

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

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

The flow can be described as below.

1) First HTTP POST requets is made in which paylaod is set to 1 and it gets returned to our mail flow.

2) Second call is initiated for JMS Publish Consume JMS: num1 which add 1 to the payload which makes it as 2. Note that pubih consume is a synchronous operation. Hence paylaod is returned to main flow.

3) Third call is initiated for JMS Publish JMS: num2 which add 1 to the payload. Note that pubih is asynchronous operation. Hence paylaod is never returned to main flow. So payload in main flow is still 2. 4) Finally Set Payload increments payload by 1 making payload as 3 which is returned by the flow. Hence option 3 is the correct answer.

Question #31

Refer to the exhibits.

What is valid text to set the field in the Database connector configuration to the username value specified in the config.yaml file?

  • A . ${db.username>
  • B . #[db.username]
  • C . #[db:username]
  • D . ${db:username>

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

option 3 is the correct syntz to access application properties

Question #32

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 #33

A flow needs to combine and return data from two different data sources. It contains a Database SELECT operation followed by an HTTP Request operation.

What is the method to capture both payloads so the payload from the second request does not overwrite that from the first?

  • A . Put the Database SELECT operation inside a Cache scope
  • B . Put the Database SELECT operation inside a Message Enricher scope
  • C . Nothing, previous payloads are combined into the next payload
  • D . Save the payload from the Database SELECT operation to a variable

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Correct answer is Save the payload from the Database SELECT operation to a variable Response from HTTP request will override the payload and hence response of database SELECT can be lost. Best way to preserve is to assign payload of first operation to variable using Transform Message.

Question #34

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?

A)

B)

C)

D)

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

Reveal Solution Hide Solution

Correct Answer: B
Question #35

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

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

Question #36

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.

https://docs.mulesoft.com/mule-runtime/4.3/maven-reference

Question #37

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 #38

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 #39

Refer to the exhibits.

The Validation component in the Try scope throws an error.

What response message is returned to a client request to the main flow’s HTTP Listener?

  • A . Success – main flow
  • B . Error – main flow
  • C . Error – Try scope
  • D . Validation Error

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Note that private flow has error scope defined as On Error Continue. So when error occurs in private flow, it is handled by this On Error Continue scope which sends success response back to main flow and does not throw back an error. So main continues normally and payload is set to Success – main flow.

Hence correct answer is Success – main flow

1) HTTP listener received request

2) The Flow Reference calls the child flow

3) The Is Number validator creates an Error Object because the payload isn’t an integer. Child Flow execution stops

#[error.description] = “payload is not a valid INTEGER value” #[error.errorType] = VALIDATION:INVALID_NUMBER

4) The On Error Continue handles the errorThe payload is set to “Error C Sub Flow”

5) “Error C Sub Flow” is returned to the main flow as if the child flow was a success. The Set Payload is executed. The payload is reset to “Success C Finished Main Flow”

6) “Success C Main Flow” is returned to the requestor in the body of the HTTP request. HTTP Status Code: 200

As you can see, in the above example, because the error was caught by an On Error Continue scope in the child flow (RED in, GREEN out) when the Mule Message returns to the parent flow, the parent flow knows none-the-different that there was a failure because the on error continue returns a 200 success message. Note that because, to the mainFlow, the childFlow appeared to succeed, the processing of mainFlow resumed after the flow reference.



Question #40

Refer to the exhibit.

What is a valid expression for the Choice router’s when expression to route events to the documenticShipping flow?

  • A . 0#[ payload = ‘US’ ]
  • B . #[ payload == ‘US’ J
  • C . #[ if(payload = ‘US’) J
  • D . #[ if(payload == "US") ]

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Choice Router

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.

Properties of <when>

PropertyDescription

Expression (expression)

Expression in DataWeave language to evaluate input.

If the expression evaluates to true, this routing option is used:

<when expression="#[vars.language == ‘Spanish’]" >

Mulesoft Doc Ref: https://docs.mulesoft.com/mule-runtime/4.3/choice-router-concept With respect to above information,

Option 1 is the correct syntax as others are incorrect because of below reasons

* Single = is not the correct syntax to validate the condition. It should be ==

* If keyword is not required in when condition.

Question #41

A web client submits a request to http://localhost:8081?accountType=personal. The query parameter is captured using a Set Variable transformer to a variable named account Type.

What is the correct DataWeave expression to log account Type?

  • A . Account Type: #[flowVars.accountType]
  • B . Account Type: #[message.inboundProperties.accountType]
  • C . Account Type: # [attributes.accountType]
  • D . Account Type: #[vars.accountType]

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

vars: Keyword for accessing a variable, for example, through a DataWeave expression in a Mule component, such as the Logger, or from an Input or Output parameter of an operation. If the name of your variable is myVar, you can access it like this: vars.myVar Hence correct answer is Account Type: #[vars.accountType]

Question #42

Refer to the exhibit.

The Batch Job processes, filters and aggregates records,.

What is the expected output from the Logger component?

  • A . [10. 20, 30. 40, 50, 60]
  • B . [10. 20] [30, 40] [50, 60]
  • C . [20, 40, 60]
  • D . [20. 40] [60]

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

* Batch scope has filter criteria which says paylod mod 2 = 0 whch means only 2, 4 and 6 will be in batch scope.

* So payload for each of these will be incremented by 10.

* Aggregator has batch size defined as 2. So it will process in batch of two records.

* Hence option 3 is correct answer.

[20,40]

[60]

Behavior with aggregator configured with fixed size

In this scenario, the batch step sends the processed records to an aggregator, which starts processing the records and buffering them until the configured aggregator’s size is reached. After that, the aggregator sends the aggregated records to the stepping queue.

The batch job builds record blocks of the configured block size and sends them to their corresponding batch step for processing. Each batch step receives one or more record blocks and starts processing them in parallel. After the batch step processes a record, the batch step sends the record to the aggregator for further processing. The aggregator continues processing records until the number of

aggregated records reaches the configured aggregator’s size. https://docs.mulesoft.com/mule-runtime/4.3/batch-processing-concept


Question #43

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 Router

The Scatter-Gather component is a routing event processor that processes a Mule event through different parallel processing routes that contain different event processors. Each route receives a reference to the Mule event and executes a sequence of one or more event processors. Each of these routes uses a separate thread to execute the event processors, and the resulting Mule event can be either the same Mule event without modifications or a new Mule event with its own payload, attributes, and variables. The Scatter-Gather component then combines the Mule events returned by each processing route into a new Mule event that is passed to the next event processor only after every route completes successfully.

The Scatter-Gather component executes each route in parallel, not sequentially. Parallel execution of routes can greatly increase the efficiency of your Mule application and may provide more information than sequential processing.

Mule Ref Doc: https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept

Question #44

Refer to the exhibits.

A web client submits a request to http://localhost:8081/fliqhts?destination=SFO and the Web Service Consumer throws a WSC: BAD_REQUEST error.

What is the next step to fix this error?

  • A . Set a header In the Consume operation equal to the destination query parameter
  • B . set a SOAP payload before the Consume operation that contains the destination query parameter
  • C . set a property m the Consume operation equal to the destination query parameter
  • D . set a JSON payload before the Consume operation that contains the destination query parameter

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

As can be seen in error message, SOAP service findFlights expects the SOAP paylaod. This can be set using transform message processor which forms SOAP payload before the Consume operation that contains the destination query parameter

Question #45

What valid RAML retrieves details on a specific by its orderld as a URL parameter?

A)

B)

C)

D)

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

Reveal Solution Hide Solution

Correct Answer: A
Question #46

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 #47

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 #48

Refer to the exhibit.

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

What log messages are written?

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

Reveal Solution Hide Solution

Correct Answer: A
Question #49

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:

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.

Question #50

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 #51

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 #52

Refer to the exhibit.

What is the correct syntax to add an employee ID as a URI parameter in an HTTP Listener path?

  • A . (employeelD)
  • B . ${emp!oyeelD}
  • C . {employeelD}
  • D . # [employeelD]

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

Paths

The path of an HTTP listener can be static, which requires exact matches, or feature placeholders. Placeholders can be wildcards (*), which match against anything they are compared to, or parameters ({param}), which not only match against anything but also capture those values on a URI parameters map.

Take the following example paths for three listeners using a configuration that establishes api/v1 as the base path:

account/mulesoft/main-contact: only match the exact path request http://awesome-company.com/api/v1/account/mulesoft/main-contact account/{accountId}/main-contact: matches all path requests structured similarly, such as http://awesome-company.com/api/v1/account/salesforce/main-contact, and save salesforce as the value of accountId.

account/{accountId}/*: matches all path requests different from main-contact, such as http://awesome-company.com/api/v1/account/mulesoft/users, and save mulesoft as the value of accountId.

Mule Ref Doc: https://docs.mulesoft.com/http-connector/1.6/http-listener-ref#paths

Question #53

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 #54

What payload is returned by a Database SELECT operation that does not match any rows in the database?

  • A . false
  • B . null
  • C . Exception
  • D . Empty Array

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Empty array is returned when no rows are matched.

MuleSoft Doc Ref: https://docs.mulesoft.com/db-connector/1.9/database-connector-select

Question #55

What is the correct syntax to define and call a function in Database?

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:

Keyword to ad function in Dataweave transformation is fun. Hence option 2 and 4 are invalid. Also parameters needs to be passed exactly in same order as defined in function definition. Hence correct answer is’

fun addKV( object: Object, key: String, value: Any) =

object ++ {(key):(value)}



addKV ( {"hello’: "world"}, "hola", "mundo" )

MuleSoft Documentation

Reference: https://docs.mulesoft.com/mule-runtime/4.3/dataweave-functions

DataWeave Function Definition Syntax

To define a function in DataWeave use the following syntax: fun myFunction(param1, param2, …) = <code to execute> The fun keyword starts the definition of a function.

myFunction is the name you define for the function.

Function names must be valid identifiers.

(param1, param2, …, paramn) represents the parameters that your function accepts. You can specify from zero to any number of parameters, separated by commas (,) and enclosed in parentheses.

The = sign marks the beginning of the code block to execute when the function is called.

<code to execute> represents the actual code that you define for your function.

Question #56

A Utility.dwl file is located in a Mule project at src/main/resources/modules. The Utility.dwl hie defines a function named pascalize that reformats strings to pascal case.

What is the correct DataWeave to call the pascalize function in a Transform Message component?

A)

B)

C)

D)

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

Reveal Solution Hide Solution

Correct Answer: B
Question #57

A RAML specification is defined to manage customers with a unique identifier for each customer record.

What URI does MuleSoft recommend to uniquely access the customer identified with the unique ID 1234?

  • A . /customers?custid=true&custid=1234
  • B . /customers/1234
  • C . /customers/custid=1234
  • D . /customers?operation=get&custid=1234

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

URI parameter (Path Param) is basically used to identify a specific resource or resources. For eg: the URL to get employee details on the basis of employeeID will be GET /employees/{employeeID} where employees is resource and {employeeID} is URI parameter. Hence option 1is the correct

answer

Question #58

Refer to the exhibits.

The orders.csv file is read, then processed to look up the orders in a database. The Mule application is debugged in Any point Studio and stops at the breakpoint.

What is the payload shown in the debugger at this breakpoint?

  • A . "none"
  • B . The entire CSV file
  • C . The database response
  • D . 100

Reveal Solution Hide Solution

Correct Answer: D
Question #59

A Mule application contains a global error handler configured to catch any errors.

Where must the global error handler be specified so that the global error handler catches all errors from flows without their own error handlers?

  • A . A configuration properties file
  • B . Nowhere, the global error handler is automatically used
  • C . A global element
  • D . The pom.xml file

Reveal Solution Hide Solution

Correct Answer: C
C

Explanation:

Correct answer is A global element

Global error handlers are to be created in global element.

Quick note to remember here is Global error handlers come in to picture only when there are no

error handlers specified as flow level.

Steps to create Global error handler

1) Click Global Elements to open Global Configuration Elements. Global Elements is located below the Studio canvas

2) In Global Configuration Elements, click Create to open the Choose Global Type dialog

3) From the dialog, select Global Configuration -→ Configuration, and then click OK to open the Configuration dialog.

4) From the select Configuration dialog, select allErrorHandler for the Default Error Handler field, and click OK.


Question #60

Refer to the exhibit.

What can be added to the flow to persist data across different flow executions?

  • A . Key/value pairs in the Object Store
  • B . Properties of the Mule runtime flow object
  • C . properties of the Mule runtime app object
  • D . session variables

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

An object store is a facility for storing objects in or across Mule applications. Mule runtime engine (Mule) uses object stores to persist data for eventual retrieval. Internally, Mule uses object stores in various filters, routers, and other message processors that need to store states between messages.

Object stores are available in all deployment targets. If you deploy your application to CloudHub, you can also use Object Store V2. Correct answer is Key/value pair in Object store

MuleSoft Documentation reference: https://docs.mulesoft.com/mule-runtime/4.3/mule-object-stores#use-cases

Question #61

Refer to the exhibit.

This RAML specification includes a resource and method to retrieve accounts by account_type and industry.

What is the correct URI to get all retail finance accounts?

  • A . /accounts/retail/finance
  • B . /accounts?account_type=retail&industry=finance
  • C . /accounts/account_type=retail/industry=finance
  • D . /accounts?account_type:retail&industry:finance

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Correct answer is /accounts?account_type=retail&industry=finance

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.



Question #62

A Mule application contains two HTTP Listeners, each configured for different API endpoints:

http://acme.com/apis/orders and http: //acme .com/a pis/customers.

What base path value should be set in an HTT? Listener config element so that it can be used to configure both HTTP Listeners?

  • A . /apis/?
  • B . /apis/
  • C . /apis/orders|customers
  • D . /apis/*

Reveal Solution Hide Solution

Correct Answer: D
D

Explanation:

Option 2 is the correct answer as /api/* accespts everything starting with /api/

Question #63

A web client submits a request to http://localhost:8081/books/0471767840. The value "0471767840" is captured by a Set Variable transformer to a variable named booklSBN.

What is the DataWeave expression to access booklSBN later in the flow?

  • A . booklSBN
  • B . attributes.booklSBN
  • C . flowVars.booklSBN
  • D . vars. booklSBN

Reveal Solution Hide Solution

Correct Answer: D
Question #64

Refer to the exhibits.

The Set Payload transformer’s value is set to {‘year’: ‘2020’}.

What message value should be added to the Logger component to output the message ‘The year is 2020’, without hardcoding 2020?

  • A . ‘#[The year is $(pay load .year)]*
  • B . The year is #[payload.year]’
  • C . ‘#[The year is " + paytoad.year]’
  • D . #["The year is "++ payload.year].

Reveal Solution Hide Solution

Correct Answer: D
Question #65

Refer to the exhibit.

A Mule event is composed of a hierarchy of objects.

Where in the hierarchy are variables stored?

  • A . Mule event
  • B . Mule message payload
  • C . Mule message
  • D . Mule message attributes

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Variables are stored under Mule event. Please refer to below image for the hierarchy .



Question #66

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 #67

Refer to the exhibits.

A Mule application has an HTTP Request that is configured with hardcoded values. To change this, the Mule application is configured to use a properties file named config.yaml.

What valid expression can the HTTP Request host value be set to so that it is no longer hardcoded?

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

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

Correct answer is ${training.host}

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

How to Configure Properties to Mule 4.X Platform?

1) Go to /src/main/resources project directory.

2) Create a configuration file with the name configuration.yaml inside the newly created config folder.

3) Go To Project > Global Element > Create > General >select the configuration.yaml file create in step- 2)

4) To verify develop a simple flow with HTTP listener which has above entries. Put the logger that prints the values on console.

5) Additional info: Similarly, when you want to access this port in DataWeave you need to use p function



Question #68

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 #69

Refer to the exhibits.

The <when> expression for the Choice router needs to be written.

What is a valid <when> expression to route Mule events to the non-default flow?

  • A . #[‘MuleSoft’ == paytoad.company]
  • B . #[ company = "MuleSoft" ]
  • C . #[ if( company = "MuleSoft") ]
  • D . #[ if( ‘MuleSoff == payload.company) ]

Reveal Solution Hide Solution

Correct Answer: A
Question #70

Refer to the exhibits.

A Mule application contains a Choice router.

What is logged when the flow completes?

  • A . EU
  • B . US
  • C . "REGION"
  • D . ["US", "EU"]

Reveal Solution Hide Solution

Correct Answer: B

Question #71

Refer to the exhibit.

The Mule application Is debugged in Any point Studio and stops at the breakpoint.

What is the value of the payload displayed In the debugger at this breakpoint?

  • A . 0
  • B . "Processing"
  • C . "Start"
  • D . Complete"

Reveal Solution Hide Solution

Correct Answer: C
Question #72

Refer to the exhibit.

What DataWeave expression transforms the conductorlds array to the XML output?

A)

B)

C)

D)

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

Reveal Solution Hide Solution

Correct Answer: C
Question #73

A function named newProdCode needs to be defined that accepts two input parameters, an integer value for itemID and a string value for productCategory, and returns a new product code.

What is the correct DataWeave code to define the newProdCode function?

  • A . fun newProdCode{itemID: Number, productCategory: String) ―> "PC-" ++ productCategory ++ (itemID as String)
  • B . fun newProdCode(itemID: Number, productCategory: String) = "PC-" ++ productCategory ++ (itemID as String)
  • C . function newProdCode(itemID: Number, productCategory: String) =
    "PC-" ++ productCategory ++ (itemID as String)
  • D . var newProdCode(itemID: Number, productCategory: String) -> "PC-" ++ productCategory ++ (itemID as String)

Reveal Solution Hide Solution

Correct Answer: B
Question #74

Refer to the exhibits.

The Set Payload transformer In the addltem subflow 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 subflow to add a router cable with the price of 100 to the order?

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

Reveal Solution Hide Solution

Correct Answer: B
Question #75

A Mule project contains a DataWeave module called MyModule.dwl that defines a function named formatString. The module is located in the project’s src/main/resources/modules folder.

What is the correct way in DataWeave code to import MyModule using a wildcard and then call the module’s formatString function?

A)

B)

C)

D)

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

Reveal Solution Hide Solution

Correct Answer: D
Question #76

Refer to the exhibits.

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

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

Reveal Solution Hide Solution

Correct Answer: A
Question #77

A Database On Table Row listener retrieves data from a CUSTOMER table that contains a primary key userjd column and an increasing kxjin_date_time column. Neither column allows duplicate values.

How should the listener be configured so it retrieves each row at most one time?

  • A . Set the watermark column to the bgin_date_time column
  • B . Set the target value to the last retrieved login_date_time value
  • C . Set the target value to the last retrieved user_jd value
  • D . Set the watermark column to the user_Id column

Reveal Solution Hide Solution

Correct Answer: A
A

Explanation:

* Watermark allows the poll scope to poll for new resources instead of getting the same resource over and over again.

* The database table must be ordered so that the “watermark functionality” can move effectively in the ordered list. Watermark stores the current/last picked up “record id.”

* If the Mule application is shut down, it will store the last picked up “record id” in the Java Object Store and the data will continue to exist in the file. This watermark functionality is valuable and enables developers to have increased transparency.

* Developers do not need to create code to handle caching; it is all configurable!

* There are two columns and both are unique but user_id can’t guaranty sequence whereas date_time will always be in increasing order and table content can easily be ordered on the basis of last processed date_time.

So correct answer is: Set the watermark column to the date_time column

Question #78

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 #79

Refer to the exhibit.

In the execution of the Scatter-Gather, the "steep 1 sec" Flow Reference takes about 1 second to complete, and the "sleep 5 sees" Row Reference takes about 5 seconds to complete.

About how many seconds does it take from the time the Scatter-Gather is called until the Set Payload transformer is called?

  • A . 0
  • B . 1
  • C . 5
  • D . 6

Reveal Solution Hide Solution

Correct Answer: C
Question #80

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 #81

Refer to the exhibits.

A web client sends a POST request to the HTTP Listener and the Validation component in the Try scope throws an error.

What response message is returned to the web client?

  • A . Validation Error
  • B . "END"
  • C . "ERROR1"
  • D . ”ERROR2"

Reveal Solution Hide Solution

Correct Answer: D
Question #82

Refer to the exhibits.

A web client sends a POST request to the HTTP Listener with the payload "Hello-".

What response is returned to the web client?

  • A . Hello- HTTP-] MS2-Three
  • B . HTTP-JMS2-Three
  • C . Helb-JMS1-HTTP-JMS2 -Three
  • D . Hello-HTTP-Three

Reveal Solution Hide Solution

Correct Answer: A
Question #83

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 #84

Refer to the exhibits.

Each route in the Scatter-Gather sets the payload to the number shown in the label.

What response is returned to a web client request to the HTTP Listener?

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:

Correct answer is as below.

After all processing routes have finished execution, the Scatter-Gather component creates a new Mule event that combines all resulting Mule events from each route, and then passes the new Mule event to the next component in the flow.

{

"0": {

"attributes": …,

"payload": "100"

},

"1": {

"attributes": …,

"payload": "200"

}

}

Bottom of Form

Question #85

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 #86

Refer to the exhibits.

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

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

  • A . [ ["A", "C", "D" ], ["E"] ]
  • B . [”E”]
  • C . [”D", "E"]
  • D . [ "A", "C, "D", "E" ]

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Logs would look like:

INFO 2021-06-09 19:14:56,039 [[MuleRuntime].uber.06: [validationtest].batch-job-validationtestBatch_Job-work-manager @6de10f3e] [processor:

validationtestFlow/processors/1/route/0/route/0/aggregator/processors/0; event: bfb751e1-9939-11eb-9f69-02053763653a]

org.mule.runtime.core.internal.processor.LoggerMessageProcessor:

[

“”A””,

“”C””,

“”D””

]

―-

INFO 2021-06-09 19:15:02,486 [[MuleRuntime].uber.06: [validationtest].batch-job-

validationtestBatch_Job-work-manager @6de10f3e] [processor:

validationtestFlow/processors/1/route/0/route/0/aggregator/processors/0; event: bfb751e1-

9939-11eb-9f69-02053763653a]

org.mule.runtime.core.internal.processor.LoggerMessageProcessor: [

“”E””

]

Batch aggregator value is 3. Hence in first time it will print [“A”, “C”, “D”] and in next

iteration it will print [ “E” ]

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

Correct answer is [ “E” ]

Question #87

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 #88

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 #89

Refer to the exhibits.

A web client sends a GET request to the HTTP Listener.

What response message is returned to the web client?

  • A . ""
  • B . "End"
  • C . "Start"
  • D . "String is not blank"

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Question #89

Refer to the exhibits.

A web client sends a GET request to the HTTP Listener.

What response message is returned to the web client?

  • A . ""
  • B . "End"
  • C . "Start"
  • D . "String is not blank"

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Question #89

Refer to the exhibits.

A web client sends a GET request to the HTTP Listener.

What response message is returned to the web client?

  • A . ""
  • B . "End"
  • C . "Start"
  • D . "String is not blank"

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Question #89

Refer to the exhibits.

A web client sends a GET request to the HTTP Listener.

What response message is returned to the web client?

  • A . ""
  • B . "End"
  • C . "Start"
  • D . "String is not blank"

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Question #89

Refer to the exhibits.

A web client sends a GET request to the HTTP Listener.

What response message is returned to the web client?

  • A . ""
  • B . "End"
  • C . "Start"
  • D . "String is not blank"

Reveal Solution Hide Solution

Correct Answer: B
B

Explanation:

Question #94

Refer to the exhibits.

A web client sends a POST request with the payload {"oid": "1000", "itemid": "AC200", "qty": "4" } to the Mule application. The File Write operation throws a FILE: CONNECTIVITY error.

What response message is returned to the web client?

  • A . ‘’FILE:CONNECnvnY’
  • B . "ORDER:NOT_CREATED"
  • C . "OTHER ERROR"
  • D . "File written"

Reveal Solution Hide Solution

Correct Answer: B
Exit mobile version