Weekend Sale Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: big75certs

Salesforce MuleSoft Mule-Dev-301 Release Date

Salesforce Certified MuleSoft Developer II Questions and Answers

Question 13

A healthcare customer wants to use hospital system data, which includes code that was developed using legacy tools and methods. The customer has created reusable Java libraries in order to read the data from the system.

What is the most effective way to develop an API to retrieve the data from the hospital system?

Options:

A.

Install the libraries in a local repository and refer to it in the pom.xml file

B.

Refer to JAR files in the code

C.

Include the libraries while deploying the code into the runtime

D.

Create the Java code in your project and invoke the data from the code

Question 14

An order processing system is composed of multiple Mule applications responsible for warehouse, sales, and shipping. Each application communicates using Anypoint MQ. Each message must be correlated against the original order ID for observability and tracing.

How should a developer propagate the order ID as the correlation ID across each message?

Options:

A.

Wrap all Anypoint MQ Publish operations within a With CorrelationID scope from the Tracing module, setting the correlation ID to the order ID

B.

Use the underlying HTTP request of Anypoint MQ to set the X-CORRELATION-ID header to the order ID

C.

Set a custom Anypoint MQ user property to propagate the order ID and set the correlation ID in the receiving applications

D.

Use the default correlation ID; Anypoint MQ will automatically propagate it

Question 15

Refer to the exhibit.

What required changes can be made to give a partial successful response in case the United Airlines API returns with a timeout?

Exhibit:

Options:

A.

Add Flow Reference components inside a Try scope. Set the payload to a default value "" inside the error handler using the On Error Continue scope.

B.

Add a Scatter-Gather component inside a Try Scope. Set the payload to a default value "Error" inside the error handler using the On Error Propagate scope.

C.

Add a Scatter-Gather component inside a Try Scope. Set the payload to a default value "Error" inside the error handler using the On Error Continue scope.

D.

Add Flow Reference components inside a Try Scope. Set the payload to a default value "" inside the error handler using the On Error Propagate scope.

Question 16

A Mule API receives a JSON payload and updates the target system with the payload. The developer uses JSON schemas to ensure the data is valid.

How can the data be validated before posting to the target system?

Options:

A.

Add the JSON module dependency and add the validate schema operation in the flow, configured to reference the schema

B.

Using the DataWeave If Else condition, test the values of the payload against the examples included in the schema

C.

Apply the JSON Schema policy in API Manager and reference the correct schema in the policy configuration

D.

Use a DataWeave 2.0 transform operation, and at the top of the DataWeave script, add: %dw 2.0 / import json-module