Mule-Dev-301 Salesforce Certified MuleSoft Developer II Practice Questions
Prepare for Mule-Dev-301 with more than an answer.
Unlock the full exam and previous versions
- v1Salesforce Certified MuleSoft Developer II 180 questions Current
- certified-mulesoft-developer-iiLegacy Salesforce Certified MuleSoft Developer II 34 questions Locked
- Exam fee
- $200 USD
- Level
- Advanced
- Valid for
- 2 years from pass date
Domains covered on the exam 5
- Expose Production-Ready Anypoint Platform-Managed APIs from Mule Applications13%
- Implement Maintainable and Modular Mule Applications and Their Maven Builds25%
- Implement Monitorable Mule Applications15%
- Implement Performant and Reliable Mule Applications27%
- Secure Data at Rest and in Transit20%
- 1
A company is building a reusable common error handler to be shared across 50+ microservices. The error handler contains flows that reference a global configuration for an alerting system. How should this common functionality be encapsulated to ensure it can be easily imported into other projects while avoiding resource name collisions?
Show answer details
Correct answer: D
A Mule Plugin (Library) is the standard way to share code and flows. By packaging it with the
mule-pluginclassifier, it is treated as a dependency that exposes its resources to the consuming application. This allows the global error handler configuration to be imported via thetag or by simply being on the classpath, while maintaining modularity. - 2
When developing a custom connector using the Mule Java SDK, you need to manage a connection to a third-party TCP service. The connection must be established once and reused across multiple operations, with support for automatic reconnection if the socket drops. Which annotation should be applied to the class responsible for managing this lifecycle?
Show answer details
Correct answer: C
The
@ConnectionProviderannotation identifies the class responsible for creating, validating, and disconnecting connections. It implements theConnectionProviderinterface (e.g.,CachedConnectionProvider), which handles the lifecycle logic including pooling and reconnection strategies. - 3
A Mule application uses a parent POM to manage dependencies. The parent POM defines a dependency on
mule-http-connectorversion1.5.0. A child project requires a specific bug fix available only in version1.6.0of the HTTP connector. How should the child project'spom.xmlbe configured to use the newer version?Show answer details
Correct answer: C
In Maven, explicit declarations in a child POM take precedence over managed dependencies or inherited dependencies from a parent POM. By declaring the dependency with the specific desired version in the child, the parent's version is overridden for that specific project context.
- 4
A MuleSoft Architect is designing a versioning strategy for a suite of System APIs that connect to a legacy mainframe. The business requirement dictates that existing consumers must not be forced to update their integrations immediately when minor non-breaking changes are deployed. However, major breaking changes must run in parallel with the old version. Which URI-based versioning strategy in the RAML definition and API implementation best supports these requirements while adhering to semantic versioning principles?
Show answer details
Correct answer: B
According to semantic versioning best practices for APIs, the URI should typically contain only the MAJOR version (v1). Minor and patch versions (v1.1, v1.2) should be backward compatible and thus should not require a URI change. This allows existing consumers to benefit from non-breaking changes without modification, while breaking changes trigger a new major version (v2) deployed in parallel.
- 5
A developer is configuring API Auto-Discovery for a Mule application deployed to CloudHub. The API is managed in API Manager, and the correct Client ID and Secret have been configured in the
AnyPoint Platformproperties. However, the API status remains 'Unregistered' in API Manager. Upon reviewing the logs, the developer sees the application has started successfully. What is the most likely cause of this issue?Show answer details
Correct answer: C
For API Auto-Discovery to function, the
api-gateway:autodiscoveryelement must reference the specific flow (usually the one containing the APIkit Router or HTTP Listener) via theflowRefattribute. Without this link, the runtime cannot associate incoming traffic on that flow with the managed API instance, resulting in an 'Unregistered' status even if credentials and API IDs are correct. - 6
An organization requires strict governance where an API must automatically reject requests if they exceed 100 requests per minute from a specific client ID. However, brief bursts of traffic up to 50% above the limit are acceptable for short durations (milliseconds) to accommodate network jitter. Which out-of-the-box API policy should be applied to meet this requirement?
Show answer details
Correct answer: B
Spike Control is designed to smooth out traffic bursts. Unlike Rate Limiting (which hard-stops traffic over a window), Spike Control uses a sliding window algorithm and allows queuing of requests or configurable burst windows. It is the correct choice when 'brief bursts' need to be accommodated rather than immediately rejected, or when protection against sudden load spikes is priority over strict quota enforcement.
