CAS-004 Security Architecture Practice Question
An organization is migrating to an immutable infrastructure model for its containerized applications. Which practice is essential to ensure the integrity of the immutable infrastructure?
⚠ Common exam trap
CAS-005 often tests the misconception that 'patching' or 'runtime monitoring' secures immutable infrastructure, when the exam expects you to recognize that integrity is guaranteed at build/deploy time via scanning and signing.
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
✓
Image scanning and signing in the CI/CD pipeline
In an immutable infrastructure model, containers are never modified after deployment — instead, new images replace old ones. Therefore, integrity must be enforced at build time: scanning images for vulnerabilities and cryptographically signing them in the CI/CD pipeline ensures only trusted, verified artifacts are deployed. This shifts security left and guarantees that what runs in production is exactly what was tested and approved.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Regular patching of running containers
Why it's wrong here
Patching running containers mutates live instances, directly contradicting immutability, which requires replacing containers with newly built images. It tempts because patching is standard hardening, but under immutable infrastructure you rebuild and redeploy images rather than modify running containers in place.
- ✓
Image scanning and signing in the CI/CD pipeline
Why this is correct
Scanning detects vulnerabilities and embedded secrets, while signing produces a cryptographic attestation of image provenance. Enforcing signature verification at deploy time ensures only unaltered, approved images run, directly preserving the integrity guarantee that immutable infrastructure depends on.
- ✗
Runtime security monitoring with seccomp
Why it's wrong here
Seccomp filters syscalls at runtime, so it constrains container behaviour but cannot verify that deployed images match their signed source, leaving tampering undetected. It is tempting because runtime monitoring genuinely hardens running workloads against exploitation; it would be the right control when the threat is container escape or privilege escalation, not image integrity.
- ✗
Use of configuration management tools like Ansible
Why it's wrong here
Ansible converges mutable hosts toward a declared state, so drift is corrected in place rather than prevented; immutable infrastructure requires images to be built once, signed and never patched at runtime. It is tempting because configuration management genuinely enforces consistent server configuration, and would be correct for managing long-lived, mutable virtual machines.
About these practice questions
One of 973 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 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 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.