Yak provides three different file roles. Choose by who owns the data and how long it must live:
| Surface | Data owner | Lifetime | Choose it for |
|---|---|---|---|
| Volume | Yak | Durable across Invocations | Checkpoints, artifacts and files shared with later Tasks |
| Object Storage Mount | Your S3-compatible provider | Existing bucket or prefix; mounted during a Task Invocation | Reading datasets or writing objects directly to your object store |
| Ephemeral Disk | Yak execution | One Invocation | Bounded scratch files, temporary indexes and intermediate data |
These surfaces can work together. For example, read a durable external dataset through an Object Storage Mount, transform it using an Ephemeral Disk working set, then write a checkpoint to a Volume. The original object store remains external, scratch is removed with the Invocation, and only the Volume checkpoint persists in Yak storage.
Use Secrets when a Task needs credentials. Object Storage Mount credentials must be a named Secret; the SDK sends the Secret name for server-side resolution.