nerdexam
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)
  • A
    83% (20)
  • B
    8% (2)
  • C
    4% (1)
  • D
    4% (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.

Full AZ-400 Practice