What YAML syntax do you use to exclude certain files from secret scanning?
Answer(s): A
Excluding folders and files from secret scanningYou can customize secret scanning to automatically close alerts for secrets found in specific directories or files by configuring a secret_scanning.yml file in your repository.Under Edit new file, type paths-ignore: followed by the paths you want to exclude from secret scanning. This tells secret scanning to automatically close alerts for everything in the docs directory.
https://docs.github.com/en/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protectio n-features/excluding-folders-and-files-from-secret-scanning
HOTSPOT (Drag and Drop is not supported)You have a GitHub Enterprise Cloud repository named Repo1 that uses GitHub Advanced Security code scanning with CodeQL advanced setup. Repo1 stores JavaScript and Python source code and a workflow named Workflow1. Workflow1 uses matrix.language to analyze each programming language in parallel.You perform the following actions:-Define additional query packs for each language by using a custom CodeQL configuration file.-In Workflow1A, ad security-and-quality and packs: scope/pack1 queries directly to github/codeql-action/init@v4.You discover that the additional query packs from the custom configuration file no longer run.You need to ensure that CodeQL runs the security-and-quality query suite and the additional query packs defined in the configuration file for both languages.How should you configure github/codeql-action/init@v4? To answer, select the appropriate options in the answer area.Note: Each correct selection is worth one point.Hot Area:
Box 1: queries: security-and-qualityTo combine workflow queries with configuration-file queries, set the query input to:To run the security-and-quality suite along with both the workflow packs and the custom configuration-file packs for both matrix languages, modify your github/codeql-action/init@v4 block as follows:- name: Initialize CodeQLuses: github/codeql-action/init@v4with:languages: ${{ matrix.language }}queries: security-and-quality config-file: .github/codeql/codeql-config.yml # Path to your custom config file packs: +scope/pack1Box 2: packs: +scope/pack1To combine workflow packs with configuration-file packs set the pack input to:To combine query packs specified in the GitHub Actions workflow with those defined in a custom configuration file, you must prefix the pack name in your workflow with a plus sign (+).Setting packs: +scope/pack1 tells CodeQL to append this pack to any additional packs already defined inside the custom configuration file instead of overriding them.
https://docs.github.com/enterprise-server@3.21/code-security/reference/code-scanning/workflow-configuration -options
What is the best method to ensure all new code is scanned for vulnerabilities?
Answer(s): B
Configuring automated code scanning integrated into a CI/CD pipeline is the best method to ensure new code is scanned for vulnerabilities because it identifies weaknesses early in the development lifecycle, preventing them from reaching production. This approach provides continuous, hands-off scanning as code is committed or merged, offering immediate feedback to developers and reducing the cost of fixing issues.
https://docs.github.com/en/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning
Secret scanning will scan:
Secret scanning automatically scans your repository's contents for sensitive data, such as API keys, passwords, tokens, and other secrets. It looks for patterns and heuristics that match known types of secrets.Secret scanning is available for the following repository types:Public repositories on GitHub.comOrganization-owned repositories on GitHub Team with GitHub Secret Protection enabled
https://docs.github.com/en/code-security/secret-scanning/introduction/about-secret-scanning
Which features require GitHub Advanced Security to be enabled for internal and private repositories in an organization? Each correct answer presents part of the solution. (Choose two.)
Answer(s): B,D
About GitHub Advanced Security productsGitHub has many features that help you improve and maintain the quality of your code. Some of these are included in all plans, such as dependency graph and Dependabot alerts.Other security features require you to purchase one of GitHub's Advanced Security products:GitHub Secret Protection, which includes features that help you detect and prevent secret leaks, such as secret scanning [B] and push protection.GitHub Code Security, which includes features that help you find and fix vulnerabilities, like code scanning, premium Dependabot features, and dependency review [D].
https://docs.github.com/en/get-started/learning-about-github/about-github-advanced-security
Which key is required in the update settings of the Dependabot configuration file?
Enabling Dependabot version updatesYou enable Dependabot version updates by committing a dependabot.yml configuration file to your repository. If you enable the feature in your settings page, GitHub creates a basic file which you can edit, otherwise you can create the file using any file editor.1. On GitHub, navigate to the main page of the repository.[Steps omitted. See step 8 below]...7. Add an updates section, with an entry for each package manager you want Dependabot to monitor. This key is mandatory. You use it to configure how Dependabot updates the versions or your project's dependencies. Each entry configures the update settings for a particular package manager.8. For each package manager, use:*-> package-ecosystem to specify the package manager.directories or directory to specify the location of multiple manifest or other definition files.chedule.interval to specify how often to check for new versions.9. Check the dependabot.yml configuration file in to the .github directory of the repository.
https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-ver sion-updates
A colleague ignores a code scanning alert. What are the implications of the colleague’s action? Each answer presents part of the solution. (Choose three.)
Answer(s): B,C,D
If you configure code scanning using CodeQL, you can also find data-flow problems in your code. Data-flow analysis finds potential security issues in code, such as: using data insecurely[C], passing dangerous arguments to functions [D], and leaking sensitive information[B].When code scanning reports data-flow alerts, GitHub shows you how data moves through the code. Code scanning allows you to identify the areas of your code that leak sensitive information, and that could be the entry point for attacks by malicious users.
https://docs.github.com/en/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts
Assuming there is no custom Dependabot behavior configured, where possible, what does Dependabot do after sending an alert about a vulnerable dependency in a repository?
Answer(s): C
In repositories where Dependabot security updates are enabled, when GitHub detects a vulnerable dependency in the default branch, Dependabot creates a pull request to fix it. The pull request will upgrade the dependency to the minimum possible secure version needed to avoid the vulnerability.
https://teamdynamix.umich.edu/TDClient/47/LSAPortal/KB/PrintArticle?ID=13191
Share your comments for Microsoft GH-500 exam with other users:
Question 1:
Question 1:The best solution is A: Configure a SetupComplete.cmd batch file in the %windir%\setup\scripts directory. Why this is correct:
SetupComplete.cmd
%windir%\setup\scripts
Question 9:Question 9 asks about how GitHub Copilot identifies public code matches when the public code filter is on.
Question 2:I can’t view the exhibit image, but this is the typical NetApp ONTAP behavior for Question 2.
Question 23:Question 23 describes a multimodal model where users can upload unsafe images that could contain hidden instructions. The goal is to implement controls to mitigate this risk. Key points to understand
beautiful exams
You need to implement the date dimension in the data store. The solution must meet the technical requirements. What are two ways to achieve the goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point. Populate the date dimension table by using a dataflow. Populate the date dimension table by using a Copy activity in a pipeline. Populate the date dimension view by using T-SQL. Populate the date dimension table by using a Stored procedure activity in a pipeline.Please answer
Question 14:
Question 5:Question 5 asks how to identify min and max values for each column in a Dataflow result. Correct options: B and E.
Question 18:Question 18: Why not A?
Question 4:Question 4 is about when to use batch processing.
Question 5:I can’t see the [Image] in Question 5, but I can explain the likely reasoning.
Question 12:Here’s why Question 12’s correct choices are C and D.
Question 3:Question 3 asks for two valid ways to meet the purchase order creation validation (warn if the vendor is on the exclusion list for the customer/product and block/alert accordingly). Correct answers: C and D
Question 12:Here’s how to understand question 12.
Question 6:Here’s how question 6 works. Key constraint: All new and extended objects must be in an existing model named FinanceExt. Creating a brand-new model is not allowed. Why the two correct options work:
Question 2:I don’t have the text for Question 2 here. Please paste the exact Question 2 (including all answer choices) or describe the topic it covers. Once I have it, I’ll:
Which statement is true about using default environment variables? The environment variables can be read in workflows using the ENV: variable_name syntax. The environment variables created should be prefixed with GITHUB_ to ensure they can be accessed in workflows The environment variables can be set in the defaults: sections of the workflow The GITHUB_WORKSPACE environment variable should be used to access files from within the runner.Correct answer: The statement "The GITHUB_WORKSPACE environment variable should be used to access files from within the runner." is true. Why the others are false:
${{ env.VARIABLE }}
$VARIABLE
GITHUB_
defaults:
run
GITHUB_WORKSPACE
${{ github.workspace }}
$GITHUB_WORKSPACE/...
${{ github.workspace }}/...
As an administrator for this subscription, you have been tasked with recommending a solution that prohibits users from copying corporate information from managed applications installed on unmanaged devices. Which of the following should you recommend? Windows Virtual Desktop. Microsoft Intune. Windows AutoPilot. Azure AD Application Proxy.
Question 34:
Policy
function of appnav in sdwan
Question 5:
Why this is correct
Question 7:
Question 104:
clustering keys
Q23: Fabric Admin is correct. Because Domain admin cannot create domains. Only Fabric Admin can among the given options. Q51: Wrapping @pipeline.parameter.param1 inside {} will return a string. But question requires the expression to return Int, so correct answer should be @pipeline.parameter.param1 (no {})
Question 62:
ZDX
Analyze Score
Y Engine
Question 32:
Question 3:
date = sys.argv[1]
sys.argv[1]
date = spark.conf.get("date")
input()
date = dbutils.notebooks.getParam("date")
dbutils.notebook.run
Question 528:
Question 23:The correct answer is Domain admin (option B), not Fabric admin.
Question 2:For question 2, the key concept is the Longest Prefix Match. Routers pick the route whose subnet mask is the most specific (largest prefix length) that still matches the destination IP. From the options:
Keeping this site free takes real effort. We constantly battle automated scraping and unauthorized content copying. A quick account helps us protect the community and keep the site free.
To continue studying for your GH-500, please sign in or create a free account.