Flashcardsfor IT Certifications

D5: Modernization & Testing Scenarios

GH-300 GitHub Copilot exam practice questions · 10 flashcards

Question
Migrating Java 8 to 21?
1 / 10

Tip: Space flips the card, ← / → navigate.

Last updated: · Report an error on this page

Show all 10 Modernization & Testing Scenarios practice questions and answers
  1. Migrating Java 8 to 21?
    Use Copilot (or app modernization tools) to update APIs and dependencies with review.
  2. Converting callbacks to async/await?
    Ask Copilot to refactor selected code.
  3. Generating API docs?
    Ask for OpenAPI spec from code.
  4. Generating test data with constraints?
    'Generate 20 realistic customer records as JSON with valid emails'.
  5. Property-based tests?
    Ask for Hypothesis/fast-check tests.
  6. Security review prompt?
    'Review this function for OWASP Top 10 issues and suggest fixes'.
  7. Performance prompt?
    'Optimize this loop for large datasets; explain complexity'.
  8. Explaining regex?
    /explain on the regex.
  9. Upgrading dependencies?
    Ask for migration steps and code changes for breaking changes.
  10. Scenario: no tests exist for legacy module. First step with Copilot?
    Generate characterization tests before refactoring.