Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft GH-200 Exam - Topic 2 Question 19 Discussion

Posted by Cristal on Jul 22, 2026 at 03:03 AM

As a DevOps engineer, you are developing workflows to build an application. You have a requirement to create the build targeting multiple node versions. Which code block should you use to define the workflow?

Suggested Answer: B

The correct GitHub Actions syntax for running a job across multiple Node.js versions is strategy.matrix. The matrix values are referenced at runtime through the matrix context, so node-version: ${{ matrix.node-ver }} is correct. Option A defines the matrix correctly but references it incorrectly through strategy.node-ver; matrix values are not accessed through the strategy context. Option C uses matrix-strategy, which is not a valid GitHub Actions workflow key. Option D reverses the structure by putting strategy under matrix, which is invalid. This question tests matrix strategy syntax, dynamic job configuration, and using matrix values as inputs to actions such as actions/setup-node. GitHub defines jobs.<job_id>.strategy.matrix as the proper matrix mechanism.


Get Premium GH-200 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
AD
Adela 1 month ago
I’m leaning towards D. It looks similar to B but has a slight variation in structure.
MA
Marshall 2 months ago
Agreed! B makes sense. It clearly defines the node versions.
WI
Wilda 2 months ago
I think option B is the best. It uses the correct syntax for matrix variables.
LI
Lillian 2 months ago
I'm surprised there's so much variation in these options!
JO
Johnetta 2 months ago
B is the way to go, no doubt about it!
NO
Noble 2 months ago
Wait, what's wrong with A? It seems similar to B.
CH
Cherilyn 2 months ago
I think D looks good too, but I'm not sure about the order.
CL
Clorinda 3 months ago
Definitely B, that's the correct syntax for matrix strategy!
VA
Valentin 3 months ago
I'm leaning towards option B too, but I keep second-guessing myself about the correct placement of "strategy" in the syntax.
CH
Chantell 3 months ago
I feel like I've seen something similar to option D in a practice question, but I can't recall if "matrix-strategy" is correct.
GA
Galen 3 months ago
I think option B looks familiar; it seems to match what we practiced with defining node versions in workflows.
SA
Santos 3 months ago
I remember studying matrix strategies, but I'm not sure if the syntax is exactly right in option A.
0/2000 characters

Save Cancel