Black Friday Rush: 75% Off All Exam Bundles! Apply the coupon code below before the offer expires! - Ends in 0d 00h 00m 00s - Coupon code: newyear

Microsoft GH-200 - GitHub Actions Exam

Page: 2 / 5
Total 150 questions

You are reaching your organization ' s storage limit for GitHub artifacts and packages. What should you do to prevent the storage limit from being reached?

A.

via the .github repository owned by the organization

B.

via repositories owned by the organization

C.

via the GitHub Marketplace

D.

via a repository owned by a third party

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?

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

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.

NOTE: Each correct answer is worth one point.

A.

It allows sharing workflow secrets with other users.

B.

It widens the scope of the code base for developers fixing issues and extending the action.

C.

It makes the action.yml file optional.

D.

It makes it easier for the GitHub community to discover the action.

E.

It decouples the action ' s versioning from the versioning of other application code.

Which of the following is the proper syntax to specify a custom environment variable named MY_VARIABLE with the value my-value?

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

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?

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

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?

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.

As a developer, you created a JavaScript action. What is the best way to test your JavaScript action?

A.

Package your JavaScript action inside a Docker container image and run it.

B.

Create a workflow that only executes your specific JavaScript action.

C.

Create a workflow that includes the actions/debug-javascript action.

D.

Use a tool called @vercel/ncc to compile your code.

In which locations can actions be referenced by workflows? (Choose three.)

A.

a separate public repository

B.

an .action extension file in the repository

C.

the same repository as the workflow

D.

a published Docker container image on Docker Hub

E.

the runs-on: keyword of a workflow file

F.

the repository ' s Secrets settings page

G.

a public NPM registry

In which scenarios could the GITHUB_TOKEN be used? (Choose two.)

A.

to leverage a self-hosted runner

B.

to create a repository secret

C.

to publish to GitHub Packages

D.

to create issues in the repo

E.

to read from the file system on the runner

F.

to add a member to an organization

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