The answer is that a firewall blocking the database port is the most likely cause of the connection refused errors. This occurs because when the application sends a TCP SYN packet to the database server on a separate subnet, a firewall or network ACL can silently drop the packet or send a TCP RST, preventing the three-way handshake from completing and producing the specific “connection refused” message. On the CompTIA Project+ PK0-005 exam, this scenario tests your understanding of network-layer troubleshooting and how security controls like firewalls impact application deployments—a common trap is confusing this with a database service being offline, but the “connection refused” error points to a network block rather than a service failure. For a memory tip, think of “Port Blocked = Packet Rejected” to recall that a firewall rejecting traffic on the database port (e.g., 3306, 5432, or 1433) is the root cause when servers are on different subnets.
PK0-005 Practice Question: Basics of IT Infrastructure and IT Project Management
This PK0-005 practice question tests your understanding of basics of it infrastructure and it project management. 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.
Exhibit
Refer to the exhibit.
Exhibit:
```
2023-09-15 14:23:45 ERROR [main] com.example.app.DatabaseConnection - Connection refused: connect
2023-09-15 14:23:46 WARN [main] com.example.app.DatabaseConnection - Retrying connection...
2023-09-15 14:23:50 ERROR [main] com.example.app.DatabaseConnection - Connection refused: connect
2023-09-15 14:23:51 FATAL [main] com.example.app.Application - Unable to start application due to database failure
```
A project team is deploying a new application, and the error log shows repeated connection refused errors. The database server is on a separate subnet. What is the most likely cause of this issue?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue: "most likely"
Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The database port is blocked by a firewall
The error 'connection refused' indicates that the application's TCP SYN packet to the database server was met with a TCP RST or no response, which typically occurs when a firewall drops or rejects the traffic. Since the database server is on a separate subnet, a network-layer access control list (ACL) or firewall rule is the most common cause of blocking the specific database port (e.g., 3306 for MySQL, 5432 for PostgreSQL, 1433 for SQL Server). This prevents the three-way handshake from completing, resulting in the connection refused error.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
✓
The database port is blocked by a firewall
Why this is correct
Firewall blocking the port results in connection refused errors.
Clue confirmation
The clue word "most likely" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
✗
The database schema is missing a required table
Why it's wrong here
Missing tables cause SQL errors, not connection refused.
✗
The database credentials are incorrect
Why it's wrong here
Incorrect credentials would produce authentication errors, not connection refused.
✗
The application server has insufficient memory
Why it's wrong here
Memory issues would cause crashes or slowness, not connection refused.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse 'connection refused' with 'authentication failure' or 'application logic error', but Cisco tests the understanding that connection refused is a network-layer symptom, not an application-layer one.
Detailed technical explanation
How to think about this question
Connection refused errors occur at the TCP/IP stack level when the destination host actively rejects the connection attempt, often via an ICMP port unreachable message or a TCP RST packet. In enterprise networks, firewalls (e.g., iptables, AWS Security Groups, pfSense) are configured with default-deny policies, and if the database port is not explicitly allowed in the ingress rule for the database subnet, the firewall silently drops the SYN packet or sends a RST. A common real-world scenario is when a project team deploys a new application but forgets to update the security group rules to allow traffic from the application subnet to the database port, causing all connections to fail immediately.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
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.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Basics of IT Infrastructure and IT Project Management — This question tests Basics of IT Infrastructure and IT Project Management — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: The database port is blocked by a firewall — The error 'connection refused' indicates that the application's TCP SYN packet to the database server was met with a TCP RST or no response, which typically occurs when a firewall drops or rejects the traffic. Since the database server is on a separate subnet, a network-layer access control list (ACL) or firewall rule is the most common cause of blocking the specific database port (e.g., 3306 for MySQL, 5432 for PostgreSQL, 1433 for SQL Server). This prevents the three-way handshake from completing, resulting in the connection refused error.
What should I do if I get this PK0-005 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
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 →
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.
This PK0-005 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 PK0-005 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.