As a part of business requirement , old CRM system needs to be integrated using Mule
application. CRM system is capable of exchanging data only via SOAP/HTTP protocol. As
an integration architect who follows API led approach , what is the the below step you will
perform so that you can share document with CRM team?
Correct answer:
C. Create WSDL specification using text editor
Explanation:
This question tests the understanding of how to apply API-led connectivity principles to a legacy SOAP-based system, specifically focusing on the design and specification phase.
Why D is correct:
The API-led approach emphasizes a contract-first design and creating reusable assets. The correct step for an Integration Architect is to create a well-defined contract to share with the CRM team for alignment.
The contract for a SOAP-based system is a WSDL (Web Services Description Language) file.
Design Center is the centralized tool within Anypoint Platform for designing APIs. It supports creating SOAP API specifications by importing an existing WSDL or by designing one graphically.
Creating the WSDL in Design Center (rather than a local text editor) makes it a reusable, discoverable asset within Anypoint Exchange, promoting governance and reuse across the organization. This aligns perfectly with the API-led methodology.
Let's examine why the other options are incorrect:
A. Create RAML specification using Design Center:
This is incorrect. RAML (RESTful API Modeling Language) is used for defining REST APIs, not SOAP web services. The CRM system uses SOAP/HTTP, so a REST contract is not the appropriate choice.
B. Create SOAP API specification using Design Center:
This wording is ambiguous, but it is essentially describing the correct action. However, option D is more precise because it explicitly names the artifact—the WSDL—which is the standard and correct term for a SOAP API's contract. Given the choice between a generic description and the precise technical term, the precise term (D) is the better answer.
C. Create WSDL specification using a text editor:
While technically possible, this goes against the collaborative and governed spirit of the API-led approach. Using a local text editor creates a siloed asset that is not easily shared, discovered, or governed within Anypoint Platform. The whole point of the platform is to use tools like Design Center to create assets that are automatically published to Exchange for the entire organization to use.
References/Key Concepts:
System API Layer:
In API-led connectivity, the integration with the legacy CRM would be encapsulated in a System API. The first step in building a System API is to define its interface, which in this case is a WSDL.
Contract-First Design:
The architect should design the contract (WSDL) before any implementation begins. This ensures both teams (integration and CRM) agree on the interface.
Anypoint Platform Tools:
Design Center is the designated tool for API design, and it supports both REST (RAML/OAS) and SOAP (WSDL) APIs.
What is true about the network connections when a Mule application uses a JMS connector
to interact with a JMS provider (message broker)?
Correct answer:
C. The JMS connector supports both sending and receiving of JMS messages over the
protocol determined by the JMS provider
Explanation
The Java Message Service (JMS) is a standard API for message-oriented middleware. The key principle is that the JMS client (the Mule JMS connector) communicates directly with the JMS provider (the message broker, like ActiveMQ, TIBCO EMS, etc.).
Option C (Correct):
This is the fundamental nature of JMS. The JMS connector is a client that uses the JMS API. The actual network protocol used (e.g., TCP, HTTP, etc.) is determined by the JMS provider's client libraries and configuration. The Mule JMS connector can act as a producer (sending messages) and a consumer (receiving messages) using this provider-specific protocol.
Option A (Incorrect):
This describes a point-to-point communication model, not how JMS works. The JMS connector only needs to connect to the JMS provider (the message broker), not the ultimate recipient. The connector publishes a message to a queue or topic on the broker. The broker is then responsible for delivering the message to the appropriate recipient(s). The sender and receiver are decoupled.
Option B (Incorrect):
This reverses the connection direction. In the JMS model, the consumer (in this case, the Mule application using the JMS connector) initiates a connection to the JMS provider. The consumer either polls the broker for messages (for a Request-Reply operation) or establishes a persistent connection over which the broker can push messages (for a Listener source). The JMS provider does not initiate connections back to the consumers.
Option D (Incorrect):
This confuses JMS with AMQP. JMS is an API specification, while AMQP (Advanced Message Queuing Protocol) is a wire-level protocol.
JMS:
Requires a client library specific to the JMS provider (e.g., an ActiveMQ client library). It is not natively portable across different brokers without changing the client libraries.
AMQP:
Is a standard protocol. An AMQP client can connect to any AMQP-compliant broker (like RabbitMQ) using the standard AMQP protocol. The Mule JMS connector is for JMS, not AMQP. To use AMQP, you would use the AMQP connector.
Reference / Key Concept
JMS Architecture:
The communication is always between a JMS client and a JMS broker. Clients never communicate directly with each other.
JMS vs. AMQP:
It is critical to understand that JMS is a Java API standard, not a protocol. The underlying network protocol is implementation-specific. AMQP is an open standard protocol that is language-agnostic. They are distinct technologies.
Which Salesforce API is invoked to deploy, retrieve, create or delete customization
information such as custom object definitions using a Mule Salesforce connector in a Mule
application?
Correct answer:
A. Metadata API
Explanation:
The Salesforce Metadata API is specifically designed for managing Salesforce customization and configuration, which is referred to as "metadata."
Purpose:
The Metadata API is used to manipulate the structural aspects of a Salesforce org. This includes operations on custom objects, fields, page layouts, workflows, Apex classes, and much more.
Operations:
The key verbs in the question—deploy, retrieve, create, delete—are the core operations of the Metadata API. For example, you would use the retrieve operation to get a package of metadata from a Salesforce org and the deploy operation to add it to another.
MuleSoft Connector:
The Anypoint Connector for Salesforce provides specific operations under the "Metadata" category (e.g., Create Metadata, Delete Metadata, Update Metadata, Retrieve Metadata). When you use these operations in your Mule application, the connector is making calls to the underlying Salesforce Metadata API.
The question explicitly mentions "customization information such as custom object definitions." This is the definitive domain of the Metadata API.
Analysis of Other Options:
B. REST API:
The Salesforce REST API is primarily used for performing CRUD (Create, Read, Update, Delete) operations on the data records (e.g., Account, Contact, Custom Object records) within Salesforce. It is not used for modifying the schema or definition of the objects themselves.
C. SOAP API:
The Salesforce SOAP API is an older, but still fully supported, API that also focuses on data manipulation (CRUD) and some administrative tasks. Similar to the REST API, its primary purpose is interacting with records, not the object definitions. The SOAP API's WSDL does include a partner WSDL for data, but the Metadata API has its own, separate WSDL.
D. Bulk API:
The Bulk API is a specialized extension of the REST API designed for loading or deleting very large sets of data records asynchronously. It is optimized for handling millions of records. It has no functionality for managing object definitions or other metadata.
Key Concepts/References:
Salesforce APIs:
An Integration Architect must understand the distinct purposes of the different Salesforce APIs:
Data APIs (REST, SOAP, Bulk):
For working with records.
Metadata API:
For working with the schema and configuration.
Other APIs:
There are also specific APIs for Analytics, Streaming, etc., but the core distinction is between Data and Metadata.
Anypoint Connector Configuration:
When building integrations, selecting the correct operation within a connector is crucial. Knowing that metadata operations are separate from data operations prevents architectural mistakes.
MuleSoft Documentation:
The official documentation for the Salesforce Connector clearly separates its operations into categories like "Core" (for data) and "Metadata."
A mule application uses an HTTP request operation to involve an external API.
The external API follows the HTTP specification for proper status code usage.
What is possible cause when a 3xx status code is returned to the HTTP Request operation
from the external API?
Correct answer:
B. The request was Redirected to a different URL by the external API
Explanation:
According to the HTTP/1.1 specification (RFC 7231), 3xx status codes are classified as "Redirection" messages.
Purpose:
These status codes indicate that further action needs to be taken by the user agent (in this case, the Mule HTTP Request operation) in order to fulfill the request. The most common action is to make a new request to a different URI (URL) provided by the server in the response headers (like the Location header).
Common Examples: 301 Moved Permanently: The resource has been assigned a new permanent URI.
302 Found: The resource is temporarily located under a different URI.
304 Not Modified: A special case for caching, indicating that the client can use a cached version.
Therefore, when a 3xx status code is returned, it means the external API received the request and is explicitly instructing the client to redirect to another location.
Analysis of Other Options:
A. The request was not accepted by the external API:
This is more accurately described by 4xx (Client Error) status codes. These indicate that the server received the request but could not process it due to a client-side error (e.g., 400 Bad Request, 401 Unauthorized, 404 Not Found). A 3xx is not a rejection; it's an instruction.
C. The request was NOT RECEIVED by the external API:
If the request was not received, a status code would typically not be generated at all. The Mule application would likely encounter a connectivity-level error (like a timeout or "cannot reach host") rather than an HTTP status code. Status codes are generated by the server after it receives and interprets the request.
D. The request was ACCEPTED by the external API:
This is described by 2xx (Success) status codes. For example, 202 Accepted specifically means the request was accepted for processing, but the processing is not complete. A 3xx code does not mean acceptance; it means redirection.
Key Concepts/References:
HTTP Status Code Categories:
1xx: Informational
2xx: Success (e.g., 200 OK, 201 Created)
3xx: Redirection (The correct answer)
4xx: Client Error
5xx: Server Error
HTTP Request Connector Behavior: By default, the Mule HTTP Request connector will not automatically follow redirects. It will receive the 3xx response, and it is the developer's responsibility to handle it (e.g., by checking the status code and making a subsequent request to the URL in the Location header). This behavior can be changed by setting the followRedirects parameter to true.
API Integration Design:Understanding these status codes is critical for building robust integrations that can handle different server responses appropriately.
A Mule application uses the Database connector.
What condition can the Mule application automatically adjust to or recover from without
needing to restart or redeploy the Mule application?
Correct answer:
B. The database server was unavailable for four hours due to a major outage but is now
fully operational again
Explanation:
This answer is correct due to the connection pooling and retry mechanisms inherent in the Mule Database connector and the Mule runtime.
Connection Pooling:
The Database connector uses a pool of connections. When the database server becomes unavailable, active connections will fail. The pool will identify these as bad connections.
Automatic Recovery:
Once the database server comes back online, the Mule application will automatically recover when the next database operation is attempted. The connection pool will either:
Re-establish new connections to the database to replace the failed ones in the pool.
The connector's built-in reconnection strategy will periodically attempt to reconnect. Once successful, operations will resume normally.
No Restart Required:
This entire process of failure and recovery is handled dynamically by the runtime. As long as the application itself is still running, it can regain connectivity to the database without any intervention.
Analysis of Other Options:
A. One of the stored procedures being called by the Mule application has been renamed:
This is a application-level configuration error. The Mule application has a static configuration (the name of the stored procedure) that is now incorrect. The application will throw an error every time it tries to call the procedure. To fix this, the Mule application's configuration must be updated and the application must be redeployed.
C. The credentials for accessing the database have been updated and the previous credentials are no longer valid:
This is a configuration change. The database credentials are typically defined in the Mule application's configuration properties. When these properties change, the application cannot authenticate. The connection pool will fail to establish new connections. The application must be updated with the new credentials and redeployed (or, if using externalized configuration like CloudHub properties, the properties must be updated, which may trigger a runtime refresh, but a simple credential change in a properties file often requires a restart to be picked up by the connection pool).
D. The database server has been updated and hence the database driver library/JAR needs a minor version upgrade:
This requires a code/dependency change. The correct JDBC driver JAR must be included with the Mule application. Changing a dependency necessitates rebuilding the application and redeploying it.
Key Concepts/References:
Resilience and Fault Tolerance: Mule applications are designed to be resilient to temporary failures in external systems. The reconnection strategy is a key feature for this.
Connection Management: Understanding how connection pools work and their lifecycle is crucial. Pools can recover from network-level outages but not from configuration errors.
Types of Changes:
Runtime/Transient Failures: (e.g., network timeout, database restart). Auto-recovery is possible.
Configuration/Static Changes: (e.g., credentials, object names). Redeployment is required.
Dependency/Code Changes: (e.g., driver version, business logic). Rebuild and redeployment are required.
An organization has strict unit test requirement that mandate every mule application must
have an MUnit test suit with a test case defined for each flow and a minimum test coverage
of 80%.
A developer is building Munit test suit for a newly developed mule application that sends
API request to an external rest API.
What is the effective approach for successfully executing the Munit tests of this new
application while still achieving the required test coverage for the Munit tests?
Correct answer:
C. Mock the rest API invocation in the Munits and return a mock response for those
invocations
Explanation:
This is the most effective and standard approach for unit testing a component that has external dependencies.
Isolation of the Code Under Test:
The primary goal of a unit test (which MUnit is) is to test the logic of your Mule flow in isolation. By mocking the external REST API call, you eliminate any dependency on an external system. This makes the tests:
Reliable:
They will not fail due to network issues, downtime, or rate limiting on the external API.
Fast:
Mocked responses are returned instantly, allowing the test suite to execute quickly.
Predictable:
You can easily simulate various response scenarios (success, error, specific data payloads) to ensure your flow handles them correctly.
Achieving Test Coverage:
Mocking the external call allows the MUnit test to execute the entire flow, including the logic before and after the HTTP request, and the error handling around it. This is how you achieve the required 80% coverage for the flow's logic. Without mocking, if the external API is unavailable, the test would fail, and you would get 0% coverage for that flow.
MUnit's Built-in Capability:
MUnit provides powerful built-in features (like the processor) specifically designed to mock processors such as the HTTP Request operation. This is the idiomatic way to handle external dependencies in MUnit tests.
Analysis of Other Options:
A. Invoke the external endpoint of the rest API from the mule flows:
This is ineffective for unit testing. It creates a fragile test that depends on the external API's availability, performance, and data state. Tests will be slow, unreliable, and may produce different results over time. This approach is more suited for integration testing in a controlled environment, not for the mandatory unit test suite.
B. Mock the rest API invocations in the MUnits and then call the mocking service flow...:
This is redundant and incorrect. The phrase "mock the rest API invocations in the MUnits" is correct, but "and then call the mocking service flow" contradicts it. If you have already mocked the invocation within MUnit, there is no need to call an additional, separate mocking service flow. MUnit's mock is the mocking service for the test.
D. Create a mocking service flow to simulate standard responses from the rest API and then configure the mule flows to call the mocking service flow:
This is an incorrect approach for unit testing. This involves modifying the actual application flow to call a different endpoint (the mocking service) instead of the real API. This is a configuration change for the application itself, which:
Pollutes the production code with testing concerns.
Does not isolate the test; the test would now depend on the "mocking service flow" being deployed and available.
Is a technique used for higher-level (system/integration) testing, not for the isolated unit tests required by the question.
Key Concepts/References:
Unit Testing Principle: A unit test should test a unit of code in isolation by mocking its external dependencies.
MUnit Mocking: The ability to mock any processor within a flow, especially outbound endpoints like HTTP Request, Database Select, etc., is a core feature of MUnit.
Test Pyramid: Unit tests (fast, isolated, numerous) form the base of the pyramid. The approach in A and D is more appropriate for higher, slower, more brittle levels of the pyramid.
Reference: MuleSoft Documentation - MUnit Mocking (Specifically, how to use mock-when to simulate responses from external systems).
That's the last free question in Integration Techniques and Patterns
You've seen the free 25% of this topic (6 of 24 questions). Get complete access for every question, explanation and the timed exam simulator.
Our timed 2026 Salesforce MuleSoft Platform Integration Architect practice test mirrors the format, number of questions and time limit of the official exam.
The #1 challenge isn't just knowing the material, it's managing the clock. The simulation builds your speed and stamina, so you walk in knowing exactly what to expect.