- A
Ensure the VPC has an internet gateway attached.
Why wrong: An internet gateway is used for internet access, not for internal VPC communication.
- B
Check the network ACL associated with the database subnet for appropriate rules.
Network ACLs are stateless and can block traffic if rules are not correctly configured.
- C
Verify that the database endpoint is correctly configured in the application.
A misconfigured endpoint (e.g., wrong DNS name or port) is a common cause of connection failures.
- D
Verify that the EC2 instance has a public IP address.
Why wrong: A public IP is not required for instances in the same VPC to communicate.
- E
Check the security group for the database to ensure it allows inbound traffic from the EC2 instance's security group.
Security groups control traffic at the instance level; the DB SG must allow inbound from the app SG.
Quick Answer
The answer is to check the database security group inbound rules, verify the endpoint configuration, and inspect the network ACLs. This is correct because when troubleshooting cloud database connectivity within a VPC, internal traffic relies on security groups and network ACLs for access control, not on public IPs or internet gateways. Since the database has public accessibility disabled and the EC2 instance resides in the same VPC, the administrator must ensure the database security group allows inbound traffic from the EC2 instance’s security group, that the database endpoint is correctly configured for private DNS resolution, and that the subnet’s network ACLs permit the necessary traffic. On the CompTIA Cloud+ CV0-004 exam, this scenario tests your understanding of VPC networking fundamentals and common misconfigurations—a frequent trap is assuming a public IP or internet gateway is required for same-VPC communication. Remember the mnemonic “SEN”: Security groups, Endpoint, Network ACLs—the three internal checks before blaming the network.
CV0-004 Troubleshooting Practice Question
This CV0-004 practice question tests your understanding of troubleshooting. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A company's application is unable to connect to a managed cloud database. The database is deployed in a VPC with public accessibility disabled. The application runs on an EC2 instance in the same VPC. Which three troubleshooting steps should the administrator take? (Choose three.)
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Check the network ACL associated with the database subnet for appropriate rules.
Options B, C, and E are correct. Option A is wrong because a public IP is not needed for same VPC communication. Option D is wrong because an internet gateway is not needed for internal traffic. B checks security group inbound, C verifies the endpoint configuration, and E checks network ACLs.
Key principle: Count usable hosts — not total addresses — and remember that the network and broadcast addresses are not available to hosts in standard IPv4 subnets.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Ensure the VPC has an internet gateway attached.
Why it's wrong here
An internet gateway is used for internet access, not for internal VPC communication.
- ✓
Check the network ACL associated with the database subnet for appropriate rules.
Why this is correct
Network ACLs are stateless and can block traffic if rules are not correctly configured.
Related concept
CIDR notation defines the prefix length.
- ✓
Verify that the database endpoint is correctly configured in the application.
- ✗
Verify that the EC2 instance has a public IP address.
Why it's wrong here
A public IP is not required for instances in the same VPC to communicate.
- ✓
Check the security group for the database to ensure it allows inbound traffic from the EC2 instance's security group.
Why this is correct
Security groups control traffic at the instance level; the DB SG must allow inbound from the app SG.
Related concept
CIDR notation defines the prefix length.
Common exam traps
Common exam trap: usable hosts are not the same as total addresses
Subnetting questions often tempt you into counting all addresses. In normal IPv4 subnets, the network and broadcast addresses are not usable host addresses.
Detailed technical explanation
How to think about this question
Subnetting questions test whether you can identify the network, broadcast address, usable range, mask and correct subnet. Slow down enough to calculate the block size correctly.
KKey Concepts to Remember
- CIDR notation defines the prefix length.
- Block size helps identify subnet boundaries.
- Network and broadcast addresses are not usable hosts in normal IPv4 subnets.
- The required host count determines the smallest suitable subnet.
TExam Day Tips
- Write the block size before choosing the subnet.
- Check whether the question asks for hosts, subnets or a specific address range.
- Do not confuse /24, /25, /26 and /27 host counts.
Key takeaway
Count usable hosts — not total addresses — and remember that the network and broadcast addresses are not available to hosts in standard IPv4 subnets.
Real-world example
How this comes up in practice
A security administrator must allow nursing staff to reach a patient records server while blocking access from the guest Wi-Fi VLAN. After applying an extended ACL, traffic is still blocked from nursing workstations. The ACL was applied outbound instead of inbound on the wrong interface. Questions like this test ACL direction and placement rules.
What to study next
Got this wrong? Here's your next step.
Review block sizes, usable host formulas (2^n − 2), and how to find network and broadcast addresses for /24 through /30. Then practise related CV0-004 subnetting questions on CIDR, address ranges, and subnet selection.
- →
Troubleshooting — study guide chapter
Learn the concepts, then practise the questions
- →
Troubleshooting practice questions
Targeted practice on this topic area only
- →
All CV0-004 questions
499 questions across all exam domains
- →
CompTIA Cloud+ CV0-004 study guide
Full concept coverage aligned to exam objectives
- →
CV0-004 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related CV0-004 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Operations and Support practice questions
Practise CV0-004 questions linked to Operations and Support.
Cloud Architecture and Design practice questions
Practise CV0-004 questions linked to Cloud Architecture and Design.
Security practice questions
Practise CV0-004 questions linked to Security.
Deployment practice questions
Practise CV0-004 questions linked to Deployment.
Troubleshooting practice questions
Practise CV0-004 questions linked to Troubleshooting.
CV0-004 fundamentals practice questions
Practise CV0-004 questions linked to CV0-004 fundamentals.
CV0-004 scenario practice questions
Practise CV0-004 questions linked to CV0-004 scenario.
CV0-004 troubleshooting practice questions
Practise CV0-004 questions linked to CV0-004 troubleshooting.
Practice this exam
Start a free CV0-004 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this CV0-004 question test?
Troubleshooting — This question tests Troubleshooting — CIDR notation defines the prefix length..
What is the correct answer to this question?
The correct answer is: Check the network ACL associated with the database subnet for appropriate rules. — Options B, C, and E are correct. Option A is wrong because a public IP is not needed for same VPC communication. Option D is wrong because an internet gateway is not needed for internal traffic. B checks security group inbound, C verifies the endpoint configuration, and E checks network ACLs.
What should I do if I get this CV0-004 question wrong?
Review block sizes, usable host formulas (2^n − 2), and how to find network and broadcast addresses for /24 through /30. Then practise related CV0-004 subnetting questions on CIDR, address ranges, and subnet selection.
What is the key concept behind this question?
CIDR notation defines the prefix length.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
2 more ways this is tested on CV0-004
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company has a three-tier application in a cloud VPC: web servers in a public subnet, application servers in a private subnet, and database servers in a private subnet. The web servers can connect to the application servers, but the application servers cannot connect to the database servers. The security groups are configured as follows: - Web SG: inbound HTTP from 0.0.0.0/0, outbound all - App SG: inbound HTTP from Web SG, outbound all - DB SG: inbound MySQL from App SG, outbound all What is the most likely cause of the connectivity issue?
medium- A.The database security group is missing an inbound rule for MySQL.
- B.The application security group is missing an outbound rule for MySQL.
- ✓ C.The network access control list (NACL) on the database subnet is blocking inbound traffic from the application subnet.
- D.The web security group is blocking traffic to the database.
Why C: Option D is correct because security groups are stateful and allow outbound traffic automatically, so outbound rules are not the issue. The inbound rule on DB SG allows MySQL from App SG, so A is not the issue. B is not needed because outbound is all. C is irrelevant. The issue likely is a NACL on the private subnet blocking the traffic, as NACLs are stateless and need explicit rules.
Variation 2. Refer to the exhibit. An application running on an EC2 instance is failing to connect to an RDS database. What is the most likely issue?
easy- A.The database instance is in a different VPC
- ✓ B.The security group for the RDS instance does not allow inbound traffic from the EC2 instance
- C.The database instance is stopped
- D.The application is using the wrong database port
Why B: Option B is correct because a 'connection refused' error typically indicates that the database is reachable but the port is blocked, likely by a security group. Option A is wrong if the database is in a different VPC, the error would be timeout or no route. Option C is wrong because a stopped database would result in a 'no route to host' or timeout. Option D is wrong because port 3306 is standard for MySQL and the error is not about wrong port.
Last reviewed: Jun 24, 2026
This CV0-004 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CV0-004 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.