nerdexam
MicrosoftMicrosoft

GH-200 · Question #57

GH-200 Question #57: Real Exam Question with Answer & Explanation

Sign in or unlock GH-200 to reveal the answer and full explanation for question #57. The question stem and answer options stay visible for context.

Author and Maintain Workflows

Question

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? A. B. C. D.

Options

  • Ajobs: build-app: strategy: matrix: node-ver: [10, 12, 14] steps: - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-ver }}
  • Bjobs: build-app: matrix-strategy: node-ver: [10, 12, 14] steps: - uses: actions/setup-node@v3 with: node-version: ${{ matrix-strategy.node-ver }}
  • Cjobs: build-app: matrix: strategy: node-ver: [10, 12, 14] steps: - uses: actions/setup-node@v3 with: node-version: ${{ matrix-strategy.node-ver }}
  • Djobs: build-app: strategy: matrix: node-ver: [10, 12, 14] steps: - uses: actions/setup-node@v3 with: node-version: ${{ strategy.node-ver }}

Unlock GH-200 to see the answer

You've previewed enough free GH-200 questions. Unlock GH-200 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#GitHub Actions#Workflow Definition#Matrix Strategy#Node.js
Full GH-200 PracticeBrowse All GH-200 Questions