ExamGecko
Ask Question

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

List of questions

Question 41

Report
Export
Collapse

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?

Create a properties file specifically for local development and set the API instance ID to a value that is not used in API Manager
Create a properties file specifically for local development and set the API instance ID to a value that is not used in API Manager
Pass in the runtime parameter ''-Danpow.platform.gatekeeper=disabled''
Pass in the runtime parameter ''-Danpow.platform.gatekeeper=disabled''
Deactivate the API in API Manager so the Autodiscovery element will not find the application when it runs in Studio
Deactivate the API in API Manager so the Autodiscovery element will not find the application when it runs in Studio
Run the test as-s, with no changes because the Studio runtime will not attempt to connect to API Manager
Run the test as-s, with no changes because the Studio runtime will not attempt to connect to API Manager
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

asked 23/09/2024
Bobby Pick
35 questions

Question 42

Report
Export
Collapse

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?

In Design Center, open the RAML and modify each operation to include the major version number
In Design Center, open the RAML and modify each operation to include the major version number
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
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
In Design Center, open the RAML and modify baseUn to include a variable that indicates the version number
In Design Center, open the RAML and modify baseUn to include a variable that indicates the version number
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
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
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


asked 23/09/2024
Mohamed Khazem
25 questions

Question 43

Report
Export
Collapse

Refer to the exhibit.

Salesforce Certified MuleSoft Developer II image Question 43 66000 09232024002859000000

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?

HTTP status code:200
HTTP status code:200
HTTP status code:403
HTTP status code:403
HTTP status code:400
HTTP status code:400
HTTP status code:500
HTTP status code:500
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

asked 23/09/2024
Susanne Hughes
35 questions

Question 44

Report
Export
Collapse

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?

Initialize, validate, compute, test, package, verify, install, deploy
Initialize, validate, compute, test, package, verify, install, deploy
Validate, initialize, compile, package, test, install, verify, verify, deploy
Validate, initialize, compile, package, test, install, verify, verify, deploy
Validate, initialize, compile, test package, verify, install, deploy
Validate, initialize, compile, test package, verify, install, deploy
Validation, initialize, compile, test, package, install verify, deploy
Validation, initialize, compile, test, package, install verify, deploy
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

asked 23/09/2024
Jennifer Lear
45 questions

Question 45

Report
Export
Collapse

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?

Become a Premium Member for full access
  Unlock Premium Member

Question 46

Report
Export
Collapse

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

Route C false.

Become a Premium Member for full access
  Unlock Premium Member

Question 47

Report
Export
Collapse

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

Become a Premium Member for full access
  Unlock Premium Member

Question 48

Report
Export
Collapse

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

Become a Premium Member for full access
  Unlock Premium Member

Question 49

Report
Export
Collapse

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?

Become a Premium Member for full access
  Unlock Premium Member

Question 50

Report
Export
Collapse

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?

Become a Premium Member for full access
  Unlock Premium Member
Total 60 questions
Go to page: of 6
Search

Related questions