Bird
0
0

Which Flask route method is best to check the status of a running background task?

easy📝 Syntax Q12 of 15
Flask - Background Tasks
Which Flask route method is best to check the status of a running background task?
APOST
BGET
CDELETE
DPUT
Step-by-Step Solution
Solution:
  1. Step 1: Understand HTTP methods for status checking

    GET is used to retrieve information without changing server state.
  2. Step 2: Match method to task status check

    Checking task status is a read operation, so GET is appropriate.
  3. Final Answer:

    GET -> Option B
  4. Quick Check:

    Check status = GET request [OK]
Quick Trick: Use GET to fetch status without changing data [OK]
Common Mistakes:
MISTAKES
  • Using POST which changes data
  • Choosing DELETE which removes data
  • Using PUT which updates data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Flask Quizzes