Question 130
Two independently scoped GitHub Copilot requirements are being reviewed. Requirement A: A maintainer wants to add logging to diagnose a deployment failure. Requirement B: A QA engineer wants better assertions for an existing weak smoke test. Choose TWO distinct actions to resolve both situations.
Explanation
Correct Answers
This action addresses requirement B: A QA engineer wants better assertions for an existing weak smoke test. Effective tests assert requirements rather than mere execution. Verify by observing: The test fails on known regressions and passes the approved behavior.
This action addresses requirement A: A maintainer wants to add logging to diagnose a deployment failure. Better observability must preserve confidentiality. Verify by observing: Logs expose meaningful correlation fields without secrets or personal records.
Incorrect Answers
Copilot can reduce learning time but source verification remains necessary. The two requirements instead call for these controls: (A) Ask Copilot to propose structured, redacted diagnostics and exercise failure paths; (B) Ask Copilot to identify observable postconditions and add precise assertions.
Performance optimization in tests must not compromise isolation. The two requirements instead call for these controls: (A) Ask Copilot to propose structured, redacted diagnostics and exercise failure paths; (B) Ask Copilot to identify observable postconditions and add precise assertions.
AI-assisted tests still require independent expected outcomes. The two requirements instead call for these controls: (A) Ask Copilot to propose structured, redacted diagnostics and exercise failure paths; (B) Ask Copilot to identify observable postconditions and add precise assertions.