ASSESSMENT 2026 COMPLETE SOLVED
QUESTIONS
◉ What is an API? Answer: An Application Programming Interface
that allows two applications or software systems to communicate
with each other using a set of definitions and protocols.
◉ What does a REST API do? Answer: IT communicates via HTTP
requests to perform standard database functions like CRUD.
◉ What are CRUD functions called within a REST API? Answer:
Methods
◉ When is a method safe? Answer: When the state of the system will
not be changed after the method is done
◉ when is a method idempotent? Answer: when the effect of
multiple identical requests is the same as a single request.
◉ which methods are considered safe? Answer: GET, HEAD,
OPTIONS
, ◉ which methods are considered idempotent? Answer: GET, PUT,
DELETE, HEAD, OPTIONS
◉ which methods are considered nether safe nor idempotent?
Answer: POST, PATCH
◉ which methods are considered safe and idempotent? Answer:
GET, HEAD, OPTIONS
◉ what does the GET method do? Answer: it retrieves information
from on a resource or a group of resources based on specified
identifiers.
◉ what does the POST method do? Answer: It creates an object from
the information in its body based on specified identifiers.
◉ What does the PUT method do? Answer: It updates a single object
in its entirety with the information in its body, empty values
included.
◉ What does the PATCH method do? Answer: It updates specific
values or initiates actions on a single object based on the
information in its body, if these changes do not change the object
identifier.