exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 8 question 56 discussion

Actual exam question from Microsoft's AZ-400
Question #: 56
Topic #: 8
[All AZ-400 Questions]

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.

  • A. the SHA-based hashes
  • B. the tag
  • C. the runner
  • D. the branch
  • E. the serial
Show Suggested Answer Hide Answer
Suggested Answer: ABD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
giuliohome
Highly Voted 2 years, 9 months ago
Selected Answer: ABD
I think the most direct reference is https://docs.github.com/en/actions/creating-actions/about-custom-actions#good-practices-for-release-management "To use a specific action version, users can configure their GitHub Actions workflow to target a tag, a commit's SHA, or a branch named for a release."
upvoted 13 times
...
Miten94
Most Recent 11 months, 2 weeks ago
Came in Exam June 23, 2024
upvoted 3 times
...
vsvaid
1 year, 5 months ago
Correct answer
upvoted 1 times
...
xRiot007
1 year, 10 months ago
Answers are A.B.D In practice, A is not human friendly, but it can be used as a good identifier because it's unique Tags are used the most along with branch names containing the version number. These are human friendly because we can clearly see the version instead of a hash.
upvoted 2 times
...
zellck
2 years ago
Selected Answer: ABD
ABD is the answer. https://docs.github.com/en/actions/creating-actions/about-custom-actions#good-practices-for-release-management To use a specific action version, users can configure their GitHub Actions workflow to target a tag, a commit's SHA, or a branch named for a release.
upvoted 3 times
...
Madbo
2 years, 1 month ago
A. The SHA-based hashes: Each commit in a Git repository has a unique SHA-1 hash associated with it. Actions can be versioned using a specific commit SHA or a branch name. Using SHA-based hashes is the most reliable way to specify the version of an action. B. The tag: Tags are labels that are assigned to a specific commit. They can be used to identify the version of an action. D. The branch: Actions can be versioned using a branch name. This is a convenient way to specify the version of an action if the branch name is already known. So, the correct options are A, B, and D
upvoted 2 times
...
anhtvux
2 years, 4 months ago
Selected Answer: ABD
hash, tag, branch to specify versions of code
upvoted 1 times
...
syu31svc
2 years, 9 months ago
Selected Answer: ABD
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions "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 author. 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." Answers are A, B and D
upvoted 3 times
...
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.

SaveCancel
Loading ...