Free GH-200: GitHub Actions Exam Questions and Answers
GitHub Actions Exam is exam GH-200, part of Microsoft Certifications. Microsoft exam codes name the solution area rather than the level — AZ for Azure, DP for data, MS for Microsoft 365, PL for Power Platform, SC for security, AI for Azure AI — with one reliable rule: any exam numbered 900 or 901 is Fundamentals. Every technical exam is scored from 1 to 1000 with 700 to pass, a scaled score Microsoft notes is explicitly not 70% of the marks.
If you searched for GH-200 dumps, a GH-200 ExamTopics discussion or a free GH-200 PDF, this is the GitHub Actions Exam question bank: practice questions with verified answers and explanations, a timed GH-200 practice test and updates whenever Microsoft changes the exam.
Last updated: October 30, 2026
- Exam code
- GH-200
- Provider
- Microsoft
- Questions in our bank
- 1000+
- Free to read
- First 10, with answers
- Our test mode duration & pass mark
- 130 mins · 70%
- Verified answers
- Reviewed weekly
Recommended: Switch to Test Mode to start a practice test that simulates the real exam experience.
Question #1
Your organization contains a repository named platform that has a reusable workflow at .github/workflows/deploy.yml. The reusable workflow contains the following. on: workflow_call: inputs: target: type: string required: true jobs: deploy: runs-on: ubuntu-latest steps: - run: ./deploy.sh "${{ inputs.target }}" env: API_KEY: ${{ secrets.API_KEY }} A repository named storefront in the same organization has a repository secret named API_KEY and the following workflow job. jobs: call-deploy: uses: contoso/platform/.github/workflows/deploy.yml@v2 with: target: staging When the storefront workflow runs, deploy.sh fails because API_KEY is empty. You need to fix the problem. What should you do?
Correct answer: B
Explanation
Secrets are not passed automatically to a reusable workflow. The caller must either map them under secrets: or use secrets: inherit, which is allowed because both repositories are in the same organization. The with section carries only inputs, and declaring API_KEY as an input would still leave it unset because the caller never supplies it. The permissions key controls GITHUB_TOKEN scopes and has no effect on repository secrets.
Continue with GH-200: GitHub Actions Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in GH-200: GitHub Actions Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #2
You have a workflow job that runs unit tests and writes the results to a Markdown table in a shell variable named REPORT. You need the table to be displayed on the summary page of the workflow run. What should you do in the step?
Correct answer: C
Explanation
Markdown appended to the file referenced by GITHUB_STEP_SUMMARY is rendered on the run's summary page. GITHUB_OUTPUT sets step outputs for later steps and jobs. A ::notice:: command creates a single-line annotation, not a rendered table. GITHUB_ENV defines environment variables for later steps.
Continue with GH-200: GitHub Actions Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in GH-200: GitHub Actions Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #3
You are developing a composite action. A workflow that uses the action fails with the error "Required property is missing: shell". The action.yml file contains the following. name: Lint description: Runs the linter runs: using: composite steps: - run: npm run lint You need to fix the error. What should you do?
Correct answer: C
Explanation
Every run step in a composite action must declare a shell, because the action has no default shell inherited from the calling job. The runs-on setting belongs to workflow jobs, not action metadata. Changing the type to node20 would require a main entry point file. An id only allows later steps to reference this step.
Continue with GH-200: GitHub Actions Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in GH-200: GitHub Actions Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #4
A job contains the following strategy. strategy: matrix: os: [ubuntu-latest, windows-latest] version: [14, 16] include: - os: ubuntu-latest version: 18 - os: macos-latest version: 16 exclude: - os: windows-latest version: 14 How many jobs does the workflow run for this matrix?
Correct answer: C
Explanation
The base matrix has 4 combinations, and the exclude entry removes windows-latest with 14, leaving 3. Excludes are evaluated before includes. Each include entry would overwrite an original matrix value (version 18 replaces 14 or 16, and macos-latest replaces the os value) in any existing combination, so each creates a new job. That adds 2 jobs, for a total of 5.
Continue with GH-200: GitHub Actions Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in GH-200: GitHub Actions Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #5
A repository contains a Docker container action in .github/actions/scan, with an action.yml file and a Dockerfile in that directory. A workflow in the same repository contains the following job. jobs: scan: runs-on: ubuntu-latest steps: - uses: ./.github/actions/scan The job fails with the error "Can't find 'action.yml', 'action.yaml' or 'Dockerfile' for action". The action.yml file is valid. You need to fix the problem. What should you do?
Correct answer: D
Explanation
A local action referenced by path is read from the workspace on the runner, so the repository must be checked out first. Both action.yml and action.yaml are valid metadata file names, so renaming changes nothing. Actions can live in any directory, so moving them is not needed. The docker:// prefix refers to an image in a registry, not a path in the repository.
Continue with GH-200: GitHub Actions Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in GH-200: GitHub Actions Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #6
You write a script that calls the GitHub REST API to create a repository secret. What must the script do with the secret value before sending it in the request?
Correct answer: B
Explanation
The create-or-update secret endpoint requires the value to be encrypted with the repository's public key, retrieved from the API, by using libsodium sealed boxes. The result is then Base64 encoded and sent with the key_id. Base64 alone is an encoding, not encryption. Hashing is one way and the secret could not be recovered at runtime. A personal access token is used for authentication, not for encrypting the value.
Continue with GH-200: GitHub Actions Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in GH-200: GitHub Actions Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #7
Your organization has 13 repositories whose workflows use a credential named API_TOKEN in nonproduction jobs. One of the repositories, orders-service, also has a production deployment job. The production job must use a different API_TOKEN value than the other jobs and must not start until a release manager approves it. You need to store the credentials so that each job receives the correct value. Which two actions should you perform? Each correct answer presents part of the solution. (Choose two.) NOTE: Each correct selection is worth one point.
Select 2 answers.
Correct answer: C, D
Explanation
An organization secret shared with selected repositories supplies the nonproduction value, and an environment secret in production overrides it for jobs that reference that environment. Required reviewers are an environment protection rule, so approval and the production value are both handled there. A variable is stored as plain text and is not suitable for a credential, and repository secrets have no approval gate.
Continue with GH-200: GitHub Actions Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in GH-200: GitHub Actions Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #8
You maintain a public repository named fabrikam/tools that contains two actions. Each action is defined by an action.yml file in its own folder, build/ and deploy/. You need to list both actions on GitHub Marketplace. What should you do?
Correct answer: B
Explanation
A Marketplace listing is tied to a repository and requires a single action metadata file in the repository root, so each action needs its own repository. Folder-level tags and multiple metadata files are not supported by the listing process. A wrapper composite action would produce one listing, not two.
Continue with GH-200: GitHub Actions Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in GH-200: GitHub Actions Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #9
You have the following workflow. ```yaml env: DEPLOY_ENABLED: 'true' jobs: deploy: if: ${{ env.DEPLOY_ENABLED == 'true' }} runs-on: ubuntu-latest steps: - run: ./deploy.sh ``` The workflow fails validation with an error that the env context is not recognized in jobs.deploy.if. You need to control whether the deploy job runs by using a value that administrators can change without editing the workflow file. What should you do?
Correct answer: C
Explanation
The jobs.<job_id>.if key can read the github, needs, vars and inputs contexts, but not env, so a configuration variable read through the vars context works and can be changed in settings. The env context is not available there at any level. The secrets context is also unavailable in job conditions, and github.env is not a defined property.
Continue with GH-200: GitHub Actions Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in GH-200: GitHub Actions Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Question #10
You need a script to download the artifact named coverage-report that was uploaded by workflow run 8841 in the repository contoso/web-shop. The script authenticates with a token that has the actions: read permission and uses the GitHub REST API. Which sequence of calls should the script make?
Correct answer: A
Explanation
Artifacts are listed per workflow run, and the response includes numeric IDs. The download endpoint takes the artifact ID, so the script must list first and then request the zip archive. The logs archive contains only log files, the download URL does not accept a name, and artifacts are not exposed per job.
Continue with GH-200: GitHub Actions Exam
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in GH-200: GitHub Actions Exam, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
Discussion
Explain your reasoning, not just the letterOther Microsoft certifications
- AZ-500: Microsoft Azure Security Technologies (opens in a new tab)
- MS-101: Microsoft 365 Mobility and Security (opens in a new tab)
- MS-102: Microsoft 365 Administrator (beta) (opens in a new tab)
- MS-100: Microsoft 365 Identity and Services (opens in a new tab)
- PL-900: Microsoft Power Platform Fundamentals (opens in a new tab)
- AZ-305: Designing Microsoft Azure Infrastructure Solutions (opens in a new tab)
- MS-900: Microsoft 365 Fundamentals (opens in a new tab)
- AZ-400: Microsoft Azure DevOps Solutions (opens in a new tab)
- AZ-900: Microsoft Azure Fundamentals (opens in a new tab)
- 70-740: Installation, Storage, and Compute with Windows Server 2016 (opens in a new tab)
- MD-102: Endpoint Administrator (beta) (opens in a new tab)
- PL-300: Microsoft Power BI Data Analyst (opens in a new tab)
Reviews
Write a review★★★★★
Exam Practice is worth every penny. The mock exams are realistic, and the feedback helped me focus on key areas.
Amit SharmaVerified buyer
★★★★★
I highly recommend Exam Practice. The feedback after each test helped me improve significantly, and I passed my exams easily.
Oscar NyströmVerified buyer
★★★★★
This platform is a lifesaver. The practice questions and explanations are so detailed. It’s the best study tool I’ve ever used.
Hannah SmithVerified buyer
FAQ
Learn More: https://learn.microsoft.com/en-us/credentials/
- Q1: What is the GH-200: GitHub Actions Exam exam?
- A: GH-200: GitHub Actions Exam is a Microsoft certification exam. Judging by the questions in our bank, it concentrates on workflow, github, runner, self-hosted and developer.
- Q2: What topics does the GH-200: GitHub Actions Exam exam cover?
- A: Questions in our GH-200: GitHub Actions Exam bank cluster around workflow, github, runner, self-hosted, developer, token, runners and script. Working through the full set is the quickest way to find which of these you are weakest on.
- Q3: How should I prepare for GH-200: GitHub Actions Exam?
- A: Work through the GH-200: GitHub Actions Exam practice questions here, checking your answer on each one, then sit the practice test to rehearse the exam under timed conditions before the real thing.
- Q4: Are these real GH-200: GitHub Actions Exam exam questions?
- A: They are drawn from officially released past questions and from community members who have sat GH-200: GitHub Actions Exam. Answers are verified and updated weekly.
- Q5: Where do I register for the GH-200: GitHub Actions Exam exam?
- A: Register through Microsoft directly. Exampractice is not affiliated with Microsoft and does not administer the exam.
- Q6: Is there a free GH-200: GitHub Actions Exam sample?
- A: Yes. Every GH-200: GitHub Actions Exam page shows a free sample of real questions. Upgrading opens the full bank and the practice test.
- Q7: What are Microsoft Certification Exams?
- A: Microsoft Certification Exams validate your expertise in using and managing Microsoft’s technologies and solutions, including Azure, Office 365, Windows, and more. These certifications demonstrate your proficiency in deploying, configuring, and optimizing Microsoft products to support business operations and IT infrastructure.
- Q8: Why should I pursue Microsoft Certification?
- A: Microsoft Certification enhances your professional credibility, showcasing your skills and knowledge in Microsoft technologies. This can lead to better job opportunities, higher salaries, and career advancement in IT, cloud computing, software development, and related fields.
- Q9: What are the benefits of Microsoft Certification?
- A: Benefits include recognition as a certified Microsoft professional, improved job performance, access to exclusive resources, continuing education opportunities, and staying current with the latest Microsoft technologies and best practices.
- Q10: Who should take Microsoft Certification Exams?
- A: IT professionals, system administrators, developers, cloud engineers, data analysts, and anyone involved in managing and implementing Microsoft solutions should consider these certifications to validate their expertise and advance their careers.
- Q11: What types of Microsoft Certification Exams are available?
- A: Microsoft offers various certification paths, including:
- Q12: How do I prepare for Microsoft Certification Exams?
- A: Preparation can include official Microsoft training courses, study guides, practice exams, online tutorials, and hands-on experience with Microsoft products and solutions.
- Q13: Where can I take Microsoft Certification Exams?
- A: Microsoft Certification Exams can be taken online with remote proctoring or at authorized Pearson VUE testing centers worldwide, providing flexibility to fit your schedule and location.
- Q14: How do Microsoft Certifications impact my career?
- A: Microsoft Certifications significantly boost your career by demonstrating your expertise to employers, making you a more competitive candidate for advanced roles and promotions in IT, cloud computing, software development, and other tech-related fields.
- Q15: Are there any prerequisites for Microsoft Certification Exams?
- A: Some exams may have prerequisites, such as foundational knowledge or prior experience with Microsoft products. Check the specific requirements for each certification path on the Microsoft Learn website.
- Q16: How often do I need to recertify for Microsoft Certifications?
- A: Microsoft Certifications typically require renewal every year or two, depending on the certification, to ensure that certified professionals stay updated with the latest technologies and industry practices.



