ExamGecko
Home Home / Salesforce / Certified MuleSoft Developer II

Salesforce Certified MuleSoft Developer II Practice Test - Questions Answers, Page 6

Question list
Search
Search

List of questions

Search

Related questions











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

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

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
A.
For nay type of queue, the message will be processed after the system comes online
Answers
B.
For persistent queues, the message will be processed after the system comes online
B.
For persistent queues, the message will be processed after the system comes online
Answers
C.
For transient 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
Answers
D.
For any type of queue, the message will be lost
D.
For any type of queue, the message will be lost
Answers
Suggested answer: B

Explanation:

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.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/vm-connector#persistent-queues

Which pattern can a web API use to notify its client of state changes as soon as they occur?

A.
HTTP Webhock
A.
HTTP Webhock
Answers
B.
Shared database trigger
B.
Shared database trigger
Answers
C.
Schedule Event Publisher
C.
Schedule Event Publisher
Answers
D.
ETL data load
D.
ETL data load
Answers
Suggested answer: A

Explanation:

A web API can use HTTP Webhook to notify its client of state changes as soon as they occur. A webhook is an HTTP callback that allows an API to send real-time notifications to another system or application when an event happens. The client registers a URL with the API where it wants to receive notifications, and then the API sends an HTTP request to that URL with information about the event.

Reference: https://docs.mulesoft.com/connectors/webhook/webhook-connector

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 developer is working on a project that requires encrypting all data before sending it to a backend application. To accomplish this, the developer will use PGP encryption in the Mule 4 Cryptography module.

What is required to encrypt the data before sending it to the backend application?

A.
The application needs to configure HTTPS TLS context information to encrypt the data
A.
The application needs to configure HTTPS TLS context information to encrypt the data
Answers
B.
The application needs to both the private and public keys to encrypt the data
B.
The application needs to both the private and public keys to encrypt the data
Answers
C.
The application needs the public key from the backend service to encrypt the data
C.
The application needs the public key from the backend service to encrypt the data
Answers
D.
The application needs the private key from the backend service to encrypt the data
D.
The application needs the private key from the backend service to encrypt the data
Answers
Suggested answer: C

Explanation:

To encrypt the data before sending it to the backend application using PGP encryption, the application needs the public key from the backend service. PGP encryption uses a public-key cryptography system, which means that each party has a pair of keys: a public key and a private key. The public key is used to encrypt data, and the private key is used to decrypt data. Therefore, to encrypt data for a specific recipient (the backend service), the application needs to use the recipient's public key. The recipient can then use its own private key to decrypt the data.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/cryptography-pgp

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
A.
Refer to JAR files in the code
Answers
B.
Include the libraries writes deploying the code into the runtime
B.
Include the libraries writes deploying the code into the runtime
Answers
C.
Create the Java code in your project and invoice the data from the code
C.
Create the Java code in your project and invoice the data from the code
Answers
D.
Install libraries in a local repository and refer to it in the pm.xml file
D.
Install libraries in a local repository and refer to it in the pm.xml file
Answers
Suggested answer: D

Explanation:

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.

Reference: https://docs.mulesoft.com/mule-runtime/4.3/java-module-reference#add-the-java-module-to-your-project https://docs.mulesoft.com/mule-runtime/4.3/java-module-reference#invoke-java-code

Refer to the exhibit.

When creating a new project, which API implementation allows for selecting the correct API version and scaffolding the flows from the API specification?

A.
Import a published API
A.
Import a published API
Answers
B.
Generate a local RAML from anypoint Studio
B.
Generate a local RAML from anypoint Studio
Answers
C.
Download RAML from Design Center
C.
Download RAML from Design Center
Answers
D.
Import RAML from local file
D.
Import RAML from local file
Answers
Suggested answer: C

Explanation:

To create a new project that selects the correct API version and scaffolds the flows from the API specification, the developer should import a published API. This option allows importing an API specification that has been published to Anypoint Exchange or Design Center, and selecting a specific version of that API specification. The developer can also choose to scaffold flows based on that API specification.

Reference: https://docs.mulesoft.com/apikit/4.x/apikit-4-new-project-task

Total 60 questions
Go to page: of 6