ExamGecko
Home / MuleSoft / MCD - Level 2 / List of questions
Ask Question

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

List of questions

Question 41

Report
Export
Collapse

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?

For nay type of queue, the message will be processed after the system comes online
For nay type of queue, the message will be processed after the system comes online
For persistent queues, the message will be processed after the system comes online
For persistent queues, the message will be processed after the system comes online
For transient queues, the message will be processed after the system comes online
For transient queues, the message will be processed after the system comes online
For any type of queue, the message will be lost
For any type of queue, the message will be lost
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

asked 18/09/2024
Domenico D'Angelo
40 questions

Question 42

Report
Export
Collapse

Refer to the exhibit.

MuleSoft MCD - Level 2 image Question 42 52832 09182024213621000000

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 18/09/2024
Miquel Triebel
36 questions

Question 43

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 18/09/2024
Farrah Colson
34 questions

Question 44

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?

Store the contents of the file on separate storage, and store the key and location of the file Object using Object Store v2
Store the contents of the file on separate storage, and store the key and location of the file Object using Object Store v2
Use an in-memory Object Store
Use an in-memory Object Store
Store the key and full contents of the file in an Object Store
Store the key and full contents of the file in an Object Store
Store the key and full contents of the file, caching the filename and location between requests
Store the key and full contents of the file, caching the filename and location between requests
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

asked 18/09/2024
aakriti grover
51 questions

Question 45

Report
Export
Collapse

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?

Become a Premium Member for full access
  Unlock Premium Member

Question 46

Report
Export
Collapse

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?

Become a Premium Member for full access
  Unlock Premium Member

Question 47

Report
Export
Collapse

An order processing system is composed of multiple Mule application responsible for warehouse, sales and shipping. Each application communication 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?

Become a Premium Member for full access
  Unlock Premium Member

Question 48

Report
Export
Collapse

The Center for Enablement team published a common application as a reusable module to the central Nexus repository.

How can the common application be included in all API implementations?

Become a Premium Member for full access
  Unlock Premium Member

Question 49

Report
Export
Collapse

Refer to the exhibit.

MuleSoft MCD - Level 2 image Question 49 52839 09182024213621000000

The flow name is ''implementation'' with code for the MUnit test case.

When the MUnit test case is executed, what is the expected result?

Become a Premium Member for full access
  Unlock Premium Member

Question 50

Report
Export
Collapse

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

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

Related questions