Interview Prep/GitHub Actions/Speed, Caching & Cost

Builds download the same 2 GB ML model on every run. What do you do?

IntermediateScenarioSpeed, Caching & Cost
Answer

Situation read → Large static input; cache or move it.

What I'd do →

  1. actions/cache keyed on the model version: key: model-${{ vars.MODEL_VERSION }}.
  2. If it exceeds what the cache can hold well (with other caches), host it in S3 in the same region as self-hosted runners and pull with OIDC credentials.
  3. For ARC runners, bake it into the runner image or a node-local volume.

Why → Version-keyed caches never invalidate accidentally and restore in seconds.

Interview tip → Mention the repo cache quota as a constraint on big blobs.

All GitHub Actions questions Roadmap: GitHub Actions

More on Speed, Caching & Cost