Salesforce-MuleSoft-Developer-II Practice Test

Salesforce Spring 25 Release
60 Questions

A Mule application deployed to multiple Cloudhub 2.0 replicas needs to temporarily persist large files over 10MB between flow executions, and routinely needs to query whether the file data exists on separate executions. How can this be achieved?

A. Store the contents of the file on separate storage, and store the key and location of the file Object using Object Store v2

B. Use an in-memory Object Store

C. Store the key and full contents of the file in an Object Store

D. Store the key and full contents of the file, caching the filename and location between requests

A.   Store the contents of the file on separate storage, and store the key and location of the file Object using Object Store v2

Explanation:

In CloudHub 2.0, applications are deployed as replicas (across multiple nodes/containers). This introduces two critical challenges when dealing with large temporary files:

1. In-memory data does not persist across executions or replicas.
2. Object Store v2 is designed for small to medium-sized data (up to ~10MB), not for large files.

Hence, for large files (>10MB) and cross-execution persistence, best practice is:

✅ Store the actual file contents in external storage (e.g., Amazon S3, Azure Blob, etc.)
✅ Store the file reference (key, URI, metadata) in Object Store v2 so flows can:
➥ Retrieve metadata
➥ Check if file exists
➥ Access the file from external storage when needed

This approach is scalable, replica-safe, and aligned with MuleSoft CloudHub 2.0 architecture.

❌ Why other options are incorrect:

B. Use an in-memory Object Store
🔸 Wrong: In-memory Object Stores are not shared across replicas and are volatile — data is lost on restart or failover.

C. Store the key and full contents of the file in an Object Store
🔸 Wrong: Object Store v2 is not intended for large payloads. Storing >10MB in Object Store can cause failures or performance degradation.

D. Store the key and full contents of the file, caching the filename and location between requests
🔸 Wrong: This is vague and assumes local caching, which won’t persist across replicas or restarts.

🔗 Reference:
MuleSoft Docs – Object Store v2
CloudHub 2.0 Architecture
Best Practices for Large Payloads

Salesforce-MuleSoft-Developer-II Practice-Test - Home Previous
Page 11 out of 60 Pages