>dr.kb< multiverse

grab a bowl ... 🌿🍯🔥💨

View on GitHub
author: 51n5337 & #CLD
mission: CompTIA Cloud+ Certification
brief: vocabs. brief. 2-deployment.

…back

overview

2.0 deployment ███████████████████ 19% 🚀
“A solution requires on-premises deployment with need-to-know access. Which deployment model?” (Answer: Private Cloud)
“Which strategy reduces risk by slowly shifting traffic to a new version?” (Answer: Canary Deployment)
“What format is commonly used for IaC configurations?” (Answer: YAML/JSON)


2.1 Cloud Deployment Models

- Public
- Private: on premises
- Hybrid
- Community

🧠 Think Like an Architect: The Stellar Café Expands

Remember Stellar Café? They started cloud-native. Now they’ve acquired “BeanLogix,” a legacy coffee bean tracking system that runs on-prem for compliance.

The Challenge:

The Design:
Hybrid Model.

“You don’t choose hybrid because it’s easy. You choose it because reality is messy.”


2.2 Deployment Strategies

- Blue-green
- Canary
- Rolling
- In-place
Strategy Vibe How It Works Risk Level Cost & Complexity
Blue-Green 🔵 Currently live (serving all user traffic)
🟢 Staging/standby (identical setup, but not receiving traffic)
Two identical envs; deploy a new version on 🟢; switch traffic all at once; instant rollback Low High
Canary 🐤⛏️ Test the waters Roll out to small % of users first Medium Medium
Rolling ♻️🔄 Slow and steady replacement Update instances gradually in batches Medium Low
In-Place 🏚️💥 Big bang in production Update existing servers directly High Low

read more about {mmorpg, update, hybrid strategy}…


2.3 Cloud Migration

- Migration types: on-premises-to-cloud, cloud-to-on-premises, cloud-to-cloud
- Replatform, re-architect, retain, retire, refactor
- Application migration strategies: rehost

📋 The 5+2 R’s of Cloud Migration

standard 5r: rehost, refactor, revise, rebuild, replace +2r (e.g. AWS): relocate, repurchase see more about different 5r… see AWS…

definition can be different in different contexts. vibe similar.

this summary follows AWS…

--- 5r ---
- rehost: 'lift-and-shift', prem-to-cloud move-as-is, zero-level-difficulty
- refactor: 're-architect', cloud-native, +{agility, performance, scalability}, ex on-prem db to compatible DBaaS
- replatform: 'lift-and-reshape', 'rebuild', platform-optimization, ex on-prem db to cloud-provider-optimized DBaaS.
- retain: 'revisit', keep-as-is, migrate-later, legacy-app
- retire: 'bye'
--- +2r ---
- repurchase: 'drop-and-shop', 3rd-party-microservice-SaaS, ex employee db to ihelpyouhrstuff.com service
- relocate: 'hypervisor-lift-and-shift', prem-server-to-cloud-server, hypervisor-level

🎯 Vibe

🌉 Stellar Café: The BeanLogix Migration

Before: BeanLogix runs on old physical servers.
Options:

irl… hybird, multi-stage, many-moving-parts

read more…


2.4 Configuring Cloud

- Infrastructure as code (IaC)
- Configuration as code (CaC)
- Scripting logic: variables, conditionals, operators, data types, functions
- Repeatability
- Drift detection
- Versioning
- Testing
- Documentation
- Formats: JavaScript Object Notation (JSON), Yet Another Markup Language (YAML)

🌈 Automating Cloud Operations

This section is about turning manual cloud operations into code:

What We’re Automating:

The Shift We’re Describing:

FROM: "Bob the cloud wizard manually clicking buttons"
TO: "Git commits that reliably build entire environments"

🔗 Tie-in

2.4 ←→ 2.1 (Deployment Models)

Connection: IaC defines and automates which deployment model you use.

2.4 ←→ 2.2 (Deployment Strategies)

Connection: IaC enables and executes your deployment strategies.

2.4 ←→ 2.3 (Cloud Migration)

Connection: IaC documents and reproduces your migration patterns.

2.4 ←→ 2.5 (Provisioning Resources)

Connection: IaC is provisioning, but with intelligence.

🎯 The Big Picture: IaC as the Glue

BUSINESS NEEDS
    ↓
ARCHITECTURE (Section 1.0)
    ↓
DEPLOYMENT STRATEGY (2.2) + MIGRATION PLAN (2.3)
    ↓
IaC CODE (2.4) ←→ PROVISIONING (2.5)
    ↓
LIVE, MANAGED INFRASTRUCTURE

try practice questions from #CLD…

take me there…


2.5 Provisioning Cloud Resources

- Storage requirements
- Performance requirements  
- Security requirements
- Cost requirements
- Availability requirements
- Compliance requirements
- Network requirements
- Compute requirements
Requirement Questions to Ask Example Resource Choice
Storage “Hot, warm, or cold? IOPS or capacity?” SSD for DB, Object for backups
Performance “Latency-sensitive? Batch or real-time?” Compute-optimized VMs, CDN
Security “Public-facing? Compliance standards?” WAF, encrypted volumes, private subnets
Cost “Reserved? Spot? Pay-as-you-go?” Spot for batch, Reserved for baseline
Availability “Multi-AZ? Multi-region? What’s the RTO/RPO?” Load balancer + Auto Scaling + Multi-AZ DB
Compliance “HIPAA? PCI? Data sovereignty?” Private cloud, encrypted everything
Network “Public internet or private peering?” VPN, Direct Connect, VPC peering
Compute “VMs, containers, or serverless?” EKS for microservices, Lambda for events

🧠 The Architect’s Checklist

Before you provision, ask:

  1. What breaks if this fails? → Availability design
  2. Who can see this? → Security design
  3. How much does it cost to sleep? → Cost modeling
  4. Does it need to talk to other stuff? → Networking
  5. Will it grow fast or stay small? → Scaling plan

another practice…

take me there…


…back next…