Bird
0
0

You want to make a GET request that automatically retries up to 3 times on failure. Which RxJS operator should you use with HttpClient.get?

hard🚀 Application Q9 of 15
Angular - HTTP Client
You want to make a GET request that automatically retries up to 3 times on failure. Which RxJS operator should you use with HttpClient.get?
Amap()
BcatchError()
Cfilter()
Dretry(3)
Step-by-Step Solution
Solution:
  1. Step 1: Identify retry operator purpose

    retry(3) automatically retries the Observable up to 3 times on error.
  2. Step 2: Exclude other operators

    catchError handles errors but does not retry, map transforms data, filter filters emissions.
  3. Final Answer:

    retry(3) -> Option D
  4. Quick Check:

    Use retry() to repeat failed requests [OK]
Quick Trick: Use retry() to repeat failed GET requests [OK]
Common Mistakes:
MISTAKES
  • Using catchError instead of retry
  • Confusing map with retry
  • Trying filter for retries

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes