MULESOFT-PLATFORM-ARCHITECT-I practice question 11 of 25

An organization is implementing a Quote of the Day API that caches today's quote. What scenario can use the GoudHub Object Store via the Object Store connector to persist the cache's state?

Full set: 152 questions

Domain Delivering and Managing APIs

Answer options
A: When there are three CloudHub deployments of the API implementation to three separate CloudHub regions that must share the cache state
B: When there are two CloudHub deployments of the API implementation by two Anypoint Platform business groups to the same CloudHub region that must share the cache state
C: When there is one deployment of the API implementation to CloudHub and anottV deployment to a customer-hosted Mule runtime that must share the cache state
D: When there is one CloudHub deployment of the API implementation to three CloudHub workers that must share the cache state Correct answer
Correct Answer:
D. When there is one CloudHub deployment of the API implementation to three CloudHub workers that must share the cache state
Explanation

The CloudHub Object Store (OSv2) is designed to provide a distributed, shared, and persistent key-value store for a single Mule application deployed to CloudHub. When an application is scaled horizontally across multiple workers, all workers for that specific application instance share the same underlying Object Store. This ensures that if one worker caches the "Quote of the Day," all other workers handling subsequent requests for the same API can access that same cached value, providing a consistent state across the deployment.

Why Incorrect

A. CloudHub Object Stores are region-specific. Deployments in different regions (e.g., US-East, EU-West) cannot access each other's Object Store data, making shared caching impossible across regions.
B. Anypoint Platform business groups and their corresponding environments provide isolation. Object Stores are scoped to a specific environment and cannot be shared across different business groups.
C. The CloudHub Object Store is a managed service exclusive to the CloudHub platform. A customer-hosted Mule runtime operates outside of CloudHub and cannot natively access this service.

References

1. MuleSoft Documentation, "Object Store v2":

Section: Object Store in CloudHub: "In CloudHub, Object Store v2 is the default implementation of the Object Store. All workers for a Mule application share the same object store." (This directly supports answer D).

Section: Object Store v2 FAQ: "Is Object Store v2 data shared across regions? No. Object Store v2 is a regional service. Data stored in one region is not available in another region." (This refutes answer A).

2. MuleSoft Documentation, "Environments":

Section: Environments: "Environments are used to organize deployments of Mule applications. Each environment is a logically separate space... Anypoint Platform isolates environments from each other..." (This principle of isolation supports the refutation of answer B, as Object Stores are scoped to an environment).

3. MuleSoft Documentation, "Object Store Connector":

Section: Object Store Persistence: This section details that for non-CloudHub deployments (like customer-hosted runtimes), the default persistence is in-memory or file-based, local to that runtime, and not connected to the CloudHub service. (This refutes answer C).

Scroll to Top