Which of the following is the best way for an enterprise to prevent certain marketplace actions from running?
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?
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.
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?
Which default GitHub environment variable indicates the owner and repository name?
Which native method should you use to pass files between jobs within the same GitHub Actions workflow?
Which default environment variable specifies the branch or tag that triggered a workflow?
As a developer, which workflow steps should you perform to publish an image to the GitHub Container Registry? (Choose three.)
What is the minimal syntax for declaring an output named foo for an action?
A)
B)
C)
D)
Which of the following scenarios would require the use of self-hosted runners instead of GitHub-hosted runners?
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?
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?
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?
As a developer, what options should you recommend to implement standards for automation reuse? (Choose two.)
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?
An organization ' s policies specify that only local actions are allowed. How should actions be distributed for this organization?
You are a DevOps engineer in ABC Corp. You need to schedule your deployment workflow twice a week at 7:45 UTC every Wednesday and Saturday. What is the appropriate YAML structure?
Which syntax correctly accesses a job output (output1) of an upstream job (job1) from a dependent job within a workflow?
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
}
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 statements are true regarding the use of GitHub Actions on a GitHub Enterprise Server instance? (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?
As a developer, you are configuring GitHub Actions to deploy VMs to production. A member of the VMOps team must provide approval before the deployment occurs. Which of the following steps should you take?
(Each correct answer presents part of the solution. Choose two.)
Which of the following is the most common way to target a specific major release version?
Which files are required for a Docker container action in addition to the source code? (Choose two.)
A single secret must be accessed by workflows in specific repositories. What is the best way to create the secret?
What are two reasons to keep an action in its own repository instead of bundling it with other application code?
(Each correct answer presents a complete solution. Choose two.)
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?
You need to trigger a workflow using the GitHub API for activity that happens outside of GitHub. Which workflow event do you use?
You are a DevOps engineer working on deployment workflows. You need to execute the deploy job only if the current branch name is feature-branch. Which code snippet will help you to implement the conditional execution of the job?