Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Salesforce Certified MuleSoft Developer II Salesforce-MuleSoft-Developer-II Exam Questions

Last updated: · 15 practice questions with answers and explanations

Page: 1 / 6 Total 60 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Expose production-ready Anypoint Platform-managed APIs from Mule applications

Skill tested: Configure API autodiscovery to associate a Mule API implementation with its Exchange API instance.

A payments team has published a REST API specification to Anypoint Exchange and deployed its Mule implementation to CloudHub. API Manager policies must be enforced on that implementation, but requests currently bypass the managed API configuration. The Mule application already exposes the intended HTTP listener and router, and the team wants to avoid maintaining a second proxy application. Which change most directly enables API Manager to manage calls to this implementation?

Correct Answer: A. Add an API autodiscovery configuration that references the API instance identifier and the implementation's APIkit router flow.
Explanation:

API autodiscovery links a Mule application implementation to the API instance managed in API Manager. Its configuration uses the API instance identifier and identifies the flow that handles the API, allowing the managed policies to be enforced without introducing a separate proxy. An outbound HTTP Request does not register the inbound implementation, publishing a listener path to Exchange does not establish the API Manager association, and the APIkit console is for API exploration rather than policy enforcement.

Question 2

New Single answer

Topic: Expose production-ready Anypoint Platform-managed APIs from Mule applications

Skill tested: Choose API Manager policies that cache eligible responses while preserving authentication and cache correctness.

A catalog API is managed in API Manager and receives repeated GET requests for public product details. The responses are identical for all callers for five minutes, and the backend is the primary source of avoidable load. The API must still reject invalid credentials before returning any data, and the team does not want to implement caching in the Mule flow. Which approach best satisfies these requirements?

Correct Answer: D. Apply an API Manager response caching policy with a five-minute TTL and configure the policy order so authentication is enforced before cached responses are served.
Explanation:

The API Manager caching policy provides server-side caching for eligible invocations without changing the Mule flow. A five-minute TTL matches the stated freshness window, and authentication must be enforced before a cached response can be returned. A client-side cache cannot reduce requests reaching the managed API, rate limiting rejects excess traffic rather than replaying a response, and ObjectStore-based flow caching would require application changes and would not justify disabling API governance.

Question 3

New Multiple answers

Topic: Expose production-ready Anypoint Platform-managed APIs from Mule applications

Skill tested: Implement a webhook callback that records and verifies subscriptions before sending events.

An order API must notify external partners when an order ships. Partners provide an HTTPS callback URL and a secret during subscription registration. Notifications are asynchronous, must not be sent to an unverified destination, and the order API must retain the subscription details for later delivery. Select TWO design decisions that satisfy these requirements.

Correct Answer: A. Persist the subscription and dispatch a signed HTTPS notification asynchronously when the shipment event occurs.; B. Accept the callback URL through a subscription endpoint, validate it under the organization's callback-registration rules, and persist the approved URL and secret.
Explanation:

A webhook design needs a registration process that validates and stores the partner's destination and associated secret, followed by asynchronous delivery when the relevant event occurs. Signing the HTTPS notification lets the receiver verify its origin and integrity without coupling shipment processing to partner availability. Synchronous delivery would delay or fail the business request, response caching is not a durable notification mechanism, and API autodiscovery associates a Mule implementation with API Manager rather than validating arbitrary callback destinations.

Question 4

New Single answer

Topic: Implement maintainable and modular Mule applications and their Maven builds

Skill tested: Configure Maven deployment to a Mule runtime using environment-specific deployment properties.

A release pipeline builds one Mule application artifact and deploys it to separate CloudHub environments. The deployment must use the same artifact in each environment, select the target environment at deployment time, and avoid embedding Anypoint credentials in the project POM or source control. Which Maven deployment design is most appropriate?

Correct Answer: A. Use the Mule Maven Plugin deployment configuration, pass environment-specific values through CI parameters, and obtain credentials from the pipeline's protected secret store.
Explanation:

The Mule Maven Plugin supports automated deployment, while CI-supplied parameters can select the target environment and protected secret storage can provide credentials without committing them. Reusing the same built artifact promotes consistent releases. Per-environment artifacts undermine artifact promotion, Maven profiles do not make a committed secret safe, and automated Maven deployment is supported, so manual deployment is not required.

Question 5

New Multiple answers

Topic: Implement maintainable and modular Mule applications and their Maven builds

Skill tested: Run MUnit tests through Maven and bind test execution to the build lifecycle.

A team currently runs its MUnit suite only from Anypoint Studio. It wants pull requests to fail when tests fail and release builds to execute the same tests before packaging. Developers must retain their existing test suite, and the team does not want a separate manually maintained CI test command. Select TWO changes that best meet the requirement.

Correct Answer: A. Make the CI pipeline run the project's Maven test/build lifecycle and treat a nonzero Maven result as a failed build.; C. Configure the MUnit Maven Plugin in the project's Maven build so the tests run during the appropriate build lifecycle phase.
Explanation:

MUnit tests can be executed through Maven using the MUnit Maven Plugin, and binding execution into the build lifecycle makes test execution repeatable. CI should run that Maven lifecycle and fail the build when Maven reports an error. MUnit test flows are not production startup flows; Runtime Manager is not a substitute for build-time test execution; and deploying a test application or calling it at production startup adds risk and complexity.

Question 6

New Single answer

Topic: Implement maintainable and modular Mule applications and their Maven builds

Skill tested: Select the Mule SDK when implementing a reusable custom Mule message processor.

Several Mule applications need a reusable processor that parses a proprietary binary payload and exposes typed attributes to downstream processors. The behavior must participate in Mule's extension model, be configurable in XML, and use the Mule runtime's supported extension development approach. The team does not want to fork or modify the runtime. What should it implement?

Correct Answer: B. A Mule SDK extension containing the custom operation, its parameters, and the required payload-processing logic.
Explanation:

The Mule SDK is the supported approach for creating custom Mule extensions and operations that integrate with the Mule configuration model and can be reused across applications. A global error handler is intended for error handling, not general payload processing. An API Manager policy addresses API governance and is not a general in-flow message processor. A Java resource invoked over HTTP would add a separate service boundary and would not provide the requested Mule extension operation.

Question 7

New Single answer

Topic: Implement maintainable and modular Mule applications and their Maven builds

Skill tested: Use a shared Maven dependency to encapsulate functionality across Mule applications.

A company maintains six Mule applications with identical validation and normalization flows. Updates currently require copying XML and DataWeave files into every project, leading to version drift. The shared logic should be released and consumed independently, while each application remains deployable as its own artifact. Which design best supports this goal?

Correct Answer: B. Package the reusable functionality as a Mule module/library, publish it to the organization's Maven repository, and declare its version as a dependency in each application.
Explanation:

A reusable Mule module or library can be versioned and distributed through a Maven repository, allowing applications to consume the same maintained functionality while retaining independent deployment artifacts. A template helps scaffold new projects but does not provide a shared runtime dependency. Mule domains share certain runtime resources, not arbitrary flows as an inherited library. Copying files preserves the duplication and version drift the team wants to eliminate.

Question 8

New Single answer

Topic: Implement monitorable Mule applications

Skill tested: Expose an application health endpoint that reports meaningful readiness for dependent services.

Operations needs a health endpoint for a Mule application that fronts an external inventory service. The load balancer must stop routing traffic when the application cannot serve requests because the dependency is unavailable. The endpoint should not expose credentials or detailed internal errors, and a basic listener response that remains successful during dependency failure is insufficient. What is the best implementation?

Correct Answer: A. Expose a dedicated health flow that performs a bounded dependency check and returns an appropriate unhealthy status without disclosing sensitive details.
Explanation:

A useful readiness endpoint must reflect the condition that prevents the application from serving its required workload. A bounded check of the inventory dependency can report unhealthy status when that dependency is unavailable while avoiding sensitive diagnostic details. A listener-only HTTP 200 check reports liveness rather than meaningful readiness, stale cached data does not demonstrate current dependency availability, and returning raw exception details unnecessarily exposes internal information.

Question 9

New Multiple answers

Topic: Implement monitorable Mule applications

Skill tested: Propagate correlation identifiers across HTTP calls and log structured request context.

Support teams must trace a customer request across two Mule applications and an HTTP-based downstream service. Some clients provide a correlation identifier, while others do not. Logs must be searchable by one identifier throughout the request path, and the downstream service must receive that same identifier. Select TWO implementation choices that meet the requirement without logging sensitive payloads.

Correct Answer: B. Use the inbound correlation identifier when available, otherwise allow Mule to establish one, and include the resulting identifier in structured log fields.; E. Explicitly map the current correlation identifier to the outbound HTTP request header expected by the downstream service.
Explanation:

Using a consistent correlation identifier allows logs from different components to be joined, and explicitly propagating it on the outbound HTTP request carries the same trace context to the downstream service. Structured log fields improve searchability without requiring payload logging. Creating a new identifier per flow breaks end-to-end correlation, logging complete bodies risks exposing sensitive data, and a flow name identifies code rather than an individual request.

Question 10

New Single answer

Topic: Implement monitorable Mule applications

Skill tested: Change Mule runtime log levels and aggregate logs for operational analysis.

During a short production investigation, engineers need DEBUG output from one Mule logger category, but not from every application. The application must remain running, and the team must restore the normal level after the investigation. They also need centralized searching of the resulting logs. Which operational approach is most appropriate?

Correct Answer: A. Change the targeted logger's level through the supported runtime logging configuration mechanism, revert it after the window, and use centralized log aggregation for analysis.
Explanation:

A targeted runtime logging change limits diagnostic noise and avoids a redeployment when the runtime's supported logging controls permit the change. Reverting the level limits the operational and performance impact, while centralized aggregation enables cross-instance searching. Editing source and redeploying is unnecessarily disruptive and local-file searching is not centralized. Global TRACE can generate excessive data, and API analytics do not replace application-level logs.

Question 11

New Multiple answers

Topic: Implement performant and reliable Mule applications

Skill tested: Configure VM messaging for durable, fault-tolerant transfer between Mule flows.

A Mule application must hand off work from an HTTP-facing flow to a background flow. If the background consumer is temporarily unavailable, accepted work must remain available after a runtime restart. The handoff should not wait for processing to finish, and the team wants to avoid sending messages outside this Mule application. Select TWO design choices that satisfy these constraints.

Correct Answer: C. Configure the producer to enqueue and return without waiting for downstream processing, while defining appropriate queue capacity and error handling.; E. Use a persistent VM queue for the handoff so queued messages survive runtime restarts in the supported deployment configuration.
Explanation:

A persistent VM queue is appropriate for asynchronous handoff within a Mule application when queued work must survive restart, subject to the persistence support of the deployment configuration. Enqueue-and-return avoids coupling the HTTP response to completion of background work; capacity and error handling remain important for operational reliability. A transient queue does not meet restart durability, Anypoint MQ is not required for same-application communication, and a synchronous flow reference blocks until its work executes.

Question 12

New Single answer

Topic: Implement performant and reliable Mule applications

Skill tested: Use HTTP response status and retry classification to make API invocations fault tolerant.

A Mule application calls a partner's HTTP API. The partner documents 429 and selected 5xx responses as temporary, while 400 responses indicate a request defect and must not be retried. During a short outage, repeated requests must not overwhelm the partner, and retry attempts should be limited. Which approach is best?

Correct Answer: C. Use a bounded retry policy for the documented transient statuses, apply backoff where supported, and route permanent client errors to error handling without retrying.
Explanation:

Retry behavior should follow the partner's documented status semantics: bounded retries for transient 429 and selected 5xx responses, with backoff to reduce pressure, and no retries for a permanent 400 request error. Retrying all failures immediately can amplify an outage and waste work. Converting errors to 200 hides failures, and HTTP status codes are essential inputs to classifying the response rather than being unusable for that purpose.

Question 13

New Multiple answers

Topic: Implement performant and reliable Mule applications

Skill tested: Design scatter-gather processing with compensating actions for partial branch failure.

An order flow uses scatter-gather to reserve inventory and authorize payment in parallel. If either route fails, the order must not proceed as fulfilled. A successful inventory reservation must be released if payment authorization fails, and a successful authorization must be voided if inventory reservation fails. The external systems do not support a shared transaction. Select TWO design decisions that correctly address partial failure.

Correct Answer: A. Inspect the aggregate route results and, on partial failure, invoke the corresponding compensating action for each successful side effect.; B. Make reservation and authorization idempotent where possible and record enough outcome information to safely perform compensation or recovery.
Explanation:

Scatter-gather runs routes and aggregates their outcomes, but it does not create a distributed transaction that automatically reverses external side effects. The flow must inspect route results and explicitly compensate for whichever operation succeeded, such as releasing inventory or voiding an authorization. Idempotency and recorded outcomes make retries and recovery safer. Ignoring failures violates the business requirement, and a local transaction scope cannot assume atomic rollback across unrelated external services.

Question 14

New Single answer

Topic: Implement performant and reliable Mule applications

Skill tested: Apply client-side caching to reduce repeated outbound API calls without caching unsafe responses.

A Mule process repeatedly requests public exchange-rate metadata from the same HTTP service. The data may be reused for two minutes, but individual user responses and authorization-dependent results must never be shared between requests. The team wants to reduce outbound calls and keep the cache in the Mule application rather than configuring API Manager. Which implementation is most appropriate?

Correct Answer: C. Use the Cache scope around the outbound lookup, with a two-minute expiration and a key based on the complete request identity for this public, non-user-specific data.
Explanation:

A Cache scope can cache the result of the outbound lookup within the Mule application, with an expiration aligned to the two-minute freshness requirement. Its key should distinguish inputs that affect the result; because the metadata is public and not user-specific, user credentials or response content need not be shared. API Manager response caching applies to managed inbound API responses, not as a policy on an outbound operation. Indefinite caching is stale-prone, and a connection timeout does not cache results.

Question 15

New Single answer

Topic: Secure data at rest and in transit

Skill tested: Protect environment-specific properties with secure configuration and externalized credentials.

A Mule application has separate API credentials for development, test, and production. The same packaged artifact must be promoted between environments, production secrets must not be committed to source control, and authorized runtime configuration must decrypt protected values. Which configuration approach best meets these requirements?

Correct Answer: C. Externalize environment-specific values, use Secure Configuration Properties for encrypted secrets, and provide the decryption key securely at runtime.
Explanation:

Externalized properties let the same application artifact receive values appropriate to its deployment environment. Secure Configuration Properties can protect sensitive property values, while the decryption key must be supplied through a protected runtime mechanism rather than committed with the ciphertext. Repository access restrictions do not make plaintext credentials safe, environment-specific builds and embedded XML credentials undermine artifact promotion, and log masking is unrelated to secure secret storage.