
Answer-first summary for fast verification
Answer: Design precise code-related prompts, conduct thorough code reviews, and perform vulnerability testing to ensure the code is secure and efficient.
Designing precise code-related prompts ensures the generated code is relevant and targeted. Conducting thorough code reviews helps in ensuring the code is correct and secure. Performing vulnerability testing improves the overall quality and security of the generated code.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You need to generate code using Azure OpenAI Service for a cybersecurity application. Describe the steps you would take to ensure the generated code is secure and efficient. Include considerations for prompt engineering, code review, and vulnerability testing.
A
Submit any code-related prompt, accept the first generated code, and ignore any security issues.
B
Design precise code-related prompts, conduct thorough code reviews, and perform vulnerability testing to ensure the code is secure and efficient.
C
Submit vague code-related prompts, accept all generated code, and avoid any security checks.
D
Design complex code-related prompts, ignore code quality, and avoid any security testing.
No comments yet.