Question 11
While awaiting approval, how many days can a workflow be in the "Waiting" state before it automatically fails?
- 7 days
- 14 days
- 30 days
- 60 days
Question 12
When reviewing an action for use, what file defines its available inputs and outputs?
- inputs.yml
- config.json
- defaults.json
- workflow.yml
- action.yml
Question 13
Custom environment variables can be defined at multiple levels within a workflow file including: (Choose two.)
- step level.
- default level.
- stage level.
- top level.
- job level.
- runner level.
Question 14
How can GitHub Actions encrypted secrets be used in if: conditionals within a workflow job?
- Set the encrypted secret as a job-level environment variable and then reference the environment variable within the conditional statement.
- Create a job dependency that exposes the encrypted secret as a job output, which can then be leveraged in a subsequent dependent job.
- Use the secrets context within the conditional statement, e.g. ${{ secrets.MySuperSecret }}.
- Use a workflow command to expose the encrypted secret via a step's output parameter and then use the step output in the job's if: conditional.
Question 15
In which of the following scenarios should you use self-hosted runners? (Choose two.)
- when you want to use macOS runners
- when a workflow job needs to install software from the local network
- when GitHub Actions minutes must be used for the workflow runs
- when the workflow jobs must be run on Windows 10
- when jobs must run for longer than 6 hours