350-901 · Question #45
Which two statements about a stateless application are true? (Choose two.)
The correct answer is A. Different requests can be processed by different servers. B. Requests are based only on information relayed with each request. A stateless application processes each request independently without retaining any client-specific information from previous interactions on the server side.
Question
Options
- ADifferent requests can be processed by different servers.
- BRequests are based only on information relayed with each request.
- CInformation about earlier requests must be kept and must be accessible.
- DThe same server must be used to process all requests that are linked to the same state.
- ENo state information can be shared across servers.
How the community answered
(32 responses)- A88% (28)
- C6% (2)
- D3% (1)
- E3% (1)
Why each option
A stateless application processes each request independently without retaining any client-specific information from previous interactions on the server side.
Since a stateless application does not store any session or client-specific data on the server, any available server instance can process any incoming request, greatly improving scalability and fault tolerance.
For a stateless application, all the necessary context and data required to process a request must be contained within the request itself, as the server retains no memory of previous interactions.
This statement describes a stateful application, where information from earlier requests must be maintained on the server to process subsequent requests correctly.
This statement describes session affinity or sticky sessions, a characteristic of stateful applications where client requests must be routed to the same server to maintain state.
While stateless servers don't maintain internal state, they can still interact with external, shared state stores (like databases or distributed caches), so the statement that 'no state information can be shared across servers' is inaccurate.
Concept tested: Stateless application characteristics
Source: https://learn.microsoft.com/en-us/azure/architecture/guide/design-principles/stateless-services
Topics
Community Discussion
No community discussion yet for this question.