June 7, 2020

API Testing Interview Questions Set 1

By Atul Kumar Mishra
  • What‌ ‌is‌ ‌an‌ ‌API?‌ ‌

  • What‌ ‌is‌ ‌API‌ ‌Testing?‌ ‌

  • Why API Testing is important?

  • What‌ ‌are‌ ‌the‌ ‌common‌ ‌API‌ ‌Testing‌ ‌Types?‌ ‌

  • Name‌ ‌some‌ ‌of‌ ‌the‌ ‌common‌ ‌protocols‌ ‌used‌ ‌in‌ ‌API‌ ‌Testing?‌ ‌

  • Difference‌ ‌between‌ ‌API‌ ‌and‌ ‌Web‌ ‌services?‌ ‌

  • What‌ ‌are‌ ‌the‌ ‌advantages‌ ‌of‌ ‌API‌ ‌Testing over functional UI Testing?‌ ‌At what places will you consider using API Testing rather than UI Testing?(By Chandan)

  •  ‌What‌ ‌exactly‌ ‌needs‌ ‌to‌ ‌be‌ ‌verified‌ ‌in‌ ‌API‌ ‌Testing?‌ ‌

  • Name‌ ‌some‌ ‌tools‌ ‌used‌ ‌for‌ ‌API‌ ‌Testing?‌ ‌

  • List‌ ‌some‌ ‌commonly ‌used‌ ‌templates‌ ‌for‌ ‌API‌ ‌documentation tools? ‌ ‌

  • What‌ ‌the‌ ‌main‌ ‌challenges you‌ ‌face while doing‌‌ ‌API‌ ‌testing?‌ ‌

  • What‌ ‌are‌ ‌the‌ ‌types‌ ‌of‌ ‌bugs‌ ‌we‌ ‌find ‌when‌ ‌performing‌ ‌API‌ ‌testing?‌ ‌

  • Explain all the‌ ‌HTTP‌ ‌methods used in API?‌ ‌

  • What‌ ‌is‌ ‌the‌ ‌difference‌ ‌between‌ ‌PUT‌ ‌and‌ ‌Patch ‌method?‌ ‌(By Chandan)

  • What‌ ‌is‌ ‌an‌ ‌API‌ ‌client?‌ ‌How is it useful in API Testing?

  • What is the difference‌ ‌between‌ ‌GET‌ ‌and‌ ‌OPTION ‌methods?‌ ‌(By Chandan)

  • What‌ ‌is‌ ‌the‌ ‌HTTP‌ ‌response?‌ ‌What‌ ‌are‌ ‌the‌ ‌components‌ ‌of‌ ‌the‌ ‌HTTP‌ ‌response?‌ ‌

  • What‌ ‌is‌ ‌the‌ ‌HTTP‌ ‌request?‌ ‌What‌ ‌is‌ ‌the‌ ‌component‌ ‌of‌ ‌the‌ ‌HTTP‌ ‌request?‌ ‌

  • What are different response error codes in API, Explain each one with an example?‌ ‌

  • What‌ ‌are‌ ‌the‌ ‌Client-Side‌ ‌Errors?‌ ‌ Give at least 5 examples?

  • What‌ ‌are‌ ‌Server‌ ‌Side‌ ‌Errors? Give at least 5 examples?

    ‌ ‌
  • What‌ ‌is‌ ‌the‌ ‌payload?‌ ‌Why do we need to use payload? can we send request successfully without payloads? (By Chandan)

  • What‌ ‌is‌ ‌a‌ ‌Query‌ ‌Parameter?‌ ‌How is it useful in API Testing? Does it help in improving the performance of the API?(By Chandan)

  • What‌ ‌do‌ ‌you‌ ‌mean‌ ‌by‌ ‌Header?‌ ‌How it is useful in APIs? How does it help in terms of security?(By Chandan)

  • What is a cookie and How‌ ‌do‌ ‌you‌ ‌customize‌ ‌cookies?‌ ‌ What role does cookie have in API and API Testing? (By Chandan)

  • What‌ ‌is‌  ‌JSON?‌ ‌Why we use JSON in APIs?

  • What is the Difference‌ ‌between‌ ‌Rest ‌and‌ ‌Soap?‌ ‌ Name some examples where rest is a better option compared to soap and name some examples where soap is a better option compared to rest. (By Chandan)

  • What is the difference between authentication and authorization? Explain with example.(By Chandan)

  • What is the Difference between oauth1 & oauth2? What upgrades were made in oauth2 and where do you think oauth1 is useful compared to oauth2? Explain with example.(By Chandan)

    Note: We have not provided answers as we believe you will learn more and remember more when you look for answers yourself and you will also improve your Research and Development Skills while doing that.