Subdomain 1.2: Describe the advantages of IaC patterns
1.Your organization wants to adopt IaC to improve security and compliance. Which of the following are ways IaC patterns support these goals?(Select 3)
- A.Configurations can be scanned for security misconfigurations before deployment.
- B.IaC automatically patches zero-day vulnerabilities in application code.
- C.Changes to infrastructure leave an audit trail in version control systems.
- D.Standardized, approved modules can be reused to ensure compliance.
- E.IaC tools automatically encrypt all data at rest without explicit configuration.
- F.IaC prevents unauthorized users from accessing the cloud provider's web console.
Show answer & explanation
Correct answers: A, C, D — Configurations can be scanned for security misconfigurations before deployment.; Changes to infrastructure leave an audit trail in version control systems.; Standardized, approved modules can be reused to ensure compliance.
- A. Correct. IaC configurations can be statically analyzed and scanned by tools (such as tfsec, checkov, or Terraform Sentinel) before deployment. This allows teams to identify security misconfigurations and policy violations early in the CI/CD pipeline (Shift-Left security).
- B. Incorrect. IaC is used to manage and provision infrastructure; it does not automatically patch application-level code or handle runtime application vulnerabilities. Patching vulnerabilities requires application updates or patch management processes.
- C. Correct. Storing IaC definitions in a version control system (like Git) creates a persistent, immutable audit trail of every change made to the infrastructure, detailing who made the change, what was changed, and when.
- D. Correct. By using standardized, vetted, and approved modules, organizations can encapsulate security best practices and compliance requirements. Reusing these modules across different teams ensures consistency and adherence to organizational standards.
- E. Incorrect. Encryption at rest is a feature of the underlying cloud resource and must be explicitly configured within the Terraform HCL or provider settings. IaC tools do not automatically apply encryption unless defined in the configuration.
- F. Incorrect. Access to a cloud provider's web console is managed through Identity and Access Management (IAM) policies. While IaC can be used to provision and manage these IAM policies, the act of using IaC does not inherently block or prevent manual console access.