FlashGenius Logo FlashGenius
CompTIA Cloud+ · CV0-004 · V4 2024

Cloud+: Deployment &
Infrastructure as Code

Domain 2 of 6  |  19% of Exam  |  CV0-004

19%Weight
90 minExam Time
750Passing Score
90Questions
V4 2024Version

CV0-004 Exam Domains

DomainWeight
1. Cloud Architecture23%
2. Deployment19% — THIS PAGE
3. Security19%
4. Operations17%
5. Troubleshooting12%
6. DevOps Fundamentals10%

Core Concepts — 8 Topics

1Workload Migration Planning

2Migration Approaches and Tools

3Infrastructure as Code (IaC) Concepts

4Terraform

5CloudFormation and ARM/Bicep

6Configuration Management

7Deployment Strategies

8Resource Provisioning

Memory Hooks — 6 Cards

6 Rs of Migration

"Real Retooling, Really Requires Raising Revenue: Rehost, Replatform, Refactor, Repurchase, Retire, Retain"

Terraform Workflow

"IPAD: Init → Plan → Apply → Destroy" — always plan before apply

Declarative vs Imperative

"Declarative=Destination (Terraform says WHERE), Imperative=Directions (Ansible says HOW)"

Deployment Strategies Risk

"In-place=Instant regret, Rolling=Risky mix, Blue/Green=Best safety, Canary=Careful rollout"

IaC Remote State Rule

"Never local state in a team — S3+DynamoDB for AWS, Blob+lease for Azure"

Blue/Green vs Canary

"Blue/Green: all-or-nothing switch. Canary: trickle then flood."

Quiz Complete!

Flashcards — 12 Cards

Click to reveal answer

Study Advisor — Personalized Plans

Study Plan for Sysadmins

1
Anchor to Familiar Ground

Start with migration concepts — you already know on-prem systems. Focus on the 6 Rs and how Rehost and Replatform map to what you do today. Cutover planning is familiar territory.

2
Learn Terraform Hands-On

Install Terraform locally and deploy a simple AWS EC2 instance or Azure VM. Walk through init → plan → apply → destroy with real cloud resources. See state file creation.

3
Master Ansible as Config Management

You likely manage servers manually today. Learn Ansible as "scripting at scale" — write a playbook to configure an nginx server. Practice idempotency by running it twice.

4
Study Deployment Strategies

Draw Blue/Green and Canary diagrams with traffic flow. Compare to how you currently handle server updates. Map the risk vs rollback complexity tradeoffs.

5
Practice Resource Provisioning

Walk through ASG min/max/desired logic with example scenarios. Practice subnetting decisions: when to use public vs private subnets for different workloads.

6
Focus on Remote State + Secrets

Understand why local state fails in teams. Set up S3+DynamoDB for Terraform state. Practice pulling secrets from AWS Secrets Manager rather than hard-coding them.

7
Timed Practice with Domain 2 Questions

Use the quiz to test knowledge under exam conditions. Focus on scenario-based questions — the exam presents situations, not just definitions.

Study Plan for DevOps Engineers

1
Map Existing Tools to Exam Objectives

You likely already use Terraform, Ansible, or CloudFormation. Audit your knowledge against the 6 Rs and deployment strategies — identify gaps vs comfortable territory.

2
Deep-Dive State Management

Review remote state backends (S3+DynamoDB, Azure Blob+lease). Understand workspace isolation, state locking race conditions, and how import handles existing resources.

3
Master Multi-Tool Comparison

The exam tests when to use Terraform vs CloudFormation vs Ansible vs Bicep. Practice articulating: "Terraform for multi-cloud provisioning, Ansible for config management, CloudFormation for AWS-native teams."

4
Drill Deployment Strategy Edge Cases

When does Rolling beat Blue/Green? When does Canary introduce too much complexity? Practice choosing strategies based on: budget constraints, rollback requirements, traffic volume.

5
Review Migration Tools Specifics

AWS SMS vs DMS vs DataSync — know which handles VMs vs databases vs files. AWS Snowball thresholds — when does physical transfer beat network? Practice these decision trees.

6
Tackle Exam-Style Scenario Questions

Do timed quiz runs. DevOps engineers often over-complicate answers — the exam often favors the simplest working solution. Rehost beats Refactor when time is the constraint.

Study Plan for Developers

1
Start with IaC — Your Comfort Zone

Developers adapt quickly to Terraform HCL and CloudFormation YAML — treat them as config files with logic. Focus on the workflow (init/plan/apply) and how modules provide reusability like functions.

2
Learn the 6 Rs Framework

Think of migration strategies as architectural decisions. Refactor/Re-architect is the most developer-friendly but costliest. Understand when the business context forces Rehost instead.

3
Study Deployment Strategies as Release Engineering

You likely know feature flags and canary from CI/CD pipelines. Map these to cloud deployment: Blue/Green = environment swap, Canary = weighted routing in load balancer or API gateway.

4
Understand Ansible vs Terraform Split

Developers often conflate these. Terraform = provision the infrastructure (create the server). Ansible = configure what runs on the server (install packages, deploy app). They complement each other.

5
Practice Infrastructure Provisioning Decisions

ASG scaling logic, launch templates, storage type selection (EBS vs S3 vs EFS), and secrets management are frequently tested. Build mental models with scenarios.

6
Build Migration Tool Awareness

You may not know AWS Snowball or DataSync from dev work. Study the use cases — the exam gives scenarios with data sizes and bandwidth constraints, asking you to choose the right tool.

7
Reinforce with Quiz and Flashcards

Use spaced repetition with the flashcards. Revisit any quiz questions you missed — the explanations contain the exact logic the exam expects.

Official & Reference Resources

CompTIA Cloud+ Certification
comptia.org/en-us/certifications/cloud/
Terraform Documentation
developer.hashicorp.com/terraform/docs
Ansible Documentation
docs.ansible.com