Free Microsoft GH-500 Actual Exam Questions - Question 5 Discussion

Question No. 5
– [Configure GitHub Actions Workflows]
As a repository owner, you do not want to run a GitHub Actions workflow when changes are made to
any .txt or markdown files. How would you adjust the event trigger for a pull request that targets the
main branch? (Each answer presents part of the solution. Choose three.)
on:
pull_request:
branches: [main]
Select all that apply, then reveal solution.
US
AS
Arjun S.
2026-02-19

D with A and B feels right since paths-ignore is for skipping files, and A and B cover all .md and .txt files broadly. E is too narrow, focusing only on docs/*.md.

0
AS
Arjun S.
2026-02-17

Probably D, A, and B since paths-ignore with those patterns excludes all .md and .txt files globally.

0
AS
Arjun S.
2026-02-16

D paths-ignore is definitely needed to exclude files, and A and B cover all .md and .txt files globally. That seems simpler than targeting just docs/*.md with E.

0
AN
Ali N.
2026-02-13

Makes sense to use D since paths-ignore tells GitHub which files to skip, and E targets markdown files in the docs folder specifically. So, D, C, and E work together well here.

0
AQ
Ahmed Q.
2026-02-12

Option D plus C and E; C defines paths-ignore, and E targets markdown in docs folder.

0
OM
Osama M.
2026-02-09

Maybe D, plus A and B to cover both file types globally.

0
MK
Marco K.
2026-01-25

Maybe D for excluding globally, then A for markdown and B for txt files.

0
TB
Tom B.
2026-01-20

D for paths-ignore definitely plays the main role since you want to skip running the workflow on those file types. Then B for the .txt files and A for the .md files make sense to cover both extensions globally. E is too specific to docs/ folder, which the question doesn’t mention, so better to avoid that. C just introduces the block but doesn’t solve the ignoring part by itself. So D, B, and A seem like the most fitting trio here.

0
TU
Tom U.
2026-01-19

It’s D and C for sure, plus B to cover .txt files globally.

0
NA
Noah A.
2026-01-16

C/D/E? Using paths-ignore makes more sense here to exclude files, and specifying the folder like in E keeps it organized. C is needed to define the paths or paths-ignore block.

0
TU
Tom U.
2026-01-15

Is this about ignoring .txt and markdown files globally or just in specific folders?

0