CV0-004 Cheatsheet
CompTIA Cloud+
Download free PDFCloud Architecture (23%)
Service models and responsibility
- **IaaS** supplies compute, storage and networking; customers manage guest operating systems and applications. **PaaS** hosts customer code on a managed platform. **SaaS** supplies a finished application.
- **FaaS/serverless** executes event-triggered functions with managed capacity. **DBaaS** manages database infrastructure; **iPaaS** connects services through managed integration workflows.
- **Shared responsibility** varies by service. Customers still govern identities, permissions, data and application configuration; managed infrastructure does not secure leaked credentials or vulnerable customer code.
- For a **managed database**, distinguish provider engine and OS maintenance from customer schema, data access, network exposure and supported encryption settings. Check the service contract for the exact boundary.
Cloud placement and portability
- **Public cloud** shares provider infrastructure among tenants. **Private cloud** serves one organization. **Community cloud** serves organizations with common requirements. **Hybrid cloud** integrates distinct private and public environments.
- **Multicloud** uses multiple providers; **colocation** places customer equipment in a third-party facility. Neither term alone implies a cloud service model.
- **Vendor lock-in** arises from proprietary APIs, data formats and managed features. Favor open interfaces, exportable data and portable runtimes when mobility matters; include exit and transfer costs.
- **Regions** provide geographic placement; **availability zones** separate failure domains within a region. Check regional service, GPU and instance availability before replicating a design.
Compute and application structure
- A **VM** has its own guest OS and virtual CPU, memory and networking. **Containers** share a host kernel, reducing OS overhead; **bare metal** and dedicated hosts offer different isolation and licensing choices.
- **Microservices** divide applications into loosely coupled services with independent deployment and scaling. Service discovery locates changing endpoints; a **monolith** packages functions together.
- **Event-driven** systems react to messages or resource events. **Fan-out** delivers one event to multiple consumers; queues decouple producers and workers and absorb bursts.
- **Edge computing** processes data near users or devices. A **CDN** caches content at distributed edge locations, reducing origin load and delivery latency; plan cache lifetime and invalidation.
Storage selection and performance
- **Block storage** presents disk-like volumes for filesystems and databases. **File storage/NAS** exposes shared files through protocols such as SMB or NFS. **Object storage** stores objects and metadata through APIs.
- A **SAN** supplies block access through technologies such as Fibre Channel or Ethernet-based iSCSI. Match initiator, target, LUN access and network connectivity; SAN does not mean Fibre Channel only.
- **SSD/all-flash** favors low latency and high IOPS; **HDD** favors economical capacity. **NVMe** is common for fast flash storage; SATA and SAS can serve both SSDs and HDDs.
- **IOPS** counts operations per second; **throughput** measures bytes per second; **latency** measures operation delay. Throughput is approximately IOPS × I/O size. Check disk, VM and network limits together.
Networking and traffic delivery
- **VPC/VNet** supplies an isolated virtual network. Use non-overlapping CIDR ranges for connected networks. **Peering** connects networks privately; do not assume it provides transitive routing.
- **Site-to-site VPN** encrypts traffic between networks. A **direct/dedicated connection** offers private connectivity and predictable performance; encryption and redundancy still require explicit design.
- **Transit gateways/hubs** connect many networks and on-premises sites. **SDN** separates programmable network control from forwarding; routes and security rules still determine reachability.
- **Layer 4 load balancing** routes transport connections; **Layer 7** can route HTTP by host or path. **Affinity** can keep sessions on a backend; externalized session state makes horizontal scaling easier.
Data services, APIs and AI
- **Relational databases** use structured tables and relationships. **NoSQL** includes document, key-value, column and graph models. Match consistency, transactions and access patterns to the workload.
- **Data lakes** commonly use scalable object storage for diverse data. **Graph databases** represent relationships; **vector databases** index embeddings for similarity search.
- **REST** exposes resources through HTTP operations; **GraphQL** lets clients request selected fields. **RPC** invokes operations; **WebSockets** support bidirectional persistent communication such as chat.
- **Computer vision** interprets images and video; **OCR** extracts text from images. **NLP** processes language, **sentiment analysis** estimates tone, and **generative AI** creates content such as conversational responses.
Deployment (19%)
Migration strategies and readiness
- **Rehost** moves an application with limited changes. **Replatform** changes the hosting platform with modest adaptation. **Refactor/rearchitect** changes code or design to exploit cloud capabilities.
- **Repurchase** replaces software with another offering, often SaaS. **Retain** keeps a workload in its current environment; **retire** removes a workload that is no longer needed.
- Assess **dependencies**, runtime and OS compatibility, data volume, latency, identity, licenses and security requirements. Container portability still depends on CPU architecture, storage and networking support.
- Plan **migration waves**, data synchronization, validation, rollback and cutover. Update DNS and application connection strings; measure bandwidth and storage performance before scheduling bulk transfers.
Release strategies and rollback
- **Blue-green** keeps two production-capable environments and switches traffic after validation. Rollback can switch traffic back; database changes must remain compatible.
- **Rolling deployment** replaces instances in batches while others serve traffic. Set available capacity, readiness checks and surge limits so the remaining instances can handle demand.
- **Canary** exposes a release to a small audience before expanding it. **A/B testing** compares user experiences; **shadow deployment** duplicates traffic for evaluation without serving the shadow response.
- **In-place updates** modify existing systems and can require downtime. Choose a strategy using availability, cost, rollback and data compatibility; no method guarantees uninterrupted service without capacity and testing.
Repeatable infrastructure and configuration
- **Infrastructure as code (IaC)** defines resources in versioned templates. Parameterize environment-specific values to keep development, staging and production consistent without sharing secrets.
- **Configuration management**, such as Ansible playbooks, applies packages, settings and hardening to systems. **Idempotence** means repeated execution converges on the desired state.
- **Drift detection** compares deployed resources with declared configuration. Review and reconcile manual changes; use policy enforcement and controlled console access to prevent recurring drift.
- Before applying a template, validate **syntax**, dependencies, permissions and the change plan. Valid JSON requires quoted strings and keys, lowercase booleans and no trailing commas.
Provisioning and placement constraints
- **Quotas/service limits** restrict resource counts or capacity, often by account and region. Available quota does not guarantee physical capacity; request increases and check regional support before deployment.
- **Host affinity** constrains placement to selected hosts or groups. **Anti-affinity** separates instances to reduce correlated failure; low latency and geographic redundancy can conflict.
- **Health/readiness checks** keep unready instances out of service. Configure **instance warm-up** so modules and caches initialize before scaling decisions or user traffic depend on them.
- Isolate **development, test and production** through identities, networks and deployment controls. Use representative test data and independently scoped external developer access.
Operations (17%)
Metrics, logs and traces
- **Metrics** summarize measurements over time; **logs** record events; **distributed traces** follow requests across services. Correlation IDs connect application, API and dependency evidence.
- **Guest monitoring agents** collect process-level CPU, memory and OS telemetry that infrastructure metrics may omit. Use dashboards such as Grafana for health trends and capacity planning.
- **Centralized log aggregation** supports cross-instance analysis. **Audit logs** track control-plane activity; **flow logs** summarize network connections; application logs explain request and runtime failures.
- **Alerts** evaluate meaningful thresholds or anomalies and route to responders. Baselines and sustained windows reduce noise; check user impact and recent changes during triage.
- **Log rotation** rolls active logs by size or time to control local disk use. Export required history before deleting rotated files; retention, aggregation and tracing solve different problems.
Scaling direction and trigger
- **Vertical scaling** changes CPU, memory or capacity of an instance and may require a restart. **Horizontal scaling** adds or removes instances and requires distributable application work.
- **Load-based scaling** reacts to utilization, request rates or queue depth. **Scheduled scaling** prepares for known daily peaks; **trend/predictive scaling** anticipates recurring demand.
- **Event-based scaling** reacts to a defined business or system event and need not reflect current resource use. **Manual scaling** suits deliberate one-time adjustments to stable workloads.
- Set **minimum/maximum capacity**, cooldown, warm-up and safe scale-in behavior. Match the trigger to the bottleneck; adding CPU does not automatically fix disk or network saturation.
Backups, replication and recovery goals
- **RPO** is the maximum acceptable data-loss interval; **RTO** is the target time to restore service. **MTTR** measures typical repair or recovery duration; verify actual recovery against objectives.
- **Full backups** capture all selected data. **Incremental backups** capture changes since the previous backup; restore generally needs the full backup and the subsequent incrementals.
- **Differential backups** capture changes since the last full backup; restore needs the full plus the latest differential. Incrementals generally reduce routine backup work, while restore chains become more involved.
- **Snapshots** capture point-in-time state and may depend on source storage. **Replication** supports failover but can propagate corruption; keep independent recovery history and test application-consistent restores.
Resilience, retention and restore testing
- **Synchronous replication** acknowledges writes after required replicas commit, with latency costs. **Asynchronous replication** can leave recent writes unreplicated; monitor lag against the RPO.
- **Hot sites** are ready for rapid activation; **warm sites** need additional preparation; **cold sites** require substantial setup. Active-active and active-passive designs have different cost and failover behavior.
- **Retention policies** define how long backups and logs remain. **Lifecycle rules** transition or delete eligible data; legal holds and required retention must take precedence over routine deletion.
- **Restore tests** verify integrity, dependencies and measured recovery time. Keep protected off-site copies, isolated credentials and immutable backups; RAID and replication do not replace backups.
Cost control and lifecycle operations
- **Tags** associate resources with owners, projects and environments. Combine usage telemetry with billing data for allocation, budgets and rightsizing; include cross-region transfer and egress charges.
- **On-demand/pay-as-you-go** suits variable demand; **reserved/committed capacity discounts** suit predictable baseline use. **Spot** capacity can be interrupted, so use it for tolerant workloads.
- **Hot storage** supports frequent access; cool/cold/archive tiers trade lower capacity cost for retrieval fees or delay. Match retention and recovery requirements; remove unattached and idle resources after validation.
- Review **release notes**, breaking changes and dependencies before patching. Test, approve, schedule and retain rollback options. **End of life** and **end of support** are distinct milestones; plan replacement before fixes cease.
- **APT** and **.deb** packages are common on Debian/Ubuntu; **DNF/YUM** and **.rpm** packages serve Red Hat-based systems. Use trusted repositories, verify dependencies and test updates.
- **Decommission** resources after validating migration and retention obligations. Preserve required data in recoverable volumes or backups, verify access, remove credentials and networking, then sanitize or delete unneeded storage.
Security (19%)
Identity, federation and Zero Trust
- **Authentication** verifies identity; **authorization** grants actions. **Least privilege** limits rights and scope. **RBAC** uses roles; **ABAC** evaluates attributes such as classification, resource tags and context.
- **SSO** reduces separate application logins. **SAML** supports federated assertions; **OpenID Connect** adds authentication to OAuth 2.0. LDAP accesses directories; Kerberos uses tickets in compatible domains.
- **MFA** requires distinct factor types. **Conditional access** evaluates signals such as location and managed-device status. Token or API-key authentication alone does not imply MFA.
- **Zero Trust** continuously verifies access, limits privilege and assumes compromise. Combine identity controls, segmentation and monitoring to reduce lateral movement after a perimeter breach.
Workload identities and secret handling
- **Service accounts** need narrowly scoped roles and controlled credentials. A logging agent should not gain directory-wide administration merely to collect logs.
- Prefer **managed/workload identities** or short-lived tokens where supported. API keys and client secrets must be stored in a secret manager, rotated and excluded from code, images and build logs.
- When a secret is exposed, **revoke or rotate** it and investigate use. Removing it from the latest commit does not remove copies, repository history or already issued access.
- **Private repositories** restrict code and image access, but do not eliminate secret leakage. Add secret scanning, restricted CI identities, masked logs and review of build artifacts.
Protecting data and recovery copies
- **Encryption at rest** protects stored data; **TLS** protects data in transit. AES is symmetric encryption; hashing supports integrity checks, while encoding provides no confidentiality.
- **Key management** governs generation, access, rotation, recovery and destruction. Distinguish provider-managed and customer-managed keys; encryption does not block reads by a compromised authorized identity.
- **DLP** detects or restricts sensitive-data movement through email, endpoints and cloud services. Classification labels guide handling and access; their names and ranking depend on organizational policy.
- **Immutability/WORM/Object Lock** prevents eligible data modification or deletion during retention. Combine it with encryption and access controls; immutable data is not automatically confidential.
Network and workload defenses
- **Firewalls, security groups and ACLs** restrict traffic. Stateful controls track sessions; stateless rules may need explicit return traffic. Segment tiers and expose only necessary services.
- **WAFs** inspect HTTP(S) application requests; **IPS** can block detected attacks; **IDS** alerts on suspicious activity. DDoS protection addresses traffic floods; layer controls according to the threat.
- Prevent **origin bypass** by restricting backend access to approved ingress paths. Parameterized queries address SQL injection; output encoding addresses XSS; CSRF defenses include suitable tokens and cookie policies.
- Use **private management**, VPN or controlled bastion access instead of unrestricted internet SSH/RDP. **VDI** can keep data in controlled sessions when clipboard, download and device policies are enforced.
Vulnerability management and hardening
- Define authorized **scan scope**, discover assets, identify findings, validate and prioritize risk, remediate or mitigate, then rescan and report. Distinguish true positives from scanner noise.
- **CVE** identifies a disclosed vulnerability; **CWE** classifies a weakness; **CVSS** scores severity. Consider exposure, exploitability and business impact when prioritizing patches.
- **CIS Benchmarks** provide technology-specific hardening recommendations. Reduce unnecessary services, patch supported software and build trusted baseline images; a digital signature establishes provenance, not freedom from flaws.
- Harden containers with **non-root users**, minimal images, pinned dependencies and restricted privileges. Scan images and dependencies; emergency patches still need coordinated authorization, validation and rollback.
Governance and incident response
- **Data residency/locality** concerns where data is stored or processed; **sovereignty** concerns jurisdictional authority. Evaluate replicas, backups, support access and ownership terms when selecting locations.
- **PCI DSS** addresses payment-card security; **GDPR** addresses personal-data protection. **SOC 2** attests to controls against trust services criteria; **ISO/IEC 27001** concerns an information security management system.
- Translate **regulatory, contractual and organizational requirements** into access, encryption, retention and audit controls. A provider certification does not automatically make every customer workload compliant.
- **Incident response** starts with triage and assessment, then containment, investigation, eradication and recovery. Preserve evidence and protected logs, involve management and legal teams, and follow the notification plan.
DevOps Fundamentals (10%)
Git history and collaboration
- **Repositories** retain versioned project content. **Branches** isolate work; **commits** record staged changes locally. A new feature branch supports review before integration.
- **git fetch** downloads remote updates; **git pull** fetches and integrates them; **git push** sends local commits to a remote. A commit alone does not publish changes remotely.
- **Pull requests** support peer review, checks and protected-branch approval. **Merge** combines histories; **rebase** replays commits onto a different base and can rewrite shared history.
- **Versioning** makes infrastructure and application changes traceable. Use release tags and approved artifacts; in semantic versioning, major/minor/patch indicate breaking changes, compatible features and compatible fixes.
CI/CD and automation
- **Continuous integration** builds and tests changes frequently. **Continuous delivery** keeps releases deployable with an approval step; **continuous deployment** automatically releases passing changes to production.
- A pipeline commonly performs **checkout, dependency resolution, build, tests, security checks, packaging and deployment**. Reuse the tested artifact across environments and restrict production credentials.
- Use **variables** for changing paths and environment values, functions for reusable logic and scheduler jobs for recurring operations. Target resources by controlled tags for batch actions.
- **Jenkins** orchestrates pipelines; **Terraform** provisions infrastructure; **Ansible** configures systems; **Kubernetes** orchestrates containers. Select the tool for the lifecycle layer it manages.
Images, runtime and persistent data
- **Images** are packaged application templates; **containers** are running instances. **Registries** store images. An image reference identifies a registry, repository and optional tag or digest.
- **Dockerfile** instructions define the image: FROM selects a base, COPY adds files, RUN performs build steps, USER selects the runtime identity and ENTRYPOINT defines the executable.
- **docker pull** retrieves an image; **docker run** starts a container. **-p 80:8080** maps host port 80 to container port 8080; EXPOSE alone does not publish a port.
- **Ephemeral storage** is tied to workload lifecycle and can disappear on replacement. **Persistent volumes** retain output independently when configured accordingly; verify attachment, permissions and deletion policy.
API integration and request controls
- **REST over HTTPS** is common for application integrations. **SOAP** uses XML envelopes; JSON uses structured name/value data. A JWT is a token format, not a replacement for an API payload schema.
- **Webhooks** notify registered endpoints of events; **MQTT** provides lightweight publish/subscribe messaging for constrained and IoT devices. Event consumers should tolerate retries and duplicate delivery.
- **API gateways** centralize routing, authentication, validation and throttling. Use scoped credentials and supported API versions; update deprecated integrations after compatibility testing.
- **Rate limits** restrict request frequency; quotas bound allowed consumption or capacity. Handle **HTTP 429** with Retry-After when supplied and exponential backoff with jitter; retry safely within a bounded policy.
Troubleshooting (12%)
Triage and isolate the failing layer
- Identify **scope, timing, affected users and recent changes**. Form a probable cause, test it safely, plan and implement the fix, verify full function and document the result.
- Compare **healthy and failing paths** using logs, metrics and traces. A regional symptom can indicate provider or DNS issues, but verify service health and client configuration before concluding.
- For **partial provisioning**, inspect each failed API operation, identity, permission, quota and regional capacity. A **403** indicates refusal; it does not prove a platform-wide outage.
- For **build failures**, identify the first failing stage and inspect syntax, dependency versions, tests, credentials and runner connectivity. Fix the cause before retrying the whole pipeline.
Addressing, routing and DNS checks
- Verify **IP address, CIDR mask, gateway and DHCP capacity**. A /29 contains eight IPv4 addresses, conventionally six host addresses; cloud-reserved addresses can further reduce usable capacity.
- Check **routes in both directions**, peering/transit configuration and non-overlapping ranges. A VPN tunnel being up does not prove workload reachability; compare office and remote-client routes and rules.
- For internet access from a private subnet, verify the **default route, NAT/egress path and firewall policy**. Successful internal pings do not validate internet routing or TCP application access.
- **A/AAAA records** map names to IPv4/IPv6; CNAME aliases names; MX routes mail; PTR supports reverse lookup; SRV advertises services. Check resolver reachability, cached answers, TTL and DNSSEC validation.
Application, identity and TLS failures
- After migration, verify **database endpoints, connection strings, listening ports and runtime compatibility**. A correct public DNS record does not prove all application tiers are connected.
- **HTTP 500** indicates an internal server failure; **502** an invalid upstream response; **504** a gateway timeout. Inspect backend readiness, health-check paths, dependencies and timeout settings.
- For access failures, inspect **effective permissions**, explicit denies, group membership, role scope and token refresh. Examine anomalous login sources before treating repeated lockouts as routine password resets.
- For **TLS errors**, verify protocol/cipher overlap, certificate name, expiry, chain, trusted root and clock. Update obsolete endpoints and trust stores; disabling certificate verification conceals the problem.
Resource pressure and storage paths
- Correlate **CPU, memory, swap, disk latency, queue depth and network throughput**. Heavy swapping increases disk activity; a network-bound workload may need network capacity or distributed backends.
- Sustained unexplained **CPU usage** can indicate cryptomining, but also legitimate work or software defects. Inspect processes and security telemetry; confirm malicious activity before treating a utilization alert as proof.
- For **SAN/iSCSI performance**, verify VLANs, initiator-target access, negotiated link speed, optics, MTU consistency and redundant multipath connectivity. Compare IOPS and throughput with the SLA.
- **RAID 5** distributes parity and tolerates one drive failure per group, with write overhead. Redundant fabrics protect path availability; match storage and backup design to failures beyond a single disk or link.