Back to CompTIA Cloud+ CV0-004 questions

Scenario-based practice

Refer to the Exhibit Practice Questions

Practise CompTIA Cloud+ CV0-004 practice questions — original exam-style scenarios covering every exam domain, with detailed explanations, wrong-answer analysis, and common exam traps.

15
scenario questions
CV0-004
exam code
CompTIA
vendor

Scenario guide

How to approach refer to the exhibit practice questions

Practise exhibit-style questions that ask you to read a topology, table, command output or diagram before choosing the best answer.

Quick answer

Exhibit-style questions test whether you can read a topology, command output, diagram or table before choosing the best answer.

How to extract the relevant detail from an exhibit.

How topology, command output or routing information affects the answer.

How to avoid answering from memory before reading the evidence.

How to map the exhibit back to the exam objective.

Related practice questions

Related CV0-004 topic practice pages

Scenario questions usually connect to one or more exam topics. Use these links to review the underlying concepts behind the scenario.

Practice set

Practice scenarios

Question 1hardmultiple choice
Full question →

A cloud engineer is troubleshooting a web application that is not responding. The engineer examines the serial console output of the web-server instance and finds the error shown in the exhibit. What is the MOST likely cause of this issue?

Exhibit

Refer to the exhibit.

```
$ gcloud compute instances list
NAME        ZONE        MACHINE_TYPE  PREEMPTIBLE  STATUS
web-server  us-east1-b  e2-medium     true         RUNNING
db-server   us-east1-b  e2-standard-2               STOPPED

$ gcloud compute instances describe web-server --format='get(status,serviceAccounts.email)'
status: RUNNING
serviceAccounts.email: default@project.iam.gserviceaccount.com

$ gcloud compute instances get-serial-port-output web-server
...
[   10.123456] cloud-init: User data script started
[   10.654321] cloud-init: ERROR: Failed to fetch metadata from metadata server
...
```
Question 2mediummultiple choice
Full question →

A cloud administrator runs the command shown in the exhibit on a storage node in a hyper-converged cluster. The node is experiencing intermittent I/O errors and degraded performance. Based on the SMART data, what is the most likely cause of the issue?

Exhibit

Refer to the exhibit.

$ sudo smartctl -a /dev/sda | grep -E "Reallocated_Sector_Ct|Current_Pending_Sector|Offline_Uncorrectable"
Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       15
Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       5
Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       3
Question 3mediummultiple choice
Review the full subnetting walkthrough →

Refer to the exhibit. A cloud engineer is troubleshooting network connectivity to a server with IP 10.0.0.5. The server is on the same subnet. Based on the iptables rules shown, what is the most likely cause of the connectivity failure?

Network Topology
0 0 DROP all* * 0.0.0.0/03 252 ACCEPT all5 420 ACCEPT alleth0 * 0.0.0.0/0Refer to the exhibit.$ iptables -L -n -v
Question 4hardmultiple choice
Full question →

A cloud administrator is troubleshooting connectivity to a web server running on a Linux VM. The web server is configured to listen on ports 80 (HTTP) and 443 (HTTPS). The administrator runs the iptables command shown in the exhibit. Based on the output, what is the MOST likely reason that external users cannot access the web server on port 443?

Exhibit

Refer to the exhibit.

# iptables -L -n -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination
 100  12000 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            state RELATED,ESTABLISHED
  50   6000 ACCEPT     tcp  --  eth0   *       0.0.0.0/0            0.0.0.0/0            tcp dpt:22
  20   2400 ACCEPT     tcp  --  eth0   *       10.0.0.0/8           0.0.0.0/0            tcp dpt:443
  10   1200 DROP       tcp  --  eth0   *       0.0.0.0/0            0.0.0.0/0            tcp dpt:80
Question 5easymultiple choice
Full question →

Refer to the exhibit. An administrator runs the command shown and receives the output. The administrator wants to ensure the VM uses SSDs for the OS disk. Based on the output, what is the current storage type?

Network Topology
$ az vm listquery "[?name=='myVM']"Refer to the exhibit."name": "myVM","resourceGroup": "myRG","hardwareProfile": {"vmSize": "Standard_DS2_v2"},"storageProfile": {"osDisk": {"name": "myVM_OsDisk_1","createOption": "fromImage","managedDisk": {"storageAccountType": "Premium_LRS""provisioningState": "Succeeded"
Question 6mediummultiple choice
Full question →

A cloud engineer deploys the Kubernetes manifest shown in the exhibit. After deployment, the frontend pods are in CrashLoopBackOff state. The engineer checks the logs and finds 'OOMKilled' errors. Which of the following changes would resolve the issue?

Exhibit

Refer to the exhibit.

```yaml
# deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: frontend
spec:
  replicas: 3
  selector:
    matchLabels:
      app: frontend
  template:
    metadata:
      labels:
        app: frontend
    spec:
      containers:
      - name: nginx
        image: nginx:1.21
        ports:
        - containerPort: 80
        resources:
          requests:
            memory: "256Mi"
            cpu: "250m"
          limits:
            memory: "512Mi"
            cpu: "500m"
---
apiVersion: v1
kind: Service
metadata:
  name: frontend-service
spec:
  type: LoadBalancer
  selector:
    app: frontend
  ports:
  - protocol: TCP
    port: 80
    targetPort: 80
```
Question 7hardmultiple choice
Full question →

A cloud administrator is trying to attach an EBS volume to an EC2 instance for a database migration. The attachment fails with the error shown in the exhibit. The volume contains critical data. Which of the following is the MOST appropriate action to take?

Exhibit

Refer to the exhibit.

```
Error: Unable to attach volume 'vol-0abcd1234' to instance 'i-0efgh5678'.
Reason: The volume is already attached to instance 'i-0123ijkl'.
```
Question 8hardmultiple choice
Full question →

Refer to the exhibit. A cloud security engineer is reviewing an S3 bucket policy that controls access to the 'example-bucket' bucket. The 'AdminRole' IAM role attempts to upload an object to the bucket using the AWS CLI without specifying the '--server-side-encryption' parameter. The object transfer uses HTTPS. What will be the outcome?

Exhibit

Refer to the exhibit.

```
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::123456789012:role/AdminRole"
      },
      "Action": "s3:PutObject",
      "Resource": "arn:aws:s3:::example-bucket/*",
      "Condition": {
        "StringEquals": {
          "s3:x-amz-server-side-encryption": "AES256"
        }
      }
    },
    {
      "Effect": "Deny",
      "Principal": "*",
      "Action": "s3:*",
      "Resource": "arn:aws:s3:::example-bucket/*",
      "Condition": {
        "Bool": {
          "aws:SecureTransport": "false"
        }
      }
    }
  ]
}
```
Question 9hardmultiple choice
Full question →

A cloud administrator is troubleshooting an issue where users from the 192.0.2.0/24 network cannot access objects in an S3 bucket. The bucket policy is shown in the exhibit. What is the most likely cause of the issue?

Exhibit

Refer to the exhibit.

```
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::example-bucket/*",
      "Condition": {
        "IpAddress": {
          "aws:SourceIp": "192.0.2.0/24"
        }
      }
    }
  ]
}
```
Question 10mediummultiple choice
Full question →

Refer to the exhibit. A cloud engineer is reviewing logs from an EC2 instance. Which of the following is the MOST likely root cause of the application failure?

Exhibit

Refer to the exhibit.
```
CloudWatch Logs: /var/log/syslog
2024-03-15T10:00:00Z [ERROR] Disk space usage: 95%
2024-03-15T10:05:00Z [ERROR] Disk space usage: 97%
2024-03-15T10:10:00Z [WARN] Application X: unable to write log file
2024-03-15T10:11:00Z [CRITICAL] Application X: out of memory
2024-03-15T10:12:00Z [INFO] Instance i-12345: state changing to stopping
```
Question 11mediummultiple choice
Full question →

Refer to the exhibit. The auto scaling group is fluctuating between 2 and 3 instances every few minutes. What is the most likely cause?

Exhibit

[admin@controller ~]$ cldctl log asg-web --type scaling
2025-01-20 14:20:00 INFO Scaling event: Desired capacity changed from 2 to 3
2025-01-20 14:25:00 INFO Scaling event: Desired capacity changed from 3 to 2
2025-01-20 14:40:00 INFO Scaling event: Desired capacity changed from 2 to 3
2025-01-20 14:45:00 INFO Scaling event: Desired capacity changed from 3 to 2
Question 12hardmultiple choice
Full question →

A cloud administrator runs the `iostat` command on a Linux VM experiencing slow performance. Based on the exhibit, what is the most likely bottleneck?

Exhibit

Refer to the exhibit.
```
$ iostat -x 1 3
avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           5.2     0.0    2.1   45.3      0.0   47.4

Device:   rrqm/s   wrqm/s   r/s   w/s   rkB/s   wkB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util
xvda       0.00     0.00  85.0  15.0  3400.0  600.0    80.0     4.5    45.0   40.0   70.0   10.0  90.0%
```
Question 13easymultiple choice
Full question →

A user reports being unable to upload files to an S3 bucket named 'my-bucket'. The IAM policy attached to the user is shown in the exhibit. What is the most likely reason for the failure?

Exhibit

Refer to the exhibit.
```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "s3:PutObject",
      "Resource": "arn:aws:s3:::my-bucket/*"
    }
  ]
}
```
Question 14mediummultiple choice
Full question →

A cloud administrator launches a new EC2 instance with a userdata script that installs a web server. The instance launches but the web server is not running. The administrator checks the cloud-init logs and sees the warning shown in the exhibit. What is the most likely cause?

Exhibit

Refer to the exhibit.
```
[cloud-init]
Output from: /var/log/cloud-init-output.log
...
2024-01-15 10:32:45,123 - util.py[WARNING]: Running module <module-name> (<module-path>) failed
...
```
Question 15hardmultiple choice
Full question →

A DevOps engineer is deploying an application on Kubernetes. The exhibit shows the status of pods and a describe output. The frontend pod is stuck in Pending state. Which action should the engineer take to resolve the issue?

Exhibit

Refer to the exhibit.

```
$ kubectl get pods -n production
NAME                      READY   STATUS    RESTARTS   AGE
frontend-5d8f4d9c7-cm2xr   0/1     Pending   0          10m
backend-6b9f7d5e4-lp9qz    1/1     Running   0          15m
$ kubectl describe pod frontend-5d8f4d9c7-cm2xr -n production
...
Events:
  Type     Reason            Age   From               Message
  ----     ------            ----  ----               -------
  Warning  FailedScheduling  10m   default-scheduler  0/3 nodes are available: 1 Insufficient cpu, 2 Insufficient memory.
```

These CV0-004 practice questions are part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style CV0-004 questions with detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics.