Microsoft

DP-800 practice question 17

Developing AI-Enabled Database Solutions · free question 17 of 20

Question

You have a database named DB1. The schema is stored in a GitHub repository as an SDK-style SQL database project. You use a feature branch workflow to deploy changes to DB1. You need to update the local feature branch with the latest changes to main, and then create a pull request to merge the feature branch into main for review. How should you complete the GitHub CLI script? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. NOTE: Each correct selection is worth one point. ```bash git checkout feature/db1-add-staticdata [Target 1] [Target 2] [Target 3] \ --title "Feature Update: DB1" \ --body "Apply latest improvements and updates for review" \ --head feature/db1-add-staticdata \ --base main \ --repo <GitHubOwner>/DB1 \ --web ```

Explanation

While the feature branch is checked out, git fetch origin downloads the latest commits from the remote, and git merge origin/main merges the updated main into the feature branch, so the branch is current before review. gh pr create then opens the pull request; the --title, --body, --head, --base, --repo and --web flags all belong to that command. git checkout main would leave the feature branch, gh pr merge would merge without review, and gh pr ready only marks an existing draft pull request as ready.

Practice the whole free set

Answer all 20 free DP-800 questions with instant feedback, or unlock all 55 questions with Learn and Exam modes.