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: 5 / 5
Total 150 questions

You have a GitHub repository that contains a composite action named Action1 and a workflow named Workflow1. Workflow1 contains the following steps:

• Calls Action1 in a step named report

• Passes count: ' 5 ' by using with

• Reads ${{ steps.report.outputs.summary )}

Action1 completes successfully, but the last step receives an empty value for summary.

You need to ensure that Action1 consumes the input of Workflow1 and exposes the expected output.

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

NOTE: Each correct selection is worth one point.

You need to stop a GitHub Actions workflow from running. The solution must retain the configuration and execution history of the workflow.

What should you do?

A.

Rename the workflow YAML file.

B.

Select Actions and disable the workflow.

C.

Archive the workflow in a new branch.

D.

Delete the workflow YAML file from the repository.

How should you print a debug message in your workflow?

A.

echo " Set variable MyVariable to true " > > $DEBUG_MESSAGE

B.

echo " ::debug::Set variable MyVariable to true "

C.

echo " ::add-mask::Set variable MyVariable to true "

D.

echo " debug_message=Set variable MyVariable to true " > > $GITHUB_OUTPUT

Which of the following is the best way for an enterprise to prevent certain marketplace actions from running?

A.

Create a list of the actions that are restricted from being used as an enterprise policy. Every other action can be run.

B.

It is not possible; if an action is in the marketplace, its use cannot be restricted.

C.

Create a list that is maintained as a . yml file in a . github repository specified in the enterprise. Only these actions can be run.

D.

Create a list of the actions that are allowed to run as an enterprise policy. Only these actions can be run.

You need to trigger a workflow using the GitHub API for activity that happens outside of GitHub. Which workflow event do you use?

A.

check_suite

B.

workflow_run

C.

deployment

D.

repository_dispatch