CS FundamentalsVery hardProduct-company cloud interview
A VM costs ₹10 an hour on demand. A one-year reserved commitment for the same VM costs ₹52,560, payable whatever the usage. Above what utilisation of the 8,760 hours in a year is the reservation cheaper?
- A. 40%
- B. 50%
- C. 72%
- D. 60%
Correct answer: D. 60%
Full-year on-demand cost = 8,760 x 10 = ₹87,600, and 52,560/87,600 = 60%. Below 60% usage, paying on demand is cheaper; above it, the reservation wins.
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 client calls a payment API with exponential backoff: wait 100 ms before the first retry and double the wait each time, for up to 4…
- A mobile client sends POST /payments, the server charges the card, but the response is lost on a flaky network, so the client retries. How…
- A feed API uses ?offset=20&limit=20 pagination. While a user reads page 1, 5 new items are inserted at the top. What goes wrong on page 2…
- During a network partition between two data centres, a replicated database must either reject some writes or accept writes on both sides…
- An order service and a payment service each own their database. Placing an order must reserve stock, charge the card and create the order…
- A circuit breaker protecting calls to a slow service has three states. Which sequence is correct?