CS FundamentalsVery hardProduct-company DevOps interview
90% of a CI pipeline's run time is parallelisable tests and 10% is serial setup. Moving to 8 parallel runners, what overall speed-up does Amdahl's law predict?
- A. About 4.7x
- B. 8x
- C. About 7.2x
- D. About 10x
Correct answer: A. About 4.7x
Speed-up = 1/(0.1 + 0.9/8) = 1/0.2125 ≈ 4.7. The 10% serial part caps the speed-up at 10x however many runners are added.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A suite of 1,200 tests averaging 3 seconds each is split evenly across 6 parallel shards, and each shard needs 2 minutes of setup before…
- A cache answers 90% of reads in 2 ms; on a miss the read takes 50 ms in total (cache check plus database). What is the average read…
- Each web server handles 250 requests/s, but for headroom servers should run at no more than 70% of that. Peak load is 2,000 requests/s and…
- A service stores 2 TB of data with a replication factor of 3, and disks should be kept at most 70% full. How much raw disk capacity is…
- A host has 32 physical cores and the cloud team allows a 4:1 vCPU-to-core overcommit ratio. How many 4-vCPU VMs can be placed on it by…
- A retailer runs its systems in its own data centre but automatically moves extra web workload to a public cloud during festive-sale peaks…