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 cache action. Which input parameters are required for this action? (Choose two.)
Which scopes are available to define custom environment variables within a workflow file? (Choose three.)
Which default environment variable specifies the branch or tag that triggered a 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?
As a developer, what options should you recommend to implement standards for automation reuse? (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
}
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 likely reason for the difference?
Which default GitHub environment variable indicates the owner and repository name?
Which of the following is the most common way to target a specific major release version?
You need to trigger a workflow using the GitHub API for activity that happens outside of GitHub. Which workflow event do you use?
Which of the following is the best way for an enterprise to prevent certain marketplace actions from running?
Which command can you include in your workflow file to set the output parameter for an action?
Which statement accurately describes using labels to route GitHub Actions workflows to runners?
Which action type should be used to bundle a series of run steps into a reusable custom action?
As a developer, which workflow steps should you perform to publish an image to the GitHub Container Registry? (Choose three.)
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?
What are the two types of environment protection rules you can configure? (Choose two.)
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.
Custom environment variables can be defined at multiple levels within a workflow file, including which three levels?
(Each correct answer presents a complete solution. Choose three.)
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?
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?
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.)
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?
An organization ' s policies specify that only local actions are allowed. How should actions be distributed for this organization?
Which of the following scenarios requires a developer to explicitly use the GITHUB_TOKEN or github.token secret within a workflow? (Choose two.)
What are the most significant advantages of adding documentation while distributing custom actions?
(Each answer presents a complete solution. Choose two.)
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 use GitHub Actions to deploy a microservice that requires runtime access to a secure token. This token is used by a variety of other microservices managed by different teams in different repos. To minimize management overhead and ensure the token is secure, which mechanisms should you use to store and access the token? (Choose two.)
As a DevOps engineer, you need to execute a deployment to different environments such as development and testing based on labels added to a pull request. The deployment should use the releases branch and trigger only when there is a change in files under the apps folder. Which code block should be used to define the deployment workflow trigger?