Cuestionario vinculado a una guía · Medio Nivel

AI Pair Programming Best Practices Quiz

Use AI pair programming with bounded tasks, reviewable diffs, focused tests, least-privilege tools and human understanding.

Pregunta 1 de 8

Un desarrollador solicita a un asistente que cambie una función poco clara en muchos archivos. ¿Cuál es un primer paso más seguro?

Vista previa de cada pregunta8 preguntas

Las respuestas y explicaciones aparecen a medida que realiza el cuestionario.

  1. Un desarrollador solicita a un asistente que cambie una función poco clara en muchos archivos. ¿Cuál es un primer paso más seguro?
    • Ask it to rewrite the repository in one pass
    • Clarify behavior and constraints, then request one bounded change
    • Grant every available permission
    • Skip tests until the full rewrite is complete
  2. Un parche generado pasa la suite de pruebas actual. ¿Qué sigue siendo cierto?
    • The tests check only covered behavior, so review requirements and edge cases too
    • The code is proven secure
    • The assistant’s explanation is now authoritative
    • No human review is needed
  3. ¿Por qué un agente de IA debe recibir solo los permisos que la tarea necesita?
    • It makes generated code automatically correct
    • It removes the need to inspect commands
    • It guarantees that no external content is retrieved
    • It limits the impact of mistaken or unexpected actions
  4. Un desarrollador le pide al asistente que explique un módulo. ¿Qué deben hacer antes de confiar en la explicación?
    • Assume a confident summary reflects design intent
    • Delete the source comments
    • Compare it with the implementation and project documentation
    • Use the explanation as a replacement for tests
  5. Una herramienta propone una prueba que solo pasa cuando ocurre el comportamiento actual de la nueva implementación. ¿Qué debe verificar el desarrollador?
    • Whether the test has the longest name
    • Whether the test independently represents the requirement rather than repeating the implementation’s assumption
    • Whether the assistant prefers unit tests
    • Whether the code uses the same variable names
  6. Which workflow is most suitable for a security-sensitive code change?
    • Review with an experienced developer and use established security checks
    • Accept a fluent patch without reading it
    • Rely on the assistant’s confidence statement
    • Skip permission and error-path tests
  7. A new pair-programming tool can run terminal commands. What should the developer do?
    • Allow all commands because the tool is part of the editor
    • Hide command output to reduce distraction
    • Paste production secrets so tests can run
    • Review commands and approve consequential actions before execution
  8. A developer accepts a suggested helper function. Which action shows they can maintain it?
    • Count the lines generated
    • Ask for a more confident explanation
    • Explain the change and its tradeoffs in your own words
    • Assume generated code requires no maintenance