โ† All API Flashcard Decks

GraphQL & SOAP 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 GraphQL & SOAP Testing flashcards as text
  1. What is a SOAP 'fault' element used for?

    Answer: Returning error information in a SOAP response when an operation fails

    The SOAP Fault element is the standard mechanism for returning error details (fault code, message, and detail) in a SOAP response body.

  2. What GraphQL concept allows multiple queries to be sent in a single HTTP request?

    Answer: Batching

    GraphQL query batching combines multiple operations into a single HTTP request array, reducing round trips and improving client performance.

  3. What is 'query depth limiting' used for in GraphQL security testing?

    Answer: Preventing deeply nested queries that could cause excessive database load or DoS

    Query depth limiting rejects GraphQL queries that exceed a maximum nesting depth, preventing attackers from crafting expensive recursive queries.

  4. How does testing a SOAP API differ from testing a REST API?

    Answer: SOAP requires XML WSDL-based requests; REST uses flexible JSON and standard HTTP methods

    SOAP testing requires generating valid XML envelopes conforming to a WSDL contract, while REST testing uses more flexible JSON payloads and varied HTTP methods.

  5. What is a GraphQL 'fragment' used for in testing and development?

    Answer: Reusing a set of fields across multiple queries to reduce duplication

    GraphQL fragments define reusable sets of fields that can be included in multiple queries, reducing repetition and keeping test queries DRY.

  6. What does WS-Security provide in SOAP web service testing?

    Answer: A standardized way to apply security measures like encryption and digital signatures to SOAP messages

    WS-Security is a SOAP extension standard that enables message-level security including authentication tokens, XML encryption, and digital signatures.