ExamGecko
Home Home / MuleSoft / MCD - Level 2

MuleSoft MCD - Level 2 Practice Test - Questions Answers, Page 4

Question list
Search
Search

List of questions

Search

Related questions











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
A.
Chain together the test suites and test cases for Flow-1 and Flow-2
Answers
B.
Use ''Set Event to pass the input that is needed, and keep the test cases for Flow-1 and Flow-2 independent
B.
Use ''Set Event to pass the input that is needed, and keep the test cases for Flow-1 and Flow-2 independent
Answers
C.
Use ''Before Test Case'' To collect data from Flow-1 test cases before running Flow-2 test cases
C.
Use ''Before Test Case'' To collect data from Flow-1 test cases before running Flow-2 test cases
Answers
D.
Use 'After Test Case' to produce the data needed from Flow-1 test cases to pass to 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
Answers
Suggested answer: B

Explanation:

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.

Reference: https://docs.mulesoft.com/munit/2.3/munit-test-flow

A Mule application need to invoice an API hosted by an external system to initiate a process. The external API takes anywhere between one minute and 24 hours to compute its process.

Which implementation should be used to get response data from the external API after it completes processing?

A.
Use an HTTP Connector to invoke the API and wait for a response
A.
Use an HTTP Connector to invoke the API and wait for a response
Answers
B.
Use a Scheduler to check for a response every minute
B.
Use a Scheduler to check for a response every minute
Answers
C.
Use an HTTP Connector inside Async scope to invoice the API and wait for a response
C.
Use an HTTP Connector inside Async scope to invoice the API and wait for a response
Answers
D.
Expose an HTTP callback API in Mule and register it with the external system
D.
Expose an HTTP callback API in Mule and register it with the external system
Answers
Suggested answer: D

Explanation:

To get response data from the external API after it completes processing, the developer should expose an HTTP callback API in Mule and register it with the external system. This way, the external API can invoke the callback API with the response data when it is ready, instead of making the Mule application wait for a long time or poll for a response repeatedly.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/http-listener-ref#callback

Refer to the exhibit.

A Mute 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?

A.
nullPayload
A.
nullPayload
Answers
B.
originalPayload
B.
originalPayload
Answers
C.
OS:KEY_NOT_FOUND
C.
OS:KEY_NOT_FOUND
Answers
D.
testPayload
D.
testPayload
Answers
Suggested answer: A

Explanation:

The result of the flow is nullPayload if processing between os:store and os:retrieve takes 10 seconds. This is because the entry TTL of the object store is one second, which means that any stored value expires after one second and is removed from the object store. The expiration interval of 30 seconds only determines how often the object store checks for expired values, but it does not affect the TTL. Therefore, when os:retrieve tries to get the value after 10 seconds, it returns nullPayload because the value has already expired and been removed.

Reference: https://docs.mulesoft.com/object-store/osv2-faq#how-does-the-time-to-live-work

Which plugin or dependency is required to unit test modules created with XML SDK?

A.
XMLUnit
A.
XMLUnit
Answers
B.
Junit
B.
Junit
Answers
C.
MUnit Extensions Maven plugin
C.
MUnit Extensions Maven plugin
Answers
D.
MUnit Maven plugin
D.
MUnit Maven plugin
Answers
Suggested answer: C

Explanation:

To unit test modules created with XML SDK, the developer needs to use the MUnit Extensions Maven plugin. This plugin allows testing XML SDK modules using MUnit by adding a dependency to the module under test and using a custom processor tag to invoke it.

Reference: https://docs.mulesoft.com/mule-sdk/1.1/xml-sdk#testing

Which statement is true when working with correlation IDS?

A.
The HTTP Listener regenerates correlation IDs regardless of the HTTP request
A.
The HTTP Listener regenerates correlation IDs regardless of the HTTP request
Answers
B.
The Anypoint MQ Connector automatically propagates correlation IDS
B.
The Anypoint MQ Connector automatically propagates correlation IDS
Answers
C.
The HTTP Listener generates correlation IDS unless a correlation ID is received in the HTTP request
C.
The HTTP Listener generates correlation IDS unless a correlation ID is received in the HTTP request
Answers
D.
The VM Connector does not automatically propagate correction IDs
D.
The VM Connector does not automatically propagate correction IDs
Answers
Suggested answer: C

Explanation:

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.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/about-mule-message#message-attributes

Refer to the exhibit.

What is the result of the Mule Maven Plugin configuration of the value of property its,keystorePassoword in CloudHub 2.0?

A.
CloudHub encrypts the value
A.
CloudHub encrypts the value
Answers
B.
The Mule server encrypts the value
B.
The Mule server encrypts the value
Answers
C.
Anypoint Studio secures the value
C.
Anypoint Studio secures the value
Answers
D.
Runtime Manager masks the value
D.
Runtime Manager masks the value
Answers
Suggested answer: D

Explanation:

The result of the Mule Maven Plugin configuration of the value of property its,keystorePassword in CloudHub 2.0 is that Runtime Manager masks the value. This means that Runtime Manager hides or obscures the value from anyone who views it in Runtime Manager or Anypoint Platform.

Reference: https://docs.mulesoft.com/runtime-manager/runtime-manager-agent-for-mule4#properties-tab

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 projectCreate 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.
A.
Create a Mule plugin projectCreate 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.
Answers
B.
Create a common-global-error-handler flow in all Mule Applications Refer to it flow-ref wherever needed.
B.
Create a common-global-error-handler flow in all Mule Applications Refer to it flow-ref wherever needed.
Answers
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
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
Answers
D.
Create a Mule daman project. Create a common-global-error-handler flow inside the domain project. Use this domain project as a dependency.
D.
Create a Mule daman project. Create a common-global-error-handler flow inside the domain project. Use this domain project as a dependency.
Answers
Suggested answer: C

Explanation:

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-global-error-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/4.3/error-handling#global-error-handler

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 validation before posting to the target system?

A.
Use a DataWeave 2.09 transform operation, and at the log of the DataWeave script, add: %dw 2.0 Import.json-moduls
A.
Use a DataWeave 2.09 transform operation, and at the log of the DataWeave script, add: %dw 2.0 Import.json-moduls
Answers
B.
Using the DataWeave if Else condition test the values of the payload against the examples included in the schema
B.
Using the DataWeave if Else condition test the values of the payload against the examples included in the schema
Answers
C.
Apply the JSON Schema policy in API Manager and reference the correct schema in the policy configuration
C.
Apply the JSON Schema policy in API Manager and reference the correct schema in the policy configuration
Answers
D.
Add the JSON module dependency and add the validate-schema operation in the flow, configured to reference the schema
D.
Add the JSON module dependency and add the validate-schema operation in the flow, configured to reference the schema
Answers
Suggested answer: D

Explanation:

To validate the data before posting to the target system, the developer should add the JSON module dependency and add the validate-schema operation in the flow, configured to reference the schema. The JSON module provides a validate-schema operation that validates a JSON payload against a JSON schema and throws an error if the payload is invalid.

Reference: https://docs.mulesoft.com/json-module/1.1/json-validate-schema

Which pattern should be used to invoke multiple HTTP APIs in parallel and roll back failed requests in sequence?

A.
A database as a transactional outbox and an Until Successful router to retry any requests
A.
A database as a transactional outbox and an Until Successful router to retry any requests
Answers
B.
A Parallel for Each scope with each HTTP request wrapped in a Try scope
B.
A Parallel for Each scope with each HTTP request wrapped in a Try scope
Answers
C.
Scatter-Gather as central Saga orchestrator for all API request with compensating actions for failing routes
C.
Scatter-Gather as central Saga orchestrator for all API request with compensating actions for failing routes
Answers
D.
VM queues as a reliability pattern with error handlers to roll back any requests
D.
VM queues as a reliability pattern with error handlers to roll back any requests
Answers
Suggested answer: C

Explanation:

To invoke multiple HTTP APIs in parallel and roll back failed requests in sequence, the developer should use a Scatter-Gather router as a central Saga orchestrator for all API requests with compensating actions for failing routes. A Scatter-Gather router executes multiple routes concurrently and aggregates the results. A Saga orchestrator coordinates a series of actions across different services and handles failures by executing compensating actions. Therefore, using a Scatter-Gather router as a Saga orchestrator allows invoking multiple HTTP APIs in parallel and rolling back any failed requests in sequence.

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

Which properties are mandatory on the HTTP Connector configuration in order to use the OAuth 2.0 Authorization Code grant type for authentication?

A.
External callback URL, access token URL, client ID response access token
A.
External callback URL, access token URL, client ID response access token
Answers
B.
Token URL, authorization URL, client ID, client secret local callback URL
B.
Token URL, authorization URL, client ID, client secret local callback URL
Answers
C.
External callback URL, access token URL, client ID, response refresh token
C.
External callback URL, access token URL, client ID, response refresh token
Answers
D.
External callback URL, access token URL, local authorization URL, authorization URL, client ID, client secret
D.
External callback URL, access token URL, local authorization URL, authorization URL, client ID, client secret
Answers
Suggested answer: B

Explanation:

To use the OAuth 2.0 Authorization Code grant type for authentication, the HTTP Connector configuration requires the following properties: token URL, authorization URL, client ID, client secret, and local callback URL. The token URL is the endpoint of the authorization server that provides access tokens. The authorization URL is the endpoint of the authorization server that initiates the user consent flow. The client ID and client secret are the credentials of the Mule application registered with the authorization server. The local callback URL is the endpoint of the Mule application that receives the authorization code from the authorization server.

Reference: https://docs.mulesoft.com/http-connector/1.6/http-authentication#oauth-2-0

Total 60 questions
Go to page: of 6