Why option D is NOT correct
D. within the run attribute of a job step
In GitHub Actions, environment variables can only be defined using the env: block, not inside the run: block.
Inside a run: block, you can use variables or export shell variables, but that does not create a GitHub Actions environment variable in the YAML sense.
The correct scopes for defining custom environment variables within a GitHub Actions workflow file are:
A. the entire workflow, by using env at the top level of the workflow file
D. within the run attribute of a job step
F. a specific step within a job, by using jobs.<job_id>.steps[*].env
D is the only option that isn't immediately wrong.
upvoted 1 times
...
This section is not available anymore. Please use the main Exam Page.GH-200 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
MaharshiRabari
9 hours, 46 minutes ago0a9a335
1 month, 1 week ago[Removed]
2 months, 1 week ago