โ† All API Flashcard Decks

API Performance Testing Flashcards

6 cards from real API practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 6 API Performance Testing flashcards as text
  1. What is the difference between latency and response time in API performance testing?

    Answer: Latency is network delay; response time includes processing and latency

    Latency refers to the network travel time, while response time is the total duration from request send to response receipt, including server processing.

  2. Which technique helps improve API performance by storing frequently requested responses temporarily?

    Answer: Caching

    Caching stores responses for identical requests, reducing backend processing and database load, significantly improving API throughput.

  3. What does a 'baseline test' establish in API performance testing?

    Answer: Normal performance metrics used as a reference for future comparisons

    A baseline test captures API performance under normal conditions, providing reference metrics to detect regressions after code changes.

  4. What HTTP mechanism allows a client to reuse an existing TCP connection for multiple requests, improving performance?

    Answer: Keep-Alive

    HTTP Keep-Alive (persistent connections) allows the client and server to reuse the same TCP connection for multiple requests, reducing connection overhead.

  5. Which API design technique reduces over-fetching and can improve performance by letting clients request only the data they need?

    Answer: GraphQL queries

    GraphQL lets clients specify exactly which fields they need, eliminating over-fetching and reducing response payload size.

  6. What does 'connection pooling' do to improve API performance testing results?

    Answer: Reuses database connections instead of creating new ones per request

    Connection pooling maintains a pool of pre-established database connections, dramatically reducing the overhead of creating new connections per API request.