Fundamentals Flashcards
What is an Availability Zone?
- one or more discrete data centers with redundant power, networking, and connectivity
- They’re separate from each other, so that they’re isolated from disasters
- They’re connected with high bandwidth, ultra-low latency networking
What is a Region?
- has many availability zones
- min is 2, max is 6, usually 3
What is IAM?
Identity Access Management is global Made up of - Users (start off with no access) - Groups - Policies (JSON scripts) - Roles
What is Federation?
A way to integrate IAM with your own repository of users (AD Groups) via SAML
How many Roles can be applied to an application?
One
What are Root Credentials?
- The original user created that has full rights to everything.
- should never be used except for initial setup
What is EC2?
a rented virtual machines (EC2 – Elastic Compute Cloud)
What systems and tools can use SSH?
- Mac: SSH, EC2 Instance Connect
- Linux: SSH, EC2 Instance Connect
- < Win 10: Putty, EC2 Instance Connect
- > = Win 10: SSH, Putty, EC2 Instance Connect
What are Security Groups?
- They control how traffic is allowed into or out of our EC2 Machines like “a firewall”
- They can be attached to multiple instances but only one region/VPC combination
- They can access IPs, IP ranges or other security groups
What are the most common ports used?
SSH = port 22 HTTP = port 80
How do i resolve a permission issue when using SSH?
execute “chmod 0400” to add appropriate permission
What kind of problem is it when an application is not accessible due to timeout?
It is a security group issue
When will i get a “connection refused” error?
When it is an application error or application is not launced
What are the default values for inbound and outbound traffic?
Inbound traffic is blocked
Outbound traffic is authorized
What are the two kinds of IPs?
IPv4: [0-255].[0-255].[0-255].[0-255] is most common
IPv6: 3ffe:1900:4545:3:200:f8ff:fe21:67cf solves for IOIT
What is an Elastic IP?
- A static IPv4 that you own as long as it is not deleted
- It can mask the failure of an instance or software by rapidly remapping the address to another instance in your account
- Only 5 per account (but can ask AWS to increase if needed)
- Not recommended, better to use random IP with Load Balancer that has a DNS name
What is EC2 User Data?
A bootstrap script which runs as the root user
Can be used to…
- Install updates
- Install software
- Download common files from the internet
- and anything else you can think of
What are the EC2 Launch Types?
- On Demand Instances (short timeframe, static, pay for what you use)
- Reserved Instances (long timeframe, flexible sizing, 54% discount)
- Scheduled Reserve Instances (recurring timeframe, static, pay for what you use)
- Spot Instances (short timeframe, static, bid price as long as it is >= spot price) most cost efficient
- Spot Fleet is a set of Spot Instances + (optional) On-Demand Instances
- Dedicated Instance is a dedicated physical server for you only, can be shared with others in same account, per instance billing and possible region fee
- Dedicated Host is a dedicated physical server where we have full control and visibility to underlying sockets/cores, 3 year reservation, pricing per host
What are the main EC2 Instance Types?
R for Ram intensive C for CPU intensive M for Medium loads I for I/O intensive G for GPU intensive T2/T3 for burstable loads (uses credits built up during non bursting, can become BAD if all credits used up)
Billing typically by the second (except for t2.micro which is free)
What is an AMI?
- Amazon Machine Image are images of an EC2 instance which can be private or public
- they are region specific
- they live on S3
- only charged for actual space used on S3
How do i share an AMI with another region?
Owner of the source AMI must grant read permissions to the s3 bucket or EBS snapshot