easyMultiple ChoiceObjective-mapped
CAS-004 Practice Question: Implementing a microservices architecture and…
A company is implementing a microservices architecture and needs to ensure secure service-to-service communication. Which of the following BEST describes the recommended approach?
⚠ Common exam trap
CompTIA often tests the misconception that IP whitelisting or shared API keys are sufficient for service-to-service security, but the trap here is that candidates overlook the need for both encryption and mutual authentication in a zero-trust microservices environment, where network perimeters are obsolete and dynamic identity verification is critical.
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
✓
Mutual TLS (mTLS) with certificate authentication
Mutual TLS (mTLS) with certificate authentication is the recommended approach for secure service-to-service communication in a microservices architecture because it provides both encryption and bidirectional authentication. Each service presents a unique X.509 certificate to verify its identity, preventing unauthorized access and man-in-the-middle attacks. This aligns with the principle of zero-trust networking, where no implicit trust is granted based on network location.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Basic HTTP authentication
Why it's wrong here
Basic auth sends credentials in plaintext unless over HTTPS, and lacks mutual authentication.
- ✓
Mutual TLS (mTLS) with certificate authentication
Why this is correct
mTLS provides mutual authentication and encryption, ideal for microservices.
- ✗
IP whitelisting
Why it's wrong here
IP whitelisting is not scalable and can be bypassed by spoofing.
- ✗
Shared API keys
Why it's wrong here
API keys are less secure and harder to manage at scale.
Go deeper
Related to this question
About these practice questions
One of 968 original CAS-005 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 CAS-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 CAS-005 exam.