ย ๐Ÿ””If you experience any difficulties before or after finalizing your order, please reach out to us through email at support@ciscoforall.com

GH-200 GitHub Actions Free Practice Questions and Answers

in GitHub

GitHub GH-200 Actual Exam Questions

Last updated on Oct 31, 2026.

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.

Question #6 Topic: Workflow permissions

A workflow only needs to read repository contents and upload a build artifact. How should its token permissions be configured?

  • A. Grant only the required read permission and the artifact-related permission needed by the job
  • B. Grant every available permission to every workflow
  • C. Use a personal account password as the token
  • D. Disable token permission controls for the repository
Reveal Solution
Correct Answer: A
Apply least privilege by granting only the permissions required for the workflow tasks, preferably at the narrowest useful scope.
Question #7 Topic: Artifacts

A build job produces a package that a separate test job must download during the same workflow run. Which feature should connect the jobs?

  • A. Upload the package as an artifact in the build job and download it in the test job
  • B. Store the package in the workflow run name
  • C. Add the package binary to a job output string
  • D. Re-run the build independently and assume identical output
Reveal Solution
Correct Answer: A
Workflow artifacts let jobs preserve and pass files between jobs in a run without rebuilding them.
Question #8 Topic: Dependency caching

A dependency cache should be reused only when the dependency lock file has not changed. What should the cache key include?

  • A. A hash of the lock file, along with relevant operating-system or runtime context
  • B. The repository description only
  • C. A random value generated for each run
  • D. The workflow display name with no dependency information
Reveal Solution
Correct Answer: A
Including a lock-file hash invalidates the cache when declared dependencies change. Platform context helps avoid using incompatible cached files.
Question #9 Topic: Conditional execution

A deployment job should run only after tests succeed and only for pushes to the protected production branch. Which design is appropriate?

  • A. Set the job dependency on the test job and apply a branch condition to the deployment job
  • B. Remove all job dependencies and run deployment on every event
  • C. Put the branch name in a comment and rely on reviewers to notice
  • D. Run deployment before tests so failures are detected sooner
Reveal Solution
Correct Answer: A
A job dependency ensures the test job completes successfully first, and a condition can restrict deployment to the intended branch or event context.
Question #10 Topic: Action supply-chain security

A repository uses third-party actions in workflows. Which practice best reduces risk from an action changing unexpectedly?

  • A. Pin actions to a reviewed full commit SHA and update pins through a controlled review process
  • B. Reference every action by a mutable branch name and never review updates
  • C. Copy access tokens into the action’s public input fields
  • D. Allow all actions to access every secret by default
Reveal Solution
Correct Answer: A
Pinning to a full commit SHA makes the referenced action version explicit and immutable; updates can then be reviewed and applied intentionally.
Get the Full Question Set

Order Premium PDF โ†’

Get all 124 questions and answers in the Premium PDF.

Cart (0)

  • Your cart is empty.