CV0-004 Troubleshooting Practice Question
A cloud engineer is troubleshooting a serverless function that is intermittently failing with timeout errors. The function is triggered by an HTTP API and processes data from an external database. The function's timeout is set to 30 seconds. Which of the following is the MOST likely cause of the timeouts?
⚠ Common exam trap
The trap here is focusing on the function's configuration (memory, timeout) rather than the external dependency, which is the likely bottleneck in this scenario.
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 external database is experiencing high latency or connection issues.
Intermittent timeouts in a serverless function that accesses an external database are most commonly caused by database latency or connection problems. The function's execution time is dominated by the database call, so any slowness there can push it over the timeout limit. Addressing database performance or connection pooling is the key to resolving the issue.
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 HTTP API gateway is throttling requests to the function.
Why it's wrong here
Throttling would result in 429 Too Many Requests errors, not timeout errors. While throttling can cause failures, the symptom would be different. The scenario describes timeout errors, which indicate that the function is invoked but fails to complete in time. Throttling is a separate issue that would require different troubleshooting steps.
- ✓
The external database is experiencing high latency or connection issues.
Why this is correct
Serverless functions that call external databases are highly sensitive to network latency and database responsiveness. If the database is slow to respond or connections are timing out, the function will exceed its timeout. This is a common cause of intermittent timeouts in serverless architectures, especially when the database is outside the cloud provider's network or under heavy load.
- ✗
The function's memory allocation is too low, causing it to run slowly.
Why it's wrong here
Low memory can cause slower execution and potentially timeouts, but in serverless platforms, memory and CPU are often linked, so low memory might not be the primary cause if the function is I/O-bound. The scenario specifically mentions an external database, which suggests network or database latency. Without evidence of high CPU or memory pressure, this is less likely than a database connectivity issue.
- ✗
The function's timeout value is set too high for the workload.
Why it's wrong here
A higher timeout value would allow the function to run longer, not cause timeouts. If the function is timing out, increasing the timeout might mask the issue but does not address the root cause. The problem is that the function is not completing within 30 seconds, so the timeout setting itself is not the cause of the timeout errors.
Visual reference
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
About these practice questions
One of 834 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 and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official CompTIA exam blueprint
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.