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?
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.
Answer is A
https://alestic.com/2011/09/ec2-reboot-stop-start/
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/
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.
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”
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.
Answer is A (3 hours)
Almost right. you forgot to add that the instance was launched and thus +1 hour for the running time.
A. is correct.
I think A (1+2 hrs)
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html
When you stop an instance, we shut it down. We don’t charge hourly usage for a stopped instance, or data transfer fees, but we do charge for the storage for any Amazon EBS volumes. Each time you start a stopped instance we charge a full instance hour, even if you make this transition multiple times within a single hour.
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.
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.
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html
Each time you start a stopped instance we charge a full instance hour, even if you make this transition multiple times within a single hour.
A is correct
A
a
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
A is the Answer
C is the answer , the user stopped twice, meaning he accrued 1 hour per start. reboot did not accrue any costs.
a
A
D is correct.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html
When you stop an instance, we shut it down. We don’t charge usage for a stopped instance, or data transfer fees, but we do charge for the storage for any Amazon EBS volumes. Each time you start a stopped instance we charge a minimum of one minute for usage. After one minute, we charge only for the seconds you use. For example, if you run an instance for 20 seconds and then stop it, we charge for a full one minute. If you run an instance for 3 minutes and 40 seconds, we charge for exactly 3 minutes and 40 seconds of usage.
https://aws.amazon.com/ec2/faqs/
How will I be charged and billed for my use of Amazon EC2?
You pay only for what you use. Displayed pricing is an hourly rate but depending on which instances you choose, you pay by the hour or second (minimum of 60 seconds) for each instance type. Partial instance-hours consumed are billed based on instance usage. Data transferred between AWS services in different regions will be charged as Internet Data Transfer on both sides of the transfer. Usage for other Amazon Web Services is billed separately from Amazon EC2.