Microsoft

GH-200 practice question 10

GitHub Actions · free question 10 of 20

Question

Custom environment variables can be defined at multiple levels within a workflow file including: (Each answer presents a complete solution. Choose three.)
  • A. top level. Correct
  • B. step level. Correct
  • C. default level.
  • D. runner level.
  • E. job level. Correct
  • F. stage level.

Explanation

The env key can be set for the entire workflow at the top level, for a job with jobs.<job_id>.env, and for a single step with jobs.<job_id>.steps[*].env. The more specific level overrides the broader one. The defaults key sets default shell and working directory, not environment variables. Workflow syntax has no runner or stage level for env.

Practice the whole free set

Answer all 20 free GH-200 questions with instant feedback, or unlock all 106 questions with Learn and Exam modes.