nerdexam
GitHub

GITHUB-ACTIONS · Question #28

What are the advantages of using a matrix strategy in a job definition? (Choose two.)

The correct answer is A. It can test code in multiple versions of a programming language. D. It can test code in multiple operating systems.. A matrix strategy allows you to define different versions of a programming language (or any other environment setting) and run tests on each version simultaneously. This is particularly useful for testing code compatibility across different versions of a language. A matrix strate

Use workflow components to automate software development lifecycle

Question

What are the advantages of using a matrix strategy in a job definition? (Choose two.)

Options

  • AIt can test code in multiple versions of a programming language.
  • BIt can decrease the costs for running multiple combinations of programming language/operating
  • CIt can run up to 512 jobs per workflow run.
  • DIt can test code in multiple operating systems.

How the community answered

(22 responses)
  • A
    91% (20)
  • B
    5% (1)
  • C
    5% (1)

Explanation

A matrix strategy allows you to define different versions of a programming language (or any other environment setting) and run tests on each version simultaneously. This is particularly useful for testing code compatibility across different versions of a language. A matrix strategy can also be used to test code on multiple operating systems (e.g., Windows, macOS, Linux) by defining these operating systems as matrix variables. This enables cross- platform testing within the same workflow.

Topics

#matrix strategy#parallel jobs#multi-OS testing#multi-version testing

Community Discussion

No community discussion yet for this question.

Full GITHUB-ACTIONS Practice