Spring Boot - Async ProcessingWhy is the question mark (?) required in either the day-of-month or day-of-week field in Spring Boot cron expressions?ABecause specifying both fields causes ambiguity in schedulingBBecause ? means 'run every day' and is mandatoryCBecause ? disables the scheduler temporarilyDBecause ? is used to specify the year fieldCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand day-of-month and day-of-week fieldsIn cron, day-of-month and day-of-week fields can both specify when to run, but if both are set, it can cause conflicts or ambiguity.Step 2: Role of question markThe question mark (?) is used in one of these fields to say 'no specific value' to avoid ambiguity, ensuring the scheduler knows which field to use.Final Answer:Because specifying both fields causes ambiguity in scheduling -> Option AQuick Check:Use ? to avoid day-of-month/day-of-week conflict [OK]Quick Trick: Use ? in one day field to avoid ambiguity [OK]Common Mistakes:Thinking ? means run every dayUsing ? in wrong fieldsConfusing ? with *
Master "Async Processing" in Spring Boot9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallPerf
More Spring Boot Quizzes Advanced Patterns - Feature flags concept - Quiz 5medium Async Processing - Custom thread pool configuration - Quiz 4medium Caching - Redis as cache provider - Quiz 7medium Caching - Redis as cache provider - Quiz 5medium Docker and Deployment - Why containerization matters - Quiz 9hard Docker and Deployment - CI/CD pipeline basics - Quiz 3easy Messaging - Message serialization - Quiz 2easy Messaging - @RabbitListener for consuming - Quiz 13medium Messaging - Kafka integration basics - Quiz 2easy Testing Spring Boot Applications - @MockBean for mocking dependencies - Quiz 14medium