You have a GitHub repository.You need to create a tag named v3.0.5 and ensure that the tag is available in the remote repository.Which two commands should you run? Each correct answer presents part of the solution.Note: Each correct selection is worth one point.
Answer(s): B,C
C: You can create tags for GitHub by either using:the Git command line, or GitHub's web interface.Creating tags from the command lineTo create a tag on your current branch, run this:git tag <tagname>If you want to include a description with your tag, add -a to create an annotated tag:git tag <tagname> -aB: Pushing commits to a remote repositoryUse git push to push commits made on your local branch to a remote repository.About git pushThe git push command takes two arguments:A remote name, for example, originA branch name, for example, mainFor example:git push REMOTE-NAME BRANCH-NAMEAs an example, you usually run git push origin main to push your local changes to your online repository.
https://docs.github.com/en/get-started/using-git/pushing-commits-to-a-remote-repository https://stackoverflow.com/questions/18216991/create-a-tag-in-a-github-repository
You have an Azure DevOps project named Project1 that uses an Azure Pipelines pipeline to build, test, and deploy an app named App1.You have a credential named cred1.You need to ensure that cred1 can be used to deploy builds of App1 to production. The solution must ensure that cred1 is available for use only by specific users and pipelines in Project1.What should you do?
Answer(s): A
By creating cred1 as a secret variable in a variable group, you can securely store credentials that are scoped to a specific Azure DevOps project or pipeline. You can also limit access to the secret, making it available only to the specific users or pipelines that require it. This ensures both security and control over who can use the credential for deployments.
HOTSPOT (Drag and Drop is not supported)Your company uses a Git source-code repository.You plan to implement GitFlow as a workflow strategy.You need to identify which branch types are used for production code and preproduction code in the strategy.Which branch type should you identify for each code type? To answer, select the appropriate options in the answer area.Note: Each correct selection is worth one point.Hot Area:
Box 1: MainProduction codeThe purpose of the main branch in the Git flow workflow is to contain production-ready code that can be released.Box 2: DevelopPreproduction codeGit Flow: Develop BranchThe develop branch is created at the start of a project and is maintained throughout the development process, and contains pre-production code with newly developed features that are in the process of being tested.Newly-created features should be based off the develop branch, and then merged back in when ready for testing.
https://www.gitkraken.com/learn/git/git-flow
You use GitHub for source control.A file that contains sensitive data is committed accidentally to the Git repository of a project.You need to delete the file and its history from the repository.Which two tools can you use? Each correct answer presents a complete solution.Note: Each correct selection is worth one point.
Answer(s): A,B
To entirely remove unwanted files from a repository's history you can use either the git filter-branch command or the BFG Repo-Cleaner open source tool.
https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/removing-se nsitive-data-from-a-repository
DRAG DROP (Drag and Drop is not supported)You have a GitHub repository.You need to configure Dependabot dependency scanning. The solution must meet the following requirements:● Automatically open a pull request to resolve an alert.● Automatically open a pull request when a dependency is updated.What should you enable for each requirement? To answer, drag the appropriate features to the correct requirements. Each feature may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.Note: Each correct selection is worth one point.Select and Place:
Box 1: Security updatesAutomatically open a pull request to resolve an alert.Dependabot automatically creates pull requests to fix vulnerable dependencies identified by security alerts.Box 2: Version updatesAutomatically open a pull request when a dependency is updated.Dependabot automatically creates pull requests when newer dependency versions are available, based on the configured update schedule.
https://docs.github.com/en/code-security/concepts/supply-chain-security/dependabot-security-updates?learn=d ependabot_security_updates&learnproduct=code-security https://docs.github.com/en/code-security/tutorials/secure-your-dependencies/dependabot-quickstart
Post your Comments and Discuss Microsoft AZ-400 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the AZ-400 content, but please register or login to continue.