Interview Prep/CI/CD/GitHub Actions

Teams complain CI is slow because jobs wait for a GitHub-hosted runner with Docker-in-Docker and large resources.

AdvancedScenarioGitHub Actions
Answer

Situation read → Standard runners are too small or queues are long.

What I'd do →

  1. Use larger GitHub-hosted runners for heavy jobs or self-hosted ARC runners with right-sized pods.
  2. Cache Docker layers via cache-to: type=gha or a registry cache, and build with BuildKit.
  3. Split the pipeline so only the heavy job takes the big runner.

Why → Right-sizing is cheaper than putting everything on big machines.

Interview tip → Measure first: look at job timing graphs.

All CI/CD questions

More on GitHub Actions