GitHub Foundations Free Practice Exam Questions

28 real GitHub Foundations exam questions with answers and AI explanations. Microsoft certification prep — page 3 of 3.

  1. Question 21: Which of the following scenarios requires a developer to explicitly use the GITHUB_TOKEN or github.token secret within a workflow? (Choose two.)
  2. Question 22: Which default GitHub environment variable indicates the name of the person or app that initiated a workflow?
  3. Question 23: Your organization needs to simplify reusing and maintaining automation in your GitHub Enterprise Cloud. Which components can be directly reused across all repo…
  4. Question 24: 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? (Eac…
  5. Question 25: 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?
  6. Question 26: A single secret must be accessed by workflows in specific repositories. What is the best way to create the secret?
  7. Question 27: How can a workflow deploy mitigate the risk of multiple workflow runs that are deploying to a single cloud environment simultaneously? (Each correct answer pre…
  8. Question 28: As a developer, which workflow steps should you perform to publish an image to the GitHub Container Registry? (Each correct answer represents part of the solut…