Microsoft
AZ-400 · Question #378
You are designing a YAML template for use with Azure Pipelines. The template Will include the Outputfile parameter. Which two methods can you use to reference the parameter? Each correct answer…
The correct answer is A. ${{parameters.outputfile}} E. ${{parameters['outputfile']}}. The parameters section in a YAML defines what parameters are available. Parameters are only available at template parsing time. Parameters are expanded just before the pipeline runs so that values surrounded by ${{ }} are replaced with parameter values…
Submitted by amina.ke· Mar 6, 2026Design and implement build and release pipelines
Question
You are designing a YAML template for use with Azure Pipelines. The template Will include the Outputfile parameter. Which two methods can you use to reference the parameter? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
Options
- A${{parameters.outputfile}}
- B$(parameters['outputfile'])
- C$(parameters.outputfile)
- D$(parameters[outputfile])
- E${{parameters['outputfile']}}
How the community answered
(24 responses)- A83% (20)
- B8% (2)
- C4% (1)
- D4% (1)
Explanation
The parameters section in a YAML defines what parameters are available. Parameters are only available at template parsing time. Parameters are expanded just before the pipeline runs so that values surrounded by ${{ }} are replaced with parameter values. https://docs.microsoft.com/en-us/azure/devops/pipelines/process/runtime-parameters
Community Discussion
No community discussion yet for this question.