As a developer, you need to leverage Redis in your workflow. What is the best way to use Redis on a self-hosted Linux runner without affecting future workflow runs?
When creating and managing custom actions in an enterprise setting, which of the following is considered a best practice?
As a developer, you are authoring a workflow that will deploy to both DevCloud and TestCloud resources. Each cloud resource is accessed with a different deployment key. Which approach best allows you to use the same reusable workflow in separate jobs to target the different cloud resources?
Which default environment variable specifies the branch or tag that triggered a workflow?
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 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?
Which workflows can use an action stored in an internal repository when repository access is enabled for the organization or enterprise?
(Each correct answer presents a complete solution. Choose two.)
What is the simplest action type to run a shell script?
As a developer, one of your workflows requires Xcode version 11.2 hosted on macOS Catalina (version 10.15). You have already created and configured a self-hosted runner to conform to those requirements and registered it with your organization. What else should you do to ensure that the workflow accesses the correct runner instance?
(Each correct answer presents part of the solution. Choose three.)
As a developer, which workflow steps should you perform to publish an image to the GitHub Container Registry? (Choose three.)
You need to create new workflows to deploy to an unfamiliar cloud provider. What is the fastest and safest way to begin?
A single secret must be accessed by workflows in specific repositories. What is the best way to create the secret?
Which workflow event is used to manually trigger a workflow run?
Your organization has a secret that must be available to all the repositories within GitHub Actions workflows.
You need to store the secret. The solution must minimize administrative effort.
What should you do in GitHub?
As a developer, you need to create a custom action written in Python. Which action type should you choose?
Which step is using the dbserver environment variable correctly?
Which run: command will set a step ' s output?
You need to use a specific version of an action. How should you use v1 of an actions/javascript-action repository in your workflow?
What menu options in a repository do you need to select in order to use a starter workflow that is provided by your organization?
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?
What is the most secure way to store sensitive information in GitHub Actions workflows?
As a DevOps engineer, you are developing a composite action. You have a step that needs to be executed against a subdirectory. Which code snippet should you use within the composite action to specify the directory?
As a developer, what options should you recommend to implement standards for automation reuse? (Choose two.)
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.)
GitHub-hosted runners support which capabilities? (Choose two.)
What can be used to set a failed status of an action from its code?
Which statement is true about using default environment variables?
When should you use the GITHUB_TOKEN in a workflow?
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?
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 need to make a script to retrieve workflow run logs by using the API. Which is the correct API endpoint to download a workflow run log?
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.)
Which statement accurately describes using labels to route GitHub Actions workflows to runners?
In which locations can actions be referenced by workflows? (Choose three.)
As a DevOps engineer, you need to execute a deployment to different environments like development and testing based on the labels added to a pull request. The deployment should use the releases branch and trigger only when there is a change in the files under apps folder. Which code block should be used to define the deployment workflow trigger?
What are the most significant advantages of adding documentation while distributing custom actions?
(Each answer presents a complete solution. Choose two.)
A workflow that had been working now stalls in a waiting state until failing. The workflow file process_ml.yaml has not changed and contains jobs specifying runs-on: [gpu]. Which of the following steps would troubleshoot the issue?
(Each answer presents a complete solution. Choose two.)
What is the proper syntax to reference the system-provided run number variable?
As a developer, which of the following snippets will enable you to run the commands npm ci and npm run build as part of a workflow?
While awaiting approval, how many days can a workflow be in the “Waiting” state before it automatically fails?
Which of the following scenarios requires a developer to explicitly use the GITHUB_TOKEN or github.token secret within a workflow? (Choose two.)