← 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?
- A.Only one server runs the job
- B.Each server runs the job, so students get 3 reminders
- C.The job never runs
- 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 →