Winter Sale - Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70dumps

GH-200 Questions and Answers

Question # 6

You need to perform a task that requires running a custom script in a GitHub Actions workflow. The script must run within the workflow environment without requiring an external container or prebuilt image.

What should you use?

A.

a JavaScript action

B.

a Docker container action

C.

a run step

D.

a composite action

Full Access
Question # 7

Which workflows can use an action stored in an internal repository when repository access is enabled for the organization or enterprise?

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

A.

Workflows in internal repositories owned by the same organization or enterprise.

B.

Workflows in private repositories owned by an organization in the enterprise.

C.

Workflows in selected public repositories outside the enterprise.

D.

Workflows in public repositories owned by the same organization as the enterprise.

Full Access
Question # 8

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

A.

The action.yml metadata file references a package.json file.

B.

The action ' s repository includes a js.yml file in the .github/workflows directory.

C.

The action’s repository name includes the keyword “JavaScript.”

D.

The action.yml metadata file has the runs.using value set to node16.

Full Access
Question # 9

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

A.

7 days

B.

14 days

C.

30 days

D.

60 days

Full Access
Question # 10

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

A.

steps:uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c

B.

steps:uses: actions/checkout@U1673995124

C.

steps:uses: actions/checkout@v3

D.

steps:uses: actions/checkout

Full Access
Question # 11

What are the two types of environment protection rules you can configure? (Choose two.)

A.

required reviewers

B.

branch protections

C.

wait timer

D.

artifact storage

Full Access
Question # 12

You need to create new workflows to deploy to an unfamiliar cloud provider. What is the fastest and safest way to begin?

A.

Create a custom action to wrap the cloud provider ' s CLI.

B.

Search GitHub Marketplace for verified actions published by the cloud provider.

C.

Use the actions/jenkins-plugin action to utilize an existing Jenkins plugin for the cloud provider.

D.

Search GitHub Marketplace for actions created by GitHub.

E.

Download the CLI for the cloud provider and review the associated documentation.

Full Access
Question # 13

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.)

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.

Full Access
Question # 14

Which command can you include in your workflow file to set the output parameter for an action?

A.

echo " action_color=purple " > > $GITHUB_OUTPUT

B.

echo " action_color=purple " > > $GITHUB_ENV

C.

echo " ::add-mask::$ACTION_COLOR "

D.

echo " ::debug::action_color=purple "

Full Access
Question # 15

As a developer, your self-hosted runner sometimes loses its connection while running jobs. How should you troubleshoot the issue affecting your self-hosted runner?

A.

Access the self-hosted runner ' s installation directory and look for log files in the _diag folder.

B.

Locate the self-hosted runner in your repository ' s settings page and download its log archive.

C.

Start the self-hosted runner with the --debug flag to produce more verbose console output.

D.

Set the DEBUG environment variable to true before starting the self-hosted runner.

Full Access
Question # 16

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

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.

Full Access
Question # 17

What will the output be for the following event trigger block in a workflow?

A.

It throws a workflow syntax error, pointing to the types definition in issue_comment event.

B.

It throws a workflow syntax error, pointing to the types definition in issues event.

C.

It runs the workflow when an issue is edited or when an issue comment created.

D.

It runs the workflow when an issue or issue comment in the workflow ' s repository is created or modified.

E.

It runs the workflow when an issue is created or edited, or when an issue or pull request comment is created.

Full Access
Question # 18

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.)

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.

Full Access
Question # 19

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

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: "

Full Access
Question # 20

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

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

Full Access
Question # 21

You are a DevOps engineer in ABC Corp. You need to schedule your deployment workflow twice a week at 7:45 UTC every Wednesday and Saturday. What is the appropriate YAML structure?

A.

on:

schedule:

- cron: ' 45 7 * * 3,6 '

B.

on:

cron:

- schedule: ' 45 7 * * 3,6 '

C.

on:

schedule: ' 45 7 * * 3,6 '

D.

on:

cron: ' 45 7 * * 3,6 '

Full Access
Question # 22

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?

A.

check_run

B.

pull_request

C.

workflow_run

D.

workflow_call

Full Access
Question # 23

GitHub-hosted runners support which capabilities? (Choose two.)

A.

automatic patching of both the runner and the underlying OS

B.

automatic file-system caching between workflow runs

C.

support for Linux, Windows, and mac

D.

support for a variety of Linux variations including CentOS, Fedora, and Debian

E.

requiring a payment mechanism (e.g., credit card) to use for private repositories

Full Access
Question # 24

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?

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.

Full Access
Question # 25

As a developer, what is the safest way to reference an action to prevent modification of the underlying code?

A.

Use a commit hash.

B.

Use a branch name.

C.

Use a patch release tag.

D.

Use a major release tag.

Full Access
Question # 26

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

A.

Python action

B.

JavaScript action

C.

Docker container action

D.

Composite run step

Full Access
Question # 27

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

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.

Full Access
Question # 28

Which two actions ensure that a GitHub Actions workflow can be triggered manually? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A.

Define a workflow_dispatch event and specify inputs that enable users to provide values when triggering the workflow manually.

B.

Use a schedule event and add a manual: false parameter.

C.

Define a workflow_dispatch event in the on field of the workflow YAML file.

D.

Trigger a workflow manually by using a workflow_call event that has a button on the UI.

Full Access
Question # 29

As a developer, you have a 10-MB data set that is required in a specific workflow. Which steps should you perform so the dataset is stored encrypted and can be decrypted during the workflow? (Choose three.)

A.

Encrypt the dataset.

B.

Leverage the actions/download-secret action in the workflow.

C.

Store the dataset in a GitHub encrypted secret.

D.

Store the encryption keys in a GitHub encrypted secret.

E.

Compress the dataset

F.

Commit the encrypted dataset to the same repository as the workflow

G.

Create a GitHub encrypted secret with the Large object option selected and upload the dataset.

Full Access
Question # 30

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

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 31

What is a valid scenario regarding environment secrets?

A.

Ensuring a job cannot access environment secrets until approval is obtained from a required reviewer.

B.

Ensuring only a specific step can access an environment secret.

C.

Configuring environment secrets for connecting to GitHub Enterprise Server.

D.

Configuring environment secrets to automatically pull from Azure Key Vault.

Full Access
Question # 32

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

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.

Full Access
Question # 33

What are the two most significant advantages of adding documentation while distributing custom actions? Each correct answer presents a complete solution.

NOTE: Each correct answer is worth one point.

A.

It creates a readme.md for the consuming workflow.

B.

It shares the description of the action to the users.

C.

It provides an example of the action.

D.

It generates auto completion when using the action in a workflow.

Full Access
Question # 34

You have exactly one Windows x64 self-hosted runner, and it is configured with custom tools. Which syntax could you use in the workflow to target that runner?

A.

self-hosted: [windows-x64]

B.

runs-on: [self-hosted, windows, x64]

C.

runs-on: windows-latest

D.

self-hosted: [windows, x64]

Full Access
Question # 35

Which choices represent best practices for publishing actions so that they can be consumed reliably?

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

A.

Organization name

B.

Commit SHA

C.

Repository name

D.

Tag

E.

Default branch

Full Access
Question # 36

As a developer, you are using a Docker container action in your workflow. What is required for the action to run successfully?

A.

The job env must be set to a Linux environment.

B.

The job runs-on must specify a Linux machine with Docker installed.

C.

The referenced action must be hosted on Docker Hub.

D.

The action must be published to the GitHub Marketplace.

Full Access
Question # 37

Where should workflow files be stored to be triggered by events in a repository?

A.

.github/workflows/

B.

.github/actions/

C.

Nowhere; they must be attached to an act on in the GitHub user interface

D.

anywhere

E.

.workflows/

Full Access
Question # 38

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

A.

reading from environment variables

B.

setting a debug message

C.

populating variables in a Dockerfile

D.

setting output parameters

Full Access
Question # 39

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

A.

Docker container action

B.

Composite action

C.

Bash script action

D.

JavaScript action

Full Access
Question # 40

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?

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.

Full Access
Question # 41

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?

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.

Full Access