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 statement accurately describes using labels to route GitHub Actions workflows to runners?
Which default GitHub environment variable indicates the owner and repository name?
How can a workflow deployment mitigate the risk of multiple workflow runs deploying to a single cloud environment simultaneously?
(Each correct answer presents part of the solution. Choose two.)
When reviewing an action for use, what file defines its available inputs and outputs?
An organization ' s policies specify that only local actions are allowed. How should actions be distributed for this organization?
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.)
Which of the following is the best way for an enterprise to prevent certain marketplace actions from running?
Which syntax correctly accesses a job output (output1) of an upstream job (job1) from a dependent job within a workflow?
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 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 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.
As a DevOps engineer, you need to define a deployment workflow that runs after the build workflow has successfully completed. Without modifying the build workflow, which trigger should you define in the deployment workflow?
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 default environment variable specifies the branch or tag that triggered a workflow?
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 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?
You have exactly one Windows x64 self-hosted runner, and it is configured with custom tools. Which syntax could you use in the workflow to target that runner?
As a developer, you want to review the step that caused a workflow failure and the failed step ' s build logs. First navigate to the main page of the repository on GitHub. Which section contains the step failure information?
You need to use a specific version of an action. How should you use v1 of an actions/javascript-action repository in your workflow?
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.)
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?
What are the two types of environment protection rules you can configure? (Choose two.)
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?
You have a GitHub repository that contains a composite action named Action1 and a workflow named Workflow1. Workflow1 contains the following steps:
• Calls Action1 in a step named report
• Passes count: ' 5 ' by using with
• Reads ${{ steps.report.outputs.summary )}
Action1 completes successfully, but the last step receives an empty value for summary.
You need to ensure that Action1 consumes the input of Workflow1 and exposes the expected output.
How should you complete the metadata file? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

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.)
Which action type should be used to bundle a series of run steps into a reusable custom action?
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.)
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?
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?
As a developer, you need to add the correct syntax to allow the following workflow file to be triggered by multiple types of events.
Which two code blocks should you add starting at line 5? Each correct answer presents a complete solution.
NOTE: Each correct answer is worth one point.
4 name: Node CI/CD
5
6
7
8 jobs:
9 build:
10 runs-on:
11 steps:
12 - uses: actions/checkout@v2
13 - uses: actions/setup-node@v1
14 with:
15 node-version: 12
16 - run: npm ci
17 - run: npm test
18
In which of the following scenarios should you use self-hosted runners? Each correct answer presents a complete solution.
NOTE: Each correct answer is worth one point.