PrepAway - Latest Free Exam Questions & Answers

how many instance hours will AWS charge the user?

A user has launched an EBS backed instance. The user started the instance at 9 AM in the morning. Between 9
AM to 10 AM, the user is testing some script. Thus, he stopped the instance twice and restarted it. In the same
hour the user rebooted the instance once. For how many instance hours will AWS charge the user?

PrepAway - Latest Free Exam Questions & Answers

A.
3 hours

B.
4 hours

C.
2 hours

D.
1 hour

Explanation:
A user can stop/start or reboot an EC2 instance using the AWS console, the Amazon EC2 CLI or the Amazon
EC2 API. Rebooting an instance is equivalent to rebooting an operating system. When the instance is rebooted
AWS will not charge the user for the extra hours. In case the user stops the instance, AWS does not charge the
running cost but charges only the EBS storage cost. If the user starts and stops the instance multiple times in a
single hour, AWS will charge the user for every start and stop. In this case, since the instance was rebooted
twice, it will cost the user for 3 instance hours.

18 Comments on “how many instance hours will AWS charge the user?

  1. Chef says:

    A is wrong…

    D

    Q: What defines billable EC2 instance-hours?

    Instance-hours are billed for any time your instances are in a “running” state. If you no longer wish to be charged for your instance, you must “stop” or “terminate” the instance to avoid being billed for additional instance-hours. Billing starts when an instance transitions into the running state.

    https://aws.amazon.com/ec2/faqs/




    0



    0
  2. YENY says:

    C is correct.

    * Partial instance-hours consumed are billed as full hours.
    * Rebooting an instance doesn’t start a new instance billing hour, unlike stopping and restarting your instance.

    twice stop and restart -> 2 hours
    rebooted the instance once -> reboot is different the restart. therefore, 0 hours.




    0



    0
    1. zl-Dez says:

      you are not correct.
      “A fresh billing hour is started for the instance when you start it again. E.g., if you start a new instance and then stop/start it 3 times within the first 60 minutes, you’ll get charged for 4 hours instead of 1”
      So it means that 2 hours from restarts and 1 our from initial start –> 3 hours, and the answer is “A”




      0



      0
      1. sridhar says:

        Fresh hour will be started if the instance is terminated and spin the new instance.

        Restart doesn’t matter

        I will go with D – 1 hr.




        0



        0
  3. sridhar says:

    For restart it does not charge for an extra hour, while every stop/start it will be charged as a separate hour.
    I will go with the option D – 1hr.




    0



    0
    1. sridhar says:

      I take my answer back… Sorry.. I go with the A ( I did not read the question propery.., It says as instance was stopped twice..)

      A is the right answer Because the instance was stopped twice (2 times) + 1 current usage hour = 3 hours.




      0



      0
  4. Nagarjuna D N says:

    The answer should be A.

    Stop/Start instance does cost(The instance runs on a new host computer) but not for rebooting the instance which is equivalent to rebooting OS(The instance stays on the same host computer).

    – You stop incurring charges for an instance as soon as its state changes to stopping. Each time an instance transitions from stopped to running, we start a new instance billing hour.

    -The instance billing hour doesn’t change for rebooting the instance.

    http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html




    0



    0

Leave a Reply

Your email address will not be published. Required fields are marked *