2. EC2 Flashcards
Question
Answer
What is EC2?
EC2 is a web service that provides resizable compute capacity in the cloud.
What are the EC2 instance types?
The EC2 instance types are:- On Demand- Reserved Instances- Spot Instances- Dedicated Host
When would you use on-demand EC2 instances?
On-demand EC2 instances are for users that want low cost and flexibility without any up-front payment or long term commitment. It is used for applications with short term workloads that cannot be interrupted. It is useful for applications being developed or tested on EC2 for the first time.
What are reserved instances useful for?
Reserved instances are useful for applications with stable load and predictable usage and so require reserved capacity. Users are able to make upfront payment to reduce costs even further.
What are the types of reserved instance?
The types of reserved instance are:- Standard reserved- Convertible reserved- Scheduled reserved
What are EC2 spot instances?
Spot instances are instances that are deployed when the cost is between pre-set parameters. Spot instances are useful for applications that can have flexible start and end times and applications that are only feasible at low compute prices.
What are EC2 Dedicated Hosts?
Dedicated hosts give you a fully dedicated physical server for your use, with complete control of Hardware and Software. Suitable for software with a complicated licensing model or strong regulatory/compliance needs.
What root volumes types are available for EC2 instances?
EC2 root volumes can only be SSD or magnetic standard. Other options such as HDD are only available when adding additional volumes.
What is a security group?
A ‚ÄØsecurity group‚ÄØ acts as a virtual firewall to control inbound and outbound traffic for your instance.They can be attached to many instances. An instance can also have many Security Groups.
How long does it take for security group changes to take effect?
Any security group changes take effect immediately.
Are security groups stateful or stateless?
Security groups are stateful — if you send a request from your instance, the response traffic for that request is allowed to flow in regardless of inbound security group rules. Responses to allowed inbound traffic are allowed to flow out, regardless of outbound rules.
Are Network Access Control Lists stateful or stateless?
Network Access Control Lists are stateless.
What is the difference between a Security Group and a Network access control list?
Security groups are tied to an instance whereas Network ACLs are tied to the subnet.
What would you use to block or blacklist certain ip addresses?
NACLS should be used to block or blacklist ip addresses
How are keys used to access EC2 instances?
You will set a public key that gets attached to the EC2 instance and use your private key to actually access. (public key = a padlock that you can put anywhere, private key = key to the padlock)
What is Termination Protection?
Termination Protection is ensuring that the root volume is not lost when the EC2 is deleted.Termination Protection is turned off by default.
What is ENI?
ENI is an Elastic Network Interface - essentially a virtual network card for your EC2 instance. An ENI is automatically attached when you create an EC2 instance.
What is an EN?
EN is Enhanced Networking.EN uses SR-IOV for high performance networking capabilities.
What is EFA (Elastic Fabric Adapter)?
Elastic Fabric Adapter is a network device that can be attached to an EC2 instance to accelerate HPC (High Performance Computing) and machine learning applications.
When would you use ENI?
You would use ENI for basic networking at low cost.All instance types have an ENI
When would you use ENA (Enhanced Network Adapter)?
You would use ENA when you need higher I/O performance and lower CPU utilisation than standard ENI adapters. ENA gives speeds between 10Gbps and 100Gbps - reliable, high throughput
When would you use EFA (Elastic Fabric Adapter) ?
You would use EFA when you need to accelerate HPC (High Performance Computing) and machine learning applications.
What is a Spot Block?
A Spot Block can be used to stop your Spot Instances from being terminated even if the price exceeds your maximum spot price. Spot blocks can be set for between one to six hours.
What are some specific examples of what Spot Instances useful for?
Spot Instances are useful for:- Big Data and Analytics- Containerised workloads- CI/CD testing- Web services- HPC- Image Rendering
What are Spot Instances not useful for?
Spot Instances are not useful for:- Persistent workloads- Critical workloads- Databases
Can you be charged for a partial hour of usage for a Spot Instance?
If the Spot instance is terminated by EC2 you will not be charged for a partial hour of usage.If you terminate the instance yourself then you will be charged for partial hours of usage.
What are the two types of Spot Instances?
The two types of Spot Instance are:- one-time- persistent
What are Spot Fleets?
A Spot Fleet is a collection of Spot Instances and, optionally, on-demand instances.So inside your Spot Fleet you can have on-demand instances as well as Spot Instances
What do Spot Fleets do?
A Spot Fleet attempts to launch the number of Spot Instances and On-Demand instances to meet the target capacity specified in the Spot Fleet request.
What do you use in order to enact your Spot Fleet strategies?
The definition of launch pools should be used to enact your Spot Fleet strategies of:- Capacity Optimised- Diversified- Lowest Price- Instance Pools To Use Count
To what in AWS can you access using access keys and secret access keys?
Access keys and secret access keys are used to access AWS via the command line or via API, but not via the console.
What does a credential report provide?
A credential report provides a download of all users in your account.It gives details such as the last use of passwords, when they need changing, whether it has an access key on the account, whether MFA has been enabled etc.
What are EC2 Placement Groups?
Placement groups are ways of grouping your EC2 instances together