← All videos

Engineering video

18:23 · 23 October 2024

Frontend Interview Questions 2025 (Part 4)

Chapters 6 sections

  1. 0:00JSON Web Tokens
  2. 3:38Monitoring
  3. 6:24Shadow DOM
  4. 9:28Server-Side Rendering

Key concepts in this video:

1. JSON Web Tokens (JWTs) and Authentication

JWTs are used to authenticate clients with backend services by including them in request authorization headers. Storing JWTs in HTTP-only cookies helps mitigate cross-site scripting (XSS) risks compared to local storage.

Hear it at 0:24 →

2. Frontend Monitoring and Metrics

Monitoring a frontend application involves tracking exceptions and stack traces using error tracking tools like Sentry, measuring core web vitals for performance, and using analytics tools for usage and traffic insights.

Hear it at 3:47 →

3. Shadow DOM and Encapsulation

The shadow DOM provides CSS encapsulation and isolation by separating a subsection of the DOM from the rest of the document, making it useful for component libraries to prevent style conflicts despite potential complexity and performance trade-offs.

Hear it at 6:29 →

4. Server-Side Rendering and Hydration

Hydration is the process of attaching virtual DOM structures and event handlers to server-rendered HTML markup to make the page interactive, though developers must avoid content mismatches like differing timestamps.

Hear it at 9:32 →

5. Frontend Deployment Strategies

Client-side applications can be deployed statically to blob storage with a CDN in front for low latency, whereas server-side rendered applications require compute infrastructure like containers or servers to handle rendering and scalability.

Hear it at 11:18 →

Transcript

hi folks D from the senior Dev and today we are back with Bon and we're going to go through seven senior front end interview questions we're going to cover a bunch of very wide topics from authentication all the way towards the shadow Dom and down to deployment this is for you if you are a frontend developer intervie right now and looking to get hired as a mid level or senior frontend engineer well our first question for today is what are Json web tokens jbts and how are they used for authentication in a modern content application so basically the question is what are Json web tokens basically jvt