CS FundamentalsHardProduct-company MCQ pattern
Assertion (A): In a RESTful API, every request from the client must carry all the information needed to process it, such as an auth token. Reason (R): REST requires the server to store each client's session state in memory between requests.
- A. Both A and R are true and R is the correct explanation of A
- B. Both A and R are true but R is not the correct explanation of A
- C. A is true but R is false
- D. A is false but R is true
Correct answer: C. A is true but R is false
A states the REST statelessness constraint correctly. R is false and in fact the opposite: the server does not keep client session state between requests, which is why each request carries its own context and why stateless servers scale horizontally.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Match each HTTP status code with its meaning. P. 204 Q. 304 R. 409 S. 429 1. Too many requests (rate limit hit) 2. Request conflicts with…
- How many of the following are managed by the cloud provider (not the customer) in a PaaS offering such as a managed app platform? 1. The…
- How many of the following statements about serverless computing (FaaS, such as AWS Lambda) are correct? 1. Functions are typically billed…
- A web tier has two identical servers in parallel (each 99% available; the tier works if at least one is up), connected in series with a…
- An SLA promises 99.9% availability over a 365-day year. What is the maximum downtime it allows, and how much does moving to 99.99% allow?
- How many of the following statements comparing containers and virtual machines are correct? 1. A Linux container can run directly on a…