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

Salesforce Mule-Dev-301 Dumps

Salesforce Certified MuleSoft Developer II Questions and Answers

Question 1

A developer is working on a project that requires encrypting all data before sending it to a backend application. To accomplish this, the developer will use PGP encryption in the Mule 4 Cryptography module.

What is required to encrypt the data before sending it to the backend application?

Options:

A.

The application needs the public key from the backend service to encrypt the data

B.

The application needs both the private and public keys to encrypt the data

C.

The application needs the private key from the backend service to encrypt the data

D.

The application needs to configure HTTPS TLS context information to encrypt the data

Question 2

A scatter-gather router is configured with four routes: Route A, B, C and D.

Route C fails.

Which expression allows access to the failing route so that it can be compensated?

Options:

A.

error.errorMessage.payload.failures[2]

B.

payload.failures[2]

C.

payload[2]

D.

error.errorMessage.payload.results[2]

Question 3

Which pattern should be used to invoke multiple HTTP APIs in parallel and roll back any failed requests in sequence?

Options:

A.

Scatter-Gather as central Saga orchestrator for all API requests with compensating actions for failing routes

B.

A Parallel For Each scope with each HTTP request wrapped in a Try scope

C.

VM queues as a reliability pattern with error handlers to roll back any requests

D.

A database as a transactional outbox and an Until Successful router to retry any requests

Question 4

Which pattern can a web API use to notify its client of state changes as soon as they occur?

Options:

A.

ETL data load

B.

Schedule Event Publisher

C.

HTTP Webhook

D.

Shared database trigger

Question 5

The Center for Enablement team published a common application as a reusable module to the central Nexus repository.

How can the common application be included in all API implementations?

Options:

A.

Add a Maven dependency in the POM file with mule-plugin as < classifier >

B.

Add a Maven dependency in the POM file with jar as < classifier >

C.

Copy the common application's source XML file and put it in a new flow file in the src/main/mule folder

D.

Download the common application from Nexus and copy it to the src/main/resources folder in the API

Question 6

Refer to the exhibit.

An API has been built to enable scheduling emails for a healthcare provider. The front-end system does very little data entry validation, and problems have started to appear in the emails that go out to patients. A "validate-customer" flow is added to validate the data.

What is the expected behavior of the "validate-customer" flow?

Exhibit:

as

Options:

A.

If the appointment date and customer name are invalid, a SCHEDULE:INVALID_APPOINTMENT_DATE error is raised

B.

If only the email address is invalid, a VALIDATION:INVALID_EMAIL error is raised

C.

If the email address is invalid, processing continues to see if the appointment date and customer name are also invalid

D.

If all of the values are invalid, the last validation error is raised: SCHEDULE:INVALID_CUSTOMER_NAME

Question 7

Refer to the exhibit.

What is the result of the Mule Maven Plugin configuration of the value of property tls.keystore.keyPassword in CloudHub 2.0?

Exhibit:

as

Options:

A.

Runtime Manager masks the value

B.

CloudHub encrypts the value

C.

Anypoint Studio secures the value

D.

The Mule server encrypts the value

Question 8

An API has been developed and deployed to CloudHub. Among the policies applied to this API is an allowlist of IP addresses. A developer wants to run a test in Anypoint Studio and does not want any policies applied because their workstation is not included in the allowlist.

What must the developer do in order to run this test locally without the policies applied?

Options:

A.

Pass in the runtime parameter "-Danypoint.platform.gatekeeper=disabled"

B.

Deactivate the API in API Manager so the Autodiscovery element will not find the application when it runs in Studio

C.

Run the test as-is, with no changes, because the Studio runtime will not attempt to connect to API Manager

D.

Create a properties file specifically for local development and set the API instance ID to a value that is not used in API Manager

Question 9

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 10

Which statement is true when working with correlation IDs?

Options:

A.

The VM Connector does not automatically propagate correlation IDs

B.

The HTTP Listener regenerates correlation IDs regardless of the HTTP request

C.

The HTTP Listener generates correlation IDs unless a correlation ID is received in the HTTP request

D.

The Anypoint MQ Connector automatically propagates correlation IDs

Question 11

Refer to the exhibits.

A Mule application's pom.xml configures the Maven Resources plugin to exclude parsing binary files in the project's src/main/resources/certs directory.

Which configuration of this plugin achieves a successful build?

Exhibits - Options A and B:

as

Exhibits - Options C and D:

as

Options:

A.

Configuration shown in Exhibit A

B.

Configuration shown in Exhibit B

C.

Configuration shown in Exhibit C

D.

Configuration shown in Exhibit D

Question 12

What is the MuleSoft recommended method to encrypt sensitive property data?

Options:

A.

The encryption key and sensitive data should be the same for all environments

B.

The encryption key should be identical for all environments and the sensitive data should be different for each environment

C.

The encryption key should be different for each environment and the sensitive data should be the same for all environments

D.

The encryption key and sensitive data should be different for each environment

Question 13

Refer to the exhibits.

The flow name is "implementation" with code for the MUnit test case.

When the MUnit test case is executed, what is the expected result?

Exhibit:

as

Options:

A.

The test case fails with an assertion error

B.

The test case fails with an unexpected error type

C.

The test case passes

D.

The test case throws an error and does not start

Question 14

A Mule implementation uses an HTTP Request within an Until Successful scope to connect to an API.

How should a permanent error response like HTTP:UNAUTHORIZED be handled inside Until Successful to reduce latency?

Options:

A.

In Until Successful configuration, set the retry count to 1 for error type HTTP:UNAUTHORIZED.

B.

Continue retrying until a MULE:RETRY_EXHAUSTED error is raised or the API responds back with a successful response.

C.

Put the HTTP Request inside a try scope in Until Successful. In the error handler, use On Error Propagate to catch permanent errors like HTTP:UNAUTHORIZED.

D.

Put the HTTP Request inside a try scope in Until Successful. In the error handler, use On Error Continue to catch permanent errors like HTTP:UNAUTHORIZED.

Question 15

A new Mule project has been created in Anypoint Studio with the default settings.

Which file inside the Mule project must be modified before using Maven to successfully deploy the application?

Options:

A.

config.yaml

B.

settings.xml

C.

pom.xml

D.

mule-artifact.json

Question 16

A Mule application uses API autodiscovery to access and enforce policies for a RESTful implementation.

What needs to be configured for the flowRef attribute of the autodiscovery global element?

Options:

A.

The name of the flow that has APIkit Console to receive all incoming RESTful operation requests

B.

Nothing because flowRef is an optional attribute which can be passed during runtime

C.

The name of the flow that has HTTP Listener to receive all incoming RESTful operation requests

D.

Any of the APIkit generated implementation flows

Question 17

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:

as

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 18

A company with MuleSoft Titanium support develops a Salesforce System API using MuleSoft's out-of-the-box Salesforce Connector and deploys the API to CloudHub.

Which steps provide the average number of requests and average response time of the Salesforce Connector?

Options:

A.

Access Anypoint Monitoring's built-in dashboard. Select a resource. Locate the information under the Connectors tab.

B.

Access Anypoint Monitoring's built-in dashboard. Select a resource. Locate the information under Log Management > Raw Data.

C.

Access Anypoint Monitoring's built-in dashboard. Select a resource. Create a custom dashboard to retrieve the information.

D.

Change the API implementation to capture the information in the log. Retrieve the information from the log file.

Page: 1 / 6
Total 60 questions