ExamGecko
Home Home / MuleSoft / MCD - Level 2

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

Question list
Search
Search

List of questions

Search

Related questions











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?

A)

B)

C)

D)

E)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
E.
Option E
E.
Option E
Answers
Suggested answer: E

Explanation:

To invoke Bioinfo System API using its REST Connector, option E should be added to the pom.xml file. This option adds a dependency for Bioinfo System API REST Connector with its group ID, artifact ID, version, classifier, and type. The classifier specifies that it is a REST Connector (raml-client), and the type specifies that it is a Mule plugin (mule-plugin).

Reference: https://docs.mulesoft.com/apikit/4.x/apikit-4-generate-from-rest-api-task#add-the-api-dependency-to-the-pom-file

A Mule implementation uses a HTTP Request within an Unit Successful scope to connect to an API.

How should a permanent error response like HTTP:UNAUTHORIZED be handle inside Until Successful to reduce latency?

A.
Configure retrying until a MULERETRY_EXHAUSTED error is raised or the API responds back with a successful response.
A.
Configure retrying until a MULERETRY_EXHAUSTED error is raised or the API responds back with a successful response.
Answers
B.
In Until Successful configuration, set the retry count to 1 for error type HTTP: UNAUTHORIZED.
B.
In Until Successful configuration, set the retry count to 1 for error type HTTP: UNAUTHORIZED.
Answers
C.
Put the HTTP Request inside a try scope in Unit Successful. In the error handler, use On Error Continue to catch permanent errors like HTTP UNAUTHORIZED.
C.
Put the HTTP Request inside a try scope in Unit Successful. In the error handler, use On Error Continue to catch permanent errors like HTTP UNAUTHORIZED.
Answers
D.
Put the HTTP Request inside a try scope in Unit Successful. In the error handler, use On Error Propagate to catch permanent errors like HTTP UNAUTHORIZED.
D.
Put the HTTP Request inside a try scope in Unit Successful. In the error handler, use On Error Propagate to catch permanent errors like HTTP UNAUTHORIZED.
Answers
Suggested answer: C

Explanation:

To handle a permanent error response like HTTP:UNAUTHORIZED inside Until Successful, the developer should put the HTTP Request inside a try scope in Unit Successful, and use On Error Continue to catch permanent errors like HTTP UNAUTHORIZED in the error handler. This way, the developer can avoid retrying requests that will always fail due to a permanent error, and reduce latency. On Error Continue allows the flow to continue processing after handling the error.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/until-successful-scope https://docs.mulesoft.com/mule-runtime/4.3/on-error-continue-concept

A company deploys 10 public APIs to CloudHub. Each API has its individual health endpoint defined. The platform operation team wants to configure API Functional Monitoring to monitor the health of the APIs periodically while minimizing operational overhead and cost.

How should API Functional Monitoring be configured?

A.
From one public location with each API in its own schedule
A.
From one public location with each API in its own schedule
Answers
B.
From one private location with all 10 APIs in a single schedule
B.
From one private location with all 10 APIs in a single schedule
Answers
C.
From one public location with all 10 APIs in a single schedule
C.
From one public location with all 10 APIs in a single schedule
Answers
D.
From 10 public locations with each API in its own schedule
D.
From 10 public locations with each API in its own schedule
Answers
Suggested answer: C

Explanation:

To configure API Functional Monitoring to monitor the health of 10 public APIs periodically while minimizing operational overhead and cost, the developer should use one public location with all 10 APIs in a single schedule. A public location is a worker that runs in a CloudHub shared environment, which is cheaper and easier to maintain than a private location. A single schedule allows running all 10 APIs tests at the same time and frequency, which reduces complexity and resource consumption.

Reference: https://docs.mulesoft.com/functional-monitoring/fm-create-monitor#create-a-monitor

A scatter-gather router is configured with four routes:Route A, B, C and D.

Route C false.

A.
Error,errorMesage.payload.results ['2']
A.
Error,errorMesage.payload.results ['2']
Answers
B.
Payload failures['2']
B.
Payload failures['2']
Answers
C.
Error,errorMessage,payload.failures['2']
C.
Error,errorMessage,payload.failures['2']
Answers
D.
Payload ['2']
D.
Payload ['2']
Answers
Suggested answer: C

Explanation:

The result of accessing route C failure is Error,errorMessage,payload.failures['2']. This is because a scatter-gather router returns an aggregated message that contains an array of results from each route and an array of failures from each route. The failures array contains error objects with information about each failed route execution. To access route C failure, which is the third route (index 2), the developer needs to use Error.errorMessage.payload.failures['2'] expression.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-reference#scatter-gather-output

Which configurations are required for HTTP Listener to enable mTLS authentication?

A.
Set an appropriate reconnection strategy and use persistent connections for the listener
A.
Set an appropriate reconnection strategy and use persistent connections for the listener
Answers
B.
Set an appropriate keystore configuration and use persistent connections for the listener
B.
Set an appropriate keystore configuration and use persistent connections for the listener
Answers
C.
Set an appropriate keystore and truststore configuration for the listener
C.
Set an appropriate keystore and truststore configuration for the listener
Answers
D.
Set an appropriate truststore configuration and reconnection strategy for the listener
D.
Set an appropriate truststore configuration and reconnection strategy for the listener
Answers
Suggested answer: C

Explanation:

To enable mTLS authentication for HTTP Listener, the developer needs to set an appropriate keystore and truststore configuration for the listener. The keystore contains the certificate and private key of the Mule application that are used to prove its identity to clients. The truststore contains the certificates of trusted clients that are allowed to access the Mule application.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/tls-configuration#mutual-authentication

Which command is used to convert a JKS keystore to PKCS12?

A.
Keytool-importkeystore --srckeystore keystore p12-srcstoretype PKCS12 --destkeystore keystore.jks --deststoretype JKS
A.
Keytool-importkeystore --srckeystore keystore p12-srcstoretype PKCS12 --destkeystore keystore.jks --deststoretype JKS
Answers
B.
Keytool-importkeystore --srckeystore keystore p12-srcstoretype JKS --destkeystore keystore.p12 --deststoretype PKCS12
B.
Keytool-importkeystore --srckeystore keystore p12-srcstoretype JKS --destkeystore keystore.p12 --deststoretype PKCS12
Answers
C.
Keytool-importkeystore --srckeystore keystore jks-srcstoretype JKS --destkeystore keystore.p13 --deststoretype PKCS12
C.
Keytool-importkeystore --srckeystore keystore jks-srcstoretype JKS --destkeystore keystore.p13 --deststoretype PKCS12
Answers
D.
Keytool-importkeystore --srckeystore keystore jks-srcstoretype PKCS12 --destkeystore keystore.p12 --deststoretype JKS
D.
Keytool-importkeystore --srckeystore keystore jks-srcstoretype PKCS12 --destkeystore keystore.p12 --deststoretype JKS
Answers
Suggested answer: B

Explanation:

To convert a JKS keystore to PKCS12, the developer needs to use the keytool-importkeystore command with the following options: -srckeystore keystore.jks -srcstoretype JKS -destkeystore keystore.p12 -deststoretype PKCS12. This command imports all entries from a source JKS keystore (keystore.jks) into a destination PKCS12 keystore (keystore.p12).

Reference: https://docs.oracle.com/en/java/javase/11/tools/keytool.html#GUID-5990A2E4-78E3-47B7-AE75-6D1826259549

A new Mule project has been created in Anypoint Studio with the default settings.

Which file inside the Mule project must be modified before using Maven to successfully deploy the application?

A.
Settings.xml
A.
Settings.xml
Answers
B.
Config.yaml
B.
Config.yaml
Answers
C.
Pom.xml
C.
Pom.xml
Answers
D.
Mule.artificact.json
D.
Mule.artificact.json
Answers
Suggested answer: C

Explanation:

To use Maven to successfully deploy the application, the developer needs to modify the pom.xml file inside the Mule project. The pom.xml file contains the configuration and dependencies of the Mule application, as well as the deployment information such as the CloudHub region, environment, and worker size. The developer needs to specify these properties in the pom.xml file before using Maven to deploy the application.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/mmp-concept#application-deployment-descriptor

A company with MuleSoft Titanium develops a Salesforce System API using MuleSoft out-of-the-box Salesforce Connector and deploys the API to CloudHub.

Which steps provide the average number of requests and average response time of the Salesforce Connector?

A.
Access Anypoint Monitoring's built-in dashboard. Select a resource. Locate the information under the Connectors tab.
A.
Access Anypoint Monitoring's built-in dashboard. Select a resource. Locate the information under the Connectors tab.
Answers
B.
Access Anypoint Monitoring's built-in dashboard Seclect a resource. Create a custom dashboard to retrieve the information.
B.
Access Anypoint Monitoring's built-in dashboard Seclect a resource. Create a custom dashboard to retrieve the information.
Answers
C.
Access Anypoint Monitoring built-in dashboard. Select a resource. Locate the information under Log Manager < Raw Data.
C.
Access Anypoint Monitoring built-in dashboard. Select a resource. Locate the information under Log Manager < Raw Data.
Answers
D.
Change the API Implementation to capture the information in the log. Retrieve the information from the log file.
D.
Change the API Implementation to capture the information in the log. Retrieve the information from the log file.
Answers
Suggested answer: A

Explanation:

To get the average number of requests and average response time of the Salesforce Connector, the developer should access Anypoint Monitoring's built-in dashboard, select a resource (such as an application or an API), and locate the information under the Connectors tab. The Connectors tab shows metrics for each connector used by the resource, such as average requests per minute, average response time, and failures.

Reference: https://docs.mulesoft.com/monitoring/built-in-dashboard-reference

Refer to the exhibit.

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?

A.
The Mule flow will execute successfully with status code 200, and the response will be the JSON sent in request
A.
The Mule flow will execute successfully with status code 200, and the response will be the JSON sent in request
Answers
B.
The Mule flow will execute successfully with status code 204
B.
The Mule flow will execute successfully with status code 204
Answers
C.
The Mule flow will throw the exception 'JSON:SCHEMA_NOT_HONOURED
C.
The Mule flow will throw the exception 'JSON:SCHEMA_NOT_HONOURED
Answers
D.
The Mule flow will execute successfully with status code 200m and a response will display the message '' Age in years which must equal to or greater than zero.''
D.
The Mule flow will execute successfully with status code 200m and a response will display the message '' Age in years which must equal to or greater than zero.''
Answers
Suggested answer: C

Explanation:

Based on the code snippet, schema.json file, and payload below, the outcome of the given code snippet when a request is sent with the payload is that the Mule flow will throw the exception 'JSON:SCHEMA_NOT_HONOURED'. This is because the payload does not conform to the schema.json file, which specifies that age must be a number greater than or equal to zero. The payload has age as a string with a negative value, which violates the schema. Therefore, the validate-schema operation throws an error with type 'JSON:SCHEMA_NOT_HONOURED'.

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

When registering a client application with an existing API instance or API Group instance, what is required to manually approve or reject request access?

A.
To configure the SLA tier for the application and have the role of Organization Administrator, API Manager Environment Administrator, or the Manage Contacts permission
A.
To configure the SLA tier for the application and have the role of Organization Administrator, API Manager Environment Administrator, or the Manage Contacts permission
Answers
B.
To configure the SLA tier for the application and have the Exchange Administrator permission
B.
To configure the SLA tier for the application and have the Exchange Administrator permission
Answers
C.
To configure the SLA tier for the application
C.
To configure the SLA tier for the application
Answers
D.
To only have Exchange Administrator permission
D.
To only have Exchange Administrator permission
Answers
Suggested answer: A

Explanation:

To manually approve or reject request access when registering a client application with an existing API instance or API Group instance, it is required to configure the SLA tier for the application and have one of the following roles or permissions: Organization Administrator, API Manager Environment Administrator, or Manage Contracts permission. These roles or permissions allow managing client applications and contracts in API Manager.

Reference: https://docs.mulesoft.com/api-manager/2.x/client-applications#managing-client-applications-and-contracts

Total 60 questions
Go to page: of 6