ExamGecko
Home Home / Salesforce / Certified MuleSoft Developer II

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

Question list
Search
Search

List of questions

Search

Related questions











An API has been developed and deployed to CloudHub Among the policies applied to this API is an allowlist of IP addresses. A developer wants to run a test in Anypoint Studio and does not want any policies applied because their workstation is not included in the allowlist.

What must the developer do in order to run this test locally without the policies applied?

A.
Create a properties file specifically for local development and set the API instance ID to a value that is not used in API Manager
A.
Create a properties file specifically for local development and set the API instance ID to a value that is not used in API Manager
Answers
B.
Pass in the runtime parameter ''-Danpow.platform.gatekeeper=disabled''
B.
Pass in the runtime parameter ''-Danpow.platform.gatekeeper=disabled''
Answers
C.
Deactivate the API in API Manager so the Autodiscovery element will not find the application when it runs in Studio
C.
Deactivate the API in API Manager so the Autodiscovery element will not find the application when it runs in Studio
Answers
D.
Run the test as-s, with no changes because the Studio runtime will not attempt to connect to API Manager
D.
Run the test as-s, with no changes because the Studio runtime will not attempt to connect to API Manager
Answers
Suggested answer: B

Explanation:

To run a test locally without the policies applied, the developer should create a properties file specifically for local development and set the API instance ID to a value that is not used in API Manager. This way, the developer can use different configuration properties for different environments and avoid triggering API autodiscovery when running tests locally. API autodiscovery is a mechanism that associates an API implementation with its corresponding API specification and policies in API Manager based on its API instance ID. By setting this ID to a value that does not exist in API Manager, the developer can prevent API autodiscovery from finding and applying any policies to the local test.

Reference: https://docs.mulesoft.com/api-manager/2.x/api-auto-discovery-new-concept#configuring-api-autodiscovery https://docs.mulesoft.com/mule-runtime/4.3/configuring-properties

A developer has created the first version of an API designed for business partners to work commodity prices.

What should developer do to allow more than one major version of the same API to be exposed by the implementation?

A.
In Design Center, open the RAML and modify each operation to include the major version number
A.
In Design Center, open the RAML and modify each operation to include the major version number
Answers
B.
In Anypoint Studio, generate scaffolding from the RAML, and the modify the <http:listerner> in the generated flows to include a parameter to replace the version number
B.
In Anypoint Studio, generate scaffolding from the RAML, and the modify the <http:listerner> in the generated flows to include a parameter to replace the version number
Answers
C.
In Design Center, open the RAML and modify baseUn to include a variable that indicates the version number
C.
In Design Center, open the RAML and modify baseUn to include a variable that indicates the version number
Answers
D.
In Anypoint Studio, generate scaffolding from the RAML, and then modify the flow names generated by APIKit to include a variable with the major version number
D.
In Anypoint Studio, generate scaffolding from the RAML, and then modify the flow names generated by APIKit to include a variable with the major version number
Answers
Suggested answer: C

Explanation:

To allow more than one major version of the same API to be exposed by the implementation, the developer should modify the baseUri property in the RAML file to include a variable that indicates the version number. The baseUri property defines the base URL of the API and can include variables that are replaced with actual values when mocking or deploying the API. By using a variable for the version number, the developer can expose different versions of the API using different base URLs and avoid conflicts or confusion.

Reference: https://docs.mulesoft.com/api-designer/design-modify-raml-specs#baseuri https://docs.mulesoft.com/api-manager/2.x/api-versioning


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-secret?

A.
HTTP status code:200
A.
HTTP status code:200
Answers
B.
HTTP status code:403
B.
HTTP status code:403
Answers
C.
HTTP status code:400
C.
HTTP status code:400
Answers
D.
HTTP status code:500
D.
HTTP status code:500
Answers
Suggested answer: B

Explanation:

Based on the code snippet and schema.json file below, when testing using the API Kit console if no values are entered in client-secret, HTTP status code 403 (FORBIDDEN) is returned. This is because client-secret is defined as a required header parameter in schema.json file, which means that it must be present in every request. If no values are entered in client-secret, then it is equivalent to omitting this header parameter, which violates the schema and causes APIKit Router to return HTTP status code 403.

Reference: https://docs.mulesoft.com/apikit/4.x/apikit-4-headers

A company has been using CI/CD. Its developers use Maven to handle build and deployment activities.

What is the correct sequence of activities that takes place during the Maven build and deployment?

A.
Initialize, validate, compute, test, package, verify, install, deploy
A.
Initialize, validate, compute, test, package, verify, install, deploy
Answers
B.
Validate, initialize, compile, package, test, install, verify, verify, deploy
B.
Validate, initialize, compile, package, test, install, verify, verify, deploy
Answers
C.
Validate, initialize, compile, test package, verify, install, deploy
C.
Validate, initialize, compile, test package, verify, install, deploy
Answers
D.
Validation, initialize, compile, test, package, install verify, deploy
D.
Validation, initialize, compile, test, package, install verify, deploy
Answers
Suggested answer: C

Explanation:

The correct sequence of activities that takes place during the Maven build and deployment is validate, initialize, compile, test package, verify, install, deploy. These are Maven lifecycle phases that define a sequence of goals to execute during a build process. Each phase represents a stage in the build lifecycle and can have zero or more goals bound to it.

Reference: https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

A Mule application deployed to multiple Cloudhub 2.0 replicas needs to temporarily persist large files over 10MB between flow executions, and routinely needs to query whether the file data exists on separate executions.

How can this be achieved?

A.
Store the contents of the file on separate storage, and store the key and location of the file Object using Object Store v2
A.
Store the contents of the file on separate storage, and store the key and location of the file Object using Object Store v2
Answers
B.
Use an in-memory Object Store
B.
Use an in-memory Object Store
Answers
C.
Store the key and full contents of the file in an Object Store
C.
Store the key and full contents of the file in an Object Store
Answers
D.
Store the key and full contents of the file, caching the filename and location between requests
D.
Store the key and full contents of the file, caching the filename and location between requests
Answers
Suggested answer: A

Explanation:

To temporarily persist large files over 10MB between flow executions, and routinely query whether the file data exists on separate executions, the developer should store the contents of the file on separate storage, and store the key and location of the file object using Object Store v2. This way, the developer can avoid storing large files in memory or exceeding the size limit of Object Store v2 (10MB per object). The developer can also use Object Store v2 operations to query, retrieve, or delete the file object by its key.

Reference: https://docs.mulesoft.com/object-store/osv2-faq#can-i-store-files-in-object-store-v2

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

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

Total 60 questions
Go to page: of 6