We at Crack4sure are committed to giving students who are preparing for the Microsoft GH-200 Exam the most current and reliable questions . To help people study, we've made some of our GitHub Actions Exam exam materials available for free to everyone. You can take the Free GH-200 Practice Test as many times as you want. The answers to the practice questions are given, and each answer is explained.
Which step is using the dbserver environment variable correctly?
You need to create a reusable GitHub Actions workflow template named ci.yml. The solution must ensure that ci.yml appears on the New workflow interface of GitHub Actions. Where should you store ci.yml?
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?
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?
What is the simplest action type to run a shell script?
As a DevOps engineer developing a JavaScript action, you need to include annotations to pass warning messages to workflow runners. Which code snippet can you use to implement an annotation in your Actions?
As a DevOps engineer developing a JavaScript action, you need to include annotations to pass warning messages to workflow runners. Which code snippet can you use to implement an annotation in your Actions?
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?
What is the proper syntax to reference the system-provided run number variable?
You need to use a specific version of an action. How should you use v1 of an actions/javascript-action repository in your workflow?
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?
Disabling a workflow allows you to stop a workflow from being triggered without having to delete the file from the repo. In which scenarios would temporarily disabling a workflow be most useful? (Choose two.)
As a developer, how can you identify a Docker container action on GitHub?
Which of the following statements are true regarding the use of GitHub Actions on a GitHub Enterprise Server instance? (Choose three.)
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.
When reviewing an action for use, what file defines its available inputs and outputs?
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?
How should you print a debug message in your workflow?
You create a self-hosted runner labeled as runner1.
You need to ensure that a GitHub Actions workflow job runs only on runner1.
Which YAML statement should you use?
How should you install the bats NPM package in your workflow?
A)
B)
C)
D)
As a developer, you need to add the correct syntax to allow the following workflow file to be triggered by multiple types of events.
Which two code blocks should you add starting at line 5? Each correct answer presents a complete solution.
NOTE: Each correct answer is worth one point.
4 name: Node CI/CD
5
6
7
8 jobs:
9 build:
10 runs-on:
11 steps:
12 - uses: actions/checkout@v2
13 - uses: actions/setup-node@v1
14 with:
15 node-version: 12
16 - run: npm ci
17 - run: npm test
18
You are a DevOps engineer working on deployment workflows. You need to execute the deploy job only if the current branch name is feature-branch. Which code snippet will help you to implement the conditional execution of the job?
Which of the following is the lowest repository permission you need to have for downloading workflow artifacts?
Which workflow event is used to manually trigger a workflow run?
Which default environment variable specifies the branch or tag that triggered a workflow?
What are the most significant advantages of adding documentation while distributing custom actions?
(Each answer presents a complete solution. Choose two.)
You are a DevOps engineer working on custom Actions development. You need to handle errors or exceptions as part of the JavaScript-based action code. What should be added to the following code block to handle errors?
const core = require( ' @actions/core ' );
try {
// action code
} catch (error) {
// insert snippet here
}
What can be used to set a failed status of an action from its code?
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.)
While writing a custom action, some behavior within the runner must be changed. Which workflow commands would set an error message in the runner ' s output?
(Each correct answer presents a complete solution. Choose two.)
What is a role of GitHub Marketplace when using GitHub Actions?
Which statement is true about using default environment variables?
While awaiting approval, how many days can a workflow be in the “Waiting” state before it automatically fails?
Which of the following commands will set the $FOO environment variable within a script, so that it may be used in subsequent workflow job steps?
What metadata file in a custom action defines the main entry point?
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?
You are a DevOps engineer working on a custom action. You want to conditionally run a script at the start of the action, before the main entrypoint. Which code block should be used to define the metadata file for your custom action?
3 Months Free Update
3 Months Free Update
3 Months Free Update