nerdexam
Microsoft

AZ-400 · Question #408

You have a GitHub repository that contains workflows. The workflows contain steps that execute predefined actions. Each action has one or more versions. You need to request the specific version of an

The correct answer is A. the SHA-based hashes B. the tag D. the branch. We strongly recommend that you include the version of the action you are using by specifying a Git ref, SHA, or Docker tag. If you don't specify a version, it could break your workflows or cause unexpected behavior when the action owner publishes an update. Using the commit SHA o

Submitted by the_admin· Mar 6, 2026Design and implement build and release pipelines

Question

You have a GitHub repository that contains workflows. The workflows contain steps that execute predefined actions. Each action has one or more versions. You need to request the specific version of an action to execute. Which three attributes can you use to identify the version? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

Options

  • Athe SHA-based hashes
  • Bthe tag
  • Cthe runner
  • Dthe branch
  • Ethe serial

How the community answered

(30 responses)
  • A
    70% (21)
  • C
    20% (6)
  • E
    10% (3)

Explanation

We strongly recommend that you include the version of the action you are using by specifying a Git ref, SHA, or Docker tag. If you don't specify a version, it could break your workflows or cause unexpected behavior when the action owner publishes an update. Using the commit SHA of a released action version is the safest for stability and security. If the action publishes major version tags, you should expect to receive critical fixes and security patches while still retaining compatibility. Note that this behavior is at the discretion of the action's Using the default branch of an action may be convenient, but if someone releases a new major version with a breaking change, your workflow could break. https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions

Topics

#GitHub Actions versioning#SHA hash pinning#branch reference#action version

Community Discussion

No community discussion yet for this question.

Full AZ-400 Practice