mediumMultiple SelectObjective-mapped
CV0-004 Practice Question: Which THREE of the following are recommended…
Which THREE of the following are recommended practices for securing cloud API access? (Choose three.)
⚠ Common exam trap
A common trap is the misconception that embedding API keys in source code is acceptable for convenience, but this violates secure coding standards and is a common cause of data breaches in cloud environments.
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
✓
Use role-based access control to limit permissions for each API user
Role-based access control (RBAC) is a fundamental security practice for cloud API access because it enforces the principle of least privilege. By assigning permissions based on job functions rather than individual identities, RBAC limits the potential damage from compromised credentials or insider threats. This approach is recommended by cloud providers like AWS (IAM roles), Azure (RBAC roles), and Google Cloud (IAM roles) to ensure API users only have the permissions necessary for their tasks.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Use role-based access control to limit permissions for each API user
Why this is correct
Least privilege reduces attack surface.
- ✗
Embed API keys directly in application source code for convenience
Why it's wrong here
Hardcoding keys is a security risk.
- ✓
Enable detailed logging of all API calls to a centralized service
Why this is correct
Logging helps detect unauthorized usage.
- ✗
Expose API endpoints publicly for easy access by all clients
Why it's wrong here
Public exposure invites attacks; use private endpoints or authentication.
- ✓
Rotate API keys and tokens on a regular schedule
Why this is correct
Regular rotation limits exposure of compromised keys.
Quick reference
Access Control Model Comparison
| Model | Acronym | Who Controls Access? | Best For |
|---|---|---|---|
| Discretionary Access Control | DAC | Resource owner | Small teams, file shares |
| Mandatory Access Control | MAC | System / security labels | Classified govt / military |
| Role-Based Access Control | RBAC | Administrator (via roles) | Enterprise environments |
| Attribute-Based Access Control | ABAC | Policy engine (user + resource attributes) | Fine-grained, dynamic policies |
| Rule-Based Access Control | RuBAC | System rules / ACLs | Firewall rules, network ACLs |
Go deeper
Related to this question
About these practice questions
Courseiva writes every CV0-004 question from scratch — 977 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.