GitHub Actions GitHub-Actions Exam Questions
Preparing for the GitHub-Actions exam is simple with ExamsTeacher. We offer easy-to-understand study materials that help you learn the most important exam topics. You can study using our PDF questions, practice online with a real exam-style test, or use the desktop practice software. Choose the study method that works best for you and prepare at your own pace.
At ExamsTeacher, we keep our GitHub-Actions practice questions up to date. Whenever the exam syllabus or objectives change, we update our study materials so you always learn the latest topics. This helps you save time, avoid outdated content, and feel more confident when you take your exam.
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.