Salesforce Mule-Dev-301 Salesforce Certified MuleSoft Developer II Exam Practice Test
Salesforce Certified MuleSoft Developer II Questions and Answers
Refer to the exhibits.
A Mule application contains two policies: Policy A and Policy B. Policy A has order 1, and Policy B has order 2. Policy A, Policy B, and a flow are defined by the configurations below.
When an HTTP request arrives at the Mule application's endpoint, what will be the execution order?
Exhibit:

A Mule application exposes an API for creating payments. An Operations team wants to ensure that the Payments API is up and running at all times in production.
Which approach should be used to test that the Payments API is working in production?
Which statement is true about using mutual TLS to secure an application?
In a Mule project, Flow-1 contains a flow-ref to Flow-2. Flow-2 depends on data from Flow-1 to execute successfully.
Which action ensures the test suites and test cases written for Flow-1 and Flow-2 will execute successfully?
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 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?
Which statement is true when using XML SDK for creating custom message processors?
A Mule application for processing orders must log the order ID for every log message output.
What is a best practice to enrich every log message with the order ID?
Refer to the exhibits.
BioInfo System API is implemented and published to Anypoint Exchange. A developer wants to invoke this API using its REST Connector.
What should be added to the POM?
Exhibit / Answer Configurations:

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?
Refer to the exhibit.
What is the result if "Insecure" is selected as part of the HTTP Listener configuration?
Exhibit:

A healthcare portal needs to validate the token that it sends to a Mule API. The developer plans to implement a custom policy using the HTTP Policy Transform Extension to match the token received in the header from the healthcare portal.
Which files does the developer need to create in order to package the custom policy?
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?
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:

Multiple individual Mule applications need to use the Mule Maven plugin to deploy to CloudHub. The plugin configuration should be reused where necessary and anything project-specific should be property-based.
Where should the Mule Maven plugin details be configured?
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?
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?
A Mule application needs to invoke an API hosted by an external system to initiate a process. The external API takes anywhere between one minute and 24 hours to complete its process.
Which implementation should be used to get response data from the external API after it completes processing?