Courseiva
easyMultiple SelectObjective-mapped

CAS-004 Practice Question: Which two practices are essential for securing a…

Which two practices are essential for securing a CI/CD pipeline? (Choose two.)

⚠ Common exam trap

It's easy for candidates to confuse 'immutable tags' (Option D) as a security practice when it is actually a supply chain integrity mechanism, not a direct security control like code signing or vulnerability scanning.

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 code signing for all build artifacts.

Code signing ensures the integrity and authenticity of build artifacts, preventing tampering or injection of malicious code during the CI/CD pipeline. This practice verifies that artifacts originate from a trusted source and have not been altered, which is critical for secure software supply chain management.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Allow any developer to merge code into the main branch without review.

    Why it's wrong here

    Lack of review increases risk of malicious or flawed code.

  • Implement code signing for all build artifacts.

    Why this is correct

    Code signing ensures artifacts have not been tampered with.

  • Store credentials in plaintext within pipeline configuration files.

    Why it's wrong here

    Plaintext credentials are a security risk.

  • Use immutable tags for container images.

    Why it's wrong here

    Immutable tags are good for traceability but not essential for security.

  • Scan container images for vulnerabilities before deployment.

    Why this is correct

    Vulnerability scanning prevents known weaknesses from reaching production.

About these practice questions

Courseiva writes every CAS-005 question from scratch — 968 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 →

How Courseiva writes practice questions · Editorial policy

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.