Yak provides three different file roles. Choose by who owns the data and how long it must live:

SurfaceData ownerLifetimeChoose it for
Volume YakDurable across InvocationsCheckpoints, artifacts and files shared with later Tasks
Object Storage Mount Your S3-compatible providerExisting bucket or prefix; mounted during a Task InvocationReading datasets or writing objects directly to your object store
Ephemeral Disk Yak executionOne InvocationBounded 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.