High Lights- 4
AWS Lambdaβ
-
AWS Lambda functions always operate from an AWS-owned VPC.
By default, Lambda functions have full access to the public internet, including AWS APIs (e.g., DynamoDBPutItem
,Query
).
VPC access is only required when interacting with private resources in private subnets (e.g., RDS).
Source: AWS Blog -
Since Lambda can scale rapidly, implement CloudWatch Alarms for metrics like
ConcurrentExecutions
orInvocations
.
Also, use AWS Budgets to monitor costs.
Amazon S3 and Glacier Complianceβ
-
Amazon S3 Object Lock in Compliance mode + S3 Glacier Vault Lock provides ideal WORM protection for regulatory compliance.
-
S3 Object Lock ensures write-once-read-many data integrity.
-
S3 Glacier Vault Lock enforces immutable archive policies that can't be modified once set.
Disaster Recovery (DR) Strategiesβ
Disaster Recovery (DR) involves restoring infrastructure after disruption. AWS supports multiple DR models:
Pilot Lightβ
- Minimal core services always running in the cloud.
- Allows fast ignition of full infrastructure during recovery.
- Example: Core system components like databases always running on AWS.
Backup and Restoreβ
- Traditional backup to offsite (e.g., tapes) β slow recovery.
- With AWS, use Amazon S3 as backup destination for faster network-based restores.
Warm Standbyβ
- A scaled-down functional environment always running.
- Faster than pilot light due to running app components.
Multi-Site (Active-Active)β
- Runs in both AWS and on-premise infrastructure.
- Use Recovery Point Objective (RPO) and Recovery Time Objective (RTO) to guide data replication.
- Costlier but most resilient.
Source: AWS DR Guide
IAM Rolesβ
Trust Policyβ
- Trust policies define who (principals) can assume the role.
- IAM roles need:
- Trust policy
- Identity-based policy
- IAM only supports one resource-based policy type: role trust policy.
Amazon API Gatewayβ
API Gateway enables:
- REST and WebSocket APIs
- Serverless and containerized workloads
- Monitoring, throttling, and caching
Acts as the "front door" for backend service access.
Amazon EventBridge vs SNSβ
- Amazon SNS does not support third-party integration.
- Use Amazon EventBridge to react to events from:
- SaaS apps
- AWS services
AWS Auto Scaling Group (ASG)β
- Even if ASG spans 3 AZs, setting
minCapacity = 2
launches 2 instances in separate AZs. - When load increases, a 3rd instance is added in the 3rd AZ.
- ASG scales-in again to maintain 2-instance HA baseline.
AWS DMS & DynamoDBβ
AWS DMS supports data migration between:
- Relational DBs
- Data warehouses
- Streaming platforms
- AWS data stores
DynamoDBβ
Amazon DynamoDB read/write modes:
- On-demand
- Provisioned (default & free-tier eligible)
On-demand mode is ideal if:
- Workload is unpredictable
- Usage is unknown
- You want pay-per-request pricing
Additional features:
- Deletion protection: prevents accidental table removal
- Point-in-time recovery (PITR): restore within last 35 days (but doesnβt prevent deletion)
AWS RDSβ
- IAM authentication is an alt login mechanism.
- For in-transit encryption, use SSL β it offers stronger security guarantees than IAM alone.
VPC Gateway Endpointsβ
- A Gateway Endpoint lets your VPC route traffic to:
- Amazon S3
- DynamoDB
Used to securely access these services without needing internet access or NAT.
Load Balancersβ
- Network Load Balancer (NLB):
- Provides a static public IP
- Ideal for predictable addressing
- Enables scalability via ASG behind the NLB