← BIT 401 Cloud Computing and DevOps
Cloud Security, Scaling and Cost Management
Notes
Security through layered controls
Cloud security follows a shared responsibility model in which provider and customer duties depend on the service used. Identity and access management defines which people and services may perform particular actions. Least privilege grants only the permissions necessary for a task, while multifactor authentication requires additional evidence beyond a password. Encrypt sensitive information during transmission and storage, manage keys separately and record administrative activity. Backups should have restricted deletion rights and undergo restoration tests. Network segmentation reduces exposure, but it does not replace secure application design, patching or access review.
Balancing capacity and expenditure
Vertical scaling increases resources on an existing machine, whereas horizontal scaling adds more instances. A load balancer distributes requests across healthy instances. Autoscaling changes capacity according to demand indicators, but thresholds need testing to avoid delayed responses or excessive spending. Cost management uses budgets, resource tags, utilisation monitoring and removal of idle services. Forecasts must include storage, data transfer, support and backup charges alongside compute. Reserved capacity may suit steady workloads, while flexible capacity can suit seasonal demand. Availability objectives should guide spending rather than purchasing redundancy without a business justification.
Practical example
A Kisumu agribusiness cooperative runs two application instances for 24 hours daily at KES 12 per instance-hour. Over 30 days, baseline compute costs 2 × 24 × 30 × 12 = KES 17,280. During ten collection days, autoscaling adds three instances for four hours daily, costing 3 × 4 × 10 × 12 = KES 1,440. Total compute is KES 18,720, excluding other services. A KES 22,000 compute budget leaves KES 3,280 headroom. Staff configure alerts and maximum instance limits while separately monitoring transaction failures, since staying within budget does not demonstrate reliable service.
Quiz
1. Adding three application instances is an example of what?
2. Which action best implements least privilege?
3. How much compute budget remains in the example?
Sign in to submit and securely grade your quiz.