Free CompTIA Cloud+ (CV0-004) Practice Test
25 original practice questions with answers and explanations, including 3 performance-based style items. Work through each one, then open the answer to check your reasoning. No signup needed.
Written for exam objectives version 5.0 · Last reviewed
How the real CV0-004 exam is built
Maximum of 90 in 90 minutes; passing score 750 (on a scale of 100–900). Domains and weights: Cloud Architecture (23%), Deployment (19%), Operations (17%), Security (19%), DevOps Fundamentals (10%), Troubleshooting (12%). Confirm current details on comptia.org.
- Question 1 of 25Multiple choiceDomain 1: Cloud Architecture
A development team wants to deploy its own long-running web application code. The team does not want to install or patch operating systems, manage the language runtime, or size servers, but it must control the application code and its configuration. Which cloud service model best fits?
- A.Infrastructure as a Service (IaaS)
- B.Platform as a Service (PaaS)
- C.Software as a Service (SaaS)
- D.Desktop as a Service (DaaS)
Show answer and explanation
Correct answer: B
With PaaS the consumer deploys its own applications onto a provider-managed platform and does not manage the underlying operating systems, runtime or servers, but it does control the deployed application and its settings. IaaS would leave OS patching and runtime management with the team. SaaS delivers the provider’s finished application, so the team could not deploy its own code. DaaS delivers virtual desktops to end users, not an application hosting platform.
Objective 1.1 · NIST SP 800-145 The NIST Definition of Cloud Computing
- Question 2 of 25Multiple choiceDomain 1: Cloud Architecture
An order-processing application runs on four VMs in a single availability zone. The business requires the application to keep serving requests without manual failover if one data center fails, to keep network latency between nodes low, and to keep all data in one region for residency reasons. What should the cloud engineer do?
- A.Resize the four VMs to a larger instance type
- B.Add an anti-affinity rule so the four VMs run on different hosts in the same zone
- C.Copy nightly snapshots to a second region and restore them there after an outage
- D.Spread the VMs across multiple availability zones in the same region behind a load balancer
Show answer and explanation
Correct answer: D
Availability zones are physically separate data centers within one region connected by low-latency links, so distributing instances across zones behind a load balancer survives the loss of a data center automatically while keeping data in the region. A larger instance type adds capacity, not fault tolerance. Anti-affinity protects against a single host failure but not the loss of the whole zone. Restoring snapshots in another region is a manual disaster recovery process that breaks the no-manual-failover and single-region requirements.
Objective 1.2 · CompTIA Cloud+ CV0-004 exam objectives
- Question 3 of 25Performance-based: matchDomain 1: Cloud Architecture
Match each workload requirement to the storage type or tier that best satisfies it. Each choice may be used once, more than once, or not at all.
Choices (each may be used once, more than once, or not at all)
- Block storage
- Object storage
- File storage
- Ephemeral storage
- Archive tier
- Hot tier
Match these
- 1.Boot and data volume for a database VM that needs low-latency random reads and writes
- 2.Millions of product images with custom metadata, retrieved over an HTTP API and growing without a fixed capacity limit
- 3.A shared directory mounted at the same time by a fleet of Linux servers over NFS
- 4.Temporary scratch space for a render job that may be lost when the instance stops
- 5.Audit records that must be kept for seven years, are almost never read, and can take hours to retrieve
Show answer and explanation
- 1. Boot and data volume for a database VM that needs low-latency random reads and writes → Block storage
- 2. Millions of product images with custom metadata, retrieved over an HTTP API and growing without a fixed capacity limit → Object storage
- 3. A shared directory mounted at the same time by a fleet of Linux servers over NFS → File storage
- 4. Temporary scratch space for a render job that may be lost when the instance stops → Ephemeral storage
- 5. Audit records that must be kept for seven years, are almost never read, and can take hours to retrieve → Archive tier
Block storage presents raw volumes to one host and suits OS disks and databases. Object storage stores data as objects with metadata behind an API and scales to very large counts, which suits media. File storage exposes a shared file system over protocols such as NFS or SMB to many clients. Ephemeral (instance-local) storage is fast but does not persist when the instance stops, so it suits scratch data only. An archive tier has the lowest storage cost and slowest retrieval, which fits rarely accessed retention data. A hot tier is priced for frequent access and would waste money on seven-year records.
Objective 1.4 · CompTIA Cloud+ CV0-004 exam objectives
- Question 4 of 25Multiple choiceDomain 1: Cloud Architecture
A team wants to package an application together with its libraries so it runs the same way on developer laptops and on the production cluster. Instances must start in seconds and share the host operating system kernel to keep overhead low. Which technology should the team use?
- A.Container images
- B.Virtual machine templates
- C.Bare-metal servers
- D.A Type 2 hypervisor on each laptop
Show answer and explanation
Correct answer: A
A container image bundles the application and its dependencies, and containers share the host kernel, so they start in seconds with little overhead and behave consistently across environments. VM templates include a full guest operating system, which makes them larger and slower to boot. Bare-metal servers are physical hosts, not a portable packaging format. A Type 2 hypervisor runs full VMs on a desktop OS and does not share the host kernel with the workload.
Objective 1.6 · CompTIA Cloud+ CV0-004 exam objectives
- Question 5 of 25Multiple choiceDomain 1: Cloud Architecture
A company runs a reporting service at a steady, predictable load 24 hours a day and expects it to stay that way for at least three years. The service must not be interrupted by the provider. Which compute purchasing option will most likely give the lowest cost?
- A.On-demand (pay-as-you-go) instances
- B.Spot or preemptible instances
- C.Reserved instances or a committed-use discount
- D.Dedicated hosts billed on demand
Show answer and explanation
Correct answer: C
Reserved capacity or a committed-use agreement trades a one- or three-year commitment for a large discount, which is ideal for steady, always-on workloads. On-demand pricing is flexible but costs the most for constant use. Spot or preemptible capacity is cheap but can be reclaimed by the provider at short notice, which violates the no-interruption requirement. Dedicated hosts billed on demand cost more than shared on-demand capacity; they are chosen for physical isolation, per-host software licensing or compliance, not as the cheapest option for a steady workload.
Objective 1.8 · CompTIA Cloud+ CV0-004 exam objectives
- Question 6 of 25Multiple choiceDomain 1: Cloud Architecture
VMs in a private subnet must download operating system updates from the internet, but they must not be reachable by connections initiated from the internet. They have no public IP addresses. What should be added to the network design?
- A.A NAT gateway, with the private subnet’s default route pointing to it
- B.Public IP addresses on each VM and a route to the internet gateway
- C.A site-to-site VPN gateway to the corporate data center
- D.A peering connection to another virtual network
Show answer and explanation
Correct answer: A
A NAT gateway translates outbound connections from private addresses to its own public address and only allows the matching return traffic, so the VMs can reach update servers while unsolicited inbound connections are not possible. Assigning public IPs with a direct internet route would make the VMs reachable from the internet. A site-to-site VPN connects to the corporate network, not the public internet. Peering links two private networks and provides no internet egress by itself.
Objective 1.3 · CompTIA Cloud+ CV0-004 exam objectives
- Question 7 of 25Multiple choiceDomain 2: Deployment
Several regional hospitals jointly fund cloud infrastructure that is used only by their organizations and is built around the healthcare privacy and compliance requirements they all share. Which cloud deployment model is this?
- A.Public cloud
- B.Private cloud
- C.Community cloud
- D.Hybrid cloud
Show answer and explanation
Correct answer: C
NIST defines a community cloud as infrastructure provisioned for exclusive use by a specific community of organizations that share concerns such as mission, security requirements, policy and compliance. A public cloud is open to the general public, a private cloud serves a single organization, and a hybrid cloud is a composition of two or more distinct infrastructures bound together for data and application portability.
Objective 2.1 · NIST SP 800-145 The NIST Definition of Cloud Computing
- Question 8 of 25Performance-based: matchDomain 2: Deployment
Match each release description to the deployment strategy it describes. Each choice may be used once, more than once, or not at all.
Choices (each may be used once, more than once, or not at all)
- Blue-green
- Canary
- Rolling
- In-place
- A/B testing
Match these
- 1.Two identical production environments run side by side; the load balancer switches all traffic to the new one and can switch back instantly
- 2.The new version receives 5% of live traffic while error rates are watched, then its share is gradually increased to 100%
- 3.Servers in the existing pool are updated two at a time so most capacity stays online, without building a duplicate environment
- 4.The application is stopped on the existing servers, the new version is installed on those same servers and restarted during a maintenance window
Show answer and explanation
- 1. Two identical production environments run side by side; the load balancer switches all traffic to the new one and can switch back instantly → Blue-green
- 2. The new version receives 5% of live traffic while error rates are watched, then its share is gradually increased to 100% → Canary
- 3. Servers in the existing pool are updated two at a time so most capacity stays online, without building a duplicate environment → Rolling
- 4. The application is stopped on the existing servers, the new version is installed on those same servers and restarted during a maintenance window → In-place
Blue-green keeps two full environments and cuts traffic over at once, which makes rollback a simple switch. A canary exposes a small slice of real users to the new version first and widens the rollout only if health metrics stay good. A rolling deployment replaces instances in batches within the same pool. An in-place deployment upgrades the existing servers directly and usually accepts downtime. A/B testing splits users between variants to compare user behavior or business outcomes, not to stage a release for safety.
Objective 2.2 · CompTIA Cloud+ CV0-004 exam objectives
- Question 9 of 25Multiple choiceDomain 2: Deployment
A data center lease expires in four months. Leadership wants about 200 VMs moved to an IaaS provider as quickly as possible, with no changes to application code or architecture. Which migration strategy fits?
- A.Refactor
- B.Rehost (lift and shift)
- C.Replatform
- D.Retire
Show answer and explanation
Correct answer: B
Rehosting moves workloads as they are, typically VM to VM, which is the fastest path and requires no code changes. Refactoring re-architects the application, for example into cloud-native services, and takes the longest. Replatforming makes targeted changes such as moving a database to a managed service, which goes beyond the no-change requirement. Retiring decommissions an application instead of moving it.
Objective 2.3 · CompTIA Cloud+ CV0-004 exam objectives
- Question 10 of 25Multiple choiceDomain 2: Deployment
An administrator manually opens an extra firewall port in the cloud console on a resource that is managed by infrastructure as code. The next plan run of the IaC tool reports that it will remove the port to match the template. What does this difference between the deployed environment and the code describe?
- A.Idempotency
- B.Immutable infrastructure
- C.Orchestration
- D.Configuration drift
Show answer and explanation
Correct answer: D
Configuration drift is when the real state of resources diverges from the declared state, often because of manual changes outside the pipeline, and declarative IaC tools detect and correct it. Idempotency means applying the same code repeatedly produces the same result without unintended changes. Immutable infrastructure replaces resources instead of modifying them in place. Orchestration coordinates multiple automated tasks or systems.
Objective 2.4 · CompTIA Cloud+ CV0-004 exam objectives
- Question 11 of 25Select 2Domain 2: Deployment
An in-memory analytics engine loads about 400 GB of data into RAM and writes frequent checkpoints to disk that need consistently high IOPS. It does no graphics rendering or machine learning. Select the TWO resources the engineer should provision.
- A.A memory-optimized instance family
- B.A GPU-accelerated instance family
- C.A provisioned-IOPS SSD block volume
- D.An archive-tier object storage bucket
- E.A burstable general-purpose instance
Show answer and explanation
Correct answers: A, C
A memory-optimized instance family offers a high RAM-to-vCPU ratio for in-memory processing, and a provisioned-IOPS SSD volume guarantees the sustained disk performance the checkpoints need. GPUs serve graphics and ML workloads that this engine does not run. Archive-tier storage has slow retrieval and is not a working disk. A burstable instance relies on CPU credits for short peaks and does not provide the large, steady memory capacity required.
Objective 2.5 · CompTIA Cloud+ CV0-004 exam objectives
- Question 12 of 25Multiple choiceDomain 3: Operations
A checkout request passes through an API gateway and six microservices. Users report that checkout sometimes takes eight seconds, but CPU and memory on every service look normal. Which observability capability would most directly show which service call adds the delay?
- A.Distributed tracing
- B.A CPU utilization dashboard
- C.Synthetic transaction monitoring
- D.Uptime health checks on each service
Show answer and explanation
Correct answer: A
Distributed tracing propagates a trace ID through every hop and records a timed span for each service call, so it shows exactly where time is spent in a single request. CPU dashboards were already normal and do not show per-request latency. Synthetic monitoring can confirm that checkout is slow from the outside but not which internal call is responsible. Health checks only report whether each service is up.
Objective 3.1 · CompTIA Cloud+ CV0-004 exam objectives
- Question 13 of 25Multiple choiceDomain 3: Operations
A web tier gets a sharp, predictable traffic surge every weekday at 09:00. CPU-based autoscaling eventually adds instances, but users see slow responses for the first ten minutes while new instances launch. What is the best way to address this?
- A.Scale vertically by resizing each instance every morning
- B.Disable autoscaling and run peak capacity all day
- C.Add a scheduled scaling action that increases capacity shortly before 09:00 on weekdays
- D.Rely on an operator to add instances manually when alerts fire
Show answer and explanation
Correct answer: C
Scheduled scaling adds capacity ahead of a known, recurring peak, so instances are ready before traffic arrives, and reactive autoscaling can still handle unexpected load. Vertical resizing usually requires a restart and does not remove the warm-up gap. Running peak capacity all day fixes the delay but wastes money for the rest of the day. Manual scaling after an alert is even slower than the current reactive policy.
Objective 3.2 · CompTIA Cloud+ CV0-004 exam objectives
- Question 14 of 25Multiple choiceDomain 3: Operations
A business impact analysis states that the payments database can lose no more than 15 minutes of transactions, and the service must be running again within 4 hours of an outage. What does the 15-minute value define?
- A.Recovery time objective (RTO)
- B.Recovery point objective (RPO)
- C.Mean time between failures (MTBF)
- D.Mean time to repair (MTTR)
Show answer and explanation
Correct answer: B
The RPO is the maximum acceptable data loss measured in time, so backups or replication must capture changes at least every 15 minutes. The 4-hour value is the RTO, the maximum time to restore service. MTBF and MTTR are reliability measurements of how often failures occur and how long repairs take on average, not recovery targets set by the business.
Objective 3.3 · CompTIA Cloud+ CV0-004 exam objectives
- Question 15 of 25Multiple choiceDomain 3: Operations
The cloud provider announces that the managed database engine version used by a production application will reach end of support in six months. What should the cloud team do?
- A.Keep the current version, because the provider will continue patching it indefinitely
- B.Delete the database now to avoid running unsupported software
- C.Move the database into a private subnet as a permanent substitute for upgrading
- D.Plan the upgrade to a supported version, test it in a non-production environment, and complete it before the end-of-support date
Show answer and explanation
Correct answer: D
End-of-support is a planned life cycle event: the team should schedule the version upgrade, validate application compatibility in a test environment, and finish before support ends. After that date the provider stops issuing patches and may upgrade the engine automatically, so doing nothing is not safe. Deleting a production database destroys the service, and network isolation reduces exposure but does not replace security fixes.
Objective 3.4 · CompTIA Cloud+ CV0-004 exam objectives
- Question 16 of 25Multiple choiceDomain 4: Security
A network-based vulnerability scan of cloud VMs reports very few findings, yet the team suspects many hosts are missing OS patches and have insecure local settings. What change will most improve the accuracy of the scan results?
- A.Run credentialed (authenticated) scans so the scanner can inspect installed packages and configuration
- B.Run the same unauthenticated scan more often
- C.Replace scanning with passive network traffic monitoring
- D.Commission an external penetration test of the public endpoints only
Show answer and explanation
Correct answer: A
A credentialed scan logs in to each host and reads installed software versions, patch levels and local configuration, which reveals missing patches that an unauthenticated scan cannot see from the network. Scanning more often repeats the same blind spots. Passive monitoring observes traffic but cannot inventory local patch state. An external penetration test of public endpoints would not assess internal host configuration.
Objective 4.1 · CompTIA Cloud+ CV0-004 exam objectives
- Question 17 of 25Multiple choiceDomain 4: Security
A company must ensure that customer personal data is stored and processed only in data centers located in a specific country, because that country’s laws apply to the data. Which concept drives this requirement?
- A.Data classification
- B.Data retention
- C.Legal hold
- D.Data sovereignty
Show answer and explanation
Correct answer: D
Data sovereignty means data is subject to the laws of the country where it is located, which leads to requirements to keep it within particular jurisdictions, usually enforced by restricting resources to specific regions. Classification labels data by sensitivity, retention defines how long data is kept, and a legal hold preserves data for litigation. None of these dictate geographic location.
Objective 4.2 · CompTIA Cloud+ CV0-004 exam objectives
- Question 18 of 25Multiple choiceDomain 4: Security
Employees should sign in once with the corporate identity provider and then reach several SaaS applications without separate passwords. Each SaaS application should trust signed authentication assertions issued by the corporate identity provider. What should be implemented?
- A.Synchronize password hashes into each SaaS application’s local user store
- B.A shared service account for each SaaS application
- C.Identity federation using SAML-based single sign-on
- D.Hardware tokens for each SaaS application
Show answer and explanation
Correct answer: C
Federation establishes trust between the identity provider and each service provider, and SAML carries signed assertions that let users access the applications through single sign-on without separate credentials. Copying password hashes into every application spreads credentials and still means separate logins. Shared accounts destroy accountability. Hardware tokens add a factor but do not create single sign-on or a trust relationship.
Objective 4.3 · CompTIA Cloud+ CV0-004 exam objectives
- Question 19 of 25Select 2Domain 4: Security
A security review finds that an object storage bucket holding customer records allowed anonymous read access and that the objects were stored unencrypted. Select the TWO controls that directly remediate these findings.
- A.Enable object versioning
- B.Remove anonymous access and enforce a block-public-access setting
- C.Add a lifecycle rule that moves objects to an archive tier
- D.Enable encryption at rest with customer-managed keys
- E.Enable access logging on the bucket
Show answer and explanation
Correct answers: B, D
Removing anonymous access and enforcing a block-public-access guardrail fixes the exposure, and encryption at rest with managed keys fixes the unencrypted storage. Versioning protects against overwrites and deletions, not exposure. Moving objects to an archive tier changes cost and retrieval speed, not access or encryption. Access logging is a useful detective control, but it records reads rather than preventing them.
Objective 4.5 · CompTIA Cloud+ CV0-004 exam objectives
- Question 20 of 25Multiple choiceDomain 4: Security
The monthly cloud bill spikes. Investigation finds dozens of large compute instances in a region the company never uses, all running at 100% CPU and making outbound connections to a cryptocurrency mining pool. They were launched with an access key belonging to a developer. Which attack does this indicate?
- A.Distributed denial of service
- B.Cryptojacking using compromised credentials
- C.Ransomware
- D.DNS poisoning
Show answer and explanation
Correct answer: B
Cryptojacking abuses a victim’s compute resources to mine cryptocurrency; here a stolen access key let the attacker launch instances in an unused region where they were less likely to be noticed. A DDoS attack floods a target with traffic, ransomware encrypts data for extortion, and DNS poisoning corrupts name resolution. None of those would explain unauthorized mining instances.
Objective 4.6 · CompTIA Cloud+ CV0-004 exam objectives
- Question 21 of 25Multiple choiceDomain 5: DevOps Fundamentals
A developer needs to build a new feature without affecting the stable main branch, and team policy requires peer review before any change reaches main. Which workflow meets these requirements?
- A.Create a feature branch, commit the work there, and open a pull (merge) request into main
- B.Commit directly to main and add a tag after testing
- C.Clone the repository and email the changed files to a reviewer
- D.Rewrite main’s history with the feature commits and force-push it
Show answer and explanation
Correct answer: A
A feature branch isolates work in progress, and a pull or merge request lets reviewers comment on and approve the change before it is merged into main. Committing directly to main skips review and risks breaking the stable code. Emailing files bypasses version control history and review tooling. Force-pushing rewritten history to main is destructive and also skips review.
Objective 5.1 · CompTIA Cloud+ CV0-004 exam objectives
- Question 22 of 25Performance-based: orderDomain 5: DevOps Fundamentals
Arrange the stages of a typical CI/CD pipeline in order, from first to last.
- A developer commits code to the source repository
- A versioned artifact is published to the artifact repository
- Automated unit tests run against the build
- The approved artifact is promoted to production
- The artifact is deployed to a staging environment for integration testing
- The CI server detects the change and builds the application
Show answer and explanation
- A developer commits code to the source repository
- The CI server detects the change and builds the application
- Automated unit tests run against the build
- A versioned artifact is published to the artifact repository
- The artifact is deployed to a staging environment for integration testing
- The approved artifact is promoted to production
A commit triggers continuous integration: the code is built and unit tested so defects are caught early. Only a build that passes tests is published as a versioned, immutable artifact. Continuous delivery then deploys that same artifact to staging for integration testing, and after approval (or automatically, in continuous deployment) promotes it to production. Building once and promoting the same artifact keeps what was tested identical to what is released.
Objective 5.2 · CompTIA Cloud+ CV0-004 exam objectives
- Question 23 of 25Multiple choiceDomain 6: Troubleshooting
An infrastructure-as-code deployment of 20 VMs stops after the 12th VM is created. The error says the vCPU limit for the region has been exceeded. The template validates without errors. What should the engineer do?
- A.Rewrite the template to fix a syntax error
- B.Change the VMs to a larger instance size
- C.Request a quota (service limit) increase for the region, or deploy some VMs in another region
- D.Rotate the API keys used by the deployment pipeline
Show answer and explanation
Correct answer: C
Providers enforce per-account, per-region quotas such as total vCPUs, and reaching one stops further provisioning even when the template is valid. Raising the quota, or placing capacity in another region, resolves it. The template already validates, so syntax is not the issue. Larger instances use more vCPUs and hit the limit sooner. The first 12 VMs were created successfully, which rules out an authentication problem with the API keys.
Objective 6.1 · CompTIA Cloud+ CV0-004 exam objectives
- Question 24 of 25Multiple choiceDomain 6: Troubleshooting
A web subnet is protected by a stateless subnet-level access control list that allows inbound TCP 443 from the internet and allows outbound traffic only to destination TCP port 443. The instance’s stateful security group allows inbound 443. Clients’ HTTPS connections time out. What change fixes the problem?
- A.Add an inbound ACL rule allowing TCP 80
- B.Enable DNS resolution for the virtual network
- C.Add an outbound security group rule allowing TCP 443
- D.Add an outbound ACL rule allowing TCP to the clients’ ephemeral port range (for example 1024-65535)
Show answer and explanation
Correct answer: D
A stateless ACL does not track connections, so the server’s replies, which go from port 443 to the client’s high-numbered ephemeral port, must be explicitly allowed outbound. The current outbound rule only permits destination port 443, so responses are dropped and connections time out. Opening port 80 does not help HTTPS. DNS is not involved once clients have the address. Security groups are stateful and already allow return traffic for permitted inbound connections.
Objective 6.2 · CompTIA Cloud+ CV0-004 exam objectives
- Question 25 of 25Multiple choiceDomain 6: Troubleshooting
An application on a VM uses the VM’s attached managed identity to read files from an object storage bucket named finance-reports. Every request returns HTTP 403 Access Denied. The identity’s policy grants read access to a bucket named finance-report. What should the engineer do?
- A.Open TCP 443 in the VM’s security group
- B.Correct the identity’s policy so it grants read access to the finance-reports bucket
- C.Renew the TLS certificate on the VM
- D.Move the VM to a larger instance size
Show answer and explanation
Correct answer: B
A 403 Access Denied from the storage service means the request reached it and was refused, and here the reason is visible: the policy names the wrong resource, so the fix is to grant access to the correct bucket, still scoped to least privilege. A blocked port would cause timeouts, not a 403 from the storage service. A server-side TLS certificate on the VM is not used for its outbound requests to storage, and instance size has no effect on authorization.
Objective 6.3 · CompTIA Cloud+ CV0-004 exam objectives
CV0-004 study guides
More free practice tests
CompCertQuiz is an independent practice-exam site and is not affiliated with, endorsed by, or sponsored by CompTIA. These questions are original material written for exam preparation and are not real exam questions. CompTIA and its certification names are trademarks of CompTIA, Inc.