Practice Free GH-200 Exam Online Questions
What are the advantages of using a matrix strategy in a job definition? (Choose two.)
- A . It can test code in multiple versions of a programming language.
- B . It can decrease the costs for running multiple combinations of programming language/operating systems.
- C . It can run up to 512 jobs per workflow run.
- D . It can test code in multiple operating systems.
What are the two types of environment protection rules you can configure? (Choose two.)
- A . required reviewers
- B . branch protections
- C . wait timer
- D . artifact storage
Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?
- A . ENV_ACTOR
- B . GITHUB_WORKFLOW_ACTOR
- C . GITHUB_ACTOR
- D . GITHUB_USER
Without the need to use additional infrastructure, what is the simplest and most maintainable method for configuring a workflow job to provide access to an empty PostgreSQL database?
- A . Use service containers with a Postgres database from Docker hub.
- B . Run the actions/postgres action in a parallel job.
- C . It is currently impossible to access the database with GitHub Actions.
- D . Dynamically provision and deprovision an environment.
Which workflow commands send information from the runner? (Choose two.)
- A . reading from environment variables
- B . setting a debug message
- C . populating variables in a Dockerfile
- D . setting output parameters
Which of the following is the most common way to target a specific major release version?
- A . steps: uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- B . steps: uses: actions/checkout@U1673995124
- C . steps: uses: actions/checkout@v3
- D . steps: uses: actions/checkout
How can GitHub Actions encrypted secrets be used in if: conditionals within a workflow job?
- A . Set the encrypted secret as a job-level environment variable and then reference the environment variable within the conditional statement.
- B . Create a job dependency that exposes the encrypted secret as a job output, which can then be leveraged in a subsequent dependent job.
- C . Use the secrets context within the conditional statement, e.g. ${{ secrets.MySuperSecret }}.
- D . Use a workflow command to expose the encrypted secret via a step’s output parameter and then use the step output in the job’s if: conditional.
Which default environment variable specifies the branch or tag that triggered a workflow?
- A . GITHUB_TAG
- B . GITHUB_REF
- C . ENV_BRANCH
- D . GITHUB_BRANCH
As a developer, how can you identify a composite action on GitHub?
- A . The action’s repository includes Dockerfile and package.json files.
- B . The action.yml metadata file has the runs.using value set to composite.
- C . The action’s repository name includes the keyword “composite.”
- D . The action’s repository includes an init.sh file in the root directory.
Based on the YAML below, which two statements are correct? (Choose two.)

- A . This workflow will publish a package to an npm registry.
- B . This workflow will publish a package to GitHub Packages.
- C . This workflow file is using a matrix strategy.
- D . The workflow job publish-npm will only run after the build job passes.
