D5: Optimizing Workflow Performance & Cost
GH-200 GitHub Actions exam practice questions · 11 flashcards
Question
Caching dependencies?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 Optimizing Workflow Performance & Cost practice questions and answers
- Caching dependencies?Reduces install time and minutes.
- Artifact retention tuning?Shorter retention reduces storage cost; set via settings or REST API.
- concurrency with cancel-in-progress?Cancel superseded runs on same branch/PR.
- Path filters?Skip workflows when unrelated files change.
- Smaller matrices?Test fewer combinations on PRs, full matrix nightly.
- Linux vs Windows/macOS cost?Linux minutes cheapest; macOS most expensive multiplier.
- Parallelizing jobs?Split tests across jobs/shards.
- Larger runners trade-off?Faster but higher per-minute cost.
- Timeouts to avoid runaway jobs?Set timeout-minutes.
- Scaling strategies?Self-hosted autoscaling, reusable workflows, merge queue, job dependencies tuned.
- Scenario: 5 pushes in a row each trigger 20-minute CI. Optimization?concurrency group with cancel-in-progress: true.