Weekend Sale Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 75only

GH-200 GitHub Actions Exam Questions and Answers

Questions 4

As a developer, your self-hosted runner sometimes loses its connection while running jobs. How should you troubleshoot the issue affecting your self-hosted runner?

Options:

A.

Access the self-hosted runner ' s installation directory and look for log files in the _diag folder.

B.

Locate the self-hosted runner in your repository ' s settings page and download its log archive.

C.

Start the self-hosted runner with the --debug flag to produce more verbose console output.

D.

Set the DEBUG environment variable to true before starting the self-hosted runner.

Buy Now
Questions 5

You have exactly one Windows x64 self-hosted runner, and it is configured with custom tools. Which syntax could you use in the workflow to target that runner?

Options:

A.

self-hosted: [windows-x64]

B.

runs-on: [self-hosted, windows, x64]

C.

runs-on: windows-latest

D.

self-hosted: [windows, x64]

Buy Now
Questions 6

What is the minimal syntax for declaring an output named foo for an action?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 7

Which run: command will set a step ' s output?

Options:

A.

run: echo " MY_OUTPUT=foo " > > $GITHUB_OUTPUT

B.

run: export MY_OUTPUT=foo

C.

run: echo ${{ $GITHUB_OUTPUT=foo }}

D.

run: echo " ::set-env name=MY OUTPUT::foo "

Buy Now
Questions 8

You are a DevOps engineer working on deployment workflows. You need to execute the deploy job only if the current branch name is feature-branch. Which code snippet will help you to implement the conditional execution of the job?

Options:

A.

jobs:deploy:if: github.ref_name == ' feature-branch ' runs-on: ubuntu-lateststeps:- uses: actions/checkout@v3

B.

jobs:deploy:if: github.ref.name == ' feature-branch ' runs-on: ubuntu-lateststeps:- uses: actions/checkout@v3

C.

jobs:deploy:if: github.branch_name == ' feature-branch ' runs-on: ubuntu-lateststeps:- uses: actions/checkout@v3

D.

jobs:deploy:if: github.branch.name == ' feature-branch ' runs-on: ubuntu-lateststeps:- uses: actions/checkout@v3

Buy Now
Questions 9

You are a DevOps engineer in ABC Corp. You need to schedule your deployment workflow twice a week at 7:45 UTC every Wednesday and Saturday. What is the appropriate YAML structure?

Options:

A.

on:

schedule:

- cron: ' 45 7 * * 3,6 '

B.

on:

cron:

- schedule: ' 45 7 * * 3,6 '

C.

on:

schedule: ' 45 7 * * 3,6 '

D.

on:

cron: ' 45 7 * * 3,6 '

Buy Now
Questions 10

As a developer, what is the safest way to reference an action to prevent modification of the underlying code?

Options:

A.

Use a commit hash.

B.

Use a branch name.

C.

Use a patch release tag.

D.

Use a major release tag.

Buy Now
Questions 11

Which of the following is the best way for an enterprise to prevent certain marketplace actions from running?

Options:

A.

Create a list of the actions that are restricted from being used as an enterprise policy. Every other action can be run.

B.

It is not possible; if an action is in the marketplace, its use cannot be restricted.

C.

Create a list that is maintained as a . yml file in a . github repository specified in the enterprise. Only these actions can be run.

D.

Create a list of the actions that are allowed to run as an enterprise policy. Only these actions can be run.

Buy Now
Questions 12

What is the most secure way to store sensitive information in GitHub Actions workflows?

Options:

A.

Use environment variables in the workflow and store sensitive data directly in the variables.

B.

From the GitHub repository settings, store sensitive data as unencrypted text.

C.

Store the sensitive information as plain text in the workflow YAML file.

D.

Use GitHub Enterprise Managed User (OIDC) integration to dynamically fetch secrets from a third-party secrets manager.

Buy Now
Questions 13

An organization ' s policies specify that only local actions are allowed. How should actions be distributed for this organization?

Options:

A.

Via the GitHub Marketplace

B.

Via the .github repository owned by the organization

C.

Via a repository owned by a third party

D.

Via repositories owned by the organization

Buy Now
Questions 14

As a DevOps engineer, you need to define a deployment workflow that runs after the build workflow has successfully completed. Without modifying the build workflow, which trigger should you define in the deployment workflow?

Options:

A.

repository_dispatch

B.

workflow_run

C.

workflow_exec

D.

workflow_dispatch

Buy Now
Questions 15

Your organization is managing secrets using GitHub encrypted secrets, including a secret named SuperSecret. As a developer, you need to create a version of that secret that contains a different value for use in a workflow that is scoped to a specific repository named MyRepo. How should you store the secret to access your specific version within your workflow?

Options:

A.

Create a duplicate entry for SuperSecret in the encrypted secret store and specify MyRepo as the scope.

B.

Create MyRepo_SuperSecret in GitHub encrypted secrets to specify the scope to MyRepo.

C.

Create a file with the SuperSecret. information in the .qithub/secrets folder in MyRepo.

D.

Create and access SuperSecret from the secrets store in MyRepo.

Buy Now
Questions 16

What are the two ways to pass data between jobs? (Choose two.)

Options:

A.

Use the copy action with restore parameter to restore the data from the cache

B.

Use the copy action to save the data that should be passed in the artifacts folder.

C.

Use the copy action with cache parameter to cache the data

D.

Use data storage.

E.

Use job outputs

F.

Use artifact storage.

Buy Now
Questions 17

As a developer, you have a 10-MB data set that is required in a specific workflow. Which steps should you perform so the dataset is stored encrypted and can be decrypted during the workflow? (Choose three.)

Options:

A.

Encrypt the dataset.

B.

Leverage the actions/download-secret action in the workflow.

C.

Store the dataset in a GitHub encrypted secret.

D.

Store the encryption keys in a GitHub encrypted secret.

E.

Compress the dataset

F.

Commit the encrypted dataset to the same repository as the workflow

G.

Create a GitHub encrypted secret with the Large object option selected and upload the dataset.

Buy Now
Questions 18

As a DevOps engineer, you are trying to leverage an organization secret in a repo. The value received in the workflow is not the same as that set in the secret. What is the most likely reason for the difference?

Options:

A.

There is a different value specified at the rego level.

B.

There is a different value specified at the workflow level.

C.

The Codespace secret doesn ' t match the expected value.

D.

The Encrypt Secret setting was not configured for the secret.

E.

There is a different value specified at the enterprise level.

Buy Now
Questions 19

As a developer, you are designing a workflow and need to communicate with the runner machine to set environment variables, output values used by other actions, add debug messages to the output logs, and other tasks. Which of the following options should you use?

Options:

A.

environment variables

B.

workflow commands

C.

self-hosted runners

D.

enable debug loggingE composite run step

Buy Now
Questions 20

Which workflow commands send information from the runner? (Choose two.)

Options:

A.

reading from environment variables

B.

setting a debug message

C.

populating variables in a Dockerfile

D.

setting output parameters

Buy Now
Questions 21

In which of the following scenarios should you use self-hosted runners? Each correct answer presents a complete solution.

NOTE: Each correct answer is worth one point.

Options:

A.

when the workflow jobs must be run on Windows 10

B.

when jobs must run for longer than 6 hours

C.

when you want to use macOS runners

D.

when GitHub Actions minutes must be used for the workflow runs

E.

when a workflow job needs to install software from the local network

Buy Now
Questions 22

You are a developer working on developing reusable workflows for your organization. What keyword should be included as part of the reusable workflow event triggers?

Options:

A.

check_run

B.

pull_request

C.

workflow_run

D.

workflow_call

Buy Now
Questions 23

You are reaching your organization ' s storage limit for GitHub artifacts and packages. What should you do to prevent the storage limit from being reached?

Options:

A.

via the .github repository owned by the organization

B.

via repositories owned by the organization

C.

via the GitHub Marketplace

D.

via a repository owned by a third party

Buy Now
Questions 24

Which of the following statements are true regarding the use of GitHub Actions on a GitHub Enterprise Server instance? (Choose three.)

Options:

A.

Use of GitHub Actions on GitHub Enterprise Server requires a persistent internet connection

B.

Actions created by GitHub are automatically available and cannot be disabled

C.

Most GitHub authored actions are automatically bundled for use on GitHub Enterprise Server

D.

Third party actions can be used on GitHub Enterprise Server by configuring GitHub Connect

E.

Actions must be defined in the .github repository

F.

Third party actions can be manually synchronized for use on GitHub Enterprise Server

Buy Now
Questions 25

Your organization needs to simplify reusing and maintaining automation in your GitHub Enterprise Cloud. Which components can be directly reused across all repositories in an organization? (Choose three.)

Options:

A.

self-hosted runners

B.

actions stored m private repositories in the organization

C.

encrypted secrets

D.

custom Docker actions stored in GitHub Container Registry

E.

actions stored in an organizational partition in the GitHub Marketplace

F.

workflow templates

Buy Now
Questions 26

When creating and managing custom actions in an enterprise setting, which of the following is considered a best practice?

Options:

A.

creating a separate repository for each action so that the version can be managed independently

B.

creating a separate branch in application repositories that only contains the actions

C.

creating a single repository for all custom actions so that the versions for each action are all the same

D.

including custom actions that other teams need to reference in the same repository as application code

Buy Now
Questions 27

You are a DevOps engineer working on a custom action. You want to conditionally run a script at the start of the action, before the main entrypoint. Which code block should be used to define the metadata file for your custom action?

Options:

A.

runs:using: ' node16 ' start: ' start.js ' start-if: github.event_name == ' push ' main: ' index.js '

B.

runs:using: ' node16 ' pre: ' start.js ' pre-if: github.event_name == ' push ' main: ' index.js '

C.

runs:using: ' node16 ' pre-if: github.event_name == ' push ' then ' start.js ' main: ' index.js '

D.

runs:using: ' node16 ' before: ' start.js ' before-if: github.event_name == ' push ' main: ' index.js '

Buy Now
Questions 28

What are two reasons to keep an action in its own repository instead of bundling it with other application code?

(Each correct answer presents a complete solution. Choose two.)

Options:

A.

It makes it easier for the GitHub community to discover the action.

B.

It decouples the action ' s versioning from the versioning of other application code.

C.

It allows sharing workflow secrets with other users.

D.

It widens the scope of the code base for developers fixing issues and extending the action.

E.

It makes the action.yml file optional.

Buy Now
Questions 29

As a developer, you are authoring a workflow that will deploy to both DevCloud and TestCloud resources. Each cloud resource is accessed with a different deployment key. Which approach best allows you to use the same reusable workflow in separate jobs to target the different cloud resources?

Options:

A.

Create repository secrets named DevCloud.DEPLOY_KEY and TestCloud.DEPLOY_KEY so that the reusable workflow parses the secrets by resource name.

B.

Store the different keys in a DEPLOY_KEY environment secret in the DevCloud and TestCloud environments. Specify DEPLOY_KEY in the secrets section of the reusable workflow.

C.

Use a marketplace action to conditionally parse the DEPLOY_KEY repository secret based on the cloud resource name.

D.

Populate a DEPLOY_KEY repository secret with a JSON object containing DevCloud and TestCloud properties. Then specify DEPLOY_KEY.DevCloud in the secrets sections of the reusable workflow.

Buy Now
Questions 30

As a DevOps engineer developing a JavaScript action, you need to include annotations to pass warning messages to workflow runners. Which code snippet can you use to implement an annotation in your Actions?

As a DevOps engineer developing a JavaScript action, you need to include annotations to pass warning messages to workflow runners. Which code snippet can you use to implement an annotation in your Actions?

Options:

A.

core.info( ' Something went wrong, but it\ ' s not bad enough to fail the build. ' )

B.

core.notice( ' Something went wrong, but it\’s not bad enough to fail the build. ' )

C.

core.warning( ' Something went wrong, but it\ ' s not bad enough to fail the build. ' )

D.

core.warn( ' Something went wrong, but it\ ' s not bad enough to fail the build. ' )

Buy Now
Questions 31

As a DevOps engineer, you need to execute a deployment to different environments such as development and testing based on labels added to a pull request. The deployment should use the releases branch and trigger only when there is a change in files under the apps folder. Which code block should be used to define the deployment workflow trigger?

Options:

A.

on:

pull_request_review:

types: [labeled]

branches:

- ' releases '

paths:

- ' apps/** '

B.

on:

pull_request:

types: [labeled]

branches:

- ' releases/** '

paths:

- ' apps '

C.

on:

pull_request:

types: [labeled]

branches:

- ' releases '

paths:

- ' apps/** '

D.

on:

pull_request_label:

branches:

- ' releases '

paths:

- ' apps/** '

Buy Now
Questions 32

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?

Options:

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.

Buy Now
Questions 33

Which workflow command would output the debug message " action successfully debugged " ?

Options:

A.

echo :debug::message=action successfully debugged "

B.

echo " debug-action successfully debugged "

C.

echo " ::debug::action successfully debugged "

D.

echo " :debug:action successfully debugged: "

Buy Now
Questions 34

What is the most suitable action type for a custom action written in TypeScript?

Options:

A.

Composite run step

B.

Bash script action

C.

JavaScript action

D.

Docker container action

Buy Now
Questions 35

What are the two mandatory requirements for publishing GitHub Actions to the GitHub Marketplace? Each correct answer presents part of the solution.

NOTE: Each correct answer is worth one point.

Options:

A.

The action can be either in a public or private repository.

B.

The action’s name cannot match a user or organization on GitHub unless the user or organization owner is publishing the action.

C.

Each repository can contain a collection of actions as long as they are under the same Marketplace category.

D.

The action’s metadata file must be in the root directory of the repository.

E.

The name should match with one of the existing GitHub Marketplace categories.

Buy Now
Questions 36

Which workflow event is used to manually trigger a workflow run?

Options:

A.

create

B.

workflow_dispatch

C.

workflow_run

D.

status

Buy Now
Questions 37

You need to create a reusable GitHub Actions workflow template named ci.yml. The solution must ensure that ci.yml appears on the New workflow interface of GitHub Actions. Where should you store ci.yml?

Options:

A.

.github/workflows

B.

.github/templates

C.

.github/workflow-templates

D.

the root directory of each repository

Buy Now
Questions 38

As a developer, which of the following snippets will enable you to run the commands npm ci and npm run build as part of a workflow?

Options:

A.

- run: |

npm ci

npm run build

B.

- shell:

npm ci

npm run build

C.

- shell: |

npm ci

npm run build

D.

- run:

npm ci

npm run build

Buy Now
Questions 39

Based on the YAML below, which two statements are correct? (Choose two.)

Options:

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.

Buy Now
Questions 40

What are the advantages of using a matrix strategy in a job definition? (Choose two.)

Options:

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.

Buy Now
Questions 41

Which of the following is the proper syntax to specify a custom environment variable named MY_VARIABLE with the value my-value?

Options:

A.

env:

MY_VARIABLE = my-value

B.

environment:

MY_VARIABLE = my-value

C.

env:

MY_VARIABLE: my-value

D.

var:

MY_VARIABLE: my-value

E.

var:

MY_VARIABLE = my-value

F.

environment:

MY_VARIABLE: my-value

Buy Now
Exam Code: GH-200
Exam Name: GitHub Actions Exam
Last Update: Oct 3, 2026
Questions: 137

PDF + Testing Engine

$43.75  $174.99

Testing Engine

$33.75  $134.99
buy now GH-200 testing engine

PDF (Q&A)

$28.75  $114.99
buy now GH-200 pdf
dumpsmate guaranteed to pass

24/7 Customer Support

DumpsMate's team of experts is always available to respond your queries on exam preparation. Get professional answers on any topic of the certification syllabus. Our experts will thoroughly satisfy you.

Site Secure

mcafee secure

TESTED 03 Oct 2026