mediumMultiple ChoiceObjective-mapped
CCSP Practice Question: Uses a continuous integration/continuous…
An organization uses a continuous integration/continuous deployment (CI/CD) pipeline to deploy infrastructure as code. The security team wants to ensure that all cloud resources comply with internal security policies before deployment. Which of the following is the MOST effective method to enforce this?
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
✓
Run automated policy compliance checks as part of the CI/CD pipeline.
Integrating automated policy-as-code compliance checks into the CI/CD pipeline catches non-compliance before deployment. Option A is incorrect because restricting IAM permissions alone does not prevent misconfigurations from authorized users. Option C is incorrect because manual reviews after deployment are error-prone and slow. Option D is incorrect because post-deployment scanning is reactive and may allow non-compliant resources to be deployed.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Restrict the IAM permissions of developers to only approved roles.
Why it's wrong here
This does not prevent misconfigurations in the code itself.
- ✓
Run automated policy compliance checks as part of the CI/CD pipeline.
Why this is correct
Policy-as-code checks block non-compliant deployments before they go live.
- ✗
Conduct manual security reviews after each deployment.
Why it's wrong here
Manual reviews are not scalable and may miss issues.
- ✗
Deploy resources and then scan for compliance after deployment.
Why it's wrong here
Post-deployment scanning allows non-compliant resources to exist temporarily.
Go deeper
Related to this question
About these practice questions
One of 964 original CCSP 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 CCSP practice question is part of Courseiva's free ISC2 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 CCSP exam.