Design Profile Photo Upload and Propagation Across Google Products

Last updated: November 29, 2026

Quick Overview

Design how a Google Account profile photo is uploaded, cropped, resized and served, so that a change appears across Gmail, Meet, YouTube, Chat and third-party sign-in screens within minutes.

Google
System Design
Software Engineer
Google
November 29, 2026
Software Engineer
Phone Screen
System Design
Easy

0

0

0 solved


Design how a Google Account profile photo is uploaded, cropped, resized and served, so that a change appears across Gmail, Meet, YouTube, Chat and third-party sign-in screens within minutes.

A small Google phone screen question about image handling and cache invalidation: the image pipeline is easy, but avatars are rendered billions of times a day from caches everywhere. Interviewers check URL design for cache busting, sizes on demand, and privacy of photo visibility.

What the Interviewer Expects
  • Accept upload with crop parameters and validate images
  • Generate or serve sizes on demand with caching
  • Use versioned URLs so caches update without purges
  • Propagate the new URL to products through the profile service
  • Respect visibility settings and moderation
Key Topics to Cover
Image processing
CDN caching
Versioned URLs
Profile service
Privacy controls
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • Why not just purge CDN caches when a user changes the photo?
  • How do you serve 32 px avatars in a list of 50 Gmail threads efficiently?
  • How do you handle photos that violate policy?
  • What happens to old photos after a change?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: user uploads a photo, crops it, saves; any Google product shows the new photo; sizes from 24 px to 512 px; users can choose visibility (everyone or only contacts) and delete it.

**Non...

High-Level Design
  • Upload API: receives the image and crop rectangle, validates type and size.
  • Image store: original and cropped master in blob storage keyed by a new random photo id.
  • Image serving: a ...

Submit Your Answer
Markdown supported