Elastic Computer Cloud (EC2) Flashcards
________ EC2 instances are where you purchase unused capacity at a discount of up to 90%, and the prices fluctuate with supply and demand.It’s great for applications with flexible start and end times.
Spot
___________ EC2 instances are where you reserve your capacity for one to three years, and the more you pay upfront, the greater savings that you have. You can save up to 72% discount on the hourly charge, and this is great if you’ve got known or fixed requirements.
Reserved
___________ EC2 instances are where there is a physical EC2 server that’s dedicated for your use.
And it’s great if you have server bound licenses to reuse or compliance requirements, so perhaps government says that you can’t do it on multi-tenant hardware, then you want Dedicated instances.
Dedicated
_______ EC2 instances are where you pay by the second or the hour depending on the type of instance that you run. It’s great for flexibility and there are no long-term contracts.
On-Demand
This is where you pay by the second or the hour
depending on the type of instance that you run,
and it’s great for flexibility,
no long-term contracts
________ allow you to avoid hard coding your credentials. You don’t need to save access key IDs
and secret access keys into your code in order to be able to access things like S3 from EC2 without the use of access key IDs and secret access keys.
Roles
_________ control a role’s permission,
just like they control your user permissions and group permissions.
Policies
True or False? You must stop or terminate EC2 instances before you can attach and detach a role.
False. You can attach and detach a role to run an EC2 instance without having to stop or terminate these instances.
When you create a security group, all _______ traffic is blocked by default, and all ________ traffic is allowed.
inbound, outbound
A ______________ is a script
that runs when the instance first runs.
It runs at root level, so it has full administrative privileges, and it passes user data to the EC2 instance
and can be used to install applications, like web servers, database servers, as well as do updates and whatever else you want it to do when you first boot that EC2 instance.
bootstrap script
User data is simply your ___________,
whereas ______ is data about your EC2 instances.
bootstrap scripts, metadata
Of the types of networking devices, ______ is a low cost option used for basic networking. Use cases include maintaining a separate management network or a separate logging network. In these cases, you can use multiple of these types of networking devices for each network.
ENI (Elastic Networking Interface)
How long does it take for changes to security groups to take effect.
Changes take effect immediately
True or False. AWS limits 100 EC2 instances per security group.
False. You can have any number of EC2 instances within a security group.
Use _________ when you need speeds
between 10 gigabits per second and 100 gigabits per second, basically, anywhere you need reliable and high throughput.
Enhanced networking
Use _______ where you need to have high performance computing (HPC) and machine learning applications, or you need to do an OS level bypass.
EFAs (Elastic Fabric Adapter)