A leading eCommerce giant will use MuleSoft APIs on Runtime Fabric (RTF) to process
customer orders. Some customer-sensitive information, such as credit card information, is
required in request payloads or is included in response payloads in some of the APIs.
Other API requests and responses are not authorized to access some of this customer sensitive information but have been implemented to validate and transform based on the
structure and format of this customer-sensitive information (such as account IDs, phone
numbers, and postal codes).
What approach configures an API gateway to hide sensitive data exchanged between API
consumers and API implementations, but can convert tokenized fields back to their original
value for other API requests or responses, without having to recode the API
implementations?
Later, the project team requires all API specifications to be augmented with an additional
non-functional requirement (NFR) to protect the backend services from a high rate of
requests, according to defined service-level.
agreements (SLAs). The NFR's SLAs are based on a new tiered subscription level "Gold",
"Silver", or "Platinum" that must be tied to a new parameter that is being added to the
Accounts object in their enterprise data model.
Following MuleSoft's recommended best practices, how should the project team now
convey the necessary non-functional requirement to stakeholders?
Correct answer:
C. Update each API specification with a shared RAML fragment required to implement the
NFR and publish the RAML fragment and each modified API specification to Exchange
Explanation:
The goal is to convey a non-functional requirement (an SLA-based rate limiting policy) within the API specification itself, following MuleSoft's design-first, contract-driven best practices. The specification should be the single source of truth for both functional and non-functional aspects of the API.
Let's evaluate the options:
A. Create and deploy API proxies... change the baseurl...:
This is an incorrect approach for conveying the requirement. This option describes an implementation step (creating proxies in API Manager) rather than a design step. The question asks how to "convey the necessary non-functional requirement to stakeholders." The way to convey the requirement is through the API contract (the specification), not by implementing it and then changing the endpoint URL. Stakeholders (like API consumers) need to understand the SLA before implementation.
B. Update each API specification with comments...:
This is a poor practice. While adding comments to the RAML might seem logical, comments are not a standardized, machine-readable way to define API contracts. They are informal and cannot be easily parsed or enforced by tools. MuleSoft's best practice is to use the formal, structured elements of the API specification.
C. Update each API specification with a shared RAML fragment...:
This is the correct answer. RAML fragments (specifically, Extension Fragments or Libraries containing traits or resource types) are the idiomatic way to extend an API specification with reusable functionality, including policies.
You can create a shared RAML fragment that defines a trait representing the rate-limiting SLA. This trait can include descriptive information about the "Gold," "Silver," and "Platinum" tiers.
This trait is then referenced (applied) within each API specification that requires this NFR. This makes the SLA a formal, discoverable part of the API contract.
Publishing both the shared fragment and the updated specifications to Exchange ensures all stakeholders have a clear, consistent, and reusable definition of the NFR.
D. Create a shared RAML fragment... list each API implementation endpoint in the RAML fragment...:
This is incorrect and architecturally flawed. A RAML fragment should define reusable contracts (types, traits, resource types), not contain a list of implementation endpoints. The endpoint URLs are specific to each API environment (dev, prod) and should be managed in the API Manager, not hardcoded into a shared, design-time fragment. This approach creates tight coupling and is not maintainable.
References: MuleSoft Documentation: API Design - Using Fragments - RAML fragments are promoted as the best practice for reusability and modularity in API design.
MuleSoft Documentation: Defining Policies in Design Center - While policies are applied in API Manager, the intent and description of SLA-based policies can be conveyed in the design phase using traits within the API specification or fragments.
Key Takeaway: To formally convey non-functional requirements like SLAs in an API contract, MuleSoft's best practice is to use reusable RAML fragments (traits). This makes the requirements a first-class, machine-readable part of the API specification, ensuring clarity for all stakeholders and promoting consistency across multiple APIs.
The AnyAirline organization's passenger reservations center is designing an integration
solution that combines invocations of three different System APIs (bookFlight, bookHotel,
and bookCar) in a business transaction. Each System API makes calls to a single
database.
The entire business transaction must be rolled back when at least one of the APIs fails.
What is the most idiomatic (used for its intended purpose) way to integrate these APIs in
near real-time that provides the best balance of consistency, performance, and reliability?
Correct answer:
C. mplement local transactions in each API implementation
Coordinate between the API implementations using a Saga pattern
Apply various compensating actions depending on where a failure occurs
Explanation
The key challenge is coordinating a "business transaction" across three independent System APIs, each with its own database, in a "near real-time" context. The requirement for a rollback if any part fails points towards a need for atomicity, but the distributed nature of the systems makes a traditional ACID transaction impractical.
Why C is Correct (Saga Pattern):
Consistency & Reliability:
The Saga pattern is the standard, idiomatic way to manage long-running business transactions across microservices or distributed systems. Instead of a distributed lock (like XA), it uses a sequence of local transactions. Each local transaction (e.g., bookFlight) is committed immediately.
Compensating Actions:
This is the core of the Saga pattern. If a subsequent step fails (e.g., bookCar fails), the Saga executes pre-defined compensating actions (e.g., cancelFlight, cancelHotel) to undo the previous steps and restore eventual consistency. This directly fulfills the requirement that "the entire business transaction must be rolled back."
Performance:
This approach provides the best performance among reliable options. It avoids the performance overhead and locking duration of a distributed XA transaction, which is significant. Resources (flight seats, hotel rooms) are locked for a much shorter period.
Why A and B are Incorrect (XA Transactions):
Technical Feasibility:
For XA to work, all participating resources (in this case, the three different databases behind the APIs) must be XA-compliant and configured to participate in a global transaction. This is often not the case, especially with external or legacy systems, and is a major architectural constraint.
Performance:
XA transactions use a two-phase commit (2PC) protocol, which involves multiple network round-trips and requires resources to be locked for the duration of the entire transaction. This is a performance bottleneck and is not suitable for "near real-time" systems where responsiveness is key.
Reliability:
A single point of failure in the transaction manager or a network partition during the commit phase can leave resources in an uncertain, locked state. Options A and B are architecturally heavy and often impractical for a distributed API-based architecture.
Why D is Incorrect (Hybrid XA/Saga):
This option mixes two different paradigms incorrectly. A Saga pattern is a coordination pattern that does not use an XA transaction manager. Stating "Implement an eXtended Architecture (XA) transaction manager in a Mule application using a Saga pattern" is a contradiction. Furthermore, "Connect each API implementation... using XA transactions" suffers from all the same drawbacks as A and B.
This is the definitive pattern for managing transactions across multiple services.
Concept: The Saga pattern is the go-to solution for long-lived transactions that span multiple services, using compensating transactions to roll back changes.
A manufacturing company is developing a new set of APIs for its retail business. One of the
APIs is a Master Look Up API, which is a System API,
The API uses a persistent object-store. This API will be used by almost all other APIs to
provide master lookup data.
The Master Look Up API is deployed on two CloudHub workers of 0.1 vCore each because
there is a lot of master data to be cached. Most of the master
lookup data is stored as a key-value pair. The cache gets refreshed if the key is not found
in the cache.
During performance testing, it was determined that the Master Look Up API has a high
response time due to the latency of database queries executed to fetch the master lookup
data.
What two methods can be used to resolve these performance issues?
Choose 2 answers
Correct answer:
A. Implement the HTTP caching policy for all GET endpoints for the Master Look Up API
D. Upgrade the vCore size from 0.1 vCore to 0.2 vCore
Explanation
The core issue is high response time due to database query latency. The solution must focus on reducing the number of times the database is queried and/or improving the resources available to handle the load.
Option A (Correct):
Implementing an HTTP Caching Policy is a highly effective solution. This policy would be applied to the Master Look Up API's GET endpoints in API Manager.
How it works:
When a client (another API) makes a request, the HTTP Caching policy can return the response directly from the API Gateway's cache without the request ever reaching the actual Mule application (the 0.1 vCore workers). This dramatically reduces response time and load on the backend.
Why it's ideal for this use case:
The data is master data (static or slowly changing) and is accessed by many other APIs. Caching this data at the gateway level means that repetitive calls for the same key-value pair are served instantly. It prevents the database from being hit for every single client request, which is the primary cause of the latency.
Option D (Correct):
Upgrading the vCore size is a direct way to improve performance.
How it works:
A 0.1 vCore is the smallest, least powerful worker size in CloudHub. It has limited CPU and memory. Upgrading to a 0.2 vCore (or larger) provides more processing power
Why it helps:
While caching will reduce database calls, the application itself still needs to handle cache-miss scenarios and any non-GET operations. A larger vCore provides more resources for the Mule runtime to process requests concurrently, manage the object store, and execute database queries faster when they are necessary. It reduces the chance of the worker becoming a bottleneck under load.
Option B (Incorrect):
This option is a duplicate of Option A. The text is identical. In the exam, this would be an error, and you should only select one of the identical options if it's correct. In this case, A is the correct concept.
Option C (Incorrect):
Implementing locking on the Object Store is not only unnecessary but would worsen the performance issue.
Reason:
The Object Store v2 connector in Mule 4 is designed to be thread-safe and handle concurrent access internally. Manually adding synchronization (locking) would force requests to be processed sequentially instead of in parallel. This would create a massive bottleneck, increasing response times significantly, especially under high load. The object store is not the source of the latency; the database is.
Reference / Key Concept
API-Led Connectivity & Caching:
System APIs, like this Master Look Up API, are perfect candidates for caching strategies because they provide raw data from source systems.
API Manager Policies:
The HTTP Caching policy is a foundational policy for improving performance and reducing backend load.
CloudHub Worker Sizes:
Understanding that vCore size directly correlates to the CPU and memory resources available to an application is crucial for capacity planning. A 0.1 vCore worker is suitable for development or very low-volume scenarios but is often inadequate for high-use, foundational APIs in a production environment.
In summary, the best approach is a combination of reducing the load (with HTTP Caching) and increasing the capacity (with a larger worker) to handle the remaining load efficiently.
An airline is architecting an API connectivity project to integrate its flight data into an online
aggregation website. The interface must allow for secure communication high-performance
and asynchronous message exchange.
What are suitable interface technologies for this integration assuming that Mulesoft fully
supports these technologies and that Anypoint connectors exist for these interfaces?
Correct answer:
A. AsyncAPI over HTTPS
AMQP with RabbitMQ JSON/REST over HTTPS
Explanation:
This option best meets all three core requirements: security, high-performance, and asynchronous message exchange.
Asynchronous Message Exchange & High-Performance:
AMQP with RabbitMQ:
The Advanced Message Queuing Protocol (AMQP) with a broker like RabbitMQ is a industry-standard solution for high-performance, asynchronous messaging. It is specifically designed for this purpose. The airline can publish flight update messages (e.g., delays, status changes) to a RabbitMQ queue, and the aggregation website can consume them asynchronously, ensuring decoupling and reliable delivery. This is the ideal technology for the async requirement.
Secure Communication:
All protocols over secure layers:
The option specifies AMQP (which can be secured with TLS/SSL) and HTTPS (which is HTTP over TLS/SSL). This meets the secure communication requirement.
Modern API Standards & Flexibility:
AsyncAPI over HTTPS:
AsyncAPI is a specification for describing asynchronous APIs (like those using AMQP), similar to what OpenAPI is for REST. Using it represents a modern, well-architected approach.
JSON/REST over HTTPS:
This provides a complementary, synchronous API interface for operations like initial data loads, specific queries, or other request-reply interactions that are also part of the integration. The combination of async (AMQP) and sync (REST) offers a complete solution.
Analysis of Other Options:
B. XML over ActiveMQ XML over SFTP XML/REST over HTTPS:
This option is weaker than A. While ActiveMQ (often using JMS) provides asynchronous messaging, AMQP/RabbitMQ is often considered more lightweight and performant for web-based scenarios.
More importantly, the inclusion of XML over SFTP is unnecessary and adds complexity for a simple website integration. SFTP is for batch file transfer, not for high-performance, real-time message exchange. The mix of technologies is less coherent than in option A.
C. CSV over FTP YAML over TLS JSON over HTTPS:
This option is poor. FTP is insecure (credentials and data are sent in clear text).
CSV over FTP and YAML are not standard technologies for real-time API integration; they are typically used for batch data exchange or configuration.
It completely lacks a dedicated technology for asynchronous message exchange.
D. SOAP over HTTPS JMS over TLS gRPC over HTTPS:
This option has some merit but is less ideal than A.
JMS provides asynchronous messaging, but it is a Java-specific API. While Mule supports it, AMQP is a more open, language-agnostic protocol, making it a better fit for integrating with an external "online aggregation website" that may not be Java-based.
SOAP is a heavyweight, XML-based protocol that is less performant and less modern than REST/JSON or gRPC.
gRPC is high-performance but is primarily a synchronous RPC framework. Its support for true async messaging is not as straightforward as using a dedicated message broker like RabbitMQ.
Key Concepts/References:
Integration Styles: Recognizing the need for both Asynchronous Messaging (for event-driven updates) and Request-Reply (for queries). The best solution often combines both.
Protocol Selection: Choosing the right tool for the job:
An organization is designing an integration Mule application to process orders by
submitting them to a back-end system for offline processing. Each order will be received by
the Mule application through an HTTPS POST and must be acknowledged immediately.
Once acknowledged, the order will be submitted to a back-end system. Orders that cannot
be successfully submitted due to rejections from the back-end system will need to be
processed manually (outside the back-end system).
The Mule application will be deployed to a customer-hosted runtime and is able to use an
existing ActiveMQ broker if needed. The ActiveMQ broker is located inside the
organization’s firewall. The back-end system has a track record of unreliability due to both
minor network connectivity issues and longer outages.
What idiomatic (used for their intended purposes) combination of Mule application
components and ActiveMQ queues are required to ensure automatic submission of orders
to the back-end system while supporting but minimizing manual order processing?
Correct answer:
A. An Until Successful scope to call the back-end system
One or more ActiveMQ long-retry queues
One or more ActiveMQ dead-letter queues for manual processing
Explanation:
This answer correctly leverages the strengths of both Mule components and the external ActiveMQ broker to build a robust, reliable messaging system.
Immediate Acknowledgment & Decoupling:
The order is received via HTTPS POST and acknowledged immediately. The key to achieving this while dealing with an unreliable backend is to decouple the receipt of the order from its processing. The order should be placed into a durable queue right after acknowledgment. This is the role of the ActiveMQ long-retry queue.
Automatic Retry with Until Successful Scope:
A separate flow reads from the ActiveMQ queue and uses an Until Successful scope to call the back-end system. The Until Successful scope is designed precisely for this purpose: it will repeatedly attempt the operation until it succeeds or meets a configured failure condition (e.g., max retries, timeout). This handles the "minor network connectivity issues" automatically.
Handling Permanent Failures with a Dead-Letter Queue (DLQ):
If the Until Successful scope exhausts all its retries (indicating a "longer outage" or a permanent rejection from the backend), the message must be moved to a location for "manual processing." In messaging systems, this is the standard function of a Dead-Letter Queue (DLQ). The Mule application would be configured to redirect failed messages to an ActiveMQ DLQ. Support staff can then monitor this queue and process the orders manually.
This pattern (Primary Queue -> Consumer with Retries -> Dead-Letter Queue) is a standard, idiomatic approach for ensuring reliability in integration architecture.
Analysis of Other Options:
B. ...Until Successful scope containing VM components for long retries. A persistent dead-letter VM queue configured in CloudHub.
Critical Flaw:
The application is deployed to a customer-hosted runtime, not CloudHub. Therefore, a "VM queue configured in CloudHub" is impossible and meaningless. The VM connector in a customer-hosted runtime is local to that Mule node and is not persistent or clustered across nodes unless using a persistent object store, which is more complex than using the existing, dedicated ActiveMQ broker.
C. ...One or more ActiveMQ long-retry queues. A persistent dead-letter object store configured in the CloudHub Object Store service.
Critical Flaw:
Same as B. The solution cannot rely on a CloudHub service because the runtime is customer-hosted. The CloudHub Object Store service is not available. An Object Store could be used, but it's not the standard messaging pattern for this scenario and is less manageable than a dedicated DLQ.
D. A Batch Job scope... An Until Successful scope containing Object Store components for long retries. A dead-letter object store...
Incorrect Component Choice:
A Batch Job scope is designed for processing large volumes of data that can be broken into individual records. It is not suitable for processing individual, real-time orders received via an API call. It is overkill and introduces unnecessary batch semantics.
Suboptimal Persistence:
While an Object Store can be made persistent, using it to build a retry mechanism is reinventing the wheel. The Until Successful scope can use an Object Store for its state, but the requirement to have an existing ActiveMQ broker makes using queues a much more natural, scalable, and manageable choice. A DLQ in ActiveMQ is a first-class concept, whereas a "dead-letter object store" would be a custom implementation.
Key Concepts/References:
Reliable Messaging Patterns: This solution implements the "Guaranteed Delivery" and "Dead Letter Channel" patterns.
Decoupling: Using a message queue to separate the ingestion of a request from its processing is fundamental to building resilient systems.
Idiomatic Use of Components:
Until Successful: For operations that must eventually succeed.
Message Broker (ActiveMQ): For durable, persistent queuing with built-in DLQ support.
Environment Awareness: The architect must note the deployment target (customer-hosted) and available infrastructure (existing ActiveMQ broker) to rule out CloudHub-specific solutions.
That's the last free question in Application Network and API-led Connectivity
You've seen the free 25% of this topic (5 of 23 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.