Consider the following code snippet, and identify the RIGHT option that indicates the usage of backoffFactor in centralized configuration through consul?

const watch = consul.watch({
  method: consul.kv.get,
  options: {
    key: 'demoMS/config',
  },
  backoffFactor: 1000,
});

When a health check fails in consul, the backoffFactor determines the duration before the next health check attempt is made.

When a health check passes in consul, the backoffFactor determines the duration before the next health check attempt is made.

It listens to the config changes every 1000 milliseconds.

It listens to the config changes every 1 second.

Verified Answer
Correct Option - a

To get all Infosys Certified NodeJS Microservices Professional Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram