Exam2pass
0 items Sign In or Register
  • Home
  • IT Exams
  • Guarantee
  • FAQs
  • Reviews
  • Contact Us
  • Demo
Exam2pass > Salesforce > Salesforce Certifications > SALESFORCE-MULESOFT-DEVELOPER-II > SALESFORCE-MULESOFT-DEVELOPER-II Online Practice Questions and Answers

SALESFORCE-MULESOFT-DEVELOPER-II Online Practice Questions and Answers

Questions 4

The flow is invoicing a target API. The API's protocol is HTTPS. The TLS configuration in the HTTP Request Configuration global element is set to None. A web client submits a request to http:localhost:8081/vehicles. If the certificate of the target API is signed by a certificate authority (CA), what is true about the HTTP Request operation when the flow executes?

A. The HTTP Request operation will succeed if the CA'S certificate is present in the JRE's default keystore

B. The HTTP Request operation will succeed if the CA's certificate is present in the JRE's default truststore.

C. The HTTP Request operation will always succeed regardless of the CA

D. The HTTP Request operation will always fail regardless of the CA

Buy Now

Correct Answer: B

The HTTP Request operation will use the default truststore of the JRE to validate the certificate of the target API. If the CA's certificate is present in the truststore, the operation will succeed. Otherwise, it will fail with a handshake exception. https://docs.mulesoft.com/mule-runtime.3/tlsconfiguration# tls-default

Questions 5

A custom policy needs to be developed to intercept all cutbound HTTP requests made by Mule applications. Which XML element must be used to intercept outbound HTTP requests?

A. It is not possible to intercept outgoing HTTP requests, only inbound requests

B. http-policy:source

C. htt-policy:operation

D. http-policy:processor

Buy Now

Correct Answer: B

The http-policy:processor element is used to intercept outbound HTTP requests made by Mule applications. It allows customizing the request before it is sent to the target API and modifying the response after it is received from the target API. https://docs.mulesoft.com/apimanager/2.x/policy-mule4-custom-policy#policy-xml-file

Questions 6

A developer deploys an API to CloudHub and applies an OAuth policy on 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 it, only the HTTP Caching policy is evaluating; then the cached response is returned to the caller

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 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

Buy Now

Correct Answer: B

When an HTTP request is received and the HTTP Caching policy is applied first, it checks if there is a cached response for that request in Object Store. If there is a cache hit, meaning that a valid cached response exists, then only the HTTP Caching policy is evaluated and the cached response is returned to the caller without invoking the OAuth policy or the API implementation. If there is a cache miss, meaning that no valid cached response exists, then both the HTTP Caching policy and the OAuth policy are evaluated before invoking the API implementation. Reference: https://docs.mulesoft.com/api-manager.x/http-caching-policy#policy-ordering

Questions 7

The HTTP Request operation raises an HTTP CONNECTIVITY error.

Which HTTP status code and body are returned to the web client?

A. HTTP Status Code:200. Body "Error in processing your request

B. HTTP Status Code:500. Body "The HTTP CONNECTIVITY Error description

C. HTTP Status Code:500. Body "Error in processing your request

D. HTTP Status Code:500. Body "Error in processing your request

Buy Now

Correct Answer: C

When the HTTP Request operation raises an HTTP CONNECTIVITY error, it triggers an on-errorcontinue handler that sets a payload with "Error in processing your request'. Since no status code is explicitly set in this handler, it defaults to 500 (INTERNAL SERVER ERROR). Therefore, the web client receives an HTTP response with status code 500 and body "Error in processing your request'. https://docs.mulesoft.com/mule- runtime.3/error-handling#on-error-continue

Questions 8

In a Mule project, Flow-1 contains a flow-ref to 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. Chain together the test suites and test cases for Flow-1 and Flow-2

B. Use "Set Event to pass the input that is needed, and keep the test cases for Flow-1 and Flow-2 independent

C. Use "Before Test Case'' To collect data from Flow-1 test cases before running Flow-2 test cases

D. Use "After Test Case' to produce the data needed from Flow-1 test cases to pass to Flow-2 test cases

Buy Now

Correct Answer: B

To ensure the test suites and test cases written for Flow-1 and Flow-2 will execute successfully, the developer should use a Set Event processor to pass the input that is needed by Flow-2, and keep the test cases for Flow- 1 and Flow-2 independent. This way, the developer can isolate the testing of each flow and avoid coupling them together. https://docs.mulesoft.com/munit.3/munit-testflow

Questions 9

Which statement is true when working with correlation IDS?

A. The HTTP Listener regenerates correlation IDs regardless of the HTTP request

B. The Anypoint MQ Connector automatically propagates correlation IDS

C. The HTTP Listener generates correlation IDS unless a correlation ID is received in the HTTP request

D. The VM Connector does not automatically propagate correction IDs

Buy Now

Correct Answer: C

When working with correlation IDs, the HTTP Listener generates correlation IDs unless a correlation ID is received in the HTTP request. In that case, it propagates the received correlation ID throughout the flow execution. Correlation IDs are used to track events across different flows or applications. https://docs.mulesoft.com/mule-runtime.3/about-mule-message#message-attributes

Questions 10

An organization uses CloudHub to deploy all of its applications. How can a common-global-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 Mute applications. Import that configuration file in Mute applications.

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

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 Mule daman project. Create a common-global-error-handler flow inside the domain project. Use this domain project as a dependency.

Buy Now

Correct Answer: C

To configure a common-global-handler flow that can be reused across all of the organization's deployed applications, the developer should create a Mule Plugin project, create a common-globalerror- handler flow inside the plugin project, and

use this plugin as a dependency in all Mule applications. This way, the developer can import the common-global-error-handler flow in any application that needs it and avoid duplicating the error handling logic.

Reference:

https://docs.mulesoft.com/mule-runtime.3/error-handling#global-error-handler

Questions 11

A Mule application deployed to a standardalone 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 been consumed?

A. For nay type of queue, the message will be processed after the system comes online

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

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

D. For any type of queue, the message will be lost

Buy Now

Correct Answer: B

In case of a system failure, in-flight messages in persistent VM queues that have been consumed will be processed after the system comes online. This is because persistent VM queues store messages on disk and guarantee delivery even if there is a system crash or restart. Therefore, any in-flight messages that have been consumed but not processed will be recovered from disk and processed when the system is back online. https://docs.mulesoft.com/mule-runtime.3/vmconnector#persistent-queues

Questions 12

A heathcare 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 retrieve the data from the hospital system?

A. Refer to JAR files in the code

B. Include the libraries writes deploying the code into the runtime

C. Create the Java code in your project and invoice the data from the code

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

Buy Now

Correct Answer: D

To develop an API that retrieves data from a hospital system using reusable Java libraries, the developer should install libraries in a local repository and refer to it in the pom.xml file. This way, the developer can use Maven to manage dependencies and invoke Java code from Mule applications using Java Module operations. https://docs.mulesoft.com/mule-runtime.3/java- module-reference#add-the-java-module-to-your-project https://docs.mulesoft.com/muleruntime/4.3/ java-module-reference#invoke-java-code

Questions 13

A mule application exposes and API for creating payments. An Operations team wants to ensure that the Payment API is up and running at all times in production. Which approach should be used to test that the payment API is working in production?

A. Create a health check endpoint that listens on a separate port and uses a separate HTTP Listener configuration from the API

B. Configure the application to send health data to an external system

C. Create a health check endpoint that reuses the same port number and HTTP Listener configuration as the API itself

D. Monitor the Payment API directly sending real customer payment data

Buy Now

Correct Answer: A

To test that the payment API is working in production, the developer should create a health check endpoint that listens on a separate port and uses a separate HTTP Listener configuration from the API. This way, the developer can isolate the

health check endpoint from the API traffic and avoid affecting the performance or availability of the API. The health check endpoint should return a simple response that indicates the status of the API, such as OK or ERROR.

Reference:

https://docs.mulesoft.com/api-functional-monitoring/afm-create-monitor#create-a-monitor

Exam Code: SALESFORCE-MULESOFT-DEVELOPER-II
Exam Name: Salesforce Certified MuleSoft Developer II
Last Update: Jun 10, 2025
Questions: 60

PDF (Q&A)

$45.99
ADD TO CART

VCE

$49.99
ADD TO CART

PDF + VCE

$59.99
ADD TO CART

Exam2Pass----The Most Reliable Exam Preparation Assistance

There are tens of thousands of certification exam dumps provided on the internet. And how to choose the most reliable one among them is the first problem one certification candidate should face. Exam2Pass provide a shot cut to pass the exam and get the certification. If you need help on any questions or any Exam2Pass exam PDF and VCE simulators, customer support team is ready to help at any time when required.

Home | Guarantee & Policy |  Privacy & Policy |  Terms & Conditions |  How to buy |  FAQs |  About Us |  Contact Us |  Demo |  Reviews

2025 Copyright @ exam2pass.com All trademarks are the property of their respective vendors. We are not associated with any of them.