HOTSPOT
-
You use Git for source control.
You need to optimize the performance of a repository. The solution must meet the following requirements:
• Permanently remove all items referenced only in the reflog.
• Remove history that is NOT in any current branch.
How should you complete the command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Explanation: `git reflog expire --expire-unreachable=now --all` permanently removes objects referenced only by the reflog. `git gc --prune=now` deletes all unreachable objects, removing history not in any current branch and optimizing repository performance.
Question 156
DRAG DROP
-
You have an app named App1. You have a Log Analytics workspace named Workspace1 that contains two tables named Events and Logs. App1 manages events in multiple locations and writes logs to Workspace1.
You need to query Workspace1 for all log entries related to Asia that occurred during the last two days.
In which order should you arrange the query statements? To answer, move all statements from the list of statements to the answer area and arrange them in the correct order.
Show Answer
Correct Answer: Logs
| where timestamp > ago(2d)
| join ( Events
| where continent == "Asia" ) on RequestId
Explanation: Start from the Logs table, apply the time filter on the timestamp column, then join with the Events table filtered by continent. The join uses RequestId to correlate log entries with event location data.
Question 157
You have a project in Azure DevOps named Project1.
You implement a Continuous Integration/Continuous Deployment (CI/CD) pipeline that uses PowerShell Desired State Configuration (DSC) to configure the application infrastructure.
You need to perform a unit test and an integration test of the configuration before Project1 is deployed.
What should you use?
A. the PSScriptAnalyzer tool
B. the Pester test framework
C. the PSCodeHealth module
D. the Test-DscConfiguration cmdlet
Show Answer
Correct Answer: B
Explanation: Pester is the PowerShell testing framework designed to run both unit tests and integration tests. It is commonly used to validate PowerShell DSC configurations before deployment and integrates well with Azure DevOps CI/CD pipelines. The other options focus on static analysis, code quality metrics, or post-deployment state checking rather than pre-deployment unit and integration testing.
Question 158
HOTSPOT -
You have a project in Azure DevOps that contains a release pipeline. The pipeline contains two stages named QA and Prod. QA deploys code to an Azure web app named webapp1. Prod deploys code to an Azure web app named webapp2.
You need to ensure that code deployments to webapp2 are blocked if Azure Application Insights generates Failed requests alerts following the deployment of new code to webapp1.
What should you do for each stage? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Show Answer
Correct Answer: QA:
Add a task to configure alert rules in Application Insights.
Prod:
Configure a gate in the pre-deployment conditions.
Explanation: QA must generate Application Insights alerts (including Failed requests) after deployment to webapp1. Prod must evaluate those alerts before deploying, which is done by using a pre-deployment gate that can block deployment based on Application Insights alert status.
Question 159
You have a project in Azure DevOps named Project1.
You need to ensure that all new pipelines in Project1 execute three specific tasks during pipeline execution.
What should you create?
A. a task group
B. a JSON template
C. a YAML template
D. a PowerShell task
Show Answer
Correct Answer: C
Explanation: Azure DevOps modern pipelines are YAML-based. To ensure that all new pipelines execute the same set of tasks, you create a reusable YAML template that defines those tasks and reference it from each pipeline. Task groups apply only to Classic (UI-based) pipelines, JSON templates are not used for pipelines, and a PowerShell task is not a reusable pipeline construct.
Question 160
DRAG DROP
-
You use Exabeam Fusion SIEM and the Azure cloud platform.
You need to integrate Exabeam and Azure. The solution must use OAuth authentication.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Show Answer
Correct Answer: Register an Exabeam application in Microsoft Azure Active Directory (Azure AD), part of Microsoft Entra.
Create a client secret.
Configure the Exabeam Azure cloud connector.
Explanation: OAuth integration requires first registering an application in Azure AD. After the app exists, a client secret is created for OAuth authentication. Finally, the Exabeam Azure cloud connector is configured using the application ID and client secret to complete the integration.
Question 161
You plan to create a GitHub workflow that will use GitHub Actions. The actions will require a 256-KB secret.
You need to recommend a solution to store and encrypt the secret. The secret value must be accessible only to the workflow. The solution must minimize administrative effort
What should you recommend?
A. Store the secret in the organization-level GitHub secrets.
B. Store the secret in the repository-level GitHub secrets.
C. Encrypt the secret value and store the value in the repository. Store the decryption key in the repository-level GitHub secrets.
D. Encrypt the secret value and store the value in the repository. Store the decryption key in the organization-level GitHub secrets.
Show Answer
Correct Answer: C
Explanation: GitHub Actions secrets have a size limit (48 KB). A 256‑KB secret cannot be stored directly as a repository‑ or organization‑level secret. GitHub’s documented workaround is to encrypt the large secret, commit the encrypted value to the repository, and store only the decryption key as a GitHub secret. Using a repository‑level secret ensures the value is accessible only to workflows in that repository and minimizes administrative effort compared to organization‑level configuration.
Question 163
You have an Azure subscription that contains the resources shown in the following table.
Project produces npm packages that are published to Feed1. Feed1 is consumed by multiple projects.
You need to ensure that only tested packages are available for consumption. The solution must minimize development effort.
What should you do?
A. Create a feed view named @release and set @release as the default view. After the npm packages test successfully, configure a release pipeline that promotes a package to the @release view.
B. Create a feed view named @release and set @release as the default view. After the npm packages test successfully, configure a release pipeline that tags the packages as release.
C. Create a feed view named @default. After the npm packages test successfully, configure a release pipeline that tags the packages as release.
D. Create a feed view named @default. After the npm packages test successfully, configure a release pipeline that promotes a package to the @default view.
Show Answer
Correct Answer: A
Explanation: Azure Artifacts feed views are designed to control package visibility. To ensure only tested packages are consumable with minimal effort, you should create a @release view and make it the default so consumers automatically get only approved packages. After tests pass, the pipeline promotes the package to the @release view. Tagging alone does not restrict consumption, and promoting to or creating a new @default view is incorrect because @default already exists and promotion is meant for non-default views.
Question 164
DRAG DROP
-
You have an Azure Repos Git repository named repo1.
You need to ensure that you can authenticate to repo1 by using SSH.
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
NOTE: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.
Show Answer
Correct Answer: Create SSH keys by using ssh-keygen
Sign in to Azure DevOps
Add the SSH public key
Clone repo1
Explanation: SSH authentication requires a key pair. First generate the SSH keys locally. Then sign in to Azure DevOps to access user settings. Upload the SSH public key so Azure DevOps can trust the client. Finally, clone the repository using the SSH URL, which uses the configured key for authentication.
Question 165
You have a GitHub repository that contains multiple versions of an Azure Pipelines template.
You plan to deploy multiple pipelines that will use a template stored in the repository.
You need to ensure that you use a fixed version of the template.
What should you use to reference which version of the template repository to use?
A. the serial
B. the SHA-based hashes
C. the runner
D. the branch
Show Answer
Correct Answer: D
Explanation: In Azure Pipelines, fixing the version of a template repository is done by pinning the repository resource to a Git ref. Microsoft documentation explicitly recommends using a ref (such as a branch or tag) via the `ref` property. While SHA hashes can work, the official guidance emphasizes refs, making a branch (typically a release or versioned branch) the expected exam answer.
$19
Get all 531 questions with detailed answers and explanations
Instant download HTML + PDF delivered the moment payment clears.
Secure Stripe checkout we never see or store your card details.
7-day refund if files are defective see our refund policy.