You'll get access to over 3,000 product manager interview questions and answers
Recommended by over 100k members
Clarifications:
1. All formats and surface types / content types included = Yes
2. Youtube premium included = No
3. Includes watching and uploading = Maybe, lets see
4. YT music included = No
5. Global = Yes
6. Duration = Daily
facts about youtube (presumably known)
30M DAU (Google I/O announcement)
1 Billion hours of video watched per day (Google I/O announcement)
500 Hours video uploaded every minute à 500 x 60 x 24 = 720K = 0.72 Million hours of video upload per day (Google I/O announcement)
Ill answer this based on known stats about usage on YT and the split based on video type
Data usage by different resolution types
E.g., 480p video format has 30 fps and a bit-rate of 500 - 2000 Kbps this means on average 1250 Kb per second
1250 x 1000 bits / sec = 1.25 M bits x 3600 / 8 MB/Hr
= 0.5 GB / Hr
In similar fashion:
4K Video = 12GB/Hr
Full HD (1080p) = 2.5GB/Hr
720p (Standard) = 1.5GB/Hr
The over-all videos can be split as per table below:
Viewing and upload videos:
Resolution | % of content (guestimate based on what one observe) | Bandwidth / hour of video | Watch data (taking 1B hours of total videos/day) | Upload (ignore due to a factor of ~1500) |
4K | 1% | 12 GB / Hr | 1B * 0.01 * 12 = 120 PB | 720 K * 0.01 * 12 = 86 TB |
Full-HD (1080p) | 19% | 2.5 GB/Hr | 1B * 0.19 * 2.5 = 500 PB | 720 K * 0.19 * 2.5 = 340 TB |
720p (Standard) | 50% | 1.5 GB / Hr | 1B * 0.5 * 1.5 = 0.75 B GB = 750 M GB = 750 PB | 720 K * 0.5 * 1.5 = 540 TB |
480p (1250 Kbps, 30 FPS) | 30% | 0.5 GB / Hr | 1B * 0.3 * 0.5 = 0.15 B GB = 150 M GB = 150 PB | 720 K * 0.3 * 0.5 = 108 TB |
Total | 1520 PB / day | 1072 TB = ~1 PB |
Please note that total upload bandwidth is ~1500 times less than download and so one can ignore
Please also note that YT actually offers much more resolutions and fps (eg 360p to 8K), but this list is only an average and for a back-of-envelope this could be sufficient.
There are few additional factors we need to consider:
1. Buffering - Youtube doesnt directly 'stream' videos. It rather downlaods them in chunks. So, there is a possibility that youtube pre-downloads videos that are not "viewed fully" yet (typically a user discard a video in 10S but may be more than that is downloaded and buffered already)
2. Ads - There are many skippable and non-skippable ads that gets streamed before or within, that consumes bandwidth. Many of these ads are high-res and consumes more bandwidth than the video itself
3. Other in-app browing like thumbnails / previews. There are many who sees the previews before clicking the video. Its minor but at YT scale might be interesting
4. Assumption of 1Billinon hours per day of YT videos is pre-pandemic figure. There is all possibility that there is more surge on video watching now.
It might not be possible to attach a factor to each of these components, but I will assign a 30% buffer to count for these (specifically 1 and 4).
So total bandwidth / day = 1520 PB * 1.3 = ~ 2EB / Day which will be the ball-park for sizing
Clarify : Talking about Youtube not Youtube TV etc. - Youtube site
Bandwidth Calculation: Avg Bandwidth used * avg # of hours of Videos watched per day per user * avg number of users per day
Certain assumptions - Check with interviewer
Bandwidth consumption may vary on certain factors, few important ones listed below and assumptions made
- Type of consumption device: Mobile, laptop, TV app, chromecast. Most Youtube videos consumed on phones/laptop. For the purpose of this excercise assume similar bandwidth on these devices ( Assumption).
- Type of Video: Different type of videos can consume different bandwidth, Regular Video ( SD/HD), 360 Video, 3D, Live streaming. Most videos are standard video. Assumption - Let us focus only on Regular Video.
- Type of usage could be Upload Video, watch Video, browse video, comment/like/share videos, subscribe to channels etc. Let us focus on the most bandwidth consuming and highest number of transactions i.e. watch/upload videos.
HD video 1 hr = 1GB; SD Video 1 hr = 500 MB
World Population : ~6B ( excluding China, Youtube access blocked)
Divided into 3 categories: Developed, Developing, Under Developed. Look at Internet penetration, youtube usage, # of hr of usage, video bandwidth type. Video quality in developing and underdeveloped country might be lowere due to available internet speed.
Developed Countries ( 20% Population) = 1.2B --> Internet Penetration (90%) --> 1B, Youtube Usage --> 60% ppl --> 600M
Avg Use per person per day: 2hrs of HD Video i.e. 2GB; Total Bandwidht used per day = 600M * 2GB = 1200 Petabyte
Developing Countries ( 60% Population) = 3.6B--> Internet Penetration (60%) --> 2.1B, Youtube Usage --> 40% ppl --> 800M
Avg Use per person per day: 1hrs of SD Video i.e. 0.5GB; Total Bandwidht used per day = 800M * 0.5GB = 400 Petabyte
Under Developed Countries (20% Population) = 1.2B--> Internet Penetration (30%) --> 360M, Youtube Usage --> 30% ppl --> 100M
Avg Use per person per day: 30hrs of SD Video i.e. 0.25GB; Total Bandwidht used per day = 100M * 0.25GB = 25 Petabyte
Total bandwidth Usage globally per day = 1200+400+25 = 1625 Petabyte
Clarifying questions:
For US or for the global user base? - Global
Is this for Youtube on mobile and WWW? - Yes both
Does it include YT red - no
Per day, per month or annually. - Per day
Equation = # of videos seen per day * avg size of each video -- (1)
Assuming that all the users watch a video of 10 mins length on an average.
Split 1:
(# of videos seen per day in HD * avg HD size of each video) + (# of videos seen per day in SD * avg SD size of each video)
Average video size of HD for 1 hour - 1 GB, 10 mins → 100MB
Average video size of HD for 1 hour - 500 MB, 10 mins → 50MB
Estimate the number of videos seen across the world
World Population = 7B. 50% internet penetration → 3.5B users
20% of world lives in developed world → 700M
60% of world lives in developing world → 2B
20% of world lives in under developed world → 700M
Number of users who visit YT in developed countries → 60% visit per day → 420M
Assuming on average a user watches 5 vidoes on average per day → 5 *420M videos seen per day → 2.1B
Of these, it is safe to assume 20% watch HD videos and rest in SD → 420M videos
80% watch SD → 820M videos
Number of users who visit YT in developing countries → 50% visit per day → 1.1B
Assuming on average a user in the developing country watches 3 videos on average per day → 3 *1.1B videos seen per day → 3.3B
In a developing country, it is safe to assume 10% watch in HD and rest in SD
HD video seen per day → 330M
SD video seen per day → 2970M
Number of users who visit YT in underdeveloped countries → 20% visit per day → 140M
Assuming on average a user in the developing country watches 1 video on average per day → 1 *140B videos seen per day → 140M
In a developing country, it is safe to assume 10% watch in HD and rest in SD
HD video seen per day → 14M
SD video seen per day → 126M
Total HD videos seen:
420M+330M +14M ~ 800M
Total SD videos seen:
820M+2970M+126 ~ 3800M
Total Bandwidth Consumed thus (assuming average video length is 10 mins):
(800M*100MB) + (3800M*50MB)
(8*10^16) + (19*10^16)
27*10^16Byter
27Petabytes
YouTube as a whole = mobile + web
YT is a free video streaming service by Google, where users can watch videos, create and upload videos too.
Considering Only videos, not music, not downloads.
YT mission = education, creativity, inspiration
MAU = 2.6B
Streaming
User Groups | Watch Time | % of users | User Population | Watch Time / day |
Power Watchers | 3 hours / day | 10% | 260M | 780 M hours |
Casual Watchers | 1 hour / day | 20% | 520M | 520 M hours |
Avg Watchers | 15 min / day | 20% | 520M | 130 M hours |
Passive Watchers | 1 hour / month | 50% | 1.3B | 45 M hours |
Uploading
10% Users upload i.e. 260 M users upload
User Groups | Upload Video Time | % of Users | User Population | Uploaded videos time / day |
Influencers | 30 min / day | 20% | 52 M | 26 M hours / day |
Entertainment | 3 hours / week | 10% | 26 M | 11 M hours / day |
Education | 10 hours / month | 20% | 52 M | 17 M hours / day |
Bloggers | 2 hours / month | 40% | 104 M | 7 M hours /day |
Personal | 1 hour / month | 10% | 26 M | 0.9 M hours / day |
Streaming Total = 1500 M hours / day
Upload = 62 M hours / day
1 hour of video = 500 MB (download)
1 hour of uploaded video = 2 GB (upload), it gets compressed by YT and available in various formats
500 X 1500 M + 2000 X 62 M (MB) = 750000 + 124000 M = 874 B MB = 874 M GB =
874 PB / day
Clarify
Assuming in the US? Yes
Assuming per day? Yes
High level equation: # of users * watch time per user * size per minute
# of users
Population of US: 300
Internet penetration: 90%
Total population: 270
Youtube market share : 90%, so DAU: 243
Watch time per user:
Low usage: 25% users watch 10 minutes video per day
Active usage: 50% users watch 40 minutes videos per day
Power users: 25% watch 80 minutes videos per day
Avg. per user: .25* 10 + .5 * 40 + .25 * 80
= 42.5 minutes
= .7 hours
Size per minute
1 hour of video is about 2.5GB, 1 minute is about .042 GB / minute
Total = 243 * .042 * 42 = 428 Peta bytes
Assumptions:
Avg. bandwidth usage of SD videos (most used and default) = 500 MB per hour
Global population : 7.5 B
Global Population keeping China and Russia aside as Google (Acquired YouTube) is not used there : 5.5 B
People having access to Internet (60%) : 3.3 B
People who watch Youtube videos on the internet (40%) : 1.3 B
Population proportion of developed counties: 0.5 B
Population proportion of developing countries 0.5 B
Population proportion of under-developed countries: 0.3 B
Average videos watched per day by a person in developed countries = 2
Average videos watched per day by a person in developing countries = 5
Average videos watched per day by a person in underdeveloped countries = 1
Average size of each video = 10 MB
Average usage in developed countries per day = 20 MB * 0.5 Billion = 10 Billion MB
Average usage in developing countries per day = 50 MB * 0.5 Billion = 25 Billion MB
Average usage in under-developed countries per day = 10 MB * 0.3 Billion = 3 Billion MB
Total = 38 Billion MB per day = 38 M GB per day = 38 K TB per day = 38 PB per day
Top Google interview questions
- What is your favorite product? Why?89 answers | 263k views
- Build a product to buy and sell antiques.54 answers | 66.8k views
- How would you improve Google Maps?53 answers | 228k views
- See Google PM Interview Questions
Top Estimation interview questions
- Calculate the number of queries answered by Google per second.45 answers | 78.5k views
- How do you decide how many cash registers you need for a new Walmart store?33 answers | 39.4k views
- Estimate the number of Uber rides.30 answers | 51.3k views
- See Estimation PM Interview Questions
Top Google interview questions
- A metric for a video streaming service dropped by 80%. What do you do?50 answers | 135k views
- You launched a new signup flow to encourage new users to add more profile information. A/B test results indicate that the % of people that added more information increased by 8%. However, 7 day retention decreased by 2%. What do you do?29 answers | 28.8k views
- How would you improve YouTube?29 answers | 81.3k views
- See Google PM Interview Questions
Top Estimation interview questions
- Estimate the number of bicycles required to start a bike sharing operation in a big city.18 answers | 15.8k views
- Estimate the number of WhatsApp chats occuring in India.14 answers | 13.3k views
- You have a grocery delivery service that delivers food within 24 hours. How many trucks would you need to operate it?12 answers | 29.8k views
- See Estimation PM Interview Questions