All fields

“Authentication & Authorization (JWT” in Information Technology

17 questions across 1 technology.

Information Technology

17 questions in 1 technology

#QuestionTechnologyTopicLevel
1What is the difference between authentication and authorization in a Node.js application? Node.js › Authentication & AuthorizationNode.jsAuthentication & AuthorizationBeginner
2How do JWTs, OAuth, and Passport.js fit together in a typical Node.js authentication architecture? Node.js › Authentication & Authorization (JWT, OAuth, Passport)Node.jsAuthentication & Authorization (JWT, OAuth, Passport)Intermediate
3How does session-based authentication work in a Node.js/Express application, and what does the session store need to handle? Node.js › Authentication & AuthorizationNode.jsAuthentication & AuthorizationIntermediate
4What is a JSON Web Token (JWT), and what are its three parts? Node.js › Authentication & AuthorizationNode.jsAuthentication & AuthorizationIntermediate
5What is Passport.js, and how do its 'strategies' provide a consistent authentication abstraction across different methods? Node.js › Authentication & AuthorizationNode.jsAuthentication & AuthorizationIntermediate
6How does the OAuth 2.0 Authorization Code flow work, and what role does Node.js typically play as the client or the resource server? Node.js › Authentication & AuthorizationNode.jsAuthentication & AuthorizationAdvanced
7How would you implement 'Sign in with GitHub' using Passport's OAuth strategy in an Express application? Node.js › Authentication & Authorization (JWT, OAuth, Passport)Node.jsAuthentication & Authorization (JWT, OAuth, Passport)Intermediate
8How do you validate a JWT's claims (issuer, audience, expiration) beyond just verifying its cryptographic signature? Node.js › Authentication & Authorization (JWT, OAuth, Passport)Node.jsAuthentication & Authorization (JWT, OAuth, Passport)Intermediate
9What is token introspection, and when is it needed instead of simply verifying a JWT's signature locally? Node.js › Authentication & Authorization (JWT, OAuth, Passport)Node.jsAuthentication & Authorization (JWT, OAuth, Passport)Advanced
10What is PKCE (Proof Key for Code Exchange), and why is it now recommended for OAuth flows even in traditional server-side Node.js applications? Node.js › Authentication & Authorization (JWT, OAuth, Passport)Node.jsAuthentication & Authorization (JWT, OAuth, Passport)Advanced
11How do you implement JWT refresh token rotation in a Node.js API, and why is it more secure than a single long-lived token? Node.js › Authentication & AuthorizationNode.jsAuthentication & AuthorizationAdvanced
12How would you implement authentication and authorization in a GraphQL API in Node.js, given there's typically only a single HTTP endpoint? Node.js › GraphQLNode.jsGraphQLAdvanced
13How would you implement authentication and authorization in a GraphQL API, given all requests typically go through a single endpoint? Node.js › GraphQL with Node.jsNode.jsGraphQL with Node.jsAdvanced
14What does the node:crypto module provide, and what's the difference between hashing and encryption? Node.js › Core Node.js ModulesNode.jsCore Node.js ModulesIntermediate
15What is the difference between sending SMS via a provider's REST API (like Twilio) versus using SMTP-based email in terms of a Node.js integration? Node.js › Email & NotificationsNode.jsEmail & NotificationsIntermediate
16What is an API Gateway, and what role does it play in front of a collection of Node.js microservices? Node.js › Microservices Architecture with Node.jsNode.jsMicroservices Architecture with Node.jsIntermediate
17What is horizontal scaling for a Node.js application, and what specific architectural requirement does it impose? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced