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

Free GitHub Actions Exam Practice Questions

Question # 11

As a developer, you are configuring GitHub Actions to deploy VMs to production. A member of the VMOps team must provide approval before the deployment occurs. Which of the following steps should you take?

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

Options:

A.  

Specify the environment named Production in the workflow jobs that deploy to the VMs.

B.  

Navigate to the organization settings and create a Production environment with the VMOps team as a required reviewer.

C.  

Navigate to the repository settings and create a Production environment with the VMOps team as a required reviewer.

D.  

Specify the VMOps team as the owner of the environment.

E.  

Add the VMs to the environment.

Discussion 0
Question # 12

As a developer, which of the following snippets will enable you to run the commands npm ci and npm run build as part of a workflow?

Options:

A.  

- run: |

npm ci

npm run build

B.  

- shell:

npm ci

npm run build

C.  

- shell: |

npm ci

npm run build

D.  

- run:

npm ci

npm run build

Discussion 0
Question # 13

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.

Discussion 0
Question # 14

What is the simplest action type to run a shell script?

Options:

A.  

Docker container action

B.  

Composite action

C.  

Bash script action

D.  

JavaScript action

Discussion 0
Question # 15

An organization ' s policies specify that only local actions are allowed. How should actions be distributed for this organization?

Options:

A.  

Via the GitHub Marketplace

B.  

Via the .github repository owned by the organization

C.  

Via a repository owned by a third party

D.  

Via repositories owned by the organization

Discussion 0
Question # 16

Which statement accurately describes using labels to route GitHub Actions workflows to runners?

Options:

A.  

A user can assign multiple labels to a self-hosted runner and use the labels in a runs-on to target only runners that match all the specified labels.

B.  

Labels apply only to GitHub-hosted runners and are ignored by self-hosted runners.

C.  

GitHub Actions automatically assigns the runner’s IP address as a label, and the label must be used in a runs-on.

D.  

To target a specific runner, the runs-on must match the runner’s hostname rather than its labels.

Discussion 0
Question # 17

A workflow that had been working now stalls in a waiting state until failing. The workflow file process_ml.yaml has not changed and contains jobs specifying runs-on: [gpu]. Which of the following steps would troubleshoot the issue?

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

Options:

A.  

Review the contents of the Runner_*.log files in the _diag folder.

B.  

Rotate the GITHUB_TOKEN secret for the appropriate runners.

C.  

Check the Set up job step in the logs of the last successful run to determine the runner.

D.  

Update the organization settings to enable GPU-based GitHub-hosted runners.

E.  

Increase the usage limits for GitHub-hosted runners.

Discussion 0
Question # 18

Which workflow commands send information from the runner? (Choose two.)

Options:

A.  

reading from environment variables

B.  

setting a debug message

C.  

populating variables in a Dockerfile

D.  

setting output parameters

Discussion 0
Question # 19

Which workflow command would output the debug message " action successfully debugged " ?

Options:

A.  

echo :debug::message=action successfully debugged "

B.  

echo " debug-action successfully debugged "

C.  

echo " ::debug::action successfully debugged "

D.  

echo " :debug:action successfully debugged: "

Discussion 0
Question # 20

Which files are required for a Docker container action in addition to the source code? (Choose two.)

Options:

A.  

Dockerfile

B.  

Actionfile

C.  

metadata.yml

D.  

action.yml

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