Question: How can Maven profiles be triggered?

  1. by explicitly calling the profiles using the -P flag
  2. based on environment variables
  3. all of these answers
  4. through Maven settings

Answer: The correct answer of the above question is Option C:all of these answers