click below
click below
Normal Size Small Size show me how
EC2
Question | Answer |
---|---|
Outline the instance optimisation types | Compute: high performance processors e.g. ML Memory: large datasets processed in RAM e.g. Business Intelligence Storage: high sequential read/write access in local storage e.g. databases General: balance compute, memory, networking e.g. web servers |
Outline the eight types of instance rental available | 1. On-demand 2. Reserved - Vanilla - Convertible 3. Convertible reserved 4. Savings plan 5. Spot 6. Dedicated host 7. Dedicated instance 8. Capacity reservation |
Outline the key elements of an EC2 | Compute/RAM = instance size Storage Networking Firewalls and Security Groups Amazon Machine Image/Operating System Bootstrapping - user data script for initial setup SSH (for remoting into port 22) |
Describe Security Groups | Controls traffic into and out of EC2 instances - Access to ports - Authorised IP ranges - Inbound/outbound network Defaults: Authorise everything out, deny everything in Many:Many ratio for Instances:Security Groups Locked to a Region/VPC |
What are the key ports of an EC2? | 22 - secure file transfer protocol (SFTP), secure shell (SSH) 21 - file transfer protocol (FTP) 80 - HTTP access to unsecured websites 443 - HTTPS access to secure websites 3389 - Windows Remote Desktop Protocol |
Outline the Shared Responsibility Model for EC2 | AWS: Infrastructure, isolation on physical hosts, compliance User: Security groups, OS patching, software/apps, IAM roles, data security |
Describe an on-demand instance and it's use cases | PAYG model, no advance commitment and no discounts Best used for short-term projects or projects with unpredictable demands/timescales |
Describe a spot instance and it's use cases | Cheap Unused instances are sold in an auction that the highest bidder wins Temporary, unpredictable and non-private allocation of resources Good for large, parallelised workflows that don't have to be run uninterrupted |
Describe the vanilla reserved instance and it's use cases | 1/3 yr Rent a given instance flavour for a time period, with fixed type, region, tenancy and OS Suits long, predictable workloads e.g. databases All, partial or no upfront payment options Buy/Sell capacity in Reserved Instance Marketplace |
Describe a savings plan instance and it's use cases | 1/3yr Commit to spend a certain amount of money on instances Flexible way to save money |
Describe a dedicated host instance and it's use cases | On-demand or reserved Book entire physical server and return to it each time Suitable for tasks with strict operational compliance Use existing server-bound licenses (BYOL) Control how instances are placed on physical server |
Describe a dedicated instance and it's use cases | While using a physical server, no other AWS users can share it May not return to the same physical server each time No control over instance placement in server |
Describe the convertible reserved instance and it's use cases | 1/3 yr Rent an instance in a given family/region for a time period, with option to change type, size, tenancy and OS Suits long but dynamic workloads All, partial or no upfront payment options Buy/Sell capacity in Reserved Instance Marketplace |
Describe reserved capacity and it's use cases | Any duration On-demand capacity in an AZ guaranteed No time commitments or discounts Charged whether capacity is used or not Suitable for short term uninterrupted workloads in specific AZ |