MuleSoft Certified Developer - Level 2 (Mule 4) Exam-style mock test
MuleSoft Certified Developer Level 2 (Mule 4) Practice Exams|Practice test
Full explanations
Exam format
Pass line 70%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Advanced Application Architecture and API-Led Design
At a B2B SaaS company, a new mobile app for account managers needs tailored subscription and invoice data aggregated from the billing platform and the CRM. The architect wants reuse so future web and partner portals can call the same business logic without re-aggregating. Following API-led connectivity, which API should perform the cross-system aggregation and orchestration of billing and CRM data?
・An Experience API dedicated exclusively to serving the account managers' mobile app
Incorrect. Experience APIs shape responses for one specific channel such as the mobile app and should not own reusable cross-system orchestration.
✓A Process API that composes the billing and CRM System APIs
Correct. Process APIs orchestrate and aggregate across multiple System APIs, delivering reusable business logic that web and partner portals can later consume.
・A System API that connects directly to the billing database
Incorrect. A System API unlocks a single source system and does not aggregate data across billing and CRM.
・A System API that connects directly to the CRM instance
Incorrect. A System API exposes one backend and is not the layer where multi-system orchestration belongs.
Explanation
In API-led connectivity, orchestration and aggregation across multiple systems belong to the Process layer so the logic can be reused by many experience channels.
Example2 · Error Handling, Reliability, and Idempotency
A B2B SaaS invoicing API named process-invoice calls a downstream tax-calculation service. The business requirement states that if the tax service fails, the flow should still return a successful HTTP 200 to the caller with the invoice stored at a default tax rate, and the overall flow must NOT be marked as failed. Which error handler configuration inside the flow's Error Handling scope meets this requirement?
✓On Error Continue, so the flow completes successfully and the default-tax payload is returned to the caller
Correct. On Error Continue handles the error, lets the flow finish as if successful, and returns the handler's result (the default-tax payload) to the caller with a success status.
・On Error Propagate, so the error is re-thrown to the caller after the handler runs
Incorrect. On Error Propagate re-throws the error after executing, so the flow is marked failed and the caller would receive an error, not HTTP 200.
・A Try scope with no inner error handler, letting the error bubble to the application-level default handler
Incorrect. A Try scope without an inner handler simply propagates the error upward, which fails the flow rather than returning success.
・Raise Error with a custom error type, so the APIkit router automatically converts it into a successful 200 response
Incorrect. Raise Error creates an error; it does not convert anything to a 200 response, and APIkit does not auto-translate custom errors to success.
Explanation
On Error Continue is the only construct that both handles the error and allows the flow to complete successfully, returning the handler's payload to the caller.
Example3 · Performance, Caching, and Tuning
A B2B SaaS company exposes an API that enriches each incoming order with a product catalog lookup against a slow third-party service. The catalog changes only a few times per day, but the lookup is called thousands of times per hour. The developer wants to reduce load on the third-party service without changing the response contract. Which approach best addresses this?
✓Wrap the third-party catalog HTTP Request inside a Cache scope so repeated lookups for the same key are served from the object store.
Correct. A Cache scope stores the result of the enclosed operation (the catalog lookup) keyed by request, so repeated identical lookups are served from the object store instead of re-calling the slow service.
・Replace the HTTP Request with a Choice router that branches on the product ID value.
Incorrect. A Choice router only selects a path based on conditions; it does not store or reuse prior lookup results, so the slow service is still called every time.
・Increase the Max Concurrency of the flow that performs the catalog lookup so that many more parallel lookups can run at the same time.
Incorrect. Higher concurrency may push even more parallel calls to the third-party service, increasing load rather than reducing it.
・Move the catalog lookup into an Async scope so the main flow does not wait for the response.
Incorrect. An Async scope decouples processing but still executes the lookup each time, and it would break the contract that enriches the response synchronously.
Explanation
The Cache scope is designed exactly for this pattern: expensive, repeatable operations whose results are stable for a period can be cached and reused, reducing calls to the downstream service.
Example4 · Security: OAuth, Tokenization, and Threat Protection
A healthcare services firm exposes a Patient Records API on CloudHub and wants each inbound request to present a valid OAuth 2.0 access token that is checked against the organization's external identity provider before the flow runs. Which approach should the developer apply to the API in API Manager?
✓Apply the OAuth 2.0 Access Token Enforcement policy configured to call the external identity provider's token introspection endpoint.
Correct. The OAuth 2.0 Access Token Enforcement policy delegates token validation to the configured identity provider's introspection endpoint, rejecting invalid or expired tokens at the gateway.
・Apply the Basic Authentication policy and store the identity provider credentials in a secure property.
Incorrect. Basic Authentication validates username and password credentials, not OAuth access tokens, so it does not satisfy the token-based requirement.
・Add a Validate component in the flow that compares the Authorization header to a hardcoded token value.
Incorrect. Comparing the header to a hardcoded value is insecure and does not perform real token validation against the identity provider.
・Apply the Client ID Enforcement policy so the gateway validates the client ID and secret headers.
Incorrect. Client ID Enforcement checks application identity credentials but does not validate a user-delegated OAuth access token.
Explanation
Validating OAuth access tokens against an external identity provider is exactly what the OAuth 2.0 Access Token Enforcement policy does via the introspection endpoint.
Example5 · Deployment, CI/CD, Monitoring, and Runtime Fabric
A healthcare services firm runs a patient-eligibility API on CloudHub that must survive the failure of a single AWS worker without dropping in-flight requests. The operations team wants the simplest configuration that provides zonal high availability. What should they do when deploying the application?
・Deploy a single large worker and rely on CloudHub to automatically restart it after a crash
Incorrect. A single worker is a single point of failure; a restart still causes downtime and drops in-flight requests during the outage.
✓Deploy two or more workers, which CloudHub automatically distributes across different availability zones for zonal high availability
Correct. Deploying two or more workers lets CloudHub spread them across availability zones, so the loss of one zone's worker leaves others serving traffic.
・Deploy the application to two separate CloudHub regions and manage failover with an external load balancer
Incorrect. Cross-region deployment addresses regional outages, not single-worker zonal HA, and adds unnecessary complexity for this requirement.
・Enable persistent queues so that a single worker can recover messages after a restart event
Incorrect. Persistent queues preserve message state but do not provide zonal redundancy; a crashed lone worker still causes an outage.
Explanation
Zonal high availability on CloudHub is achieved by running two or more workers, which are automatically placed in different availability zones.
Example6 · Advanced Application Architecture and API-Led Design
A healthcare services firm is building an integration where a patient-portal mobile app must display a consolidated view combining appointment data from a scheduling system and insurance eligibility from a claims system. Each backend already has a System API. Where in the API-led connectivity architecture should the orchestration that joins and reshapes the two backend responses be placed?
✓In a Process API that invokes both System APIs and aggregates the results
Correct. Cross-system orchestration and aggregation of business logic belongs in the Process layer, which composes multiple System APIs.
・Directly inside each System API so each individual backend system owns and performs its own cross-system joins
Incorrect. System APIs should expose a single backend cleanly and must not take on cross-system orchestration responsibilities.
・In the Experience API so the mobile app controls the aggregation
Incorrect. The Experience layer tailors a Process API response to a channel; it is not where multi-system aggregation logic should live.
・In a shared static library imported by the mobile client at build time
Incorrect. A client-side library pushes integration logic to the consumer, defeating the purpose of a reusable Process layer.
Explanation
In API-led connectivity, orchestration across multiple systems is a Process API responsibility, keeping System APIs single-purpose and Experience APIs channel-specific.
Example7 · Advanced Application Architecture and API-Led Design
The retail brand UrbanThread is building a mobile checkout feature. The team creates one API that aggregates inventory from the warehouse system and loyalty points from the CRM, applies the promotional pricing rules, then exposes a slim payload tailored to the iOS app. According to API-led connectivity, which layer should host the API that aggregates and orchestrates data from multiple System APIs while applying business logic?
・The Experience layer, because it reshapes the response payload for the mobile app channel
Incorrect. The Experience layer reshapes data for a specific channel but should not own cross-system orchestration or core business logic.
✓The Process layer, because it orchestrates across multiple System APIs and applies the cross-system pricing business logic centrally
Correct. Process APIs orchestrate and combine data across multiple System APIs and encapsulate reusable business logic independent of any single channel or backend.
・The System layer, because it connects directly to the warehouse and the CRM backend
Incorrect. System APIs unlock a single underlying system; aggregating warehouse and CRM data plus applying pricing rules exceeds that responsibility.
・Any layer, since API-led connectivity never prescribes where orchestration logic belongs here
Incorrect. API-led connectivity deliberately assigns orchestration to the Process layer to keep responsibilities separated.
Explanation
Aggregating multiple backends and applying business rules is the defining responsibility of the Process layer in API-led connectivity.
Example8 · Advanced Application Architecture and API-Led Design
UrbanThread receives order events over an HTTP listener that cannot be throttled by the sender. Spikes occasionally overwhelm the downstream fulfillment API, and dropped orders are unacceptable. The developer wants to acknowledge receipt immediately and decouple ingestion from processing so bursts are absorbed and retried. Which approach best implements the Reliability Pattern here?
・Increase the HTTP listener thread pool so more inbound order requests are processed concurrently under load
Incorrect. Enlarging the thread pool does not persist in-flight work, so a crash or sustained burst still loses orders.
✓Accept each request and immediately enqueue it, then process asynchronously from that queue
Correct. The Reliability Pattern splits a lossy endpoint from processing: accept the message, durably enqueue it, acknowledge the client, then consume asynchronously so bursts are buffered and failures retried.
・Wrap the downstream fulfillment call in an Until Successful retry scope inside the synchronous HTTP flow
Incorrect. Until Successful retries one call but keeps the request synchronous, so the listener still blocks and no buffering of bursts occurs.
・Add a Firewall policy that blocks inbound requests once a configured rate threshold is exceeded
Incorrect. Rejecting requests over a threshold drops orders, which the requirement explicitly forbids.
Explanation
The Reliability Pattern decouples a transient inbound endpoint from processing by durably queuing accepted messages and consuming them asynchronously.
Example9 · Advanced Application Architecture and API-Led Design
UrbanThread must deploy its order Process API with strict regulatory requirements that mandate the runtime execute inside the company's own private cloud network, while still being managed centrally from Anypoint Platform's control plane. Which deployment target meets both the in-house hosting requirement and centralized management?
・CloudHub shared workers running inside MuleSoft's own managed public cloud today
Incorrect. CloudHub runs workers in MuleSoft-hosted infrastructure, which does not satisfy hosting inside the company's own private cloud.
✓Anypoint Runtime Fabric on a customer-managed Kubernetes cluster in-house
Correct. Runtime Fabric lets the runtime run on the customer's own Kubernetes/container infrastructure while remaining managed through the Anypoint control plane.
・A fully standalone Mule runtime with no Anypoint platform link
Incorrect. A disconnected standalone runtime loses the centralized Anypoint management the requirement needs.
・Anypoint Flex Gateway running in connected mode only
Incorrect. Flex Gateway is an API gateway, not a deployment target for running a Mule integration application.
Explanation
Runtime Fabric provides customer-hosted runtime execution combined with Anypoint control-plane management.
Example10 · Advanced Application Architecture and API-Led Design
A financial services firm is building a mobile banking feature that aggregates account balances from a core-banking database, a card-processing SOAP service, and a loan ledger. Business rules decide which accounts are shown based on the customer's product tier. In which API-led layer should the logic that orchestrates these three backends and applies the product-tier rules live?
・The Experience layer, so the mobile channel controls which backends are called
Incorrect. The Experience layer only reshapes data for a specific channel; it should not own cross-system orchestration or business rules.
✓The Process layer, which orchestrates System APIs and applies tier rules
Correct. Orchestration across multiple System APIs plus reusable business rules is exactly the responsibility of the Process layer.
・The System layer, placed directly on the underlying core-banking account-balance database connection
Incorrect. System APIs expose a single underlying system and must stay free of cross-system orchestration logic.
・A standalone Mule app outside the three layers, invoked by each System API
Incorrect. Putting orchestration in an app outside the layers breaks the API-led model and loses the reuse the Process layer provides.
Explanation
Cross-system orchestration and reusable business logic belong in the Process layer, keeping System APIs single-purpose and Experience APIs channel-specific.
Example11 · Advanced Application Architecture and API-Led Design
A payments API at the bank accepts wire-transfer requests. Each request triggers fraud scoring that can take up to 40 seconds, but the calling channel must receive an immediate acknowledgement with a tracking id. Which processing pattern best fits this requirement?
・Process the fraud scoring synchronously inside the request flow and return the final approve-or-decline decision to the waiting caller
Incorrect. Synchronous scoring forces the caller to wait up to 40 seconds, which violates the immediate-acknowledgement requirement.
✓Accept the request, publish it to a queue for asynchronous fraud scoring, and immediately return a tracking id
Correct. Decoupling via a queue lets the API acknowledge instantly with a tracking id while scoring runs asynchronously.
・Increase the HTTP response timeout so the synchronous call can wait for the 40-second scoring
Incorrect. Raising the timeout still blocks the caller and ties up connections for long-running work.
・Reject any requests that cannot be fraud-scored within the default HTTP response timeout window
Incorrect. Rejecting valid requests fails the business need instead of handling the long-running work.
Explanation
When a backend step is long-running but the caller needs an immediate response, decouple with asynchronous queue-based processing and return a correlation/tracking id.
Example12 · Advanced Application Architecture and API-Led Design
A manufacturing distributor is building an order-fulfillment solution. One API connects directly to the SAP ERP and the warehouse SQL database, exposing raw inventory and order records without business logic. According to API-led connectivity, which layer should this API belong to?
✓The System layer, because it unlocks and exposes data directly from the underlying backend systems of record
Correct. An API that unlocks raw data straight from systems of record such as SAP ERP and the warehouse database, with no business logic, is a System API.
・The Process layer, because it orchestrates and aggregates data across multiple backend systems
Incorrect. Process APIs orchestrate and combine data across systems; this API only exposes one backend's raw data per source without orchestration.
・The Experience layer, because it tailors and reshapes the data specifically for a single consuming channel such as the mobile app
Incorrect. Experience APIs reshape data for a specific channel; this API exposes raw records and is not channel-specific.
・The Integration layer, because it transforms the payload format before delivery to consumers
Incorrect. There is no distinct 'Integration layer' in the three-tier API-led model, and format transformation alone does not define the layer.
Explanation
API-led connectivity defines three layers. System APIs unlock data directly from systems of record, which matches an API exposing raw ERP and warehouse data.
Example13 · Advanced Application Architecture and API-Led Design
The distributor needs a 'Submit Purchase Order' capability that validates a customer's credit limit, reserves stock, and creates a shipment record by calling three separate System APIs. Where should this orchestration logic be implemented?
・Inside the Experience API consumed by the sales portal
Incorrect. Experience APIs adapt data to a channel and should not own cross-system business orchestration.
✓Inside a Process API that invokes the three System APIs
Correct. Business orchestration that composes several System APIs into one capability belongs in a Process API.
・Inside each System API so every backend owns part of the workflow
Incorrect. Embedding workflow in System APIs couples them to a specific business process and breaks reusability.
・Inside a shared library imported by all participating applications
Incorrect. A shared library provides reusable code, not runtime orchestration across remote System APIs.
Explanation
Process APIs encapsulate business logic that orchestrates multiple System APIs, keeping System APIs reusable and channel-agnostic.
Example14 · Advanced Application Architecture and API-Led Design
A telecom operator is building a self-service mobile app that shows a subscriber their current data balance by aggregating usage from a billing database and plan limits from a provisioning system. Following API-led connectivity, where should the logic that combines billing usage with provisioning limits into a single balance object be placed?
・Inside a channel-specific Experience API tailored to the app
Incorrect. Experience APIs reshape data for a specific channel but should not own cross-system business orchestration, which belongs one layer down.
・Directly inside each System API so the data arrives pre-joined
Incorrect. System APIs expose a single underlying source; embedding cross-system joins couples them and breaks reusability.
✓In a Process API that orchestrates the billing and provisioning System APIs
Correct. Process APIs orchestrate and aggregate across multiple System APIs, which is exactly where combining usage and limits into a balance belongs.
・In the mobile app's own client code to avoid making an extra network hop
Incorrect. Pushing orchestration into the client duplicates logic across channels and defeats the purpose of a reusable integration layer.
Explanation
API-led connectivity assigns cross-system orchestration and aggregation to the Process layer, keeping System APIs single-source and Experience APIs channel-specific.
Example15 · Advanced Application Architecture and API-Led Design
Several of the telecom operator's Mule applications repeat the same error-handling flow and a common connectivity configuration. The team wants to maintain this logic in one place and import it into each application. Which approach best supports this?
・Copy the flow XML into each application and keep them in sync manually
Incorrect. Manual copying guarantees drift and defeats single-source maintenance.
✓Package the shared flows and configuration as a reusable Mule plugin published to Exchange and declared as a dependency
Correct. Publishing shared flows and configuration as a reusable library/plugin to Exchange and importing it as a dependency centralizes maintenance and versioning.
・Move the logic into an Experience API that every application calls over HTTP
Incorrect. Turning internal reusable logic into a network-hop API adds latency and operational overhead for something meant to be imported.
・Store the XML snippets in a shared Git branch that developers paste as needed
Incorrect. Copy-paste from a branch is still duplication with no versioned dependency management.
Explanation
Reusable Mule plugins published to Anypoint Exchange provide versioned, dependency-managed sharing of flows and configuration across applications.
▶ Try 10 free questions (graded)