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

Free GitHub Actions Exam Practice Questions

Question # 21

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

Options:

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.

Discussion 0
Question # 22

You need to use a specific version of an action. How should you use v1 of an actions/javascript-action repository in your workflow?

Options:

A.  

steps:uses: actions/javascript-action/v1

B.  

steps:uses: actions/javascript-actionversion: v1

C.  

steps:uses: actions/javascript-action-v1

D.  

steps:uses: actions/javascript-action@v1

Discussion 0
Question # 23

A single secret must be accessed by workflows in specific repositories. What is the best way to create the secret?

Options:

A.  

Create an organization secret, specify Selected repositories as the repository access, and select the required repositories.

B.  

Create an environment secret at the organization level and leverage that environment in each of the specified repositories.

C.  

Store the secret in a supported external key vault. Configure OpenID Connect (OIDC) to allow access to the external vault and link the secret from the external key vault in each of the specific repositories.

D.  

Create the secret in one of the repositories, check the Share secret option, and select the required repositories.

Discussion 0
Question # 24

As a developer, you need to leverage Redis in your workflow. What is the best way to use Redis on a self-hosted Linux runner without affecting future workflow runs?

Options:

A.  

Add a run step to your workflow, which dynamically installs and configures Redis as part of your job.

B.  

Specify container: and services: in your job definition to leverage a Redis service container.

C.  

Set up Redis on a separate machine and reference that instance from your job.

D.  

Install Redis on the hosted runner image and place it in a runner group. Specify label: in your job to target the runner group.

Discussion 0
Question # 25

As a developer, you need to create a custom action written in Python. Which action type should you choose?

Options:

A.  

Python action

B.  

JavaScript action

C.  

Docker container action

D.  

Composite run step

Discussion 0
Question # 26

Which action type should be used to bundle a series of run steps into a reusable custom action?

Options:

A.  

Composite action

B.  

Bash script action

C.  

Docker container action

D.  

JavaScript action

Discussion 0
Question # 27

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

Discussion 0
Question # 28

What is a role of GitHub Marketplace when using GitHub Actions?

Options:

A.  

GitHub Marketplace restricts the use of third-party actions to only public repositories.

B.  

GitHub Marketplace serves only as a billing dashboard for tracking paid actions.

C.  

GitHub Marketplace provides a centralized location to discover, share, and publish reusable GitHub Actions workflows created by the community or vendors.

D.  

GitHub Marketplace allows a user to deploy GitHub Actions workflows to any repository automatically without requiring permissions.

Discussion 0
Question # 29

Which default environment variable specifies the branch or tag that triggered a workflow?

Options:

A.  

GITHUB_TAG

B.  

GITHUB_REF

C.  

ENV_BRANCH

D.  

GITHUB_BRANCH

Discussion 0
Question # 30

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.

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