New notes Flashcards
What is the scope of a Virtual Private Cloud (VPC)?
Regional
VPCs are regional. You create VPCs in each region separately.
At which level do you attach an Internet gateway?
VPC
Internet Gateways are attached to the VPC. You then need to add entries to the route tables for your public subnets to point to the IGW.
AWS Outposts
An Outpost is a pool of AWS compute and storage capacity deployed at a customer site, e.g. EC2 instances
AWS operates, monitors, and manages this capacity as part of an AWS Region. You can create subnets on your Outpost and specify them when you create AWS resources such as EC2 instances, EBS volumes, ECS clusters, and RDS instances.
RAID 0 vs RAID 1 (on EBS)
RAID 0 = used for performance (splits data across volumes, but if one fails then whole thing fails)
RIAD 1 = fault tolerance/failover (mirrors data)
GaurdDuty vs Inspector vs Macie
Inspector = Scanning for potential vulnerabilities (EC2 mainly)
Guard Duty = Scanning for active intrusion attempts
Macie = identify and alert on sensative data such as PII (Personally Identifiable Information)
Amazon Inspector provides you with security assessments of your applications settings and configurations on your EC2 instances while Amazon GuardDuty helps with analyzing your entire AWS environment for potential threats.
Inspector only covers EC2 at the moment. GuardDuty, on the other hand, will continuously monitor your “AWS accounts, workloads, and data stored in Amazon S3” and alert you.
VPC overview - part 1
VPC Peering
- Connect two or more VPC’s using AWS network (not transitive) over IPv4 or IPv6
- Private connection
VPC Endpoints
- Allows access from your VPC to AWS services (e.g. S3, DynamoDB, SNS, SQS, CloudWatch, API Gateway etc)
- Private connection
Direct Connect (DX)
- connect VPC to customer data center (over IPv4 and IPv6)
- consistent network experience
- private connection
Direct Connect Gateway
- connect one customer data center to multiple VPC on AWS
- private connection
VPC overview - part 2
AWS Site-to-Site VPN
- Connects customer data center to AWS VPC
- private encrypted connection, howver over the Internet
Egress-only Internet Gateway
- allows outbound only connection to your VPC (private subnet) to the internet (IPv6 only)
- public network
AWS VPN CloudHub
- Connect multiple VPC’s to multiple Customer data centers (Customer Gateway)
- public network
Transit Gateway
- Connecting multiple VPC services together (spoke and hub) and is transitive
- public network
Internet Gateway
- Allows resources (e.g.EC2) in a VPC to connect to the internet
- Public connection
SQS Visbility Timeout
SQS Visibility Timeout is a period of time during which Amazon SQS prevents other consumers from receiving and processing the message again.
In Visibility Timeout, a message is hidden only after it is consumed from the queue. Increasing the Visibility Timeout gives more time to the consumer to process the message and prevent duplicate reading of the message. (default: 30 sec., min.: 0 sec., max.: 12 hours)
AWS App Runner
Similar to Beanstalk, but for containerised web apps
Security Groups and NACL operate at which level?
Security Group = EC2 instance level
Network Access Control List (NACL) = subnet level
Security Groups
Security groups are stateful, meaning if traffic can go out, then it can go back in.
Security Group = stateful (return traffic is automatcially allowed)
NACL = stateless (return traffic must be explicitily allowed by the rules)
Bastion Hosts
Bastion hosts should be deployed in a public subnet
AWS Fargate
AWS Fargate is a serverless compute engine for containers that works with both Amazon Elastic Container Service (ECS) and Amazon Elastic Kubernetes (EKS).
Amazon EBS root device volumes
By default, Amazon EBS root device volumes are automatically deleted when the instance terminates.
You can preserve the volume by setting the value of DeleteOnTermination attribute of the EBS volumes to False.
S3 Glacier retrival
Expedited retrievals allow you to quickly access your data when occasional urgent requests for a subset of archives are required. For all but the largest archives (250 MB+), data accessed using Expedited retrievals are typically made available within 1–5 minutes.
Provisioned capacity ensures that your retrieval capacity for expedited retrievals is available when you need it. Each unit of capacity provides that at least three expedited retrievals can be performed every five minutes and provides up to 150 MB/s of retrieval throughput. You should purchase provisioned retrieval capacity if your workload requires highly reliable and predictable access to a subset of your data in minutes.
What will occur when an EC2 instance is stopped and started
– The underlying host for the instance is possibly changed.
– All data on the attached instance-store devices will be lost.
Fargate
Fargate allocates the right amount of compute, eliminating the need to choose instances and scale cluster capacity. You only pay for the resources required to run your containers, so there is no over-provisioning and paying for additional servers.
By default, Fargate tasks are given a minimum of 20 GiB of free ephemeral storage, which meets the storage requirement in the scenario.
AWS Cost Explorer
AWS Cost Explorer is a service provided by Amazon Web Services (AWS) that helps you visualize, understand, and analyze your AWS costs and usage. It provides a comprehensive set of tools and features to help you monitor and manage your AWS spending.
You can programmatically query your cost and usage data via the Cost Explorer API. You can query for aggregated data such as total monthly costs or total daily usage. You can also query for granular data, such as the number of daily write operations for DynamoDB database tables in your production environment.
S3 Pre-signed URLs vs CloudFront Signed URLs vs Origin Access Identity (OAI) vs Origin Access Control (OAC)
Dynamo DB auto scailing
DynamoDB auto scaling uses the AWS Application Auto Scaling service to dynamically adjust provisioned throughput capacity on your behalf, in response to actual traffic patterns. This enables a table or a global secondary index to increase its provisioned read and write capacity to handle sudden increases in traffic, without throttling.
CIDR notation
/32 denotes one IP address
/0 refers to the entire network
EBS costs incurred
EBS Volumes attached to stopped EC2 Instances incur costs
Elastic Fabric Adapter (EFA)
An Elastic Fabric Adapter (EFA) is a network device that you can attach to your Amazon EC2 instance to accelerate High Performance Computing (HPC) and machine learning applications.
Amazon Kinesis Data Streams
Amazon Kinesis Data Streams enables real-time processing of streaming big data. It provides ordering of records, as well as the ability to read and/or replay records in the same order to multiple Amazon Kinesis Applications.
Consumers are: EMR, EC2, Lambda, Amazon Kinesis Data Analytics
S3 buckets
S3 buckets are region specific
They are stored in 3 AZ’s per region