MugUp logoMugUp
HomeBrowsePricingAboutBlogContact
LoginSign Up
© 2026 MugUp. All rights reserved.
HomeAboutDeck LibraryBlogChangelogContactFeature RequestsDeck Requests
Terms of ServicePrivacy PolicyCookie Policy
  1. Browse decks
  2. Backend Engineering Fundamentals
  3. Authentication and Authorization
Public deck

Backend Engineering Fundamentals

Everything that goes into building a correct, fast, safe backend service: HTTP and REST, auth, SQL, indexing, transactions, and the caching/queueing patterns that keep it standing up. Language- and vendor-agnostic.

Engineering
AShared by Alex Chen
1PlaySign in to clone

You’re reading a free preview. Sign up to see every topic and question — and to play this deck as games.

See the whole deck

Authentication and Authorization

Proving who a caller is and deciding what they may do: sessions versus tokens, how JWTs really work, cookie hardening, password storage, and the OAuth 2.0 / OpenID Connect flows worth knowing.

Play topicBack to deck

Content

43 total questions

MCQ: 10
Fill-in: 7
Flashcards: 14
Pair match: 12
Authentication and Authorization – Flashcards
Flashcards

Card #1

What is the difference between authentication and authorization?

Card #2

How does server-side session authentication work?

Card #3

What are the three parts of a JWT?

11 more questions in this game

Showing 3 of 14. Sign up free to see the rest.

Sign up freeLog in
Authentication and Authorization – MCQ
Multiple Choice Questions
  1. 1. A signed but unencrypted JWT is issued to a browser client. Which statement is true?

    • Anyone holding the token can read every claim in its payload
    • The payload is encrypted and unreadable without the signing key
    • Only the issuing server can decode the header
    • The signature makes the claims confidential
  2. 2. Which cookie attribute most directly limits token theft through cross-site scripting?

    • HttpOnly
    • Secure
    • Path
    • Max-Age
  3. 3. The chief operational drawback of stateless JWT access tokens is that they:

    • Cannot be revoked before expiry without reintroducing server-side state
    • Cannot carry custom claims
    • Require a database lookup on every request
    • Only work over plain HTTP
7 more questions in this game

Showing 3 of 10. Sign up free to see the rest.

Sign up freeLog in
Authentication and Authorization – Fill-in-the-blank
Fill in the Blank
  1. 1. ___ establishes who a caller is, while authorization decides what that caller may do.

    Answer:Authenticationalso: authentication

    Hint: It always comes first

  2. 2. A JWT is made of three dot-separated parts: header, payload and ___.

    Answer:signature

    Hint: The part that proves integrity

  3. 3. The ___ cookie attribute stops JavaScript reading the cookie, limiting the damage from XSS.

    Answer:HttpOnlyalso: httponly, http-only

    Hint: One word, camel case

4 more questions in this game

Showing 3 of 7. Sign up free to see the rest.

Sign up freeLog in
Authentication and Authorization – Pair match
Pair Match
Authentication↔Proving who the caller is
Authorization↔Deciding what the caller may do
Session cookie↔Opaque identifier the server looks up in its own store
9 more questions in this game

Showing 3 of 12. Sign up free to see the rest.

Sign up freeLog in