This page was exported from Top Exam Collection [ http://blog.topexamcollection.com ] Export date:Mon Feb 24 3:39:55 2025 / +0000 GMT ___________________________________________________ Title: Get all the Information About MuleSoft MCD-Level-2 Exam 2023 Practice Test Questions [Q26-Q47] --------------------------------------------------- Get all the Information About MuleSoft MCD-Level-2 Exam 2023 Practice Test Questions Check Real MuleSoft MCD-Level-2 Exam Question for Free (2023) NEW QUESTION 26Mule 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?  Object Store v2 REST API  CloudHub Connector  Object Store Connector  CloudHub REST API ExplanationTo 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-apisNEW QUESTION 27A 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?  Configure retrying until a MULERETRY_EXHAUSTED error is raised or the API responds back with a successful response.  In Until Successful configuration, set the retry count to 1 for error type HTTP: UNAUTHORIZED.  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.  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. ExplanationTo 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-scopehttps://docs.mulesoft.com/mule-runtime/4.3/on-error-continue-conceptNEW QUESTION 28The 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?  Download the common application from Naxus and copy it to the src/main/resources folder in the API  Copy the common application’s source XML file and out it in a new flow file in the src/main/mule folder  Add a Maven dependency in the PCM file with multiple-plugin as <classifier>  Add a Maven dependency in the POM file with jar as <classifier> ExplanationTo include a common application as a reusable module in all API implementations, the developer should add a Maven dependency in the POM file with jar as <classifier>. This way, the developer can reuse Mule code from another application by packaging it as a JAR file and adding it as a dependency in the POM file of the API implementation. The classifier element specifies that it is a JAR file. References:https://docs.mulesoft.com/mule-runtime/4.3/mmp-concept#add-a-maven-dependency-to-the-pom-fileNEW QUESTION 29A 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?  Publish each client subscribe directly to the exchange.Have each client subscribe directly to the queue.  Publish the gate change notification to an Anypoint MC queueHave each client subscribe directly to the queue  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  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. ExplanationTo 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-exchangesNEW QUESTION 30Refer 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?  The Mule flow will execute successfully with status code 200, and the response will be the JSON sent in request  The Mule flow will execute successfully with status code 204  The Mule flow will throw the exception ‘JSON:SCHEMA_NOT_HONOURED  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.” ExplanationBased 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-schemaNEW QUESTION 31A 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  Validate, initialize, compile, package, test, install, verify, verify, deploy  Validate, initialize, compile, test package, verify, install, deploy  Validation, initialize, compile, test, package, install verify, deploy ExplanationThe 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. References:https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.htmlNEW QUESTION 32A 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?  Deployable ZIP file, YAML configuration file  JSON properties file, YAML configuration file  JSON properties file, XML template file  XML template file, YAML configuration file ExplanationTo 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-policyNEW QUESTION 33The HTTP Request operation raises an HTTP CONNECTIVITY error.Which HTTP status code and body are returned to the web client?  HTTP Status Code:200.Body ‘Error in processing your request  HTTP Status Code:500.Body ‘The HTTP CONNECTIVITY Error description  HTTP Status Code:500.Body ‘Error in processing your request  HTTP Status Code:500.Body ‘Error in processing your request ExplanationWhen the HTTP Request operation raises an HTTP CONNECTIVITY error, it triggers an on-error-continue handler that sets a payload with ‘Error in processing your request’. Since no status code is explicitly set in this handler, it defaults to 500 (INTERNAL SERVER ERROR). Therefore, the web client receives an HTTP response with status code 500 and body ‘Error in processing your request’. References:https://docs.mulesoft.com/mule-runtime/4.3/error-handling#on-error-continueNEW QUESTION 34A 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?  It is not possible to intercept outgoing HTTP requests, only inbound requests  http-policy:source  htt-policy:operation  http-policy:processor ExplanationThe 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-fileNEW QUESTION 35Refer to the exhibit.The flow name is ”implementation” with code for the MUnit test case.When the MUnit test case is executed, what is the expected result?  The test case fails with an assertion error  The test throws an error and does not start  The test case fails with an unexpected error type  The test case passes ExplanationBased on the code snippet and MUnit test case below, when the MUnit test case is executed, the expected result is that the test case fails with an assertion error. This is because the assert-equals processor compares two values for equality, and fails if they are not equal. In this case, the expected value is ‘Hello World’, but the actual value returned by the implementation flow is ‘Hello Mule’. Therefore, the assertion fails and an error is thrown. References: https://docs.mulesoft.com/munit/2.3/assert-equals-processorNEW QUESTION 36Refer 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?  nullPayload  originalPayload  OS:KEY_NOT_FOUND  testPayload ExplanationThe result of the flow is nullPayload if processing between os:store and os:retrieve takes 10 seconds. This is because the entry TTL of the object store is one second, which means that any stored value expires after one second and is removed from the object store. The expiration interval of 30 seconds only determines how often the object store checks for expired values, but it does not affect the TTL. Therefore, when os:retrieve tries to get the value after 10 seconds, it returns nullPayload because the value has already expired and been removed.References: https://docs.mulesoft.com/object-store/osv2-faq#how-does-the-time-to-live-workNEW QUESTION 37A company deploys 10 public APIs to CloudHub. Each API has its individual health endpoint defined. The platform operation team wants to configure API Functional Monitoring to monitor the health of the APIs periodically while minimizing operational overhead and cost.How should API Functional Monitoring be configured?  From one public location with each API in its own schedule  From one private location with all 10 APIs in a single schedule  From one public location with all 10 APIs in a single schedule  From 10 public locations with each API in its own schedule ExplanationTo configure API Functional Monitoring to monitor the health of 10 public APIs periodically while minimizing operational overhead and cost, the developer should use one public location with all 10 APIs in a single schedule. A public location is a worker that runs in a CloudHub shared environment, which is cheaper and easier to maintain than a private location. A single schedule allows running all 10 APIs tests at the same time and frequency, which reduces complexity and resource consumption. References:https://docs.mulesoft.com/functional-monitoring/fm-create-monitor#create-a-monitorNEW QUESTION 38What is the MuleSoft recommended method to encrypt sensitive property data?  The encryption key and sensitive data should be different for each environment  The encryption key should be identical for all environments  The encryption key should be identical for all environments and the sensitive data should be different for each environment  The encryption key should be different for each environment and the sensitive data should be the same for all environments ExplanationThe MuleSoft recommended method to encrypt sensitive property data is to use the Secure Properties Tool that comes with Anypoint Studio. This tool allows encrypting properties files with a secret key and then decrypting them at runtime using the same key. The encryption key and sensitive data should be different for each environment to ensure security and avoid accidental exposure of sensitive data. References:https://docs.mulesoft.com/mule-runtime/4.3/secure-configuration-propertiesNEW QUESTION 39A 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?  Access Anypoint Monitoring’s built-in dashboard. Select a resource.Locate the information under the Connectors tab.  Access Anypoint Monitoring’s built-in dashboardSeclect a resource.Create a custom dashboard to retrieve the information.  Access Anypoint Monitoring built-in dashboard.Select a resource.Locate the information under Log Manager < Raw Data.  Change the API Implementation to capture the information in the log.Retrieve the information from the log file. ExplanationTo 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. References:https://docs.mulesoft.com/monitoring/built-in-dashboard-referenceNEW QUESTION 40A 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?  In case of a cache hit, both the OAuth and HTTP Caching policies are evaluated; then the cached response is returned to the caller  In case of a cache it, only the HTTP Caching policy is evaluating; then the cached response is returned to the caller  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  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 ExplanationWhen an HTTP request is received and the HTTP Caching policy is applied first, it checks if there is a cached response for that request in Object Store. If there is a cache hit, meaning that a valid cached response exists, then only the HTTP Caching policy is evaluated and the cached response is returned to the caller without invoking the OAuth policy or the API implementation. If there is a cache miss, meaning that no valid cached response exists, then both the HTTP Caching policy and the OAuth policy are evaluated before invoking the API implementation. References:https://docs.mulesoft.com/api-manager/2.x/http-caching-policy#policy-orderingNEW QUESTION 41In 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?  Use ‘After Test Case’ to produce the data needed from Flow-1 test cases to pass to Flow-2 test cases  Use ”Before Test Case” To collect data from Flow-1 test cases before running Flow-2 test cases  Chain together the test suites and test cases for Flow-1 and Flow-2  Use ”Set Event to pass the input that is needed, and keep the test cases for Flow-1 and Flow-2 independent ExplanationTo 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-flowNEW QUESTION 42A 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?  #{secure::tiskeystore,keyPassowrd}  ${secure::tiskeystore,keyPassowrd}  ${secure::tiskeystore,keyPassowrd}  p{secure::tiskeystore,keyPassowrd} Explanationsecure::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-propertiesNEW QUESTION 43Which statement is true about using mutual TLS to secure an application?  Mutual TLS requires a hardware security module to be used  Mutual TLS authenticates the identity of the server before the identity of the client  Mutual TLS ensures only authorized end users are allowed to access an endpoint  Mutual TLS increases the encryption strength versus server-side TLS alone ExplanationMutual TLS (mTLS) is an extension of TLS that requires both parties (client and server) to present their certificates to each other during the handshake process. This way, both parties can verify each other’s identity and establish a secure connection. The authentication of the server happens before the authentication of the client, as the server sends its certificate first and then requests the client’s certificate. References:https://docs.mulesoft.com/mule-runtime/4.3/tls-configuration#mutual-authenticationNEW QUESTION 44Refer 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?           ExplanationTo 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-filNEW QUESTION 45A mule application exposes and API for creating payments. An Operations team wants to ensure that the Payment API is up and running at all times in production.Which approach should be used to test that the payment API is working in production?  Create a health check endpoint that listens on a separate port and uses a separate HTTP Listener configuration from the API  Configure the application to send health data to an external system  Create a health check endpoint that reuses the same port number and HTTP Listener configuration as the API itself  Monitor the Payment API directly sending real customer payment data ExplanationTo test that the payment API is working in production, the developer should create a health check endpoint that listens on a separate port and uses a separate HTTP Listener configuration from the API. This way, the developer can isolate the health check endpoint from the API traffic and avoid affecting the performance or availability of the API. The health check endpoint should return a simple response that indicates the status of the API, such as OK or ERROR. References:https://docs.mulesoft.com/api-functional-monitoring/afm-create-monitor#create-a-monitorNEW QUESTION 46Refer to the exhibit.A Mule application pom.xml configures the Maven Resources plugin to exclude parsing binary files in the project’s src/main/resources/certs directory.Which configuration of this plugin achieves a successful build?         ExplanationTo configure the Maven Resources plugin to exclude parsing binary files in the project’s src/main/resources/certs directory, option C should be used. This option specifies that any files with .cer or .jks extensions under the certs directory should be excluded from filtering. Filtering is a process of replacing placeholders with actual values in resource files during the build process. Binary files should not be filtered because they may become corrupted or unusable. References:https://maven.apache.org/plugins/maven-resources-plugin/examples/filter.htmlhttps://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.htmlNEW QUESTION 47Refer to the exhibit.When creating a new project, which API implementation allows for selecting the correct API version and scaffolding the flows from the API specification?  Import a published API  Generate a local RAML from anypoint Studio  Download RAML from Design Center’  Import RAML from local file ExplanationTo create a new project that selects the correct API version and scaffolds the flows from the API specification, the developer should import a published API. This option allows importing an API specification that has been published to Anypoint Exchange or Design Center, and selecting a specific version of that API specification.The developer can also choose to scaffold flows based on that API specification. References:https://docs.mulesoft.com/apikit/4.x/apikit-4-new-project-task Loading … Use Free MCD-Level-2 Exam Questions that Stimulates Actual EXAM : https://www.topexamcollection.com/MCD-Level-2-vce-collection.html --------------------------------------------------- Images: https://blog.topexamcollection.com/wp-content/plugins/watu/loading.gif https://blog.topexamcollection.com/wp-content/plugins/watu/loading.gif --------------------------------------------------- --------------------------------------------------- Post date: 2023-10-20 14:31:06 Post date GMT: 2023-10-20 14:31:06 Post modified date: 2023-10-20 14:31:06 Post modified date GMT: 2023-10-20 14:31:06