Knowledge / Computer Science and Engineering / AWS core services

AWS core services

Computer Science and Engineering (B.E./B.Tech) · Web, cloud and design · free study notes for exams, placements and interviews

In short

Amazon Web Services (AWS) is a public cloud platform that rents compute, storage, networking, databases and managed services on demand, billed by the second or by usage. A handful of "core" services — EC2, S3, VPC, IAM, RDS/DynamoDB, Lambda, ELB with Auto Scaling, CloudWatch and Route 53 — account for most real architectures and almost all interview questions. In India it is examined in cloud computing electives (AICTE/CBCS, usually with a lab on launching EC2 and hosting on S3) and is asked in placement rounds at Infosys, TCS, Wipro, Accenture, Cognizant, Amazon, Flipkart, Zomato, Paytm, Razorpay, Zoho and almost every startup. AWS runs two Indian regions — Mumbai (ap-south-1) and Hyderabad (ap-south-2) — which matter because RBI, SEBI, IRDAI and the DPDP Act, 2023 constrain where Indian data may sit. Prices quoted below are indicative; AWS rates change, so always confirm on the current pricing page.

Explained

Global infrastructure, the shared responsibility model and account basics

IAM, encryption and security services

Compute: EC2, Auto Scaling, load balancing, serverless and containers

Storage: S3, EBS, EFS and archival

Databases and data services

Networking: VPC, Route 53 and connectivity

Monitoring, automation, cost and Indian compliance

Key points

Formulas and examples

Monthly EC2 cost = hourly rate × hours used; 1 month is billed as 730 hours (8,760 h ÷ 12)
Usable IPs in a subnet = 232 − prefix − 5 (AWS reserves 5 addresses per subnet)
Lambda cost = (requests − free requests) × price per request + (GB-s − free GB-s) × price per GB-s, where GB-s = memory in GB × duration in seconds × invocations
Serial (dependent) availability A = A₁ × A₂ × … × Aₙ; Parallel (redundant) A = 1 − (1 − A₁)(1 − A₂)…
Downtime = (1 − A) × period (730 h per month, 8,760 h per year)
Target-tracking desired capacity = ceil(current capacity × current metric ÷ target metric)
Instances needed = ceil(peak requests per second ÷ requests per second per instance), then +1 spare for an instance failure; to survive losing one of n AZs, each AZ needs ceil(that count ÷ (n − 1))
DynamoDB: 1 RCU = one strongly consistent read of up to 4 KB/s (= two eventually consistent reads); 1 WCU = one write of up to 1 KB/s
EBS throughput (MB/s) = IOPS × block size (MB); the volume is limited by whichever of IOPS or throughput binds first

Example 1 — monthly bill for a three-tier web app in Mumbai (indicative rates). Assume t3.medium On-Demand at \$0.0448/h, gp3 at \$0.0912/GB-month, ALB at \$0.0243/h, ₹84 per USD.

Example 2 — S3 cost for a college result-download portal. 500 GB stored, 1,000,000 GET, 50,000 PUT, 200 GB downloaded in a month. Rates: \$0.025/GB-month, \$0.0004 per 1,000 GET, \$0.005 per 1,000 PUT, \$0.1093/GB out after the 100 GB free allowance.

Example 3 — Lambda versus an always-on EC2 instance. 5,000,000 invocations/month, 512 MB memory, average duration 300 ms. Rates \$0.20 per 1M requests, \$0.0000166667 per GB-s, free tier 1M requests + 400,000 GB-s.

Example 4 — availability arithmetic.

Example 5 — capacity and DynamoDB sizing.

NeedServiceWhy
Full OS control, legacy appEC2Any software, any port, you patch it
Spiky or event-driven codeLambdaNo idle cost, scales to zero
Containers without serversFargateNo EC2 fleet to manage
Files served to usersS3 + CloudFrontCheap, durable, cached at the edge
Boot disk / database diskEBS gp3 or io2Low-latency block storage, one AZ
Shared folder for many serversEFSNFS across AZs
Relational, joins, transactionsRDS / AuroraManaged SQL, Multi-AZ failover
Key-value at massive scaleDynamoDBMillisecond latency, no capacity planning with on-demand
Security groupNetwork ACL
LevelENI / instanceSubnet
StateStatefulStateless
RulesAllow onlyAllow and deny
EvaluationAll rules togetherIn rule-number order, first match
Typical useApplication firewallCoarse subnet-level blocking

Where it is used

Interview questions

Common mistakes

Related topics

Cloud computing basics · Containers: Docker and Kubernetes · Caching, queues and CDNs · System design basics for freshers · REST APIs · Authentication and authorisation: sessions, OAuth and JWT

Open in the Knowledge reader →Find jobs →