Black Friday Rush: 75% Off All Exam Bundles! Apply the coupon code below before the offer expires! - Ends in 0d 00h 00m 00s - Coupon code: newyear

Salesforce Mule-Dev-301 - Salesforce Certified MuleSoft Developer II

Page: 2 / 2
Total 60 questions

Refer to the exhibit.

A developer generates the base scaffolding for an API in Anypoint Studio.

Which HTTP status code is returned while testing using the API Kit console if no values are entered in client-id and client-secret?

Exhibit:

A.

HTTP status code: 403

B.

HTTP status code: 500

C.

HTTP status code: 400

D.

HTTP status code: 200

Refer to the exhibit.

A Mule Object Store is configured with an entry TTL of one second and an expiration interval of 30 seconds.

What is the result of the flow if processing between os:store and os:retrieve takes 10 seconds?

Exhibit:

A.

nullPayload

B.

OS:KEY_NOT_FOUND

C.

testPayload

D.

originalPayload

A Mule application deployed to multiple CloudHub 2.0 replicas needs to temporarily persist large files over 10MB between flow executions, and routinely needs to query whether the file data exists on separate executions.

How can this be achieved?

A.

Store the contents of the file on separate storage, and store the key and location of the file using Object Store v2

B.

Use an in-memory Object Store

C.

Store the key and full contents of the file in an Object Store

D.

Use the file connector to store and read the file, caching the filename and location between requests

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

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?

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

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

A developer deploys an API to CloudHub and applies an OAuth API policy in API Manager. During testing, the API response is slow, so the developer reconfigures the API so that the out-of-the-box HTTP Caching policy is applied first, and the OAuth API policy is applied second.

What will happen when an HTTP request is received?

A.

In case of a cache hit, both the OAuth and HTTP Caching policies are evaluated; then the cached response is returned to the caller

B.

In case of a cache miss, both the OAuth and HTTP Caching policies are evaluated; then the API retrieves the data from the API implementation, and the policy does not store the data in Object Store

C.

In case of a cache miss, only the HTTP Caching policy is evaluated; then the API retrieves the data from the API implementation, and the policy stores the data to be cached in Object Store

D.

In case of a cache hit, only the HTTP Caching policy is evaluated; then the cached response is returned to the caller

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.