Halloween Sale Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 75only

Salesforce Mule-Dev-301 Salesforce Certified MuleSoft Developer II Exam Practice Test

Demo: 18 questions
Total 60 questions

Salesforce Certified MuleSoft Developer II Questions and Answers

Question 1

Refer to the exhibit.

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

Exhibit:

Options:

A.

Import a published API

B.

Generate a local RAML from Anypoint Studio

C.

Import RAML from local file

D.

Download RAML from Design Center

Question 2

Which statement is true when working with correlation IDs?

Options:

A.

The VM Connector does not automatically propagate correlation IDs

B.

The HTTP Listener regenerates correlation IDs regardless of the HTTP request

C.

The HTTP Listener generates correlation IDs unless a correlation ID is received in the HTTP request

D.

The Anypoint MQ Connector automatically propagates correlation IDs

Question 3

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

Options:

A.

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

B.

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

C.

For any type of queue, the message will be lost

D.

For any type of queue, the message will be processed after the system comes online

Question 4

When implementing a synchronous API where the event source is an HTTP Listener, a developer needs to return the same correlation ID back to the caller in the HTTP response header.

How can this be achieved?

Options:

A.

Configure a custom correlation policy

B.

Enable the CorrelationID checkbox in the HTTP Listener configuration

C.

Enable the auto-generate CorrelationID option when scaffolding the flow

D.

No action is needed as the correlation ID is returned to the caller in the response header by default

Question 5

A healthcare portal needs to validate the token that it sends to a Mule API. The developer plans to implement a custom policy using the HTTP Policy Transform Extension to match the token received in the header from the healthcare portal.

Which files does the developer need to create in order to package the custom policy?

Options:

A.

XML template file, YAML configuration file

B.

Deployable ZIP file, YAML configuration file

C.

JSON properties file, XML template file

D.

JSON properties file, YAML configuration file

Question 6

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

Options:

A.

keytool -importkeystore -srckeystore keystore.jks -srcstoretype PKCS12 -destkeystore keystore.p12 -deststoretype JKS

B.

keytool -importkeystore -srckeystore keystore.jks -srcstoretype JKS -destkeystore keystore.p12 -deststoretype PKCS12

C.

keytool -importkeystore -srckeystore keystore.p12 -srcstoretype PKCS12 -destkeystore keystore.jks -deststoretype JKS

D.

keytool -importkeystore -srckeystore keystore.p12 -srcstoretype JKS -destkeystore keystore.p12 -deststoretype PKCS12

Question 7

Refer to the exhibits.

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?

Exhibits:

Options:

A.

The Mule flow will execute successfully with status code 204

B.

The Mule flow will execute successfully with status code 200, and in response will display the message "Age in years which must be equal to or greater than zero."

C.

The Mule flow will throw the exception "JSON:SCHEMA_NOT_HONOURED"

D.

The Mule flow will execute successfully with status code 200, and the response will be the JSON sent in request

Question 8

Refer to the exhibits.

A Mule application's pom.xml configures the Maven Resources plugin to exclude parsing binary files in the project's src/main/resources/certs directory.

Which configuration of this plugin achieves a successful build?

Exhibits - Options A and B:

Exhibits - Options C and D:

Options:

A.

Configuration shown in Exhibit A

B.

Configuration shown in Exhibit B

C.

Configuration shown in Exhibit C

D.

Configuration shown in Exhibit D

Question 9

A Mule application exposes an API for creating payments. An Operations team wants to ensure that the Payments API is up and running at all times in production.

Which approach should be used to test that the Payments API is working in production?

Options:

A.

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

B.

Configure the application to send health data to an external system

C.

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

D.

Monitor the Payments API directly, sending real customer payment data

Question 10

A System API that communicates to an underlying MySQL database is deployed to CloudHub. The DevOps team requires a readiness endpoint to monitor all system APIs.

Which strategy should be used to implement this endpoint?

Options:

A.

Use an existing resource endpoint of the API

B.

Create a dedicated endpoint that responds with the API status and reachability of the underlying systems

C.

Create a dedicated endpoint that responds with the API status only

D.

Create a dedicated endpoint that responds with the API status and health of the server

Question 11

Refer to the exhibit.

A developer generates the base scaffolding for an API in Anypoint Studio.

Which HTTP status code is returned while testing using the API Kit console if no values are entered in client-id and client-secret?

Exhibit:

Options:

A.

HTTP status code: 403

B.

HTTP status code: 500

C.

HTTP status code: 400

D.

HTTP status code: 200

Question 12

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

Options:

A.

Add the JSON module dependency and add the validate schema operation in the flow, configured to reference the schema

B.

Using the DataWeave If Else condition, test the values of the payload against the examples included in the schema

C.

Apply the JSON Schema policy in API Manager and reference the correct schema in the policy configuration

D.

Use a DataWeave 2.0 transform operation, and at the top of the DataWeave script, add: %dw 2.0 / import json-module

Question 13

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

Options:

A.

Scatter-Gather as central Saga orchestrator for all API requests with compensating actions for failing routes

B.

A Parallel For Each scope with each HTTP request wrapped in a Try scope

C.

VM queues as a reliability pattern with error handlers to roll back any requests

D.

A database as a transactional outbox and an Until Successful router to retry any requests

Question 14

A Mule application includes a subflow containing a Scatter-Gather scope. Within each leg of the Scatter-Gather, an HTTP connector calls a PUT endpoint to modify records in different upstream systems. The subflow is called from inside an Until Successful scope to retry if a transient 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 to ensure idempotent behavior?

Options:

A.

None; the flow already exhibits idempotent behavior

B.

Remove the PUT requests from the Scatter-Gather and perform them sequentially

C.

Change the PUT requests inside the Scatter-Gather to POST requests

D.

Ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails

Question 15

Which statement is true when using XML SDK for creating custom message processors?

Options:

A.

Operations can be reused in recursive calls

B.

An XML SDK provides both inbound and outbound operations

C.

Properties are fields defined by an end user of the XML SDK component and serve as a global configuration for the entire Mule project in which they are used

D.

All operations are public

Question 16

What is the MuleSoft recommended method to encrypt sensitive property data?

Options:

A.

The encryption key and sensitive data should be the same for all environments

B.

The encryption key should be identical for all environments and the sensitive data should be different for each environment

C.

The encryption key should be different for each environment and the sensitive data should be the same for all environments

D.

The encryption key and sensitive data should be different for each environment

Question 17

An order processing system is composed of multiple Mule applications responsible for warehouse, sales, and shipping. Each application communicates using Anypoint MQ. Each message must be correlated against the original order ID for observability and tracing.

How should a developer propagate the order ID as the correlation ID across each message?

Options:

A.

Wrap all Anypoint MQ Publish operations within a With CorrelationID scope from the Tracing module, setting the correlation ID to the order ID

B.

Use the underlying HTTP request of Anypoint MQ to set the X-CORRELATION-ID header to the order ID

C.

Set a custom Anypoint MQ user property to propagate the order ID and set the correlation ID in the receiving applications

D.

Use the default correlation ID; Anypoint MQ will automatically propagate it

Question 18

When a client and server are exchanging messages during the mTLS handshake, what is being agreed on during the cipher suite exchange?

Options:

A.

The TLS version

B.

The public key format

C.

A protocol

D.

An encryption algorithm

Demo: 18 questions
Total 60 questions