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

Home > Salesforce > Salesforce MuleSoft > Mule-Dev-301

Mule-Dev-301 Salesforce Certified MuleSoft Developer II Question and Answers

Question # 4

Mule application A is deployed to CloudHub and is using Object Store v2. Mule application B is also deployed to CloudHub.

Which approach can Mule application B use to remove values from Mule application A's Object Store?

A.

CloudHub REST API

B.

CloudHub Connector

C.

Object Store v2 REST API

D.

Object Store Connector

Full Access
Question # 5

Which statement is true when using XML SDK for creating custom message processors?

A.

Operations can be reused in recursive calls

B.

An XML SDK provides both inbound and outbound operations

C.

Properties are fields defined by an end user of the XML SDK component and serve as a global configuration for the entire Mule project in which they are used

D.

All operations are public

Full Access
Question # 6

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:

Exhibits - Options C and D:

A.

Configuration shown in Exhibit A

B.

Configuration shown in Exhibit B

C.

Configuration shown in Exhibit C

D.

Configuration shown in Exhibit D

Full Access
Question # 7

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

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

Full Access
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?

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

Full Access
Question # 9

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?

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

Full Access
Question # 10

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?

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

Full Access
Question # 11

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

A.

ETL data load

B.

Schedule Event Publisher

C.

HTTP Webhook

D.

Shared database trigger

Full Access
Question # 12

Refer to the exhibits.

Based on the code snippet, schema.json file, and payload below, what is the outcome of the given code snippet when a request is sent with the payload?

Exhibits:

A.

The Mule flow will execute successfully with status code 204

B.

The Mule flow will execute successfully with status code 200, and in response will display the message "Age in years which must be equal to or greater than zero."

C.

The Mule flow will throw the exception "JSON:SCHEMA_NOT_HONOURED"

D.

The Mule flow will execute successfully with status code 200, and the response will be the JSON sent in request

Full Access
Question # 13

An organization uses CloudHub to deploy all of its applications.

How can a common-global-error-handler flow be configured so that it can be reused across all of the organization's deployed applications?

A.

Create a Mule plugin project. Create a common-global-error-handler flow inside the plugin project. Use this plugin as a dependency in all Mule applications. Import that configuration file in Mule applications.

B.

Create a Mule domain project. Create a common-global-error-handler flow inside the domain project. Use this domain project as a dependency.

C.

Create a Mule plugin project. Create a common-global-error-handler flow inside the plugin project. Use this plugin as a dependency in all Mule applications.

D.

Create a common-global-error-handler flow in all Mule applications. Refer to it via flow-ref wherever needed.

Full Access
Question # 14

A Mule application deployed to a standalone Mule runtime uses VM queues to publish messages to be consumed asynchronously by another flow.

In the case of a system failure, what will happen to in-flight messages in the VM queues that have not been consumed?

A.

For persistent queues, the message will be processed after the system comes online

B.

For transient queues, the message will be processed after the system comes online

C.

For any type of queue, the message will be lost

D.

For any type of queue, the message will be processed after the system comes online

Full Access
Question # 15

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:

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

Full Access
Question # 16

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:

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.

Full Access
Question # 17

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?

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.

Full Access
Question # 18

A developer has created the first version of an API designed for business partners to work with commodity prices.

What should the developer do to allow more than one major version of the same API to be exposed by the implementation?

A.

In Design Center, open the RAML and modify each operation to include the major version number

B.

In Anypoint Studio, generate scaffolding from the RAML, and then modify the < http:listener > in the generated flows to include a parameter to replace the version number

C.

In Design Center, open the RAML and modify baseUri to include a variable that indicates the version number

D.

In Anypoint Studio, generate scaffolding from the RAML, and then modify the flow names generated by APIkit to include a variable with the major version number

Full Access