mediumMultiple SelectObjective-mapped
CV0-004 Practice Question: Which TWO of the following are best practices for…
Which TWO of the following are best practices for securing an API gateway in a cloud environment?
⚠ Common exam trap
CompTIA often tests the misconception that 'detailed error messages help developers debug faster'—but in a cloud environment, exposing stack traces is a critical security flaw, not a best practice.
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
✓
Implement rate limiting to control the number of requests per client.
Rate limiting is a fundamental security control for API gateways. It mitigates abuse and denial-of-service (DoS) attacks by restricting the number of requests a client can make within a specified time window, typically enforced via token bucket or leaky bucket algorithms. This ensures fair resource usage and protects backend services from being overwhelmed.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Implement rate limiting to control the number of requests per client.
Why this is correct
Rate limiting protects against abuse and DoS attacks.
- ✗
Expose the API endpoints without authentication for ease of integration.
Why it's wrong here
Open endpoints are a major security risk.
- ✗
Return detailed error messages including stack traces to help developers.
Why it's wrong here
Detailed errors can reveal system internals to attackers.
- ✓
Use API keys or OAuth for authentication and authorization.
Why this is correct
Authentication verifies identity; authorization controls access.
- ✗
Disable HTTPS to reduce latency.
Why it's wrong here
HTTPS encrypts data; disabling it exposes sensitive information.
Go deeper
Related to this question
About these practice questions
This CV0-004 question is part of Courseiva's 977-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.