All Flashcards
S3 - How is a key defined?
A key acts as a file name.
It can include (back) slashes, dots or dashes.
S3 - What is the durability / accessibility of S3 Standard?
- 999999999% durability and
99. 99% availabiliy
S3 - How is data consistency handled?
For PUT of new items AWS provides read-after write concistency.
For DELETE and PUT on existing objects eventual concistency (Because the files are stored across multiple data centers)
S3 - Describe S3 Standard - Infrequent Access?
Same duability as Standard.
Storage costs are lower, but there is a retrieval fee.
Also the size min. is 128KB and the duration is set to a min. of 30 days
S3 - What is a typical object lifecycle?
- Initially store in S3 Standard
- After 30 days transition to S3 IA
- After 90 days transition to Glacier
- After 3 years delete the file
S3 - What is SSE-S3?
“Check-Box style” ecryption
AWS handles key management and key protection
S3 - What is SSE-KMS?
Fully integrated solution, Amazon handles the users key management und protection, but the user manages the keys
S3 - What is SSE-C?
User maintains own encryption keys, but Amazon handles the library implementation
S3 - What is Client-Side encryption?
Data is ecrypted on the client side before the data is sent to S3
S3 - What is MFA Delete Protection?
For a delete request the authorization with a MFA device is needed alongside the normal user/password route
S3 - What are Pre-Signed URLs?
Private items be made “public” for a certain time duration
S3 - What is cross-region replication?
For latency and performance reasons objects can be located in S3 buckets across different regions.
Required:
- IAM policy to enable S3 to sent the files to another region
- Versioning must be turned on
EC2 - What defines an instance type?
- Count of virtual CPUs
- Memory
- Storage in type and size
- Network performance
EC2 - What is enhanced networking?
Reduces impact of the virtualization on the networking capabilities.
Results in lower latency, more packets and less jitter
EC2 - What defines an AMI?
- The operating system
- The state of patches
- The installed applications or other system software
EC2 - What are the typs of AMIs?
- Published by AWS
- Maketplace AMIs
- AMIs from existing instances or backups
- From AWS VM Import/Export
EC2 - How can you access an instance from the web?
- Assign a public or elastic IP or use the DNS for the instance
- Make sure that the route table, security group and NACL allow access
EC2 - Does an EC2 instance need a security group?
Yes, at least one security group must be attached to the instance
EC2 - What kind of source/destinatons are allowed in a Security Group?
CIDR IP blocks or other security groups
EC2 - Can you export a VM and import it to AWS?
Yes, using AWS VM Import/Export.
Instances from AMIs cannot be exported (and used in another data center)
EC2 - How can an instance be resized?
Stop the instance.
Change the type using the “Change Instance Type” setting
EC2 - Can you change the Security Group on a running instance?
Yes, also rules in a security group can be changed and take effect immediately
EC2 - What is Termination Protection?
No instance can be terminated before this setting is manually deselected.
Does not prevent Spot Instances to be terminated.
EC2 - How can an EC2 reserved instance be modified?
- Switch the AZ in the same region
- Change the instance type in the same instance family
EC2 - Describe the tenancy options for instances
Shared Tenancy: Host has instances from all customers
Dedicated Instance: Instance (Server) is used by the custome
Dedicated Host: Entire rack is used by the customer
EC2 - What is Instance Store?
Storage located directly on the hadware (Not netwok storage like EBS)
Storage and usage costs are included in the instance costs.
Data will be lost if the instance goes down.
Instances can only be terminated, not sopped.
EC2 - Are EBS volumes replicated on the Availability Zones?
They are replicated inside their AZ, but not across them
EC2 - Can you use muliple EBS devices on a single instance?
Yes, they can also be combined using RAID.
But while one instance can have multiple volumes, a volume can only be attached to a single instance. (Use EFS for that case)
EC2 - What is a magnetic EBS volume?
They are using magnetic hard disks, which are cost-effective and range from 1GB to 1TB.
By default it has (only) 100 IOPS, but can burst.
EC2 - What is a magnetic EBS volume used for?
- If data is accessed infrequently
- For sequential reads
- Low storage costs are required
EC2 - How are (max.) IOPS calculated for standard EBS volumes?
Based on the storage capacity, 3 IOPS are given to every GB (300 IOPS for 100GB e.g.)
But the IOPS are capped to 10.000.
EC2 - How are EBS volumes billed?
Based on the allocated storage capacity (regardless what is really used)
EC2 - What are the max. volume sizes and throughputs of the EBS volume types?
General: 1GB - 16TB/ 160MB
Provisioned: 4GB - 32TB / 320MB
Magnetic: 1GB - 1TB / 40-90MB
EC2 - Where are EBS snaphots located?
In S3, but they are not visible to the customer in the buket
EC2 - Can you use an EBS snapshot in another region?
No, they can only be attached to an instance in the same region.
But they can be copied and therefore transferred to another region.
EC2 - What does it mean that data is “lazily loaded”?
When a volume is restored the volume is accessible but the data might not be present, but is loaded on request.
Therefore on restoring all the blocks should called and therefore be present when customers are using it
EC2 - How can you increase the size of a running EBS volume?
- Create a snaphot
2. Create another volume (if increased size) form that volume
EC2 - Are files on a EBS volume encrypted at rest?
Yes, using KMS.
The are also encrypted on transit between the instance and the volume
VPC - What is the smallest/largest IP range in a VPC?
/28 (16 IPs)
/16 (65.536 IPs)
VPC - What are the core components of a VPC?
- Subnets
- Route Table
- Security Groups
- Network Control Access Lists
VPC - What is the difference between a public and private subnet?
Route table does / does not route traffic to/from the internet
VPC - What is the “local” route in the route table?
It enables communication within the VPC.
The local route cannot be modified or removed.
VPC - What is the purpose of the Internet Gateway?
Handles requests form / to the internet from the Route Table.
It translates the internal IPs from services and instances to the public IPs (EC2 instances only know their internal IP)
VPC - How to create a public subnet with access to the internet with an IGW?
- Attach the Internet Gateway
- Create a route to/from 0.0.0.0/0
- Configure NACL and Security Groups
VPC - Can you transfer an Elastic IP to anotther region?
No, they are locked to a region (used for local routing etc.)
VPC - What is the purpose of a VPC endpoint?
Enables a private connection for AWS Services without the need to access the internet or a NAT gateway
VPC - What is the purpose of VPC Peering?
Connection with other VPC, in your own account or with someone else.
But is always limited to the same region
VPC - What are the restrictions for VPC Peering?
- There cannot be overlapping CIDR blocks
- Must be in the same region
- Transitive routing is not allowed
- Only one connection from VPC to VPC