Labour Day Special Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

MuleSoft MCD-Level-2 MuleSoft Certified Developer - Level 2 (Mule 4) Exam Practice Test

Page: 1 / 6
Total 60 questions

MuleSoft Certified Developer - Level 2 (Mule 4) Questions and Answers

Question 1

An API has been built to enable scheduling email provider. The front-end system does very little data entry validation, and problems have started to appear in the email that go to patients. A validate-customer’’ flow is added validate the data.

What is he expected behavior of the ‘validate-customer’’ flow?

Question # 1

Options:

A.

If only the email address Is invalid a VALIDATION.INVALID_EMAIL error is raised

B.

If the email address is invalid, processing continues to see if the appointment data and customer name are also invalid

C.

If the appointment date and customer name are invalid, a SCHEDULE:INVALID_APPOINTMENT_DATE error is raised

D.

If all of the values are invalid the last validation error is raised:SCHEDULE:INVALID_CUSTOMER_NAME

Question 2

A developer deploys an API to CloudHub and applies an OAuth policy on API Manager. During testing, the API response is slow, so the developer reconfigures the API so that the out-of-the-box HTTP Caching policy is applied first, and the OAuth API policy is applied second.

What will happen when an HTTP request is received?

Options:

A.

In case of a cache hit, both the OAuth and HTTP Caching policies are evaluated; then the cached response is returned to the caller

B.

In case of a cache it, only the HTTP Caching policy is evaluating; then the cached response is returned to the caller

C.

In case of a cache miss, only the HTTP Caching policy is evaluated; then the API retrieves the data from the API implementation, and the policy stores the data to be cached in Object Store

D.

In case of a cache miss, both the OAuth and HTTP Caching policies are evaluated; then the API retrieves the data from the API implementation, and the policy does not store the data in Object Store

Question 3

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

Options:

A.

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

B.

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

C.

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

D.

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

Question 4

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?

Options:

A.

Initialize, validate, compute, test, package, verify, install, deploy

B.

Validate, initialize, compile, package, test, install, verify, verify, deploy

C.

Validate, initialize, compile, test package, verify, install, deploy

D.

Validation, initialize, compile, test, package, install verify, deploy

Question 5

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

Options:

A.

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

B.

An XML SDK provides both inbound and outbound operations

C.

Operations can be reused in recursive calls

D.

All operations are public

Question 6

An organization uses CloudHub to deploy all of its applications.

How can a common-global-handler flow be configured so that it can be reused across all of the organization’s deployed applications?

Options:

A.

Create a Mule plugin project

Create a common-global-error-handler flow inside the plugin project.

Use this plugin as a dependency in all Mute applications.

Import that configuration file in Mute applications.

B.

Create a common-global-error-handler flow in all Mule Applications Refer to it flow-ref wherever needed.

C.

Create a Mule Plugin project

Create a common-global-error-handler flow inside the plugin project.

Use this plugin as a dependency in all Mule applications

D.

Create a Mule daman project.

Create a common-global-error-handler flow inside the domain project.

Use this domain project as a dependency.

Question 7

Refer to the exhibit.

Question # 7

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

Options:

A.

Import a published API

B.

Generate a local RAML from anypoint Studio

C.

Download RAML from Design Center'

D.

Import RAML from local file

Question 8

A Mule application uses API autodiscovery to access and enforce policies for a RESTful implementation.

Options:

A.

Northing because flowRef is an optional attribute which can be passed runtime

B.

The name of the flow that has APlkit Console to receive all incoming RESTful operation requests.

C.

Any of the APIkit generate implement flows

D.

The name of the flow that has HTTP listener to receive all incoming RESTful operation requests

Question 9

A custom policy needs to be developed to intercept all cutbound HTTP requests made by Mule applications.

Which XML element must be used to intercept outbound HTTP requests?

Options:

A.

It is not possible to intercept outgoing HTTP requests, only inbound requests

B.

http-policy:source

C.

htt-policy:operation

D.

http-policy:processor

Question 10

The HTTP Request operation raises an HTTP CONNECTIVITY error.

Which HTTP status code and body are returned to the web client?

Question # 10

Options:

A.

HTTP Status Code:200.

Body ‘Error in processing your request

B.

HTTP Status Code:500.

Body ‘The HTTP CONNECTIVITY Error description

C.

HTTP Status Code:500.

Body ‘Error in processing your request

D.

HTTP Status Code:500.

Body ‘Error in processing your request

Question 11

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 heathcare portal.

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

Options:

A.

Deployable ZIP file, YAML configuration file

B.

JSON properties file, YAML configuration file

C.

JSON properties file, XML template file

D.

XML template file, YAML configuration file

Question 12

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

Route C false.

Options:

A.

Error,errorMesage.payload.results [‘2’]

B.

Payload failures[‘2’]

C.

Error,errorMessage,payload.failures[‘2’]

D.

Payload [‘2’]

Question 13

Refer to the exhibit.

Question # 13

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?

Options:

A.

HTTP status code:200

B.

HTTP status code:403

C.

HTTP status code:400

D.

HTTP status code:500

Question 14

Refer to the exhibit.

What required changes can be made to give a partial successful response in case the United Airlines API returns with a timeout?

Question # 14

Options:

A.

Add a Scatter-gather component inside a Try scope.

Set the payload to a default value ‘Error’ inside the error handler using the On Error Propagate scope.

B.

Add Flow Reference components inside a Try scope.

Set the payload to a default value’’ insider the error handler using the ON Error Continue scope

C.

Add Flow Reference components inside a Try scope

Set the payload to a default value ‘’ inside the error handler using the On Error Propagate scope

D.

Add a Scatter-Gather component inside a Try scope.

Set the payload to a default value ‘Error’’ inside the error handler using the On Error Continue scope.

Question 15

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?

Options:

A.

The application needs to configure HTTPS TLS context information to encrypt the data

B.

The application needs to both the private and public keys to encrypt the data

C.

The application needs the public key from the backend service to encrypt the data

D.

The application needs the private key from the backend service to encrypt the data

Question 16

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

Options:

A.

Use a DataWeave 2.09 transform operation, and at the log of the DataWeave script, add:

%dw 2.0

Import.json-moduls

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.

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

Question 17

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?

Options:

A.

Settings.xml

B.

Config.yaml

C.

Pom.xml

D.

Mule.artificact.json

Question 18

Refer to the exhibit.

A Mute Object Store is configured with an entry TTL of one second and an expiration interval of 30 seconds.

What is the result of the flow if processing between os’store and os:retrieve takes 10 seconds?

Question # 18

Options:

A.

nullPayload

B.

originalPayload

C.

OS:KEY_NOT_FOUND

D.

testPayload

Page: 1 / 6
Total 60 questions