exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 5 question 24 discussion

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

DRAG DROP
-

You have a GitHub repository named repo1 that stores the code of an app named App1.

You need deploy a workflow for repo1 by using GitHub Actions. The solution must meet the following requirements:

• Scan on pushes to the main branch.
• Scan on pull requests to the main branch.
• Scan on pull requests to any branch that has a prefix of releases/.
• Scan all the files in the subdirectories of the src directory.
• Exclude scanning of markdown files.

How should you complete the code? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

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
AzureJobsTillRetire
Highly Voted 1 year, 10 months ago
double star double star and double star
upvoted 26 times
...
zellck
Highly Voted 1 year, 6 months ago
1. - 'releases/**' 2. - 'src/**' 3. - '**/*.md' https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-including-paths https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-excluding-paths
upvoted 11 times
...
hanzocodes
Most Recent 11 months, 2 weeks ago
release scarce meds - double stars
upvoted 2 times
...
vsvaid
11 months, 3 weeks ago
Agree with answer
upvoted 1 times
...
KingTN
1 year, 2 months ago
* is a simple, non-recursive wildcard representing zero or more characters which you can use for paths and file names. ** is a recursive wildcard which can only be used with paths, not file names. https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
upvoted 1 times
...
renzoku
1 year, 4 months ago
You have a GitHub repository named repo1 that stores the code of an app named App1. You need deploy a workflow for repo1 by using GitHub Actions. The solution must meet the following requirements: • Scan on pushes to the main branch. • Scan on pull requests to the main branch. • Scan on pull requests to any branch that has a prefix of releases/. • Scan all the files in the subdirectories of the src directory. • Exclude scanning of markdown files. How should you complete ___________ in the code with the next alternatives? A. '**/*.md' B. '*.md' C. 'release*' D. 'releases/**' E. 'src/*' F. 'src/**' on: push: branches: [main] pull_request: branches: - main ___________ paths: ___________ paths-ignore: ___________
upvoted 1 times
...
gujjudesi420
1 year, 5 months ago
Box 1 'releases/**' matches branches that start with "releases/" and can have any number of levels of directory structure after the prefix. It matches branches like "releases/v1", "releases/stable", and "releases/v1/bugfix" because it allows any level of subdirectories after the "releases/" prefix. Box 2 **/*.md: This pattern matches any file with the .md extension in any directory and its subdirectories. The ** is a wildcard that represents any level of directories. So, for example, it would match files like file.md, subdir/file.md, subdir/subdir2/file.md, and so on. Box 3 src/**: This pattern matches any file or directory within the src directory and its subdirectories. The ** is a wildcard that represents any level of directories. So, for example, it would match files or directories like src/file.txt, src/subdir/file.txt, src/subdir/subdir2/file.txt, and so on.
upvoted 2 times
...
warchoon
1 year, 10 months ago
Correct '*' Matches all branch and tag names that don't contain a slash (/). The * character is a special character in YAML. When you start a pattern with *, you must use quotes. '**' Matches all branch and tag names. This is the default behavior when you don't use a branches or tags filter. https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions https://www.examtopics.com/discussions/microsoft/view/96638-exam-az-400-topic-5-question-24-discussion/
upvoted 3 times
...
Bill727
1 year, 10 months ago
Correct
upvoted 2 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 ...