Pergunta de entrevista da empresa Notch

How would you handle a situation where an API endpoint randomly fails?