Pass the GitHub GitHub Certification GitHub-Actions Questions and answers with CertsForce

Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions
Questions # 1:

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


Expert Solution
Questions # 2:

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


Expert Solution
Questions # 3:

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


Expert Solution
Questions # 4:

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


Expert Solution
Questions # 5:

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.


Expert Solution
Questions # 6:

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


Expert Solution
Questions # 7:

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.


Expert Solution
Questions # 8:

How many jobs will result from the following matrix configuration?

Question # 8

Options:

A.

3 jobs


B.

4 jobs


C.

5 jobs


D.

6 jobs


Expert Solution
Questions # 9:

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.


Expert Solution
Questions # 10:

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.


Expert Solution
Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions