GitHub GH-200 Actual Exam Questions
124 Questions & Answers
GH-200 GitHub Actions practice questions covering workflow permissions, artifacts, caching, job conditions, and workflow security. Select Reveal Solution after choosing your answer.
A workflow only needs to read repository contents and upload a build artifact. How should its token permissions be configured?
Reveal Solution
Apply least privilege by granting only the permissions required for the workflow tasks, preferably at the narrowest useful scope.
A build job produces a package that a separate test job must download during the same workflow run. Which feature should connect the jobs?
Reveal Solution
Workflow artifacts let jobs preserve and pass files between jobs in a run without rebuilding them.
A dependency cache should be reused only when the dependency lock file has not changed. What should the cache key include?
Reveal Solution
Including a lock-file hash invalidates the cache when declared dependencies change. Platform context helps avoid using incompatible cached files.
A deployment job should run only after tests succeed and only for pushes to the protected production branch. Which design is appropriate?
Reveal Solution
A job dependency ensures the test job completes successfully first, and a condition can restrict deployment to the intended branch or event context.
A repository uses third-party actions in workflows. Which practice best reduces risk from an action changing unexpectedly?
Reveal Solution
Pinning to a full commit SHA makes the referenced action version explicit and immutable; updates can then be reviewed and applied intentionally.
Get all 124 questions and answers in the Premium PDF.