Prepare Smarter for the GitHub-Actions Exam
Build your exam confidence with flexible preparation resources designed around the latest GitHub-Actions exam objectives. Practice at your own pace using PDF questions, online exam simulations, or desktop practice software.
As a developer, which workflow steps should you perform to publish an image to the GitHub Container Registry? (Choose three.)
Correct Answer: A, B, D
As a developer, you have a 10-MB data set that is required in a specific workflow. Which stepsshould you perform so the dataset is stored encrypted and can be decrypted during the workflow? (Choose three.)
Correct Answer: A, C, D
First, the dataset should be encrypted before being stored. This ensures that the data is protected when stored in a repository. The encrypted dataset can be stored in a GitHub secret, ensuring it is securely kept and not exposed publicly. The encryption key needed to decrypt the dataset should also be stored in a GitHub secret to maintain security during the workflow, allowing access only when needed.
Which statement is true about using default environment variables?
Correct Answer: D
GITHUB_WORKSPACE is a default environment variable in GitHub Actions that points to the directory on the runner where your repository is checked out. This variable allows you to access files within your repository during the workflow.
Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?
Correct Answer: C
The GITHUB_ACTOR environment variable indicates the name of the person or app that initiated the workflow. This variable is automatically provided by GitHub in the workflow and can be used to identify the user or application triggering the workflow.
Which workflow commands send information from the runner? (Choose two.)
Correct Answer: B, D
Setting a debug message using ::debug:: command sends a message to the logs, helping with troubleshooting and providing insight into the workflow run.
Setting output parameters using ::set-output sends data from a job step to subsequent steps or jobs, which can be used later in the workflow.