Salesforce-MuleSoft-Developer-II Questions Prepare with Learning Information! 2024 Regularly updated [Q34-Q49]

Share

Salesforce-MuleSoft-Developer-II Questions Prepare with Learning Information! 2024 Regularly updated

Get Salesforce-MuleSoft-Developer-II Products Practice Material for Salesforce-MuleSoft-Developer-II Exam Question Preparation


Salesforce Salesforce-MuleSoft-Developer-II Exam Syllabus Topics:

TopicDetails
Topic 1
  • Implement Performant and Reliable Mule Applications: It discusses implementing ObjectStore and ensuring fault-tolerant, performant, and traceable message passing with VM and AnypointMQ connectors. The topic also covers fault-tolerant invocations of HTTP-based APIs, validating assertions and messages.
Topic 2
  • Expose Production-Ready Anypoint Platform-Managed APIs from Mule Applications: This topic includes implementing versioning of API-related artifacts and configuring custom or out-of-the-box API policies. Additionally, it covers server-side caching of API invocations using policies, requesting access to APIs, and implementing HTTP callbacks.
Topic 3
  • Implement Maintainable and Modular Mule Applications and Their Maven Builds: This topic covers modularizing and optimizing Mule application Maven build configurations. It discusses implementing Maven-based automated deployments to Mule runtimes. The topic also includes executing MUnit tests with Maven.
Topic 4
  • Secure Data at Rest and in Transit: This topic involves implementing secure, environment-dependent properties management. It discusses creating, packaging, and distributing keys and certificates. Moreover, the topic also includes exposing and invoking APIs over HTTPS.
Topic 5
  • Implement Monitorable Mule Applications: This topic encompasses exposing Health Check endpoints from a Mule application and implementing effective logging. It also includes changing log levels, aggregating, and analyzing logs. Furthermore it involves monitoring Mule applications and implementing message correlation.

 

NEW QUESTION # 34
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 ''Before Test Case'' To collect data from Flow-1 test cases before running Flow-2 test cases
  • B. Use 'After Test Case' to produce the data needed from Flow-1 test cases to pass to Flow-2 test cases
  • C. Use ''Set Event to pass the input that is needed, and keep the test cases for Flow-1 and Flow-2 independent
  • D. Chain together the test suites and test cases for Flow-1 and Flow-2

Answer: C

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. Reference: https://docs.mulesoft.com/munit/2.3/munit-test-flow


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

Answer: D

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


NEW QUESTION # 36
Refer to the exhibit.
What is the result of the Mule Maven Plugin configuration of the value of property its,keystorePassoword in CloudHub 2.0?

  • A. CloudHub encrypts the value
  • B. The Mule server encrypts the value
  • C. Anypoint Studio secures the value
  • D. Runtime Manager masks the value

Answer: D

Explanation:
The result of the Mule Maven Plugin configuration of the value of property its,keystorePassword in CloudHub 2.0 is that Runtime Manager masks the value. This means that Runtime Manager hides or obscures the value from anyone who views it in Runtime Manager or Anypoint Platform. Reference: https://docs.mulesoft.com/runtime-manager/runtime-manager-agent-for-mule4#properties-tab


NEW QUESTION # 37
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. Use an existing resource endpoint of the API
  • C. Create a dedicated endpoint that responds with the API status only
  • D. Create a dedicated endpoint that responds with the API status and reachability of the underlying systems

Answer: D

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. Reference: https://docs.mulesoft.com/mule-runtime/4.3/deployment-strategies#readiness-probes


NEW QUESTION # 38
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. #{secure::tiskeystore,keyPassowrd}
  • B. ${secure::tiskeystore,keyPassowrd}
  • C. ${secure::tiskeystore,keyPassowrd}
  • D. p{secure::tiskeystore,keyPassowrd}

Answer: C

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


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

  • A. The test case passes
  • B. The test case fails with an assertion error
  • C. The test throws an error and does not start
  • D. The test case fails with an unexpected error type

Answer: B

Explanation:
Based 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. Reference: https://docs.mulesoft.com/munit/2.3/assert-equals-processor


NEW QUESTION # 40
Which statement is true when using XML SDK for creating custom message processors?

  • A. Operations can be reused in recursive calls
  • B. All operations are public
  • C. An XML SDK provides both inbound and outbound operations
  • D. 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

Answer: D

Explanation:
When using XML SDK for creating custom message processors, all operations are public by default and can be used by any Mule application that imports them. There is no way to make an operation private or protected in XML SDK. Reference: https://docs.mulesoft.com/mule-sdk/1.1/xml-sdk#operations


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

  • A. Add a Maven dependency in the POM file with jar as <classifier>
  • B. Download the common application from Naxus and copy it to the src/main/resources folder in the API
  • C. Add a Maven dependency in the PCM file with multiple-plugin as <classifier>
  • D. Copy the common application's source XML file and out it in a new flow file in the src/main/mule folder

Answer: A

Explanation:
To 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. Reference: https://docs.mulesoft.com/mule-runtime/4.3/mmp-concept#add-a-maven-dependency-to-the-pom-file


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

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

Answer: C

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. Reference: https://docs.mulesoft.com/mule-runtime/4.3/tls-configuration#cipher-suites


NEW QUESTION # 43
Multiple individual Mute application need to use the Mule Maven plugin to deploy to CloudHub.
The plugin configuration should .. reused where necessary and anything project, specific should be property-based.
Where should the Mule Maven details be configured?

  • A. Pom, xml
  • B. A Bill of Materials (BOM) parent pm
  • C. Settings, xml
  • D. A parent pom.xml

Answer: D

Explanation:
To reuse Mule Maven plugin configuration across multiple individual Mule applications, the developer should use a parent pom.xml file. A parent pom.xml file defines common configuration for one or more child projects that inherit from it. The developer can specify common properties and dependencies for all child projects in the parent pom.xml file, such as Mule Maven plugin configuration, and then reference them in each child project's pom.xml file using placeholders. Reference: https://docs.mulesoft.com/mule-runtime/4.3/mmp-concept#parent-pom https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project_Inheritance


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

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

Answer: A

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. Reference: https://docs.mulesoft.com/mule-sdk/1.1/xml-sdk#testing


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

  • A. 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
  • B. 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
  • C. 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.
  • 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.

Answer: D

Explanation:
To give a partial successful response in case the United Airlines API returns with a timeout, the developer should add a Scatter-Gather component inside a Try scope, and set the payload to a default value 'Error' inside the error handler using the On Error Continue scope. A Scatter-Gather component allows sending multiple requests concurrently and aggregating the responses into an array. A Try scope allows handling errors that occur within it using an error handler. An On Error Continue scope allows continuing the flow execution after handling an error. Therefore, by using these components, the developer can send requests to both APIs in parallel, handle any timeout errors from United Airlines API, and return a partial response with a default value for that API. Reference: https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept https://docs.mulesoft.com/mule-runtime/4.3/try-scope-concept https://docs.mulesoft.com/mule-runtime/4.3/on-error-continue-concept


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

  • A. Set a custom Anypoint MQ user property to propagate the order ID and set the correlation ID in the receiving applications.
  • B. Wrap all Anypoint MQ Publish operations within a With CorrelationID scope from the Tracing module, setting the correlation ID to the order ID
  • C. Use the default correlation ID, Anypoint MQ will sutomatically propagate it.
  • D. Use the underlying HTTP request of Anypoint MQ to set the 'X-CORRELATION_ID' header to the order ID

Answer: B

Explanation:
To propagate the order ID as the correlation ID across each message using Anypoint MQ, the developer should wrap all Anypoint MQ Publish operations within a With CorrelationID scope from the Tracing module, setting the correlation ID to the order ID. The With CorrelationID scope allows setting a custom correlation ID for any event that occurs within it. The Tracing module also enables distributed tracing across different Mule applications and services using Anypoint Monitoring. Reference: https://docs.mulesoft.com/tracing-module/1.0/tracing-module-reference#with-correlation-id-scope https://docs.mulesoft.com/tracing-module/1.0/tracing-module-concepts


NEW QUESTION # 47
Two APIs are deployed to a two-node on-prem cluster. Due to a requirements change, the two APIs must communicate to exchange data asynchronously.

  • A. It is not possible to use the VM Connector since the APIs are running in a cluster mode and each mode has it own set of VM Queues
  • B. Instead of using the VM Connector use <flow-ref>directly
  • C. The VM Connector is used to inter-application communication, so it is not possible to use the VM Connector
  • D. If the two APIs use the same domain, the VM Connector can be leveraged

Answer: D

Explanation:
To communicate asynchronously between two APIs deployed to a two-node on-prem cluster, the developer can use the VM Connector if the two APIs use the same domain. The VM Connector allows passing messages between different Mule applications within a single Mule runtime instance or across different instances using shared memory or persistent storage. If two APIs are deployed under the same domain, they can share resources such as VM queues and communicate asynchronously using VM Connector operations. Reference: https://docs.mulesoft.com/mule-runtime/4.3/vm-connector https://docs.mulesoft.com/mule-runtime/4.3/shared-resources


NEW QUESTION # 48
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 exchanhe.
    Create different Anypoint MQ queues meant for each of the other subscribing systems.Bind the exchange with each of the queues.
  • B. Publish the gate change notification to an Anypoint MC queue
    Have each client subscribe directly to the queue
  • C. Publish each client subscribe directly to the exchange.
    Have each client subscribe directly to the queue.
  • D. 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

Answer: A

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. Reference: https://docs.mulesoft.com/anypoint-mq/3.x/anypoint-mq-exchanges


NEW QUESTION # 49
......

Most Reliable Salesforce Salesforce-MuleSoft-Developer-II Training Materials: https://www.pass4surecert.com/Salesforce/Salesforce-MuleSoft-Developer-II-practice-exam-dumps.html

The Realest Study Materials Salesforce-MuleSoft-Developer-II Dumps: https://drive.google.com/open?id=1CEeSbCRl4siDKvoXMHWP5IHMwlHGpCXy