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

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

Last updated: · 10 practice questions with answers and explanations

Page: 1 / 16 Total 235 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Creating Application Networks

Skill tested: Select API-led layers that promote reusable capabilities across integration projects.

A retailer is replacing several point-to-point integrations between its e-commerce platform, ERP, and warehouse system. Teams frequently reimplement the same customer lookup logic, while changes to the ERP force updates across multiple consumers. The architecture group wants reusable APIs with clear ownership and wants consumer-specific orchestration to remain independent of systems of record. Which design best applies an API-led approach while reducing this coupling?

Correct Answer: A. Create a system API for ERP customer access, a process API for shared customer and order orchestration, and experience APIs tailored to consumer needs.
Explanation:

The API-led model separates system APIs, which abstract systems of record; process APIs, which compose and implement reusable business processes; and experience APIs, which shape data for particular channels or consumers. This isolates consumers from ERP-specific changes and avoids duplicating shared orchestration. Direct ERP access from an experience API (B) couples each channel to the system of record. Per-consumer process APIs (C) duplicate integration logic, while exposing the database through an experience API (D) bypasses appropriate abstraction and creates a fragile consumer contract.

Question 2

New Single answer

Topic: Designing APIs

Skill tested: Choose URI and query parameters that correctly model resources and collection filtering.

A logistics API exposes shipments and must support retrieving one shipment by its stable identifier, filtering a collection by destination postal code, and optionally limiting the number of collection results. The API specification should keep resource identity distinct from optional search and pagination controls. Which resource design best satisfies these requirements?

Correct Answer: D. Use GET /shipments/{shipmentId} for an individual shipment and GET /shipments?postalCode={code}&limit={limit} for the collection.
Explanation:

A shipment identifier selects a specific resource, so it belongs in the URI path as a URI parameter. Postal-code filtering and a result limit are optional controls over a collection, making them suitable query parameters on GET /shipments. In A, identity is modeled as a query parameter and the individual-versus-collection distinction is unclear. C treats optional collection controls as path segments. D attaches collection filtering to an individual resource URI, where it does not express the stated collection operation.

Question 3

New Multiple answers

Topic: Accessing and Modifying Mule Events

Skill tested: Use Mule event variables and connector targets to preserve payload while capturing lookup results.

An order flow receives a JSON payload that must remain unchanged for a downstream fulfillment system. A CRM lookup returns a customer record that must be available later, and an HTTP request must use the original order number after the lookup. The CRM connector supports a target variable. Select TWO actions that meet these requirements without replacing the current message payload.

Correct Answer: A. Configure the CRM operation with a target variable such as customerRecord, then reference vars.customerRecord later.; C. Store the order number in a Mule variable before the CRM operation and reference that variable afterward.
Explanation:

A connector target variable stores an operation's result in a variable instead of replacing the current payload, so the CRM result can be accessed as vars.customerRecord. Saving the order number in a separate variable before the lookup preserves that value even if an operation changes the message payload. Targeting the payload (B) loses the original order unless it was separately saved. Replacing the payload with a combined structure (D) violates the requirement to keep it unchanged. Attributes and variables are distinct event components, so E does not place the result in vars.

Question 4

New Single answer

Topic: Structuring Mule Applications

Skill tested: Distinguish flow references from connector calls when passing an event within an application.

A Mule application has a reusable validation subflow called validateOrder and a separate flow called persistOrder that writes validated data to a database. The main flow must invoke validation synchronously, continue with the same event, then invoke persistence and handle its result. No external protocol boundary is required between these components. Which implementation is most appropriate?

Correct Answer: D. Use Flow Reference processors to invoke validateOrder and persistOrder in sequence.
Explanation:

A Flow Reference invokes a flow or subflow synchronously within the application and returns control to the caller with the event resulting from that execution. This fits both reusable validation and sequential persistence without adding a transport or deployment boundary. A VM queue is asynchronous messaging and would require separate correlation and response handling. HTTP calls introduce an unnecessary protocol boundary and endpoint concerns. D duplicates logic and makes maintenance less reliable.

Question 5

New Single answer

Topic: Building API Implementation Interfaces

Skill tested: Interpret APIkit routing from RAML resources and HTTP methods.

A team generates an APIkit implementation from a RAML specification that defines GET /accounts and GET /accounts/{accountId}, but does not define POST on either resource. The generated router receives a request for GET /accounts/42, followed by a request for POST /accounts. The team has not added custom routes or changed APIkit's generated routing behavior. Which outcome should the implementation produce?

Correct Answer: A. The first request routes to the GET /accounts/{accountId} flow; the second is rejected as an unsupported method for the resource.
Explanation:

APIkit uses the RAML resource path and HTTP method to route requests to the corresponding generated implementation flow. GET /accounts/42 matches the parameterized resource GET /accounts/{accountId}. Since POST is not defined for /accounts, APIkit does not generate a valid POST implementation route and reports a routing error rather than selecting an unrelated flow. A ignores method matching, C incorrectly treats a path parameter as a query parameter, and D assumes a generic default implementation route.

Question 6

New Multiple answers

Topic: Using Connectors

Skill tested: Use Database Connector target results to retain existing payload while using query output.

An order-processing flow begins with an event payload containing a validated order. It must query the database for the matching inventory row, use that row to make a routing decision, and still pass the unchanged order payload to the downstream fulfillment operation. The database query is read-only, and the flow must not perform an additional query just to reconstruct the order. Select TWO implementation choices that meet these constraints.

Correct Answer: A. Configure the Database Select operation with a target variable, then access the rows through that variable for routing.; D. Configure the Database Select operation with a target variable and leave the order payload unchanged for fulfillment.
Explanation:

A target on the Database Select operation stores the query result in a variable while leaving the current payload unchanged. The flow can inspect the rows through that variable for routing and send the original order payload to fulfillment. A and D describe complementary uses of the same target-based pattern. Replacing the payload (B) can work only if the original order is separately preserved, but it does not meet the simplest stated requirement and duplicates state unnecessarily. C adds an unnecessary query, and a database listener is a source for receiving database events, not a synchronous lookup operation.

Question 7

New Single answer

Topic: Processing Records

Skill tested: Select For Each behavior for sequential processing of collection elements.

A service returns an array of 30 payment records. For each record, the application must call a downstream service sequentially, retain the original array as the payload after processing, and collect any per-record output for a later aggregation step. The application does not require batch-job streaming or independent record persistence. Which approach best meets these requirements?

Correct Answer: C. Use a For Each scope over the array and store each downstream result in a variable or another explicitly managed collection.
Explanation:

For Each processes each collection element in sequence and restores the original collection as the payload when the scope completes. Because the requirement also calls for collecting per-record results, the flow must explicitly save those results, for example in a managed collection or variable. Batch Job is intended for record-oriented batch processing and does not provide the assumed scope result behavior. Scatter-Gather runs a fixed set of routes, not one route per collection item, and parallel processing does not guarantee an automatically ordered result array.

Question 8

New Single answer

Topic: Transforming Data

Skill tested: Apply DataWeave filtering and ordering while coercing values to a requested output type.

An HTTP endpoint returns JSON orders whose amount field can arrive as either a string or a number. A downstream API requires JSON containing only orders with amount greater than 100, sorted by amount in descending order, with each amount represented as a number. Which DataWeave strategy correctly satisfies all three requirements?

Correct Answer: A. Map each order to a numeric amount first, filter using that numeric value, sort descending by amount, and emit JSON.
Explanation:

Coercing amount to a numeric value before comparison and sorting makes the greater-than condition and descending order numeric rather than lexicographic. The transformation can preserve the other order fields while emitting amount as a number in the JSON output. Filtering or sorting strings can produce incorrect results, especially where values have different digit lengths. JSON serialization does not automatically guarantee the required coercion, and converting the whole array to Number is not a valid way to transform the amount field.

Question 9

New Multiple answers

Topic: Handling Errors

Skill tested: Distinguish error continuation from propagation in local and global error handling.

A Mule API calls an optional tax-estimation service inside a Try scope. If that service fails, the flow must continue with the current order and mark tax as unavailable. A separate database failure outside the Try scope must be handled by a global handler that returns an error response to the caller and does not report successful completion. Select TWO error-handling behaviors that satisfy these requirements.

Correct Answer: C. Use an On Error Continue handler in the Try scope for the tax-service error and set the unavailable marker.; E. Use an On Error Propagate handler in the global error handler for the database error and construct the error response.
Explanation:

On Error Continue handles the error locally and allows processing to proceed after the Try scope, which is appropriate for the optional tax estimate when the flow sets an unavailable marker. On Error Propagate in the global handler preserves the failure status while allowing the application to construct the required error response; it does not turn the database failure into success. A local On Error Propagate would rethrow rather than continue normally. Global On Error Continue would make the database failure appear handled as a successful completion, contrary to the requirement.

Question 10

New Single answer

Topic: Deploying and Managing APIs and Integrations

Skill tested: Configure API autodiscovery to associate a deployed implementation with API Manager governance.

A company deploys a Mule API implementation to CloudHub and manages its API instance in API Manager. The implementation must be associated with the managed API so that policies applied in API Manager govern traffic. The team plans to deploy a separate proxy instead of embedding proxy logic in the implementation. Which configuration decision is necessary for the implementation to participate in this management setup?

Correct Answer: A. Configure API autodiscovery in the implementation with the managed API instance's API identifier, and configure the separate proxy to route traffic to the implementation.
Explanation:

API autodiscovery associates a Mule application with an API Manager-managed API instance using the instance's API identifier, enabling managed policy enforcement for the implementation. A separate proxy can provide the externally exposed interface and route requests to the implementation; it does not eliminate the need to configure the implementation's management association as required by the scenario. API Manager policies are not implemented by manually polling for policy files, and matching application names alone does not create the association. A separate proxy can be used with a managed implementation.