Skip to content

Consume and troubleshoot workflows Questions

Practice questions for Consume and troubleshoot workflows topic in GitHub Actions. 39 questions covering this domain.

39 questions10 easy18 medium11 hard
Q1
hard

Two parallel jobs in the same workflow both use `actions/upload-artifact@v4` with the artifact name `build-output`. What is the best fix?

Q2
easy

What is the primary purpose of dependency caching in GitHub Actions?

Q3
easy

Which feature should you use to share build output from one job to a later job in the same workflow run?

Q4
medium

What does GitHub do when a downloaded artifact's computed digest does not match the digest recorded at upload time?

Q5
medium

A team wants build artifacts from one workflow to expire sooner than the repository default. What should they configure when uploading the artifact?

Q6
medium

A dependency cache lookup does not find an exact match for its primary key. What does GitHub Actions check next if `restore-keys` are defined?

Q7
easy

What does a GitHub Actions workflow status badge indicate?

Q8
medium

A workflow fails and an engineer uses the log search box but cannot find text from a failed step. What should they do first?

Q9
medium

A job on a feature branch attempts to restore a dependency cache. Which source is checked after caches on the current branch if no match is found?

Q10
hard

A repository has accumulated more than 10 GB of caches, and some entries have not been used for over a week. What behavior should the team expect?

Q11
medium

A workflow calls a reusable workflow by a branch name. If you rerun all jobs for a previous run, which reusable workflow version is used?

Q12
hard

An engineer debugs a shared automation and sees only one caller step in the logs, not the internal steps. Which reusable mechanism most likely caused ...

Q13
hard

Workflow A calls reusable workflow B, and B calls reusable workflow C. C is not accessible to the original caller. What happens?

Q14
easy

What branch does a workflow status badge show by default?

Q15
medium

A workflow calls a reusable workflow by a branch name. If you rerun only a failed job from an earlier run, which reusable workflow version is used?

Q16
hard

A team renamed the repository that hosted a reusable workflow, but left caller YAML unchanged. What should they expect?

Q17
medium

A scheduled workflow on a public fork never runs, even though its cron syntax is valid. What is the documented reason?

Q18
medium

A scheduled workflow in a public repository stopped running after long inactivity. What should you expect?

Q19
easy

A job uses download-artifact without specifying a name. How are the files placed on disk?

Q20
easy

A team wants a starting template that each repository can customize independently after creation. Which option fits best?

Sign in to see all 39 questions

Create a free account to browse all questions — completely free during our launch phase.