nerdexam
Cisco

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.

Understanding and Using APIs

Question

Which two statements about a stateless application are true? (Choose two.)

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)
  • A
    88% (28)
  • C
    6% (2)
  • D
    3% (1)
  • E
    3% (1)

Why each option

A stateless application processes each request independently without retaining any client-specific information from previous interactions on the server side.

ADifferent requests can be processed by different servers.Correct

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.

BRequests are based only on information relayed with each request.Correct

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.

CInformation about earlier requests must be kept and must be accessible.

This statement describes a stateful application, where information from earlier requests must be maintained on the server to process subsequent requests correctly.

DThe same server must be used to process all requests that are linked to the same state.

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.

ENo state information can be shared across servers.

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

#Stateless Applications#API Design#Distributed Systems

Community Discussion

No community discussion yet for this question.

Full 350-901 Practice