Cloud and Container Basics

Virtual machines that are charged only for the time used, at ¥40 per hour (a made-up price), are used. Normally 2 machines run throughout the month (30 days), and on 20 weekdays 4 more are added for 6 hours a day to match the load. Which of the following is the charge for the month?

  1. A¥76,800
  2. B¥86,400
  3. C¥172,800
Show answer and explanation

Answer: A. ¥76,800

With pay-as-you-go pricing, the charge is number of machines × hours run × unit price. The 2 regular machines run 2 × 24 × 30 = 1,440 hours and the 4 added machines 4 × 6 × 20 = 480 hours, 1,920 hours in total. The charge is 1,920 × 40 = ¥76,800. Running 6 machines all the time to cover the peak would cost 6 × 720 × 40 = ¥172,800, so adjusting the number of machines to the load keeps the cost below half.

  • A. Correct. (1,440 + 480) × 40 = ¥76,800.
  • B. This counts the 4 added machines on all 30 days instead of the 20 weekdays ((1,440 + 4 × 6 × 30) × 40 = ¥86,400).
  • C. This is the value for running 6 machines all month (6 × 720 × 40).
Practice this topic Back to topic

Books on Cloud and Container Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Cloud and Container Basics questions

  1. A virtual machine costs ¥50 per hour on demand, paying only for the hours used, or ¥262,800 per year with a reservation that commits to a year of use in advance, regardless of the hours used (both made-up prices). With a year taken as 8,760 hours, the reservation becomes cheaper once the hours used in a year exceed a certain number. Which of the following is that number of hours?
  2. Which of the following generally applies to how many public clouds charge for data transfer?
  3. An environment was created by applying, with a declarative IaC (Infrastructure as Code) tool, a file that defines a network and two virtual machines. Immediately afterwards, the same file is applied again without any changes. Which of the following is what happens?
  4. Which of the following is an appropriate way to update the software on production servers in line with the idea of immutable infrastructure?
  5. Two environments with the same configuration as production are prepared; the current version keeps running in one while the new version is installed and checked in the other, and then the load balancer is switched over to it all at once. If there is a problem, switching back quickly returns to the old version. Which of the following is this release method?