Why should you not use file-based persistence for a Mule application on CloudHub?

Prepare for the MuleSoft Integration Architect exam. Study with flashcards and multiple-choice questions, each offering hints and explanations to deepen understanding. Ace your exam with our focused preparation tools!

Multiple Choice

Why should you not use file-based persistence for a Mule application on CloudHub?

Explanation:
In CloudHub, the file system is not a durable storage option. The runtime runs in containers with ephemeral disks, and local files can be lost when a worker restarts, scales, or moves. Because each worker often has its own isolated filesystem and there’s no guaranteed shared, long-term storage, relying on file-based persistence can lead to data loss and inconsistent state. To ensure durability, use external persistence such as databases or cloud storage (for example, a database, S3/Blob storage, etc.) and store state or large artifacts there instead of the local filesystem. CloudHub also restricts access to the underlying file system, so the idea of broad, unrestricted file access (like rooting into folders such as /etc) isn’t allowed. That’s why persistent file-based storage isn’t suitable on CloudHub.

In CloudHub, the file system is not a durable storage option. The runtime runs in containers with ephemeral disks, and local files can be lost when a worker restarts, scales, or moves. Because each worker often has its own isolated filesystem and there’s no guaranteed shared, long-term storage, relying on file-based persistence can lead to data loss and inconsistent state. To ensure durability, use external persistence such as databases or cloud storage (for example, a database, S3/Blob storage, etc.) and store state or large artifacts there instead of the local filesystem. CloudHub also restricts access to the underlying file system, so the idea of broad, unrestricted file access (like rooting into folders such as /etc) isn’t allowed. That’s why persistent file-based storage isn’t suitable on CloudHub.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy