nerdexam
MicrosoftMicrosoft

GH-200 · Question #93

GH-200 Question #93: Real Exam Question with Answer & Explanation

Sign in or unlock GH-200 to reveal the answer and full explanation for question #93. The question stem and answer options stay visible for context.

Author and Maintain Workflows

Question

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?

Options

  • Arun: echo "::set-env name=FOO::bar"
  • Brun: echo "FOO=bar" >> $GITHUB_ENV
  • Crun: echo ${{ $FOO=bar }}
  • Drun: export FOO=bar

Unlock GH-200 to see the answer

You've previewed enough free GH-200 questions. Unlock GH-200 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#environment variables#workflow syntax#step communication#GitHub Actions
Full GH-200 PracticeBrowse All GH-200 Questions