A cloud can grow quickly and out of control. Governance sets the rules, compliance proves that they are followed, and cost management keeps spending in check.

Cloud Governance

Cloud governance is the set of policies, roles and processes by which an organisation controls its use of the cloud. It sets who may buy and use cloud services, standards for security and configuration, approval for new services, risk management, and accountability. It uses tools such as policy as code, tagging of resources to show the owner and purpose, landing zones, which are pre-built secure accounts, and central logging. A cloud centre of excellence guides the teams.

Compliance

Compliance means meeting the rules of laws, standards and contracts. Common standards are ISO/IEC 27001 for information security management, SOC 2 for the controls of a service provider, PCI DSS for card data, and HIPAA and GDPR by law. Providers publish audit reports and certificates. The customer must still check that its own use is compliant. Continuous compliance uses automatic tools to check configurations against rules, to find problems early, and to keep audit trails. A service level agreement (SLA) states the provider's promises, such as 99.9 percent availability, and the remedy if they are not met.

Definition: Cloud governance. The policies, roles and processes by which an organisation directs and controls its use of cloud services, so that they are secure, compliant, cost-effective and aligned with its goals.

Cost Management

Cloud costs can grow without notice, since anyone can start a resource. Cost management keeps them under control. The steps are to tag resources so that costs can be assigned to teams, to set budgets and alerts, to monitor use, to right-size machines that are too large, to shut down idle resources, to use reserved instances or savings plans, which give a discount for a commitment, to use spot instances, which are cheap but can be taken away, and to use auto-scaling and storage tiers. FinOps is the practice of bringing finance and engineering together for cost awareness. Hidden costs include data transfer (egress) charges.

Table 3.5: Governance, compliance and cost

Area Aim Example tool
Governance Control use Policies, tagging, landing zones
Compliance Meet rules ISO 27001, SOC 2, audits
Cost management Control spending Budgets, right-sizing, reserved instances

Example 3.5: Saving with reserved instances

Problem: A server costs Rs 10 per hour on demand and Rs 6.5 per hour with a one-year reservation. It runs all year (8,760 hours). Find the saving.

Solution:

  1. On demand: 8,760 × 10 = Rs 87,600.
  2. Reserved: 8,760 × 6.5 = Rs 56,940.
  3. Saving = 87,600 - 56,940 = Rs 30,660.

Result: The reservation saves Rs 30,660 a year, about 35 percent.

hours = 8760
od, ri = hours * 10, hours * 6.5
print(od, ri, od - ri, round((od - ri) / od * 100))

Output

87600 56940.0 30660.0 35

Common mistakes

  • Letting teams create resources with no tags, so that no one knows the owner or cost.
  • Forgetting data egress charges when moving large amounts of data.
  • Treating compliance as a one-time audit instead of a continuous task.

Key takeaways

  • Governance sets the rules for cloud use.
  • Compliance means meeting laws, standards and contracts, such as ISO 27001 and SOC 2.
  • An SLA states the provider's promises, such as availability.
  • Cost control uses tags, budgets, right-sizing, reservations and FinOps.

Practice questions

  1. What is cloud governance?
  2. What is an SLA?
  3. Name two ways to reduce cloud cost.

Answers to the practice questions

  1. The policies, roles and processes by which an organisation controls its use of cloud services.
  2. A contract that states the service levels that the provider promises, such as availability, and the remedies if they are missed.
  3. Right-sizing and using reserved instances (also shutting down idle resources, spot instances).

Sources

  • Official BCA syllabus Cloud Computing, course code 25BCA405DS03, Unit III