Power Up Your Study Prep: Black Friday 75% Discount! Use coupon code below to save! - Ends in 0d 00h 00m 00s - Coupon code: big75certs

Newly Released Microsoft GH-200 Exam PDF

Page: 10 / 11
Total 150 questions

GitHub Actions Exam Questions and Answers

Question 37

You are a DevOps engineer working on custom Actions development. You need to handle the errors or exceptions as part of the JavaScript-based action code. What should be added to the following code block to handle errors?

Exhibit:

const core = require( ' @actions/core ' );

try {

// action code

} catch (error) {

< < insert snippet here > >

}

Options:

A.

core.action.setException(error.Message);

B.

action.setError(error.Message);

C.

core.setFailed(error.Message);

D.

core.setException(error.message);

Question 38

Which statement is true regarding the ability to delete a workflow run?

Options:

A.

Completed workflow runs may be deleted.

B.

Pending workflow runs may be deleted.

C.

Workflow runs must be older than 30 days to be deleted.

D.

Admin access is required to delete a workflow run.

Question 39

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?

Options:

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.

Question 40

You have a GitHub repository named Repo1. Repo1 uses GitHub Actions workflows that upload build artifacts

You plan to change the artifact and log retention period to 30 days.

You need to remove expired GitHub Actions artifacts from Report. The solution must explicitly identify and delete existing expired artifacts by using the REST API.

How should you complete the script? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Page: 10 / 11
Total 150 questions