MCD-Level-2 Actual Questions Answers PDF 100% Cover Real Exam Questions [Q35-Q60]

Share

MCD-Level-2 Actual Questions Answers PDF 100% Cover Real Exam Questions

MCD-Level-2 Exam questions and answers

NEW QUESTION # 35
Refer to the exhibits.
Bioinfo System API is implemented and published to Anypoint Exchange. A developer wants to invoke this API using its REST Connector.
What should be added to the POM?

  • A.
  • B.
  • C.
  • D.
  • E.

Answer: A

Explanation:
Explanation
To invoke Bioinfo System API using its REST Connector, option E should be added to the pom.xml file. This option adds a dependency for Bioinfo System API REST Connector with its group ID, artifact ID, version, classifier, and type. The classifier specifies that it is a REST Connector (raml-client), and the type specifies that it is a Mule plugin (mule-plugin). References:
https://docs.mulesoft.com/apikit/4.x/apikit-4-generate-from-rest-api-task#add-the-api-dependency-to-the-pom-fil


NEW QUESTION # 36
Which properties are mandatory on the HTTP Connector configuration in order to use the OAuth 2.0 Authorization Code grant type for authentication?

  • A. External callback URL, access token URL, local authorization URL, authorization URL, client ID, client secret
  • B. External callback URL, access token URL, client ID, response refresh token
  • C. External callback URL, access token URL, client ID response access token
  • D. Token URL, authorization URL, client ID, client secret local callback URL

Answer: D

Explanation:
Explanation
To use the OAuth 2.0 Authorization Code grant type for authentication, the HTTP Connector configuration requires the following properties: token URL, authorization URL, client ID, client secret, and local callback URL. The token URL is the endpoint of the authorization server that provides access tokens. The authorization URL is the endpoint of the authorization server that initiates the user consent flow. The client ID and client secret are the credentials of the Mule application registered with the authorization server. The local callback URL is the endpoint of the Mule application that receives the authorization code from the authorization server.
References: https://docs.mulesoft.com/http-connector/1.6/http-authentication#oauth-2-0


NEW QUESTION # 37
Refer to the exhibit.
What is the result if ''Insecure'' selected as part of the HTTP Listener configuration?

  • A. The HTTP listener will only accept HTTP requests
  • B. The HTTP Listener will trust any certificate presented by the HTTP client
  • C. The HTTP Lister will accept any unauthenticated request
  • D. Mutual TLS authentication will be enabled between this HTTP Listener and an HTTP client

Answer: A

Explanation:
Explanation
Based on the exhibit below, if 'Insecure' is selected as part of the HTTP Listener configuration, the HTTP listener will only accept HTTP requests. This means that no TLS context will be configured for this listener and no encryption or authentication will be applied to incoming requests. The protocol attribute of this listener will be set to HTTP instead of HTTPS. References:
https://docs.mulesoft.com/http-connector/1.6/http-listener-ref#insecure


NEW QUESTION # 38
Which plugin or dependency is required to unit test modules created with XML SDK?

  • A. XMLUnit
  • B. Junit
  • C. MUnit Extensions Maven plugin
  • D. MUnit Maven plugin

Answer: C

Explanation:
Explanation
To unit test modules created with XML SDK, the developer needs to use the MUnit Extensions Maven plugin.
This plugin allows testing XML SDK modules using MUnit by adding a dependency to the module under test and using a custom processor tag to invoke it. References:
https://docs.mulesoft.com/mule-sdk/1.1/xml-sdk#testing


NEW QUESTION # 39
Mule application A is deployed to CloudHub and is using Object Store v2. Mute application B is also deployed to CloudHub.
Which approach can Mule application B use to remove values from Mule application A'S Object Store?

  • A. CloudHub Connector
  • B. Object Store v2 REST API
  • C. Object Store Connector
  • D. CloudHub REST API

Answer: B

Explanation:
Explanation
To remove values from Mule application A's Object Store v2, Mule application B can use Object Store v2 REST API. This API allows performing operations on Object Store v2 resources using HTTP methods, such as GET, POST, PUT, and DELETE. Mule application B can use the DELETE method to remove values from Mule application A's Object Store v2 by specifying the object store ID and the key of the value to delete.
References: https://docs.mulesoft.com/object-store/osv2-apis


NEW QUESTION # 40
A Mule application includes a subflow containing a Scatter.Gather scope. Within each log of the Scatter.Gatter. an HTTP connector calls a PUT endpoint to modify records in different upstream system. The subflow is called inside an Unit successful scope to retry if a transitory 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 the ensure idempontent behavior?

  • A. Remove the Put requests from the Scatter-Getter and perform them sequentially
  • B. Change the PUT requests inside the Scatter-Gather to POST requests
  • C. None, the flow already exhibits idempotent behavior
  • D. Ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails

Answer: D

Explanation:
Explanation
To ensure idempotent behavior within a Mule flow that contains a subflow with a Scatter-Gather scope, the developer should ensure an error-handling flow performs corrective actions to roll back all changes if any leg of the Scatter-Gather fails. Idempotency means that multiple identical requests have the same effect as a single request. Therefore, if one of the HTTP requests inside the Scatter-Gather fails, the error-handling flow should undo any changes made by other successful requests to ensure consistency and avoid partial updates.
References: https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept
https://docs.mulesoft.com/mule-runtime/4.3/error-handling


NEW QUESTION # 41
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 key and full contents of the file, caching the filename and location between requests
  • B. Use an in-memory Object Store
  • C. Store the key and full contents of the file in an Object Store
  • D. Store the contents of the file on separate storage, and store the key and location of the file Object using Object Store v2

Answer: D

Explanation:
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. References:
https://docs.mulesoft.com/object-store/osv2-faq#can-i-store-files-in-object-store-v2


NEW QUESTION # 42
Refer to the exhibit.

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?

  • A. The Mule flow will execute successfully with status code 200, and the response will be the JSON sent in request
  • B. The Mule flow will execute successfully with status code 204
  • C. The Mule flow will throw the exception 'JSON:SCHEMA_NOT_HONOURED
  • D. The Mule flow will execute successfully with status code 200m and a response will display the message
    '' Age in years which must equal to or greater than zero.''

Answer: C

Explanation:
Explanation
Based on the code snippet, schema.json file, and payload below, the outcome of the given code snippet when a request is sent with the payload is that the Mule flow will throw the exception
'JSON:SCHEMA_NOT_HONOURED'. This is because the payload does not conform to the schema.json file, which specifies that age must be a number greater than or equal to zero. The payload has age as a string with a negative value, which violates the schema. Therefore, the validate-schema operation throws an error with type
'JSON:SCHEMA_NOT_HONOURED'. References:
https://docs.mulesoft.com/json-module/1.1/json-validate-schema


NEW QUESTION # 43
A Flight Management System publishes gate change notification events whenever a flight's arrival gate changes. Other systems, including Baggage Handler System. Inflight Catering System and Passenger Notifications System, must each asynchronously receive the same gate change notification to process the event according.
Which configuration is required in Anypoint MQ to achieve this publish/subscribe model?

  • A. Publish the gate change notification to an Anypoint MQ queue.
    Create different anypoint MQ exchange meant for each of the other subscribing systems Bind the queue with each of the exchanges
  • B. Publish each client subscribe directly to the exchange.
    Have each client subscribe directly to the queue.
  • C. Publish the gate change notification to an Anypoint MQ exchanhe.
    Create different Anypoint MQ queues meant for each of the other subscribing systems.
    Bind the exchange with each of the queues.
  • D. Publish the gate change notification to an Anypoint MC queue
    Have each client subscribe directly to the queue

Answer: C

Explanation:
Explanation
To achieve a publish/subscribe model using Anypoint MQ, where each system receives the same gate change notification event, the developer should publish the gate change notification to an Anypoint MQ exchange, create different Anypoint MQ queues meant for each of the other subscribing systems, and bind the exchange with each of the queues. An exchange is a message routing agent that can send messages to different queues based on predefined criteria. By binding an exchange with multiple queues, each queue receives a copy of every message sent to that exchange. Therefore, each system can subscribe to its own queue and receive every gate change notification event. References:
https://docs.mulesoft.com/anypoint-mq/3.x/anypoint-mq-exchanges


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

  • A. The Public key format
  • B. A protocol
  • C. The TLS version
  • D. An encryption algorithm

Answer: D

Explanation:
Explanation
A cipher suite is a set of cryptographic algorithms that are used to secure the communication between a client and a server. A cipher suite consists of four components: a key exchange algorithm, an authentication algorithm, an encryption algorithm, and a message authentication code (MAC) algorithm. During the cipher suite exchange, the client and the server agree on which encryption algorithm to use for encrypting and decrypting the data. References: https://docs.mulesoft.com/mule-runtime/4.3/tls-configuration#cipher-suites


NEW QUESTION # 45
A Mule implementation uses a HTTP Request within an Unit Successful scope to connect to an API.
How should a permanent error response like HTTP:UNAUTHORIZED be handle inside Until Successful to reduce latency?

  • A. Configure retrying until a MULERETRY_EXHAUSTED error is raised or the API responds back with a successful response.
  • B. In Until Successful configuration, set the retry count to 1 for error type HTTP: UNAUTHORIZED.
  • C. Put the HTTP Request inside a try scope in Unit Successful.
    In the error handler, use On Error Continue to catch permanent errors like HTTP UNAUTHORIZED.
  • D. Put the HTTP Request inside a try scope in Unit Successful.
    In the error handler, use On Error Propagate to catch permanent errors like HTTP UNAUTHORIZED.

Answer: C

Explanation:
Explanation
To handle a permanent error response like HTTP:UNAUTHORIZED inside Until Successful, the developer should put the HTTP Request inside a try scope in Unit Successful, and use On Error Continue to catch permanent errors like HTTP UNAUTHORIZED in the error handler. This way, the developer can avoid retrying requests that will always fail due to a permanent error, and reduce latency. On Error Continue allows the flow to continue processing after handling the error. References:
https://docs.mulesoft.com/mule-runtime/4.3/until-successful-scope
https://docs.mulesoft.com/mule-runtime/4.3/on-error-continue-concept


NEW QUESTION # 46
A Mule application defines as SSL/TLS keystore properly 'tis,keystore.keyPassword'' as secure.
How can this property be referenced to access its value within the application?

  • A. p{secure::tiskeystore,keyPassowrd}
  • B. #{secure::tiskeystore,keyPassowrd}
  • C. ${secure::tiskeystore,keyPassowrd}
  • D. ${secure::tiskeystore,keyPassowrd}

Answer: C

Explanation:
Explanation
secure::tiskeystore,keyPassowrdShortExplanationofCorrectAnswerOnly:Toreferenceasecurepropertyvaluewithin In this case, the property name is tiskeystore,keyPassword, so the correct syntax is
${secure::tiskeystore,keyPassowrd}. References:
https://docs.mulesoft.com/mule-runtime/4.3/secure-configuration-properties#referencing-secure-properties


NEW QUESTION # 47
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:400
  • B. HTTP status code:500
  • C. HTTP status code:200
  • D. HTTP status code:403

Answer: D

Explanation:
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. References:
https://docs.mulesoft.com/apikit/4.x/apikit-4-headers


NEW QUESTION # 48
Which command is used to convert a JKS keystore to PKCS12?

  • A. Keytool-importkeystore -srckeystore keystore jks-srcstoretype PKCS12 -destkeystore keystore.p12
    -deststoretype JKS
  • B. Keytool-importkeystore -srckeystore keystore jks-srcstoretype JKS -destkeystore keystore.p13
    -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

Answer: D

Explanation:
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). References:
https://docs.oracle.com/en/java/javase/11/tools/keytool.html#GUID-5990A2E4-78E3-47B7-AE75-6D182625954


NEW QUESTION # 49
The flow is invoicing a target API. The API's protocol is HTTPS. The TLS configuration in the HTTP Request Configuration global element is set to None. A web client submits a request to
http:localhost:8081/vehicles.

If the certificate of the target API is signed by a certificate authority (CA), what is true about the HTTP Request operation when the flow executes?

  • A. The HTTP Request operation will always succeed regardless of the CA
  • B. The HTTP Request operation will succeed if the CA'S certificate is present in the JRE's default keystore
  • C. The HTTP Request operation will succeed if the CA's certificate is present in the JRE's default truststore.
  • D. The HTTP Request operation will always fail regardless of the CA

Answer: C

Explanation:
Explanation
The HTTP Request operation will use the default truststore of the JRE to validate the certificate of the target API. If the CA's certificate is present in the truststore, the operation will succeed. Otherwise, it will fail with a handshake exception. References: https://docs.mulesoft.com/mule-runtime/4.3/tls-configuration#tls-default


NEW QUESTION # 50
A system API that communicates to an underlying MySQL database is deploying to CloudHub. The DevOps team requires a readiness endpoint to monitor all system APIs.
Which strategy should be used to implement this endpoint?

  • A. Create a dedicated endpoint that responds with the API status and health of the server
  • 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. Use an existing resource endpoint of the API

Answer: B

Explanation:
Explanation
To implement a readiness endpoint to monitor all system APIs, the developer should create a dedicated endpoint that responds with the API status and reachability of the underlying systems. This way, the DevOps team can check if the system API is ready to receive requests and if it can communicate with its backend systems without errors. References:
https://docs.mulesoft.com/mule-runtime/4.3/deployment-strategies#readiness-probes


NEW QUESTION # 51
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?

  • A. JSON properties file, YAML configuration file
  • B. Deployable ZIP file, YAML configuration file
  • C. XML template file, YAML configuration file
  • D. JSON properties file, XML template file

Answer: C

Explanation:
Explanation
To package a custom policy using the HTTP Policy Transform Extension, the developer needs to create an XML template file and a YAML configuration file. The XML template file defines the policy logic using Mule components and placeholders for user-defined properties. The YAML configuration file defines the metadata of the policy, such as its name, description, category, parameters, and dependencies. References:
https://docs.mulesoft.com/api-manager/2.x/http-policy-transform#packaging-the-policy


NEW QUESTION # 52
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?

  • A. The application needs the public key from the backend service to encrypt the data
  • B. The application needs to configure HTTPS TLS context information to encrypt the data
  • C. The application needs the private key from the backend service to encrypt the data
  • D. The application needs to both the private and public keys to encrypt the data

Answer: A

Explanation:
Explanation
To encrypt the data before sending it to the backend application using PGP encryption, the application needs the public key from the backend service. PGP encryption uses a public-key cryptography system, which means that each party has a pair of keys: a public key and a private key. The public key is used to encrypt data, and the private key is used to decrypt data. Therefore, to encrypt data for a specific recipient (the backend service), the application needs to use the recipient's public key. The recipient can then use its own private key to decrypt the data. References: https://docs.mulesoft.com/mule-runtime/4.3/cryptography-pgp


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

  • A. HTTP Webhock
  • B. ETL data load
  • C. Shared database trigger
  • D. Schedule Event Publisher

Answer: A

Explanation:
Explanation
A web API can use HTTP Webhook to notify its client of state changes as soon as they occur. A webhook is an HTTP callback that allows an API to send real-time notifications to another system or application when an event happens. The client registers a URL with the API where it wants to receive notifications, and then the API sends an HTTP request to that URL with information about the event. References:
https://docs.mulesoft.com/connectors/webhook/webhook-connector


NEW QUESTION # 54
When registering a client application with an existing API instance or API Group instance, what is required to manually approve or reject request access?

  • A. To configure the SLA tier for the application
  • B. To only have Exchange Administrator permission
  • C. To configure the SLA tier for the application and have the role of Organization Administrator, API Manager Environment Administrator, or the Manage Contacts permission
  • D. To configure the SLA tier for the application and have the Exchange Administrator permission

Answer: C

Explanation:
Explanation
To manually approve or reject request access when registering a client application with an existing API instance or API Group instance, it is required to configure the SLA tier for the application and have one of the following roles or permissions: Organization Administrator, API Manager Environment Administrator, or Manage Contracts permission. These roles or permissions allow managing client applications and contracts in API Manager. References:
https://docs.mulesoft.com/api-manager/2.x/client-applications#managing-client-applications-and-contracts


NEW QUESTION # 55
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?

  • A. NO action is needed as the correlation ID is returned to the caller in the response header by default
  • B. Enable the auto-generate CorrelationID option when scaffolding the flow
  • C. Enable the CorrelationID checkbox in the HTTP Listener configuration
  • D. Configure a custom correlation policy

Answer: A

Explanation:
Explanation
When implementing a synchronous API where the event source is an HTTP Listener, Mule automatically propagates some message attributes between flows via outbound and inbound properties. One of these attributes is correlation ID, which is returned to the caller in the response header by default as MULE_CORRELATION_ID. References:
https://docs.mulesoft.com/mule-runtime/4.3/about-mule-message#message-attributes


NEW QUESTION # 56
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. Config.yaml
  • B. Mule.artificact.json
  • C. Pom.xml
  • D. Settings.xml

Answer: C

Explanation:
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.
References: https://docs.mulesoft.com/mule-runtime/4.3/mmp-concept#application-deployment-descriptor


NEW QUESTION # 57
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?

  • A. It is not possible to intercept outgoing HTTP requests, only inbound requests
  • B. http-policy:processor
  • C. http-policy:source
  • D. htt-policy:operation

Answer: B

Explanation:
Explanation
The http-policy:processor element is used to intercept outbound HTTP requests made by Mule applications. It allows customizing the request before it is sent to the target API and modifying the response after it is received from the target API. References:
https://docs.mulesoft.com/api-manager/2.x/policy-mule4-custom-policy#policy-xml-file


NEW QUESTION # 58
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?

  • 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 daman project.
    Create a common-global-error-handler flow inside the domain project.
    Use this domain project as a dependency.
  • D. 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

Answer: D

Explanation:
Explanation
To configure a common-global-handler flow that can be reused across all of the organization's deployed applications, the developer should create a Mule Plugin project, create a common-global-error-handler flow inside the plugin project, and use this plugin as a dependency in all Mule applications. This way, the developer can import the common-global-error-handler flow in any application that needs it and avoid duplicating the error handling logic. References:
https://docs.mulesoft.com/mule-runtime/4.3/error-handling#global-error-handler


NEW QUESTION # 59
In a Mule project, Flow-1 contains a flow-ref to Flow-2 depends on data from Flow-1 to execute successfully.
Which action ensures the test suites and test cases written for Flow-1 and Flow-2 will execute successfully?

  • A. Use ''Set Event to pass the input that is needed, and keep the test cases for Flow-1 and Flow-2 independent
  • B. Use 'After Test Case' to produce the data needed from Flow-1 test cases to pass to Flow-2 test cases
  • C. Use ''Before Test Case'' To collect data from Flow-1 test cases before running Flow-2 test cases
  • D. Chain together the test suites and test cases for Flow-1 and Flow-2

Answer: A

Explanation:
Explanation
To ensure the test suites and test cases written for Flow-1 and Flow-2 will execute successfully, the developer should use a Set Event processor to pass the input that is needed by Flow-2, and keep the test cases for Flow-1 and Flow-2 independent. This way, the developer can isolate the testing of each flow and avoid coupling them together. References: https://docs.mulesoft.com/munit/2.3/munit-test-flow


NEW QUESTION # 60
......

PracticeVCE MCD-Level-2 Exam Practice Test Questions: https://www.practicevce.com/MuleSoft/MCD-Level-2-practice-exam-dumps.html