System Design Skills
- 34Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
According to the discussion, what is a common reason engineers prematurely scale their systems?
According to the discussion, what is a common reason engineers prematurely scale their systems?
34 questions
- 1
According to the discussion, what is a common reason engineers prematurely scale their systems?
- A
They are preparing for a guaranteed 100x user growth.
- B
They are following regulatory compliance requirements.
- C
They have empirical data showing the need for scaling.
- D
They want the status associated with working on fancy architectures.
Correct answer
DThey want the status associated with working on fancy architectures.
Explanation
The podcast states that many people chase the status and experience of fancy architectures rather than solving specific problems, leading to premature scaling.
- A
- 2
What does Bassem Dghaidi say about the scale at GitHub?
- A
All services are designed for 100x the current load from day one.
- B
Services handling millions of requests per second often run on just 5-6 containers.
- C
GitHub uses only relational databases for all services.
- D
Every service requires a large Kubernetes cluster with hundreds of nodes.
Correct answer
BServices handling millions of requests per second often run on just 5-6 containers.
Explanation
Bassem mentions that at GitHub, services that handle millions of requests per second can run on as few as 5-6 containers in a tiny Kubernetes cluster.
- A
- 3
What is the recommended approach for a startup founder regarding system design for scale?
- A
Design for getting 100-1000 users and run everything on a single VM initially.
- B
Design for 100x scale from the start to be prepared for growth.
- C
Build massive database clusters to enable horizontal scaling.
- D
Use microservices and NoSQL databases from the beginning.
Correct answer
ADesign for getting 100-1000 users and run everything on a single VM initially.
Explanation
Bassem advises designing for 100 to 1000 users initially, even running everything on a single VM, and only scaling when approaching limits.
- A
- 4
What advantage of vertical scaling does Bassem highlight?
- A
It requires no monitoring or maintenance.
- B
It is always cheaper than horizontal scaling.
- C
It allows using VMs with up to 120 CPU cores and terabytes of memory.
- D
It eliminates the need for any database replication.
Correct answer
CIt allows using VMs with up to 120 CPU cores and terabytes of memory.
Explanation
Bassem points out that cloud providers offer VMs with 120 CPU cores and terabytes of memory, which can serve many workloads without horizontal scaling.
- A
- 5
When should a team decide to redesign a system, according to the podcast?
- A
When they have hit the limits of the current architecture and have data-driven projections.
- B
As soon as they anticipate any future growth.
- C
Every two years to keep up with modern technologies.
- D
When investors demand a more scalable solution.
Correct answer
AWhen they have hit the limits of the current architecture and have data-driven projections.
Explanation
The discussion emphasizes that redesign should happen only after reaching the limits of the existing architecture and having clear data about future needs, not prematurely.
- A
- 6
How does the approach to system design differ between big tech companies like GitHub and startups?
- A
Startups need to design for scale from day one, while big tech can evolve slowly.
- B
Startups should focus on microservices, while big tech uses monoliths.
- C
Big tech needs experience in scaling from day one, while startups can hire for scaling when needed.
- D
Both should follow the same design principles regardless of size.
Correct answer
CBig tech needs experience in scaling from day one, while startups can hire for scaling when needed.
Explanation
Bassem explains that at GitHub, they hire for scaling experience because they need it from day one, whereas startups should hire for today's needs and add scaling expertise later.
- A
- 7
According to the podcast, why is it unrealistic for companies to pay once for a solution and expect it to last?
- A
Software requires continuous maintenance and evolution, which is an ongoing cost.
- B
Once built, software remains unchanged for decades.
- C
Software engineering has no maintenance costs, unlike other industries.
- D
Software costs are fixed and predictable from the start.
Correct answer
ASoftware requires continuous maintenance and evolution, which is an ongoing cost.
Explanation
The podcast states that software needs to be continuously evolved and maintained, and companies often don't realize this, expecting a one-time investment to cover the future.
- A
- 8
What mechanism does Bassem suggest for regularly reviewing investment in software evolution?
- A
Monthly budget reallocation based on user feedback.
- B
Quarterly, half-year, or yearly revisiting of investments.
- C
Daily stand-ups to track progress on scaling.
- D
Annual all-hands meetings to discuss upcoming features.
Correct answer
BQuarterly, half-year, or yearly revisiting of investments.
Explanation
Bassem mentions that at GitHub, they continuously revisit investments on a quarterly by quarterly, half a year, or year basis to adjust projections.
- A
- 9
What was the motivation behind the redesign of parts of GitHub Actions?
- A
A directive from upper management to modernize the system.
- B
Customer complaints about slow performance.
- C
The desire to use a new, trendy technology stack.
- D
Hitting the limits of the previous architecture and having growth projections.
Correct answer
DHitting the limits of the previous architecture and having growth projections.
Explanation
Bassem explains that they redesigned because they had hit the limit of the previous architecture and saw the need to scale based on demand and growth curves.
- A
- 10
What is Bassem's view on building generic versus specific solutions?
- A
Prefer solving specific problems because trade-offs are clearer.
- B
Always build generic solutions to prepare for any future problem.
- C
Specific solutions are only for startups; big tech uses generic ones.
- D
Generic solutions are better for large organizations.
Correct answer
APrefer solving specific problems because trade-offs are clearer.
Explanation
Bassem states he likes solving specific problems because generic solutions make it hard to determine trade-offs.
- A
- 11
According to the discussion, when should caching be introduced into a system?
- A
As a standard practice for any service.
- B
After migrating to a NoSQL database.
- C
From day one to ensure optimal performance.
- D
Only after it is genuinely needed to solve a performance problem.
Correct answer
DOnly after it is genuinely needed to solve a performance problem.
Explanation
Bassem says they never introduce caching until they really need it, and they never over-optimize until they see problems.
- A
- 12
What role do system design courses play in the hiring process at companies like GitHub?
- A
They are only useful for junior engineers.
- B
They are the primary factor in hiring decisions.
- C
They can help candidates pass the interview threshold even without hands-on experience.
- D
They are completely useless as hands-on experience is the only thing that matters.
Correct answer
CThey can help candidates pass the interview threshold even without hands-on experience.
Explanation
Bassem acknowledges that system design courses can help candidates get through interviews at big tech companies by teaching the concepts, even if they lack real-world experience.
- A
- 13
What is the danger of hiring for scaling experience when it is not immediately needed?
- A
It improves team morale and retention.
- B
It reduces the need for ongoing training.
- C
It ensures the company is prepared for future growth.
- D
It leads to overengineering and unnecessary complexity.
Correct answer
DIt leads to overengineering and unnecessary complexity.
Explanation
The podcast argues that hiring for skills not needed today can result in overly complex systems that are hard to maintain and slow down feature delivery.
- A
- 14
How does Bassem suggest engineers should communicate technical investments to non-technical stakeholders?
- A
By avoiding conversations about costs altogether.
- B
By using technical jargon to emphasize the complexity.
- C
By framing the discussion in terms of business impact and constraints.
- D
By insisting that stakeholders learn the technical details.
Correct answer
CBy framing the discussion in terms of business impact and constraints.
Explanation
Bassem advises engineers to understand business constraints and discuss technical solutions from that perspective, as it's easier for engineers to learn business context than for business to understand tech.
- A
- 15
What example does Bassem give to illustrate the need to understand business impact?
- A
An e-commerce website losing revenue due to slow page loads.
- B
A hospital needing zero downtime for patient monitoring systems.
- C
A container terminal operating at 12% capacity generating $50,000 per hour.
- D
A bank requiring sub-millisecond latency for transactions.
Correct answer
CA container terminal operating at 12% capacity generating $50,000 per hour.
Explanation
Bassem shares an experience from the container terminal industry where he had to understand the operators' needs and the financial impact of delays.
- A
- 16
According to the podcast, how are engineers rewarded at big tech companies?
- A
Based on the number of lines of code they write.
- B
Based on the number of years of experience they have.
- C
Based on the technical elegance of their solutions.
- D
Based on the business impact of their work, measured with numbers.
Correct answer
DBased on the business impact of their work, measured with numbers.
Explanation
Bassem states that rewards are tied to business impact, not just technical achievements, and engineers need to justify their work with numbers.
- A
- 17
What does Bassem say about the mindset of professional software engineering compared to hobby coding?
- A
They are essentially the same, as both involve writing code.
- B
Professional engineering is about solving business problems, not pursuing craftsmanship for its own sake.
- C
Hobby coding is more important for career growth.
- D
Professional engineering should focus solely on aesthetic code quality.
Correct answer
BProfessional engineering is about solving business problems, not pursuing craftsmanship for its own sake.
Explanation
Bassem emphasizes that professional software engineering is about solving business problems, unlike hobby coding where the focus can be on craftsmanship and enjoyment.
- A
- 18
What is the concept of 'good enough' in software engineering according to the discussion?
- A
It means building a solution that works for today and provides a runway, even if not perfect.
- B
It refers to code that passes all unit tests.
- C
It is only applicable to prototypes, not production systems.
- D
It is always unacceptable and should be avoided.
Correct answer
AIt means building a solution that works for today and provides a runway, even if not perfect.
Explanation
Bassem explains that sometimes investing in a 'good enough' solution is acceptable as it gives a runway, and perfection is not always necessary.
- A
- 19
How does Bassem view layoffs in the context of resource allocation?
- A
They are always harmful and should be avoided at all costs.
- B
They are a sign of poor management.
- C
They are only used when a company is failing.
- D
They can be an effective mechanism to recalibrate focus and reallocate resources.
Correct answer
DThey can be an effective mechanism to recalibrate focus and reallocate resources.
Explanation
Bassem mentions that layoffs, though dehumanizing, can effectively cut unneeded features and redirect engineers to more important problems.
- A
- 20
What is the advice for engineers who want to level up, according to Bassem?
- A
Focus solely on mastering a single topic for years.
- B
Avoid learning new technologies to prevent distraction.
- C
Develop the ability to learn effectively and quickly in new areas.
- D
Spend most time on theoretical knowledge rather than practical.
Correct answer
CDevelop the ability to learn effectively and quickly in new areas.
Explanation
Bassem emphasizes the importance of being able to learn fast and get out of one's comfort zone, as this breadth helps in understanding diverse perspectives and solving problems.
- A
- 21
How does Bassem describe his own approach to learning new topics?
- A
He pursues any curiosity, even if the topic is complex, and enjoys being uncomfortable.
- B
He only learns things directly related to his job.
- C
He avoids learning from online courses as they are ineffective.
- D
He learns only from hands-on experience, never from theory.
Correct answer
AHe pursues any curiosity, even if the topic is complex, and enjoys being uncomfortable.
Explanation
Bassem says he never lets the complexity of learning deter him from pursuing an interest, and he enjoys the process of exploring new areas.
- A
- 22
What benefit does Bassem see in learning from different disciplines?
- A
It helps in becoming a better programmer by knowing more languages.
- B
It is necessary for getting promoted in big tech.
- C
It is a waste of time as only tech skills matter.
- D
It allows cross-pollination of ideas and a more diversified view of the world.
Correct answer
DIt allows cross-pollination of ideas and a more diversified view of the world.
Explanation
Bassem values learning from various fields because it enables him to combine ideas and understand different perspectives, which aids in empathy and problem-solving.
- A
- 23
What does Bassem say about the importance of curiosity?
- A
It is irrelevant for software engineers.
- B
It only matters for junior engineers.
- C
It is an innate trait that cannot be developed.
- D
It is like a muscle that needs to be grown and developed over time.
Correct answer
DIt is like a muscle that needs to be grown and developed over time.
Explanation
Bassem compares curiosity to a muscle that needs to be exercised and developed, and approaching the world with curiosity is more effective than being dogmatic.
- A
- 24
How does Bassem suggest engineers should approach new technologies?
- A
Adopt them immediately to stay relevant.
- B
Only focus on technologies proven to last over a decade.
- C
Learn to dig deep quickly and attain functional proficiency without needing mastery.
- D
Avoid them until they become mainstream.
Correct answer
CLearn to dig deep quickly and attain functional proficiency without needing mastery.
Explanation
Bassem advises being able to learn fast and achieve working proficiency quickly, rather than needing mastery in everything.
- A
- 25
What is Bassem's view on the balance between breadth and depth in learning?
- A
Depth is more important than breadth at all stages.
- B
Breadth should be avoided as it dilutes expertise.
- C
Pick a few topics to master but also increase breadth in many areas.
- D
Focus on breadth early in career, then depth later.
Correct answer
CPick a few topics to master but also increase breadth in many areas.
Explanation
Bassem recommends attaining mastery in a few topics while also increasing breadth, as this allows for a balanced and effective skill set.
- A
- 26
What does Bassem mean by 'simple is complicated enough, especially at scale'?
- A
Complexity is inevitable and should be embraced.
- B
Simple designs become complicated when scaled, so start with the simplest possible approach.
- C
Only simple systems can scale effectively.
- D
Engineers should avoid abstractions altogether.
Correct answer
BSimple designs become complicated when scaled, so start with the simplest possible approach.
Explanation
Bassem advocates for simplicity because even simple systems become complex at scale, and overengineering makes it harder to reason about and maintain.
- A
- 27
Why does Bassem prefer using Go for certain projects?
- A
It has the best support for object-oriented programming.
- B
It is simple and reduces cognitive load, making code easy to reason about.
- C
It is the only language used at GitHub.
- D
It is the most performant language for any task.
Correct answer
BIt is simple and reduces cognitive load, making code easy to reason about.
Explanation
Bassem loves Go because it is 'dumb' and straightforward, requiring little thought to understand how something is built.
- A
- 28
What is the danger of overcomplicated abstractions in software, according to Bassem?
- A
They are actually beneficial for long-term scalability.
- B
They are only a problem for junior developers.
- C
They make code run slower.
- D
They make it very difficult to reason about and maintain.
Correct answer
DThey make it very difficult to reason about and maintain.
Explanation
Bassem says overcomplicated abstractions are horrible to reason about and take decades to become proficient in reading, making maintenance difficult.
- A
- 29
How does Bassem describe the shift in his own mindset from focusing on craftsmanship to business impact?
- A
It happened when he met his mentors who explained business concepts.
- B
It happened when he took a course on business management.
- C
It happened when he started working at GitHub.
- D
It happened when he saw his mentors take mortgages to pay employees.
Correct answer
DIt happened when he saw his mentors take mortgages to pay employees.
Explanation
Bassem says that realizing his mentors sometimes took mortgages to pay payroll gave him perspective on business constraints.
- A
- 30
What does Bassem say about the 20% effort for the highest level of aesthetics in code?
- A
It is the most important aspect of software engineering.
- B
It is often not worth it; dropping that marginal improvement is acceptable.
- C
It is always worth investing to ensure code quality.
- D
It is only relevant for open-source projects.
Correct answer
BIt is often not worth it; dropping that marginal improvement is acceptable.
Explanation
Bassem states that the extra 20% effort to reach the highest level of aesthetics is frequently not worth it, and he drops that pursuit.
- A
- 31
How does Bassem believe AI tools like code agents will affect the role of software engineers?
- A
They are only useful for junior developers.
- B
They will shift focus from coding to operational and architectural concerns.
- C
They will reduce the importance of system design.
- D
They will eliminate the need for human engineers entirely.
Correct answer
BThey will shift focus from coding to operational and architectural concerns.
Explanation
Bassem notes that with AI handling more coding, his focus has shifted to operational problems, ensuring availability, and avoiding bugs.
- A
- 32
What analogy does Bassem use to compare AI-assisted coding to a motorcycle feature?
- A
It is like adding a GPS navigation system.
- B
It is like adding training wheels to a bike.
- C
It is like adding a clutch to an automatic transmission.
- D
It is like adding a more powerful engine.
Correct answer
CIt is like adding a clutch to an automatic transmission.
Explanation
Bassem compares the resistance to AI coding to motorcyclists resisting automatic clutches, even though they make riding easier and more accessible.
- A
- 33
What is Bassem's advice for people early in their career about increasing breadth?
- A
Avoid breadth until after ten years of experience.
- B
Focus only on one language and framework until mastery.
- C
Don't dismiss everything else, but also increase breadth.
- D
Breadth is only useful for managers, not individual contributors.
Correct answer
CDon't dismiss everything else, but also increase breadth.
Explanation
Bassem says there is a lot of focus on depth early on, but advises not to dismiss everything else and to increase breadth as well.
- A
- 34
How does Bassem recommend handling disagreements with stakeholders?
- A
Try to reason about their perspective and interests, drawing from diverse experiences.
- B
Avoid confrontation and accept all decisions.
- C
Insist on the technical solution without compromise.
- D
Escalate to higher management immediately.
Correct answer
ATry to reason about their perspective and interests, drawing from diverse experiences.
Explanation
Bassem says he takes a pause and reasons about where stakeholders are coming from, using his own diverse experiences to understand their vantage point.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.