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

Free GitHub Actions Exam Practice Questions

Question # 31

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.

Discussion 0
Question # 32

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

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 implement the conditional execution of the job?

Options:

A.  

jobs:

deploy:

if: github.branch_name == ' feature-branch '

runs-on: ubuntu-latest

B.  

jobs:

deploy:

if: github.ref_name == ' feature-branch '

runs-on: ubuntu-latest

C.  

jobs:

deploy:

if: github.ref.name = ' feature-branch '

runs-on: ubuntu-latest

D.  

jobs:

deploy:

if: github.branch.name == ' feature-branch '

runs-on: ubuntu-latest

Discussion 0
Question # 34

How should you install the bats NPM package in your workflow?

A)

B)

C)

D)

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0
Question # 35

A development team has been using a Powershell script to compile and package their solution using existing tools on a Linux VM, which has been configured as a self-hosted runner. They would like to use the script as-is in an automated workflow. Which of the following should they do to invoke their script within a workflow step?

Options:

A.  

Configure a self-hosted runner on Windows with the requested tools.

B.  

Use the YAML powershell: step.

C.  

Run the pwsh2bash command to convert the script so it can be run on Linux.

D.  

Use the YAML shell: pwsh in a run step.

E.  

Use the actions/run-powershell action to invoke the script.

Discussion 0
Question # 36

What is the proper syntax to reference the system-provided run number variable?

Options:

A.  

$GITHUB_RUN_NUMBER

B.  

${{ env.GITHUB_RUN_NUMBER }}

C.  

${{ var.GITHUB_RUN_NUMBER }}

D.  

$github.run_number

E.  

${{ GITHUB_RUN_NUMBER }}

Discussion 0
Question # 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

Discussion 0
Question # 38

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

Which of the following is the most common way to target a specific major release version?

Options:

A.  

steps:uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c

B.  

steps:uses: actions/checkout@U1673995124

C.  

steps:uses: actions/checkout@v3

D.  

steps:uses: actions/checkout

Discussion 0
Question # 40

As a developer, you want to review the step that caused a workflow failure and the failed step ' s build logs. First navigate to the main page of the repository on GitHub. Which section contains the step failure information?

Options:

A.  

Insights

B.  

Code

C.  

Actions

D.  

Pull requests

E.  

Issues

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

Free Exams Sample Questions