🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Scheduling and Async: all 10 questions

Quiz: Scheduling and Async · Question 9 of 10

An app with a @Scheduled reminder job runs on 3 servers. What is the problem?

An app with a @Scheduled reminder job runs on 3 servers. What is the problem?

  1. A.Only one server runs the job
  2. B.Each server runs the job, so students get 3 reminders
  3. C.The job never runs
  4. D.Spring automatically picks one leader server
Answer & explanation

Correct answer: Each server runs the job, so students get 3 reminders

Every instance has its own scheduler; use a lock (e.g. ShedLock) or a single worker.

Can you get the rest right without peeking?

Take the timed Quiz: Scheduling and Async quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →