CS FundamentalsHardProduct-company DevOps interview
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 running. About how long does the test stage take?
- A. 60 minutes
- B. 12 minutes
- C. 22 minutes
- D. 10 minutes
Correct answer: B. 12 minutes
Test time per shard = 1,200 x 3/6 = 600 s = 10 minutes, plus 2 minutes of setup running in parallel = 12 minutes. Adding the setup of all six shards gives 22 minutes, but shards run at the same time.
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 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…
- Match each storage type. P: an EC2-style VM's boot disk. Q: millions of user-uploaded images accessed by URL. R: a shared directory…