An engineering team wants to use an AI assistant to perform a security review of a pull request. Which of the following tasks is an AI coding assistant MOST capable of reliably helping with during this review? (Select TWO)
- A. Automatically building and deploying a patched version of the code to the staging environment once issues are found
- B. Flagging common insecure coding patterns such as unsanitized user input passed to SQL queries or shell commands✓ Correct
- C. Certifying that the reviewed code is free of all zero-day vulnerabilities, including flaws that have not yet been publicly disclosed
- D. Identifying hardcoded secrets, credentials, or API keys present in the diff✓ Correct
- E. Verifying at runtime, by executing exploit attempts against the production server, that the application cannot be compromised
Explanation
AI assistants are good at pattern-matching tasks. Two examples are spotting hardcoded secrets and credentials, and flagging well-known insecure patterns such as SQL injection or shell injection through unsanitized input. Both are text patterns you can recognize in a static code review. No AI tool can certify that code is free of all zero-day vulnerabilities, especially ones unknown when the model was trained, and believing it can is a dangerous misconception. AI coding tools work on source code text. They cannot run exploit attempts against a production server at runtime. Building and deploying a patch to staging is an operational CI/CD task, outside the scope of an AI code review assistant.