The use of AI-assisted tools for Infrastructure as Code (IaC) is increasingly common in modern DevOps practices, which are covered in the Automation and Orchestration domain of CompTIA Linux+ V8. While AI can accelerate code generation, Linux+ emphasizes that generated code must still follow best practices for quality, security, and maintainability.
Option C, linting generated code, is the correct answer. Linting involves analyzing code for syntax errors, style violations, logical issues, and potential security risks before deployment. When AI tools generate IaC artifacts such as Terraform files, Ansible playbooks, or shell scripts, linting ensures that the output adheres to organizational standards and does not introduce misconfigurations or vulnerabilities.
Linux+ V8 documentation stresses that automation does not eliminate the need for validation. Administrators remain responsible for verifying correctness and compliance. Linting tools such as ansible-lint, terraform fmt, and shell linters help detect issues early in the pipeline and prevent faulty infrastructure deployments.
The other options are poor practices. Copying and pasting code increases the risk of errors and inconsistency. Generating monolithic code contradicts modular IaC principles. Merging CI/CD pipelines is unrelated to validating AI-generated infrastructure code.
Therefore, the correct answer is C. Linting generated code.
Submit