ExamGecko
Home Home / Salesforce / Certified MuleSoft Developer II

Salesforce Certified MuleSoft Developer II Practice Test - Questions Answers

Question list
Search
Search

List of questions

Search

Related questions











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.
Download the common application from Naxus and copy it to the src/main/resources folder in the API
A.
Download the common application from Naxus and copy it to the src/main/resources folder in the API
Answers
B.
Copy the common application's source XML file and out it in a new flow file in the src/main/mule folder
B.
Copy the common application's source XML file and out it in a new flow file in the src/main/mule folder
Answers
C.
Add a Maven dependency in the PCM file with multiple-plugin as <classifier>
C.
Add a Maven dependency in the PCM file with multiple-plugin as <classifier>
Answers
D.
Add a Maven dependency in the POM file with jar as <classifier>
D.
Add a Maven dependency in the POM file with jar as <classifier>
Answers
Suggested answer: D

Explanation:

To include a common application as a reusable module in all API implementations, the developer should add a Maven dependency in the POM file with jar as <classifier>. This way, the developer can reuse Mule code from another application by packaging it as a JAR file and adding it as a dependency in the POM file of the API implementation. The classifier element specifies that it is a JAR file.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/mmp-concept#add-a-maven-dependency-to-the-pom-file

Refer to the exhibit.

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

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

A.
The test case fails with an assertion error
A.
The test case fails with an assertion error
Answers
B.
The test throws an error and does not start
B.
The test throws an error and does not start
Answers
C.
The test case fails with an unexpected error type
C.
The test case fails with an unexpected error type
Answers
D.
The test case passes
D.
The test case passes
Answers
Suggested answer: A

Explanation:

Based on the code snippet and MUnit test case below, when the MUnit test case is executed, the expected result is that the test case fails with an assertion error. This is because the assert-equals processor compares two values for equality, and fails if they are not equal. In this case, the expected value is 'Hello World', but the actual value returned by the implementation flow is 'Hello Mule'. Therefore, the assertion fails and an error is thrown.

Reference: https://docs.mulesoft.com/munit/2.3/assert-equals-processor

A Flight Management System publishes gate change notification events whenever a flight's arrival gate changes. Other systems, including Baggage Handler System. Inflight Catering System and Passenger Notifications System, must each asynchronously receive the same gate change notification to process the event according.

Which configuration is required in Anypoint MQ to achieve this publish/subscribe model?

A.
Publish each client subscribe directly to the exchange. Have each client subscribe directly to the queue.
A.
Publish each client subscribe directly to the exchange. Have each client subscribe directly to the queue.
Answers
B.
Publish the gate change notification to an Anypoint MC queue Have each client subscribe directly to the queue
B.
Publish the gate change notification to an Anypoint MC queue Have each client subscribe directly to the queue
Answers
C.
Publish the gate change notification to an Anypoint MQ queue. Create different anypoint MQ exchange meant for each of the other subscribing systems Bind the queue with each of the exchanges
C.
Publish the gate change notification to an Anypoint MQ queue. Create different anypoint MQ exchange meant for each of the other subscribing systems Bind the queue with each of the exchanges
Answers
D.
Publish the gate change notification to an Anypoint MQ exchanhe. Create different Anypoint MQ queues meant for each of the other subscribing systems. Bind the exchange with each of the queues.
D.
Publish the gate change notification to an Anypoint MQ exchanhe. Create different Anypoint MQ queues meant for each of the other subscribing systems. Bind the exchange with each of the queues.
Answers
Suggested answer: D

Explanation:

To achieve a publish/subscribe model using Anypoint MQ, where each system receives the same gate change notification event, the developer should publish the gate change notification to an Anypoint MQ exchange, create different Anypoint MQ queues meant for each of the other subscribing systems, and bind the exchange with each of the queues. An exchange is a message routing agent that can send messages to different queues based on predefined criteria. By binding an exchange with multiple queues, each queue receives a copy of every message sent to that exchange. Therefore, each system can subscribe to its own queue and receive every gate change notification event.

Reference: https://docs.mulesoft.com/anypoint-mq/3.x/anypoint-mq-exchanges

A Mule application includes a subflow containing a Scatter.Gather scope. Within each log of the Scatter.Gatter. an HTTP connector calls a PUT endpoint to modify records in different upstream system. The subflow is called inside an Unit successful scope to retry if a transitory exception is raised.

A technical spike is being performed to increase reliability of the Mule application.

Which steps should be performed within the Mule flow above the ensure idempontent behavior?

A.
Change the PUT requests inside the Scatter-Gather to POST requests
A.
Change the PUT requests inside the Scatter-Gather to POST requests
Answers
B.
Ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails
B.
Ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails
Answers
C.
Remove the Put requests from the Scatter-Getter and perform them sequentially
C.
Remove the Put requests from the Scatter-Getter and perform them sequentially
Answers
D.
None, the flow already exhibits idempotent behavior
D.
None, the flow already exhibits idempotent behavior
Answers
Suggested answer: B

Explanation:

To ensure idempotent behavior within a Mule flow that contains a subflow with a Scatter-Gather scope, the developer should ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails. Idempotency means that multiple identical requests have the same effect as a single request. Therefore, if one of the HTTP requests inside the Scatter-Gather fails, the error-handling flow should undo any changes made by other successful requests to ensure consistency and avoid partial updates.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept https://docs.mulesoft.com/mule-runtime/4.3/error-handling

Two APIs are deployed to a two-node on-prem cluster. Due to a requirements change, the two APIs must communicate to exchange data asynchronously.

A.
If the two APIs use the same domain, the VM Connector can be leveraged
A.
If the two APIs use the same domain, the VM Connector can be leveraged
Answers
B.
The VM Connector is used to inter-application communication, so it is not possible to use the VM Connector
B.
The VM Connector is used to inter-application communication, so it is not possible to use the VM Connector
Answers
C.
Instead of using the VM Connector use <flow-ref>directly
C.
Instead of using the VM Connector use <flow-ref>directly
Answers
D.
It is not possible to use the VM Connector since the APIs are running in a cluster mode and each mode has it own set of VM Queues
D.
It is not possible to use the VM Connector since the APIs are running in a cluster mode and each mode has it own set of VM Queues
Answers
Suggested answer: A

Explanation:

To communicate asynchronously between two APIs deployed to a two-node on-prem cluster, the developer can use the VM Connector if the two APIs use the same domain. The VM Connector allows passing messages between different Mule applications within a single Mule runtime instance or across different instances using shared memory or persistent storage. If two APIs are deployed under the same domain, they can share resources such as VM queues and communicate asynchronously using VM Connector operations.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/vm-connector https://docs.mulesoft.com/mule-runtime/4.3/shared-resources

Multiple individual Mute application need to use the Mule Maven plugin to deploy to CloudHub.

The plugin configuration should .. reused where necessary and anything project, specific should be property-based.

Where should the Mule Maven details be configured?

A.
A parent pom.xml
A.
A parent pom.xml
Answers
B.
Settings, xml
B.
Settings, xml
Answers
C.
Pom, xml
C.
Pom, xml
Answers
D.
A Bill of Materials (BOM) parent pm
D.
A Bill of Materials (BOM) parent pm
Answers
Suggested answer: A

Explanation:

To reuse Mule Maven plugin configuration across multiple individual Mule applications, the developer should use a parent pom.xml file. A parent pom.xml file defines common configuration for one or more child projects that inherit from it. The developer can specify common properties and dependencies for all child projects in the parent pom.xml file, such as Mule Maven plugin configuration, and then reference them in each child project's pom.xml file using placeholders.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/mmp-concept#parent-pom https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project_Inheritance

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?

A.
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.
A.
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.
Answers
B.
Add Flow Reference components inside a Try scope. Set the payload to a default value'' insider the error handler using the ON Error Continue scope
B.
Add Flow Reference components inside a Try scope. Set the payload to a default value'' insider the error handler using the ON Error Continue scope
Answers
C.
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
C.
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
Answers
D.
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 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.
Answers
Suggested answer: D

Explanation:

To give a partial successful response in case the United Airlines API returns with a timeout, the developer should add a Scatter-Gather component inside a Try scope, and set the payload to a default value 'Error' inside the error handler using the On Error Continue scope. A Scatter-Gather component allows sending multiple requests concurrently and aggregating the responses into an array. A Try scope allows handling errors that occur within it using an error handler. An On Error Continue scope allows continuing the flow execution after handling an error. Therefore, by using these components, the developer can send requests to both APIs in parallel, handle any timeout errors from United Airlines API, and return a partial response with a default value for that API.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept https://docs.mulesoft.com/mule-runtime/4.3/try-scope-concept https://docs.mulesoft.com/mule-runtime/4.3/on-error-continue-concept

A Mule application contain two policies Policy A and Policy A has order1, and Policy B has order 2. Policy A Policy B, and a flow are defined by he configuration below.

When a HTTP request arrives at the Mule application's endpoint, what will be the execution order?

A.
A1, B1, F1, B2, A2
A.
A1, B1, F1, B2, A2
Answers
B.
B1, A1, F1, A2, B2
B.
B1, A1, F1, A2, B2
Answers
C.
F1, A1, B1, B2, A2
C.
F1, A1, B1, B2, A2
Answers
D.
F1, B1, A1, A2, B2
D.
F1, B1, A1, A2, B2
Answers
Suggested answer: A

Explanation:

Based on the configuration below, when a HTTP request arrives at the Mule application's endpoint, the execution order will be A1, B1, F1, B2, A2. This is because policies are executed before and after the API implementation flow according to their order attribute. Policy A has order 1, which means it is executed first before Policy B, which has order 2. The flow is executed after both policies are executed before the flow. Then, Policy B is executed after the flow before Policy A is executed after the flow.

Reference: https://docs.mulesoft.com/api-manager/2.x/policies-policy-order

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

A.
Northing because flowRef is an optional attribute which can be passed runtime
A.
Northing because flowRef is an optional attribute which can be passed runtime
Answers
B.
The name of the flow that has APlkit Console to receive all incoming RESTful operation requests.
B.
The name of the flow that has APlkit Console to receive all incoming RESTful operation requests.
Answers
C.
Any of the APIkit generate implement flows
C.
Any of the APIkit generate implement flows
Answers
D.
The name of the flow that has HTTP listener to receive all incoming RESTful operation requests
D.
The name of the flow that has HTTP listener to receive all incoming RESTful operation requests
Answers
Suggested answer: D

Explanation:

To use API autodiscovery to access and enforce policies for a RESTful implementation, flowRef must be set to the name of the flow that has HTTP listener to receive all incoming RESTful operation requests. This way, API autodiscovery can identify the API implementation and associate it with the corresponding API specification and policies in API Manager. The flow that has HTTP listener is usually the main flow that contains the APIKit Router.

Reference: https://docs.mulesoft.com/api-manager/2.x/api-auto-discovery-new-concept#flowref

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
A.
Create a health check endpoint that listens on a separate port and uses a separate HTTP Listener configuration from the API
Answers
B.
Configure the application to send health data to an external system
B.
Configure the application to send health data to an external system
Answers
C.
Create a health check endpoint that reuses the same port number and HTTP Listener configuration as the API itself
C.
Create a health check endpoint that reuses the same port number and HTTP Listener configuration as the API itself
Answers
D.
Monitor the Payment API directly sending real customer payment data
D.
Monitor the Payment API directly sending real customer payment data
Answers
Suggested answer: A

Explanation:

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

Total 60 questions
Go to page: of 6