Consider the following code snippet, and identify the RIGHT option that indicates the usage of passing: true in service discovery using consul?

consul.health.service(
{
service: serviceId,
passing: true,
},(err,result)=>{
…
…
}

Indicating consul to give only the healthy instances for the given serviceId.

Indicates the service Id is registered to the consul.

It listens to the config changes. 

It indicates the service might be facing potential issues and unavailable to handle requests. 

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