GH-200 · Question #71
GH-200 Question #71: Real Exam Question with Answer & Explanation
The correct answer is F: env:. {"question_number": 8, "correct_answer": "F", "explanation": "In GitHub Actions workflow syntax, environment variables are declared using the env: keyword, followed by key-value pairs. The correct syntax is:\n``yaml\nenv:\n MY_VARIABLE: my-value\n`\nThe env: key is the official G
Question
Which of the following is the proper syntax to specify a custom environment variable named MY_VARIABLE with the value my-value?
Options
- Avar:
- Benvironment:
- Cvar:
- Denv:
- Eenvironment:
- Fenv:
Explanation
{"question_number": 8, "correct_answer": "F", "explanation": "In GitHub Actions workflow syntax, environment variables are declared using the env: keyword, followed by key-value pairs. The correct syntax is:\nyaml\nenv:\n MY_VARIABLE: my-value\n\nThe env: key is the official GitHub Actions YAML key for defining environment variables at the workflow, job, or step level. Options using var: (A, C) or environment: (B, E) are not valid GitHub Actions syntax for defining environment variables. environment: is used to specify deployment environments, not variable definitions.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.