Halloween Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: merry71

Free GitHub Actions Exam Practice Questions

Question # 1

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

Discussion 0
Question # 2

As a developer, you have configured an IP allow list on a GitHub organization. Which effects does the IP allow list have on GitHub Actions?

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

Options:

A.  

You must allow GitHub Actions ' IP address ranges in order to use Marketplace actions.

B.  

You can use standard GitHub-hosted runners since their IP addresses are automatically allowed.

C.  

You can use GitHub-hosted larger runners since they can be configured with static IP addresses.

D.  

You can use self-hosted runners with known IP addresses.

Discussion 0
Question # 3

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
Question # 4

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.

Discussion 0
Question # 5

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
Question # 6

Which of the following commands will set the $FOO environment variable within a script, so that it may be used in subsequent workflow job steps?

Options:

A.  

run: echo " ::set-env name=FOO::bar "

B.  

run: echo " FOO=bar " > > $GITHUB_ENV

C.  

run: echo ${{ $FOO=bar }}

D.  

run: export FOO=bar

Discussion 0
Question # 7

As a developer, your Actions workflow often reuses the same outputs or downloaded dependencies from one run to another. To cache dependencies for a job, you are using the GitHub cache action. Which input parameters are required for this action? (Choose two.)

Options:

A.  

dependency: the name and version of a package to cache or restore

B.  

key: the key created when saving a cache and the key used to search for a cache

C.  

cache-hit: the copy action key used with restore parameter to restore the data from the cache

D.  

path: the file path on the runner to cache or restore

E.  

ref: the ref name of the branch to access and restore a cache created

F.  

restore-keys: the copy action key used with cache parameter to cache the data

Discussion 0
Question # 8

While awaiting approval, how many days can a workflow be in the “Waiting” state before it automatically fails?

Options:

A.  

7 days

B.  

14 days

C.  

30 days

D.  

60 days

Discussion 0
Question # 9

How can a workflow deployment mitigate the risk of multiple workflow runs deploying to a single cloud environment simultaneously?

(Each correct answer presents part of the solution. Choose two.)

Options:

A.  

Pass the mutex into the deployment job.

B.  

Configure the mutex setting in the environment.

C.  

Specify a concurrency scope in the workflow.

D.  

Specify a target environment in the deployment job.

E.  

Set the concurrency in the deployment job to 1.

F.  

Reference the mutex in the task performing the deployment.

Discussion 0
Question # 10

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.

Discussion 0

GH-200 PDF

GH-200 PDF (Printable)
$46.5
$154.99

GH-200 Testing Engine

GH-200 PDF (Printable)
$51
$169.99

GH-200 PDF + Testing Engine

GH-200 PDF (Printable)
$63.9
$212.99
Exams4sure Dumps

Exam style questions across every GH-200 domain

Last Update 3 days ago
Total Questions : 137

Start with our free GH-200 practice questions, carefully crafted to mirror the domains, phrasing, and difficulty of the real GitHub Administrator exam. Each GH-200 exam question comes with a detailed rationale that explains not just which answer is correct but why the others fall short. That's how concepts stick. Use the free set to benchmark yourself: identify your Microsoft weak domains, see where you're losing marks, and build a focused study plan in minutes.

Free Exams Sample Questions