CertificationTestPrep Free diagnostic

GitHub · Associate · exam code GH-200

Free GitHub Actions practice questions

This page has 10 free practice questions: no account needed, and every option explains why it’s right or wrong. They come from the GitHub Actions bank of 583, spread across all five domains at their exam weights. The free diagnostic asks 20 more, also with no account needed and every answer explained.

Question 1 of 10 · Multiple choice · Domain 1 · Author and manage workflows (24%)

The lint step fails but has continue-on-error: true. What do these two expressions return in a later step?

- id: lint
  run: npm run lint
  continue-on-error: true
- run: echo "${{ steps.lint.outcome }} / ${{ steps.lint.conclusion }}"

Question 2 of 10 · Multiple choice · Domain 1 · Author and manage workflows (24%)

A test step finishes and should put a small table of the result and a link to the report on the run’s summary page. Which command does that?

Question 3 of 10 · Multiple choice · Domain 2 · Consume and troubleshoot workflows (19%)

A run finishes with this job list, and the developer asks why deploy never ran.

build    success
test     failure   (step "Run tests" failed)
deploy   skipped

The workflow defines these dependencies.

jobs:
  build:
    runs-on: ubuntu-latest
  test:
    needs: build
    runs-on: ubuntu-latest
  deploy:
    needs: [build, test]
    runs-on: ubuntu-latest

What is the cause, and where should the developer look?

Question 4 of 10 · Multiple choice · Domain 2 · Consume and troubleshoot workflows (19%)

The job name is built from the matrix values.

jobs:
  test:
    name: ${{ matrix.os }} / node ${{ matrix.node }}
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest]
        node: [18, 20, 22]

The run’s results are listed below.

ubuntu-latest / node 18     success
ubuntu-latest / node 20     success
ubuntu-latest / node 22     success
windows-latest / node 18    failure
windows-latest / node 20    failure
windows-latest / node 22    failure

What does the pattern suggest?

Question 5 of 10 · Multiple choice · Domain 3 · Author and maintain actions (19%)

A composite action’s metadata declares an output but consumers always see it empty.

outputs:
  random-number:
    description: Random number
runs:
  using: composite
  steps:
    - id: random-number-generator
      run: echo "random-id=$RANDOM" >> $GITHUB_OUTPUT
      shell: bash

What is missing?

Question 6 of 10 · Multiple choice · Domain 3 · Author and maintain actions (19%)

A maintainer enables immutable releases on their action repository. They still want consumers on @v1 to receive each compatible patch. How does GitHub’s guidance say to manage the v1 tag?

Question 7 of 10 · Multiple choice · Domain 4 · Manage GitHub Actions for the enterprise (24%)

A team wants each self-hosted runner to take exactly one job and then be de-registered, so automation can wipe the machine afterwards. Which option do they pass to config.sh when registering?

Question 8 of 10 · Multiple choice · Domain 4 · Manage GitHub Actions for the enterprise (24%)

Tests need secrets.API_KEY. They pass on pushes, but on a pull request from a contributor’s fork the value is empty. What is happening?

Question 9 of 10 · Multiple choice · Domain 5 · Secure and optimize automation (14%)

This step runs when a pull request is opened.

- name: Check PR title
  run: |
    title="${{ github.event.pull_request.title }}"
    if [[ $title =~ ^octocat ]]; then exit 0; else exit 1; fi

A contributor can set the pull request title to a“; ls $GITHUB_WORKSPACE”. Which change removes the injection?

Question 10 of 10 · Multiple choice · Domain 5 · Secure and optimize automation (14%)

A deploy workflow has this concurrency block. Three pushes start runs A, B and C, one minute apart, and run A takes 10 minutes.

concurrency:
  group: deploy-production
  cancel-in-progress: false

What happens?

Where do you stand?

20 more free questions, and a map of every skill.

The free diagnostic asks 20 questions at exam weights and shows which skills on the GitHub Actions exam you know and which you don’t. Full access is $19 for all 583 questions, with practice that follows what you miss.