Question library
Explained questions for the decisions developers make.
AI system design
Beginner — What questions come before architecture?
How to prepare for DSA interviews
Core rule
JavaScript interview-friendly practice list
Two Sum
Python DSA basics
Common Python structures
Guardrails and Authorization
A robust architecture uses multiple layers of protection:
What are documents, collections, BSON and ObjectId?
MongoDB stores records as documents, which group related field values in one JSON-like structure. A collection holds documents, and BSON is the binary encoding that supports values such as dates and ObjectIds. An ObjectId is a common identifier format with a timestamp component, but it is not an authorization mechanism or a strict business ordering guarantee.
What makes JWT or session authentication safe?
Token and session security means accepting only credentials issued by a trusted authority for the intended purpose and lifetime. A JWT can carry verifiable claims, while a server session uses stored state behind a session identifier. Both need secure transport, controlled storage, expiry and a response to credential theft.
How should I store passwords and secrets?
Password hashing turns a password into a one-way verification value using an intentionally expensive algorithm. Secret management protects credentials that the application must be able to use again, such as database passwords or API keys. Passwords should not be reversibly encrypted just so they can be compared at login.
MCP tools and tool discovery
A tool is a named executable capability with argument metadata and a schema. Discovery lets a client obtain the server's available tool descriptions. A tool description helps the model choose a capability; it is not proof that the server or tool is…
Difficulty is an editorial estimate. Completion means you chose to mark a question as understood.