As a developer, what options should you recommend to implement standards for automation reuse? (Choose two.)
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 created a JavaScript action. What is the best way to test your JavaScript action?
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?
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 default environment variable specifies the branch or tag that triggered a workflow?
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?
As a DevOps engineer, you are developing a container action. You need to execute a cleanup script after completing the main script execution. Which code block should be used to define the cleanup script?
As a developer, your self-hosted runner sometimes loses its connection while running jobs. How should you troubleshoot the issue affecting your self-hosted runner?
You have a private GitHub repository that has GitHub Actions enabled. You need to create a CI workflow that can be used by GitHub Actions. You select an organization-approved workflow template.
What should you do next?
You need to perform a task that requires running a custom script in a GitHub Actions workflow. The script must run within the workflow environment without requiring an external container or prebuilt image.
What should you use?
What are the two mandatory requirements for publishing GitHub Actions to the GitHub Marketplace? Each correct answer presents part of the solution.
NOTE: Each correct answer is worth one point.
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?
You have a GitHub Enterprise Server instance that hosts a custom action repository named action1. Production workflows use the actions in action1 as action1@vl. The current stable release of action1 is vl.8.4.
You need to publish a new release of action1 with version number v2.0.0 that changes an input name and includes release assets. The solution must meet the following requirements:
• Ensure that existing consumers of v1 continue to receive backward-compatible updates.
• Prevent changes to the published V2.0.0 release assets and release tag after publication.
What should you do for each requirement? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

As a developer, you need to make sure that only actions from trusted sources are available for use in your GitHub Enterprise Cloud organization. Which of the following statements are true? (Choose three.)
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.)
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? (Choose two.)
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?
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.)
What is the right method to ensure users approve a workflow before the next step proceeds?
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.)
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.)
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?
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 entry point. Which code block should be used to define the metadata file for your custom action?
Your organization needs to simplify reusing and maintaining automation in your GitHub Enterprise Cloud. Which components can be directly reused across all repositories in an organization? (Choose three.)
Where should workflow files be stored to be triggered by events in a repository?
You have a GitHub Enterprise Cloud Organization that contains private repositories for three apps. The workflow of each app has a job that uses repository secrets and calls a shared deployment action.
You plan to replace separate deployment scripts with a single custom action.
You need to recommend a distribution and versioning approach for the custom action. The solution must meet the following requirements:
The action repository must be private.
Only specific application repositories can use the action.
The workflow reference must be resistant to changes in the action repository without requiring a workflow file change.
What should you recommend?
Which syntax correctly accesses a job output (output1) of an upstream job (job1) from a dependent job within a workflow?
Which statement accurately describes using labels to route GitHub Actions workflows to runners?
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 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?
Which of the following is the lowest repository permission you need to have for downloading workflow artifacts?
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 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.)