Question: How would you determine the number of cluster instances to start when using the cluster module?

  1. const numInstances = cluster.instances().length;
  2. const numInstances = cluster.instances();
  3. const numInstances = require('os').cpus().length;
  4. const numInstances = process.cpus().length;

Answer: The correct answer of the above question is Option C:const numInstances = require('os').cpus().length;