AWS Certified Solutions Architect - Professional 2020

Sign Up Free or Log In to participate!

Practice Test – VPC to use Dedicated hosts tenancy

The question below has an incorrect answer being marked as corrected.

Following advice from your consultant, you have configured your VPC to use Dedicated hosting tenancy. A subsequent change to your application has rendered the performance gains from dedicated tenancy superfluous, and you would now like to recoup some of these greater costs. How do you revert to Default hosting tenancy?​

Suggested correct answer: Use the AWS CLI to modify the Instance Placement attribute of each instance and the VPC tenancy attribute of the VPC

Actual correct answer: Create AMIs of all your instances. Create a new VPC with Default as the hosting tenancy attribute, and use them to create new instances using Default tenancy.

Explanation: Once a VPC is set to Dedicated hosting, it is not possible to change the VPC or the instances to Default hosting. You must re-create the VPC. Further information: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html#change-tenancy-vpc

3 Answers

II believe the chosen answer is correct 

Please read this from the link you provided In your post

"You can change the instance tenancy of a VPC from dedicated to default after you create it. You cannot change the instance tenancy of a VPC to dedicated"

So it is possible to change to default which what is being asked in the question,  but not possible the other way around

Looks like the explanation for that question answer is a little bit off – as Ahmad Alhady rightfully pointed out, according to the link posted in the explanation it IS possible to change the instance and VPC tenancy for already deployed resources, as long as you are going from dedicated -> default and not the other way around.

The link and correct answer reflect this – I’ll get the explanation updated to do so as well.

Note that this functionality was introduced in late 2017 https://aws.amazon.com/about-aws/whats-new/2017/10/switch-the-tenancy-of-your-vpc-from-dedicated-to-default-instantly/ – previously it would not have been possible to do this!

Scott Perkins

So it is possible just not from the GUI. Greatly Appreciated for the assistance.

Pgp Abhimanyu

You can change the tenancy of a stopped Dedicated Instance to host or vice versa after launching it. However if an instance has been already launched with tenancy = dedicated / host, this tenancy cannot be changed to default. After the VPC tenancy is changed to default, any new instances launched in the VPC will have a default tenancy

Pgp Abhimanyu

You cannot change the tenancy of an instance from dedicated or host to default after you’ve launched it. Source: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-instance.html The explanation says "Note that this will not change hosting settings for existing instances, only future ones. Existing instances can be changed via CLI, SDK or API but need to be in a stopped state to do so". It should be reframed as "Note that this will not change hosting settings for existing instances, only future ones. Existing instances can only be changed from dedicated to host or vice versa via CLI, SDK or API but need to be in a stopped state to do so"

You can change the instance tenancy attribute of a VPC from dedicated to default. Modifying the instance tenancy of the VPC does not affect the tenancy of any existing instances in the VPC. The next time you launch an instance in the VPC, it has a tenancy of default, unless you specify otherwise during launch. You can modify the instance tenancy attribute of a VPC using the AWS CLI, an AWS SDK, or the Amazon EC2 API only. Reference: Change the tenancy of a VPC.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?