Security Engineering
An auditor needs a plain-language description of an undocumented legacy firewall-rule script. An analyst has a large language model summarize what each section does and leaves the script's logic unchanged. Which generative AI use does this describe?
Show the answer
Correct answerA. AI-generated documentation
AWhy this is right: The model produces readable explanatory text from existing code, and the code itself is untouched.
BWhy not this: Infrastructure as code defines environments in declarative files; it does not describe an existing script.
CWhy not this: Code assist suggests, completes or alters code, but the goal here is a written description, not new code.
DWhy not this: SAST uses rules to find code flaws; it does not write descriptions for an audit file.
Having a model produce human-readable descriptions of existing code is generative AI used for documentation. Code assist is tempting, but it generates, completes or modifies code, and here the script's logic is deliberately left unchanged.