hardMultiple ChoiceObjective-mapped
CV0-004 An application log shows the entries above Practice Question
Exhibit
Refer to the exhibit. ``` 2023-08-15 14:23:45 ERROR: Database connection timeout after 30 seconds. 2023-08-15 14:23:46 INFO: Retrying connection... 2023-08-15 14:23:46 ERROR: Max retries exceeded. 2023-08-15 14:24:00 ERROR: Failed to authenticate user 'app_user' on database 'app_db' from host '10.0.1.25'. 2023-08-15 14:24:01 WARN: Application shutting down. ```
An application log shows the entries above. The application is a web server running on a virtual machine in a cloud environment. The database is a managed cloud database service. Which of the following is the MOST likely root cause of the failure?
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
✓
The application's database credentials are incorrect or the application's IP is not whitelisted.
The log entries show authentication failures. This indicates that the application's database credentials are incorrect or the application's IP address is not whitelisted in the managed database service. Option A is wrong because a network firewall blocking traffic would likely result in connection timeouts, not authentication errors. Option B is incorrect because connection pool exhaustion would lead to resource contention errors, not authentication failures. Option D is wrong because if the database service was down, the application would likely encounter a connection refusal or timeout, not specific authentication errors.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
A network firewall is blocking traffic to the database.
Why it's wrong here
If blocked, the connection would not even get to authentication.
- ✗
The database connection pool is exhausted.
Why it's wrong here
Connection pool exhaustion would cause timeouts, but the log shows authentication failure after retries.
- ✓
The application's database credentials are incorrect or the application's IP is not whitelisted.
Why this is correct
The 'Failed to authenticate' error indicates credential or firewall whitelist issue.
- ✗
The database service is down.
Why it's wrong here
The log shows a timeout but later tries authentication, so database is reachable.
Go deeper
Related to this question
About these practice questions
One of 977 original CV0-004 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.