20:00

Free Test
/ 10

Quiz

1/10
Author and maintain workflows
A GitHub Actions workflow is triggered by a push event to the main branch. The workflow contains a single job with three steps. The first step uses the actions/checkout action. Which of the following best describes the purpose of actions/checkout in this context?
Select the answer
1 correct answer
A.
It downloads the workflow file from the repository to the runner.
B.
It checks out the repository code to the runner's workspace so subsequent steps can access files.
C.
It validates the syntax of the workflow YAML file before execution.
D.
It authenticates the runner with the repository using SSH keys.

Quiz

2/10
Consume workflows
A workflow consumes a reusable workflow and passes inputs like this:
```
with:
environment: production
debug: true
```
What must the reusable workflow do to receive these inputs?
Select the answer
1 correct answer
A.
Reference the inputs in its `env:` section.
B.
Define an `inputs:` section listing the input names and their types.
C.
Declare them as repository variables in the reusable workflow's repository.
D.
Use the `on:` keyword with a `workflow_call:` trigger that specifies input parameters.

Quiz

3/10
Author and maintain actions
You are creating a custom action. The action defines:
```
runs:
using: composite
steps:
- run: echo "Hello"
```
What type of action is this?
Select the answer
1 correct answer
A.
A JavaScript action that runs a script file.
B.
A composite action that combines multiple steps into a reusable unit.
C.
A Docker container action that runs in an isolated container.
D.
A shell script action that only works on Linux runners.

Quiz

4/10
Manage GitHub Actions for the enterprise
An enterprise administrator wants to restrict GitHub Actions usage across all organizations. Which organization-level setting enables this control?
Select the answer
1 correct answer
A.
The "Actions" policy in the enterprise settings automatically applies to all organizations.
B.
The organization's "Settings > Actions" page has policies that override enterprise settings.
C.
Restricting actions requires modifying each organization's Actions runners configuration.
D.
Enterprise policies can be overridden at the organization level; each organization chooses independently.

Quiz

5/10
Author and maintain workflows
You are defining a workflow trigger using the `on` keyword. You need the workflow to run whenever code is pushed to any branch AND when a pull request is created or updated. Which YAML syntax correctly expresses this?
Select the answer
1 correct answer
A.
on: [push, pull_request]
B.
on: push pull_request
C.
on: { push, pull_request }
D.
on: - push - pull_request

Quiz

6/10
Consume workflows
A consuming workflow calls a reusable workflow and expects an output. The reusable workflow defines an output with:
```
outputs:
build-version:
value: ${{ jobs.build.outputs.version }}
```
How does the consuming workflow access this output?
Select the answer
1 correct answer
A.
`${{ jobs.reusable-workflow.outputs.build-version }}`
B.
`${{ steps.call-reusable.outputs.build-version }}`
C.
`${{ workflow.outputs.build-version }}`
D.
The output is automatically available as `${{ env.build-version }}` in all subsequent steps.

Quiz

7/10
Author and maintain actions
A custom JavaScript action needs to read the action's input parameter. The action.yml defines an input named `message`. How does the JavaScript code access this input?
Select the answer
1 correct answer
A.
`process.env.INPUT_MESSAGE`
B.
`process.argv[1]`
C.
`this.inputs.message`
D.
`github.context.inputs.message`

Quiz

8/10
Manage GitHub Actions for the enterprise
An organization administrator creates a "Restrict to approved actions" policy for GitHub Actions. This policy is configured to allow only actions from the GitHub organization and a curated list. What happens when a workflow tries to use an action not on the approved list?
Select the answer
1 correct answer
A.
The workflow fails with an error before the action executes.
B.
The action runs, but a warning is logged in the audit log.
C.
The administrator receives an email notification about the violation.
D.
The action runs, but the step is marked as skipped in workflow results.

Quiz

9/10
Author and maintain workflows
A workflow needs to run on a schedule every day at 14:00 UTC. What is the correct YAML configuration for this scheduled trigger?
Select the answer
1 correct answer
A.
on: schedule = "0 14 * * *"
B.
on: cron: "0 14 * * *"
C.
on: schedule: - cron: "0 14 * * *"
D.
on: { schedule: cron "0 14 * * *" }

Quiz

10/10
Consume workflows
A workflow calls a reusable workflow and needs to monitor its success or failure. Which job status does the calling job have if the reusable workflow fails?
Select the answer
1 correct answer
A.
The calling job succeeds; the reusable workflow's failure is logged separately.
B.
The calling job fails if the reusable workflow fails and `continue-on-error` is not set.
C.
The calling job always succeeds, regardless of the reusable workflow's status.
D.
The calling job status depends on the reusable workflow's use of `continue-on-error`.
Looking for more questions?Buy now

GitHub Actions Practice test unlocks all online simulator questions

Thank you for choosing the free version of the GitHub Actions practice test! Further deepen your knowledge on Microsoft Simulator; by unlocking the full version of our GitHub Actions Simulator you will be able to take tests with over 200 constantly updated questions and easily pass your exam. 98% of people pass the exam in the first attempt after preparing with our 200 questions.

BUY NOW

What to expect from our GitHub Actions practice tests and how to prepare for any exam?

The GitHub Actions Simulator Practice Tests are part of the Microsoft Database and are the best way to prepare for any GitHub Actions exam. The GitHub Actions practice tests consist of 200 questions and are written by experts to help you and prepare you to pass the exam on the first attempt. The GitHub Actions database includes questions from previous and other exams, which means you will be able to practice simulating past and future questions. Preparation with GitHub Actions Simulator will also give you an idea of the time it will take to complete each section of the GitHub Actions practice test . It is important to note that the GitHub Actions Simulator does not replace the classic GitHub Actions study guides; however, the Simulator provides valuable insights into what to expect and how much work needs to be done to prepare for the GitHub Actions exam.

BUY NOW

GitHub Actions Practice test therefore represents an excellent tool to prepare for the actual exam together with our Microsoft practice test . Our GitHub Actions Simulator will help you assess your level of preparation and understand your strengths and weaknesses. Below you can read all the quizzes you will find in our GitHub Actions Simulator and how our unique GitHub Actions Database made up of real questions:

Info quiz:

  • Quiz name:GitHub Actions
  • Total number of questions:200
  • Number of questions for the test:50
  • Pass score:80%

You can prepare for the GitHub Actions exams with our mobile app. It is very easy to use and even works offline in case of network failure, with all the functions you need to study and practice with our GitHub Actions Simulator.

Use our Mobile App, available for both Android and iOS devices, with our GitHub Actions Simulator . You can use it anywhere and always remember that our mobile app is free and available on all stores.

Our Mobile App contains all GitHub Actions practice tests which consist of 200 questions and also provide study material to pass the final GitHub Actions exam with guaranteed success. Our GitHub Actions database contain hundreds of questions and Microsoft Tests related to GitHub Actions Exam. This way you can practice anywhere you want, even offline without the internet.

BUY NOW