🔔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 exam practice questions for reviewing common workflow design and automation concepts. Select Reveal Solution after choosing your answer.

Question #1 Topic: Workflow triggers

A team wants a workflow to run when a pull request targets the main branch. Which trigger configuration best fits this requirement?

  • A. Use the pull_request event with a branch filter for main
  • B. Use only a weekly schedule event
  • C. Use workflow_dispatch without any event filter
  • D. Use release with a published-type filter
Reveal Solution
Correct Answer: A
The pull_request event supports branch filters to target pull requests for main.
Question #2 Topic: Reusable workflows

A platform team needs several repositories to call the same centrally maintained deployment workflow. What should the team create?

  • A. A workflow configured with workflow_call, then reference it from caller workflows
  • B. A separate manually copied workflow in every repository
  • C. A composite action that starts an entire independent workflow run
  • D. A repository secret containing the workflow YAML
Reveal Solution
Correct Answer: A
Reusable workflows can be exposed with workflow_call and invoked by caller workflows.
Question #3 Topic: Secure cloud authentication

A deployment workflow must authenticate to a cloud provider without storing a long-lived client secret in GitHub. Which approach should be preferred when supported by the provider?

  • A. OpenID Connect federation using a short-lived token and a narrowly scoped cloud role
  • B. Put the client secret in a workflow file
  • C. Use a personal access token shared by all contributors
  • D. Print a temporary credential to the workflow log
Reveal Solution
Correct Answer: A
OIDC can exchange a GitHub identity token for short-lived cloud credentials; scope the role narrowly.
Question #4 Topic: Deployment protection

A production deployment should pause until an authorized reviewer approves it. Which GitHub Actions feature is designed for this gate?

  • A. A protected environment with required reviewers
  • B. A matrix strategy with additional operating systems
  • C. A cache key that includes the commit SHA
  • D. A concurrency group with cancellation enabled
Reveal Solution
Correct Answer: A
Environment protection rules can require reviewer approval before a deployment proceeds.
Question #5 Topic: Matrix strategy

A test job must run the same test suite on three supported runtime versions. Which strategy is the most maintainable?

  • A. Define a matrix variable for the runtime versions and reference it in the job
  • B. Create a separate repository for each runtime
  • C. Duplicate the workflow steps in three unrelated files
  • D. Test only the newest runtime
Reveal Solution
Correct Answer: A
A matrix runs the job for each defined value while keeping the steps in one maintainable workflow.

Categories: GitHub

Cart (0)

  • Your cart is empty.