GITHUB-ACTIONS Exam Questions
71 real GITHUB-ACTIONS exam questions with expert-verified answers and explanations. Page 1 of 2.
- Question #1
You are a developer, and your container jobs are failing on a self-hosted runner. Which requirements must you check to ensure that the self-hosted runner is properly configured? (C...
- Question #2
Which choices represent best practices for publishing actions so that they can be consumed reliably? (Choose two.)
- Question #3
You need to create new workflows to deploy to an unfamiliar cloud provider. What is the fastest and safest way to begin?
- Question #4
GitHub-hosted runners support which capabilities? (Choose two.)
- Question #5
You need to make a script to retrieve workflow run logs via the API. Which is the correct API to download a workflow run log?
- Question #6
As a developer, you are optimizing a GitHub workflow that uses and produces many different files. You need to determine when to use caching versus workflow artifacts. Which two sta...
- Question #7
As a developer, you are designing a workflow and need to communicate with the runner machine to set environment variables, output values used by other actions, add debug messages t...
- Question #8
What menu options in a repository do you need to select in order to use a starter workflow that is provided by your organization?
- Question #9
Where should workflow files be stored to be triggered by events in a repository?
- Question #10
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. T...
- Question #11
What are the two types of environment protection rules you can configure? (Choose two.)
- Question #12
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?
- Question #13
Which of the following scenarios would require the use of self-hosted runners instead of GitHub- hosted runners?
- Question #14
As a developer, you want to review the step that caused a workflow failure and the failed step's build logs. First navigate to the main page of the repository on GitHub. Which sect...
- Question #15
When creating and managing custom actions in an enterprise setting, which of the following is considered a best practice?
- Question #16
As a developer, what is the safest way to reference an action to prevent modification of the underlying code?
- Question #17
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 databas...
- Question #18
Which of the following scenarios requires a developer to explicitly use the GITHUB_TOKEN or github.token secret within a workflow? (Choose two.)
- Question #19
What will the output be for the following event trigger block in a workflow?
- Question #20
A Scheduled workflows run on the:
- Question #21
Your organization is managing secrets using GitHub encrypted secrets, including a secret named SuperSecret. As a developer, you need to create a version of that secret that contain...
- Question #22
Which scopes are available to define custom environment variables within a workflow file? (Choose three.)
- Question #23
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 b...
- Question #24
What is the smallest scope for an environment variable?
- Question #25
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?
- Question #26
Which default environment variable specifies the branch or tag that triggered a workflow?
- Question #27
What can be used to set a failed status of an action from its code?
- Question #28
What are the advantages of using a matrix strategy in a job definition? (Choose two.)
- Question #29
As a developer, your Actions workflow often reuses the same outputs or downloaded dependencies from one run to another. To cache dependencies for a job, you are using the GitHub ca...
- Question #30
Which syntax correctly accesses a job output (output1) of an upstream job (job1) from a dependent job within a workflow?
- Question #31
Which workflow commands send information from the runner? (Choose two.)
- Question #32
As a developer, you are using a Docker container action in your workflow. What is required for the action to run successfully?
- Question #33
Which action type should be used to bundle a series of run steps into a reusable custom action?
- Question #34
As a DevOps engineer, you are trying to leverage an organization secret in a repo. The value received in the workflow is not the same as that set in the secret. What is the most li...
- Question #35
What is the right method to ensure users approve a workflow before the next step proceeds?
- Question #36
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? (Choose two.)
- Question #37
Which run: command will set a step's output?
- Question #38
As a developer, how can you identify a Docker container action on GitHub?
- Question #39
Which files are required for a Docker container action in addition to the source code? (Choose two.)
- Question #40
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 an...
- Question #41
As a developer, your self-hosted runner sometimes looses connection while running jobs. How should you troubleshoot the issue affecting your self-hosted runner?
- Question #42
As a developer, you need to create a custom action written in Python. Which action type should you choose?
- Question #43
Which keyword allows you to define environment variables in a GitHub Actions workflow?
- Question #44
What does the 'needs' keyword do in a GitHub Actions workflow?
- Question #45
What is the recommended approach for storing secrets larger than 48 KB?
- Question #47
How many jobs will result from the following matrix configuration?
- Question #48
As a developer, which workflow steps should you perform to publish an image to the GitHub Container Registry? (Choose three.)
- Question #49
As a developer, you have a 10-MB data set that is required in a specific workflow. Which steps should you perform so the dataset is stored encrypted and can be decrypted during the...
- Question #50
Which statement is true about using default environment variables?
- Question #51
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?