Black Friday Countdown: 75% Off Exam Bundles! Use coupon code below before time runs out! - Ends in 0d 00h 00m 00s - Coupon code: 75vsure

GH-200 Exam Dumps - GitHub Actions Exam

Searching for workable clues to ace the Microsoft GH-200 Exam? You’re on the right place! ExamCert has realistic, trusted and authentic exam prep tools to help you achieve your desired credential. ExamCert’s GH-200 PDF Study Guide, Testing Engine and Exam Dumps follow a reliable exam preparation strategy, providing you the most relevant and updated study material that is crafted in an easy to learn format of questions and answers. ExamCert’s study tools aim at simplifying all complex and confusing concepts of the exam and introduce you to the real exam scenario and practice it with the help of its testing engine and real exam dumps

Go to page:
Question # 25

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 two steps should you take? Each correct answer presents part of the solution.

NOTE: Each correct answer is worth one point.

A.

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

B.

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

C.

Specify the VMOps team as the owner of the environment.

D.

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

E.

Add the VMs to the environment.

Full Access
Question # 26

How can GitHub Actions encrypted secrets be used in if: conditionals within a workflow job?

A.

Set the encrypted secret as a job-level environment variable and then reference the environment variable within the conditional statement.

B.

Create a job dependency that exposes the encrypted secret as a job output, which can then be leveraged in a subsequent dependent job.

C.

Use the secrets context within the conditional statement, e.g. ${{ secrets.MySuperSecret }}.

D.

Use a workflow command to expose the encrypted secret via a step ' s output parameter and then use the step output in the job ' s if: conditional.

Full Access
Question # 27

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

A.

$GITHUB_RUN_NUMBER

B.

${{ env.GITHUB_RUN_NUMBER }}

C.

${{ var.GITHUB_RUN_NUMBER }}

D.

$github.run_number

E.

${{ GITHUB_RUN_NUMBER }}

Full Access
Question # 28

What metadata file in a custom action defines the main entry point?

A.

action.js

B.

index.js

C.

action.yml

D.

main.yml

Full Access
Question # 29

As a DevOps engineer, you are developing workflows to build an application. You have a requirement to create the build targeting multiple node versions. Which code block should you use to define the workflow?

A.

jobs:build-app:strategy:matrix:node-ver: [10, 12, 14]steps:- uses: actions/setup-node@v3with:node-version: ${{ strategy.node-ver }}

B.

jobs:build-app:strategy:matrix:node-ver: [10, 12, 14]steps:- uses: actions/setup-node@v3with:node-version: ${{ matrix.node-ver }}

C.

jobs:build-app:matrix-strategy:node-ver: [10, 12, 14] steps:- uses: actions/setup-node@v3with:node-version: ${{ matrix-strategy.node-ver }}

D.

jobs:build-app:matrix:strategy:node-ver: [10, 12, 14]steps:- uses: actions/setup-node@v3with:node-version: ${{ matrix.node-ver }}

Full Access
Question # 30

You have a GitHub Enterprise Cloud Organization that contains private repositories for three apps. The workflow of each app has a job that uses repository secrets and calls a shared deployment action.

You plan to replace separate deployment scripts with a single custom action.

You need to recommend a distribution and versioning approach for the custom action. The solution must meet the following requirements:

    The action repository must be private.

    Only specific application repositories can use the action.

    The workflow reference must be resistant to changes in the action repository without requiring a workflow file change.

What should you recommend?

A.

Store the custom action in a public repository.

Publish the action to GitHub Marketplace.

Reference the action by using a full-length commit SHA.

B.

Store the custom action in a private repository.

Enable all the repositories in the organization to access the action.

Reference the action by using a full-length commit SHA.

C.

Store the custom action in a private repository.

Enable only selected repositories in the organization to access the action.

Reference the action by using a full-length commit SHA.

D.

Store the custom action in a private repository.

Enable only selected repositories in the organization to access the action.

Reference the action by using a semantic version tag.

Full Access
Question # 31

What are the two ways to pass data between jobs? (Choose two.)

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.

Full Access
Question # 32

As a developer, you are designing a workflow and need to communicate with the runner machine to set environment variables, output values used by other actions, add debug messages to the output logs, and other tasks. Which of the following options should you use?

A.

environment variables

B.

workflow commands

C.

self-hosted runners

D.

enable debug loggingE composite run step

Full Access
Go to page: