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.)
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
}
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 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 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.)
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?
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 need to trigger a workflow using the GitHub API for activity that happens outside of GitHub. Which workflow event do you use?
Which statement is true about using default environment variables?
As a developer, what options should you recommend to implement standards for automation reuse? (Choose two.)
As a developer, how can you identify a JavaScript action on GitHub?
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?
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 contains a different value for use in a workflow that is scoped to a specific repository named MyRepo. How should you store the secret to access your specific version within your workflow?
As a developer, how should you enable step debug logging for a workflow?
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.)
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 developer, you need to create a custom action written in Python. Which action type should you choose?
As a developer, you need to create a custom action written in Python. Which action type should you choose?
Which workflow command would output the debug message " action successfully debugged " ?
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 workflow? (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?
Which native method should you use to pass files between jobs within the same GitHub Actions workflow?
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.)
What metadata file in a custom action defines the main entry point?
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?
Which scopes are available to define custom environment variables within a workflow file? (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?
Which statement accurately describes using labels to route GitHub Actions workflows to runners?
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 annotation in your Actions?
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 annotation in your Actions?
You need to stop a GitHub Actions workflow from running. The solution must retain the configuration and execution history of the workflow.
What should you do?
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 statements are true? (Choose two.)
As a developer, you want to run a workflow from the Actions tab in GitHub. Which YAML snippet should you use to match the interface in this image?
A)
B)
C)
D)
Which default GitHub environment variable indicates the owner and repository name?
What is the smallest scope for an environment variable?
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.
NOTE: Each correct answer is worth one point.
Which of the following scenarios would require the use of self-hosted runners instead of GitHub-hosted runners?
What is the minimal syntax for declaring an output named foo for an action?
A)
B)
C)
D)
You are a DevOps engineer working on custom Actions development. You need to handle the errors or exceptions as part of the JavaScript-based action code. What should be added to the following code block to handle errors?
Exhibit:
const core = require( ' @actions/core ' );
try {
// action code
} catch (error) {
< < insert snippet here > >
}
Which statement is true regarding the ability to delete a workflow run?
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 GitHub repository named Repo1. Repo1 uses GitHub Actions workflows that upload build artifacts
You plan to change the artifact and log retention period to 30 days.
You need to remove expired GitHub Actions artifacts from Report. The solution must explicitly identify and delete existing expired artifacts by using the REST API.
How should you complete the script? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

As a developer, how can you identify a Docker container action on GitHub?
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?
A single secret must be accessed by workflows in specific repositories. What is the best way to create the secret?
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?
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.)