Month End Sale 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exams65

ExamsBrite Dumps

GitHub Actions Exam Question and Answers

GitHub Actions Exam

Last Update Sep 28, 2025
Total Questions : 72

We are offering FREE GH-200 Microsoft exam questions. All you do is to just go and sign up. Give your details, prepare GH-200 free exam questions and then go for complete pool of GitHub Actions Exam test questions that will help you more.

GH-200 pdf

GH-200 PDF

$40.25  $114.99
GH-200 Engine

GH-200 Testing Engine

$47.25  $134.99
GH-200 PDF + Engine

GH-200 PDF + Testing Engine

$61.25  $174.99
Questions 1

How can GitHub Actions encrypted secrets be used in if: conditionals within a workflow job?

Options:

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.

Discussion 0
Questions 2

Which statement is true about using default environment variables?

Options:

A.  

The environment variables can be read in workflows using the ENV: variable_name syntax.

B.  

The environment variables created should be prefixed with GITHUB_ to ensure they can be accessed in workflows

C.  

The environment variables can be set in the defaults: sections of the workflow

D.  

The GITHUB_WORKSPACE environment variable should be used to access files from within the runner.

Discussion 0
Questions 3

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

Discussion 0
Questions 4

You need to create new workflows to deploy to an unfamiliar cloud provider. What is the fastest and safest way to begin?

Options:

A.  

Create a custom action to wrap the cloud provider's CLI.

B.  

Search GitHub Marketplace for verified actions published by the cloud provider.

C.  

Use the actions/jenkins-plugin action to utilize an existing Jenkins plugin for the cloud provider.

D.  

Search GitHub Marketplace for actions created by GitHub.

E.  

Download the CLI for the cloud provider and review the associated documentation.

Discussion 0
Questions 5

Disabling a workflow allows you to stop a workflow from being triggered without having to delete the file from the repo. In which scenarios would temporarily disabling a workflow be most useful? (Choose two.)

Options:

A.  

A workflow sends requests to a service that is down.

B.  

A workflow error produces too many, or wrong, requests, impacting external services negatively.

C.  

A workflow is configured to run on self-hosted runners

D.  

A workflow needs to be changed from running on a schedule to a manual trigger

E.  

A runner needs to have diagnostic logging enabled.

Discussion 0
Questions 6

As a DevOps engineer, you are developing a container action. You need to execute a cleanup script after completing the main script execution. Which code block should be used to define the cleanup script?

Options:

A.  

B.  

C.  

D.  

Discussion 0
Questions 7

What will the output be for the following event trigger block in a workflow?

Options:

A.  

It throws a workflow syntax error, pointing to the types definition in issue_comment event.

B.  

It throws a workflow syntax error, pointing to the types definition in issues event.

C.  

It runs the workflow when an issue is edited or when an issue comment created.

D.  

It runs the workflow when an issue or issue comment in the workflow's repository is created or modified.

E.  

It runs the workflow when an issue is created or edited, or when an issue or pull request comment is created.

Discussion 0
Questions 8

When reviewing an action for use, what file defines its available inputs and outputs?

Options:

A.  

inputs.yml

B.  

config.json

C.  

defaults.json

D.  

workflow.yml

E.  

action.yml

Discussion 0
Questions 9

As a developer, you need to integrate a GitHub Actions workflow with a third-party code quality provider that uses the Checks API. How should you trigger a follow-up workflow?

Options:

A.  

Add the workflow_run webhook event as a trigger for the workflow for the code quality integration name

B.  

Add the check_run webhook event as a trigger for the workflow when the code quality integration is completed

C.  

Add the pull_request webhook event as a trigger for the workflow when the code quality integration is synchronized

D.  

Add the deployment webhook event as a trigger for the workflow when the code quality integration is completed

Discussion 0
Questions 10

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.  

workflow_run

C.  

workflow_call

D.  

pull_request

Discussion 0
Questions 11

What menu options in a repository do you need to select in order to use a starter workflow that is provided by your organization?

Options:

A.  

Actions > Load workflow

B.  

Workflow > New workflow

C.  

Workflow > Load workflow

D.  

Actions > New workflow

Discussion 0
Questions 12

What is the smallest scope for an environment variable?

Options:

A.  

the workflow settings

B.  

a step

C.  

a job

D.  

the workflow env mapping

Discussion 0
Questions 13

Which choices represent best practices for publishing actions so that they can be consumed reliably? (Choose two.)

Options:

A.  

repo name

B.  

tag

C.  

commit SHA

D.  

organization name

E.  

default branch

Discussion 0
Questions 14

Which scopes are available to define custom environment variables within a workflow file? (Choose three.)

Options:

A.  

the entire workflow, by using env at the top level of the workflow file

B.  

all jobs being run on a single Actions runner, by using runner.env at the top of the workflow file

C.  

the entire stage, by using env at the top of the defined build stage

D.  

within the run attribute of a job step

E.  

the contents of a job within a workflow, by using jobs..env

F.  

a specific step within a job, by using jobs..steps[*].env

Discussion 0
Questions 15

Options:

A.  

Scheduled workflows run on the:

B.  

latest commit and branch on which the workflow was triggered,

C.  

latest commit from the branch named schedule,

D.  

latest commit from the branch named main,

E.  

specified commit and branch from the workflow YAML file,

F.  

latest commit on the default or base branch

Discussion 0
Questions 16

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

Discussion 0
Questions 17

You need to make a script to retrieve workflow run logs via the API. Which is the correct API to download a workflow run log?

Options:

A.  

POST /repos/:owner/:repo/actions/runs/:run_id

B.  

GET /repos/:owner/:repo/actions/artifacts/logs

C.  

GET /repos/:owner/:repo/actions/runs/:run_id/logs

D.  

POST /repos/:owner/:repo/actions/runs/:run_id/logs

Discussion 0
Questions 18

Which of the following scenarios requires a developer to explicitly use the GITHUB_TOKEN or github.token secret within a workflow? (Choose two.)

Options:

A.  

passing the GITHUB_TOKEN secret to an action that requires a token as an input

B.  

making an authenticated GitHub API request

C.  

checking out source code with the actions/checkout@v3 action

D.  

assigning non-default permissions to the GITHUB_TOKEN

Discussion 0
Questions 19

As a developer, how can you identify a Docker container action on GitHub?

Options:

A.  

The action's repository includes @actions/core in the root directory.

B.  

The action's repository name includes the keyword "Docker."

C.  

The action.yml metadata file references a Dockerfile file.

D.  

The action.yml metadata file has the runs.using value set to Docker.

Discussion 0
Questions 20

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.

Discussion 0
Questions 21

Which syntax correctly accesses a job output (output1) of an upstream job (job1) from a dependent job within a workflow?

Options:

A.  

${{needs.job1.outputs.output1}}

B.  

${{needs.job1.output1}}

C.  

${{depends.job1.output1}}

D.  

${{job1.outputs.output1}}

Discussion 0