# SEO Interview Questions — SEO for Developers

Source: https://www.geekswithgeeks.com/en/seo-developers/seo-interview-questions

> Common SEO questions asked in technical interviews.

**Quiz:** What is the difference between 301 and 302 redirects?

- [x] 301 is permanent; 302 is temporary. Use 301 for moved pages.
- [ ] They are the same; the number doesn't matter.
- [ ] 301 is faster than 302 on the server.

*Answer:* 301 is permanent; 302 is temporary. Use 301 for moved pages.. 301 transfers ranking authority to the new URL; 302 keeps authority on the old URL. Always use 301 for permanent moves.

**Quiz:** Why should you use semantic HTML for SEO?

- [x] It tells search engines what content means, not just how it looks
- [ ] It makes CSS easier to write
- [ ] It has no impact on SEO

*Answer:* It tells search engines what content means, not just how it looks. Semantic tags like <article>, <section>, <nav> tell Google the structure and meaning of your content.

**Quiz:** What are Core Web Vitals and why do they matter?

- [x] LCP, FID, CLS — Google's metrics for UX and ranking signals
- [ ] They are only for mobile optimization
- [ ] They don't affect ranking

*Answer:* LCP, FID, CLS — Google's metrics for UX and ranking signals. Core Web Vitals are essential UX metrics that Google uses to rank pages. Developers must optimize them.

**Quiz:** How do you handle JavaScript for SEO?

- [x] Use server-side rendering or prerendering; ensure initial HTML has content
- [ ] Avoid JavaScript completely on SEO pages
- [ ] JavaScript doesn't affect SEO at all

*Answer:* Use server-side rendering or prerendering; ensure initial HTML has content. Google can render JS, but it's delayed. Use SSR/prerendering or put content in initial HTML.
