Microsoft GH-300 Practice Test 39
Question 380
A team needs realistic test records but cannot expose production customer identities, and CI requires reproducibility. Which TWO practices are appropriate? (Select TWO.)
- Use uncontrolled randomness for every test execution.
- Generate synthetic records matching required schemas and boundary distributions.
- Sample directly from confidential production passwords.
- Set and record a deterministic random seed for fixture generation.
- Omit null and Unicode cases to simplify generation.
Explanation
Correct Answers
B:Representative fake data exercises logic without exposing customer records.
D:Repeatable inputs make CI failures reproducible.
Incorrect Answers
A:Nonrepeatable fixtures make defects harder to reproduce.
C:Sensitive credentials are not needed for fixtures.
E:Narrow fixtures can hide important validation bugs.
Question 381
A monolith uses an obsolete HTTP library. What first Copilot task is useful?
- Plan data conversion, compatibility checks, and staged rollback or restore.
- Check all routes against current framework migration guidance and integration tests.
- Introduce explicit encoding strategy and regression cases for invalid bytes.
- Identify affected call sites and propose a migration plan using the supported replacement API.
Explanation
Correct Answer
D:Modernization begins with dependency and behavior inventory.
Incorrect Answers
A:Production modernization must account for persistent state. modernization begins with dependency and behavior inventory.
B:Version-specific routing changes may break endpoints. What first Copilot task is useful. Modernization begins with dependency and behavior inventory.
C:Encoding changes alter data integrity behavior. modernization begins with dependency and behavior inventory.
Question 382
A Java application migrates from older date APIs. What should be validated?
- Identify affected call sites and propose a migration plan using the supported replacement API.
- Plan data conversion, compatibility checks, and staged rollback or restore.
- Check all routes against current framework migration guidance and integration tests.
- Check timezone and locale semantics while updating to the target time library.
Explanation
Correct Answer
D:Superficial method translation can change date interpretation.
Incorrect Answers
A:Modernization begins with dependency and behavior inventory. Superficial method translation can change date interpretation.
B:Production modernization must account for persistent state. superficial method translation can change date interpretation.
C:Version-specific routing changes may break endpoints. What should be validated. Superficial method translation can change date interpretation.
Question 383
A legacy function silently drops encoding errors. What should a modernization patch address?
- Plan data conversion, compatibility checks, and staged rollback or restore.
- Introduce explicit encoding strategy and regression cases for invalid bytes.
- Identify affected call sites and propose a migration plan using the supported replacement API.
- Check timezone and locale semantics while updating to the target time library.
Explanation
Correct Answer
B:Encoding changes alter data integrity behavior.
Incorrect Answers
A:Production modernization must account for persistent state. encoding changes alter data integrity behavior.
C:Modernization begins with dependency and behavior inventory. Encoding changes alter data integrity behavior.
D:Superficial method translation can change date interpretation. encoding changes alter data integrity behavior.
Question 384
A new framework upgrade rewrites route declarations. What should the developer compare?
- Introduce explicit encoding strategy and regression cases for invalid bytes.
- Identify affected call sites and propose a migration plan using the supported replacement API.
- Check timezone and locale semantics while updating to the target time library.
- Check all routes against current framework migration guidance and integration tests.
Explanation
Correct Answer
D:Version-specific routing changes may break endpoints.
Incorrect Answers
A:Encoding changes alter data integrity behavior. What should the developer compare. Version-specific routing changes may break endpoints.
B:Modernization begins with dependency and behavior inventory. Version-specific routing changes may break endpoints.
C:Superficial method translation can change date interpretation. version-specific routing changes may break endpoints.
Question 385
A generated database migration changes column types without a rollback strategy. What should be added?
- Check timezone and locale semantics while updating to the target time library.
- Plan data conversion, compatibility checks, and staged rollback or restore.
- Introduce explicit encoding strategy and regression cases for invalid bytes.
- Check all routes against current framework migration guidance and integration tests.
Explanation
Correct Answer
B:Production modernization must account for persistent state.
Incorrect Answers
A:Superficial method translation can change date interpretation. production modernization must account for persistent state.
C:Encoding changes alter data integrity behavior. What should be added. Production modernization must account for persistent state.
D:Version-specific routing changes may break endpoints. production modernization must account for persistent state.
Question 386
A developer repeatedly leaves the editor to search for basic syntax. What Copilot use may help?
- Ask Copilot for a grounded diff overview and then inspect the actual patch.
- Ask contextual Chat questions or inline assistance within the active code environment.
- Summarize modifications, tests run, and unresolved issues with file references.
- Use repository-aware search with precise symbols and verify ownership metadata.
Explanation
Correct Answer
B:In-place explanations can reduce navigation away from the current task.
Incorrect Answers
A:Summaries accelerate orientation but not approval. What Copilot use may help. In-place explanations can reduce navigation away from the current task.
C:A traceable status report reduces re-reading session logs. In-place explanations can reduce navigation away from the current task.
D:Contextual navigation can locate likely modules faster. in-place explanations can reduce navigation away from the current task.
Question 387
A team copies issue requirements between browser and IDE and loses key constraints. What improves flow?
- Summarize modifications, tests run, and unresolved issues with file references.
- Ask contextual Chat questions or inline assistance within the active code environment.
- Attach the authoritative issue and acceptance criteria through a supported integration.
- Use repository-aware search with precise symbols and verify ownership metadata.
Explanation
Correct Answer
C:Direct reference reduces manual transcription mistakes.
Incorrect Answers
A:A traceable status report reduces re-reading session logs. Direct reference reduces manual transcription mistakes.
B:In-place explanations can reduce navigation away from the current task. direct reference reduces manual transcription mistakes.
D:Contextual navigation can locate likely modules faster. direct reference reduces manual transcription mistakes.
Question 388
A developer needs a summary of changed files before starting review. What is efficient?
- Ask contextual Chat questions or inline assistance within the active code environment.
- Ask Copilot for a grounded diff overview and then inspect the actual patch.
- Summarize modifications, tests run, and unresolved issues with file references.
- Attach the authoritative issue and acceptance criteria through a supported integration.
Explanation
Correct Answer
B:Summaries accelerate orientation but not approval.
Incorrect Answers
A:In-place explanations can reduce navigation away from the current task. summaries accelerate orientation but not approval.
C:A traceable status report reduces re-reading session logs. Summaries accelerate orientation but not approval.
D:Direct reference reduces manual transcription mistakes. What is efficient. Summaries accelerate orientation but not approval.
Question 389
A programmer searches a large repository for an API owner. What assistance is useful?
- Ask contextual Chat questions or inline assistance within the active code environment.
- Use repository-aware search with precise symbols and verify ownership metadata.
- Attach the authoritative issue and acceptance criteria through a supported integration.
- Ask Copilot for a grounded diff overview and then inspect the actual patch.
Explanation
Correct Answer
B:Contextual navigation can locate likely modules faster.
Incorrect Answers
A:In-place explanations can reduce navigation away from the current task. contextual navigation can locate likely modules faster.
C:Direct reference reduces manual transcription mistakes. What assistance is useful. Contextual navigation can locate likely modules faster.
D:Summaries accelerate orientation but not approval. contextual navigation can locate likely modules faster.
Question 390
A maintainer uses Copilot to understand a large PR and locate a new API owner. Which TWO actions support efficient and accurate review? (Select TWO.)
- Approve the change based solely on the generated summary.
- Guess ownership from the name of an unrelated component.
- Request a PR summary grounded in the actual changed files.
- Delete issue acceptance criteria to reduce the context window.
- Search the repository for symbols and verify ownership metadata before routing questions.
Explanation
Correct Answers
C:A change overview helps prioritize detailed inspection.
E:Source navigation helps identify accountable maintainers.
Incorrect Answers
A:The actual diff and test results must still be reviewed.
B:Similar names do not establish repository responsibility.
D:Removing requirements makes review less reliable.