Free AZ-400 Exam Braindumps
Designing and Implementing Microsoft DevOps Solutions Questions 58–62 (page: 25)

Updated On: 16-Nov-2026

You use Azure Pipelines to manage project builds and deployments.
You plan to use Azure Pipelines for Microsoft Teams to notify the legal team when a new build is ready for release.
You need to configure the Organization Settings in Azure DevOps to support Azure Pipelines for Microsoft Teams.
What should you turn on?

  1. Third-party application access via OAuth
  2. Microsoft Entra Conditional Access Policy Validation
  3. Alternate authentication credentials
  4. SSH authentication

Answer(s): A

Explanation:

The Azure Pipelines app uses the OAuth authentication protocol, and requires Third-party application access via OAuth for the organization to be enabled. To enable this setting, navigate to Organization Settings > Security > Policies, and set the Third-party application access via OAuth for the organization setting to On.


Reference:

https://docs.microsoft.com/en-us/azure/devops/pipelines/integrations/microsoft-teams



Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You plan to update the Azure DevOps strategy of your company.
You need to identify the following issues as they occur during the company’s development process:
-Licensing violations
-Prohibited libraries
Solution: You implement pre-deployment gates.
Does this meet the goal?

  1. Yes
  2. No

Answer(s): B

Explanation:

Correct:
* You implement automated security testing.
Incorrect:
* You implement continuous deployment.
* You implement continuous integration
* You implement pre-deployment gates.
Note:
You can use Mend Bolt with Azure DevOps to automatically detect alerts on vulnerable open source components, outdated libraries, and license compliance issues in your code.
Azure DevOps integration with Mend Bolt will enable you to:
Detect and remedy vulnerable open source components.
* Generate comprehensive open source inventory reports per project or build.
*-> Enforce open source license compliance, including dependencies’ licenses.
* Identify outdated open source libraries with recommendations to update.
Note 2: WhiteSource is the leader in continuous open source software security and compliance management.
WhiteSource integrates into your build process, irrespective of your programming languages, build tools, or development environments. It works *automatically*, continuously, and silently in the background, checking the security, licensing, and quality of your open source components against WhiteSource constantly-updated definitive database of open source repositories.


Reference:

https://azuredevopslabs.com/labs/vstsextend/whitesource/



You have a web app named App1 that is deployed by using a GitHub Actions workflow.
The workflow generates a token named token1 as part of the deployment of App1.
You need to prevent token1 from being written to the workflow logs.
Which workflow command should you run?

  1. echo "::stop-commands::$ token1"
  2. echo "secret=$token1 >> "$GITHUB_OUTPUT"
  3. echo "::add-mask::$token1"
  4. echo "::group::$token1"

Answer(s): C

Explanation:

Workflow commands for GitHub Actions
You can use workflow commands when running shell commands in a workflow or in an action's code.
Masking a value in a log
::add-mask::{value}
Masking a value prevents a string or variable from being printed in the log. Each masked word separated by whitespace is replaced with the * character. You can use an environment variable or string for the mask's value.
When you mask a value, it is treated as a secret and will be redacted on the runner. For example, after you mask a value, you won't be able to set that value as an output.
Example: Masking a string
When you print "Mona The Octocat" in the log, you'll see "***".


Reference:

https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-f or-github-actions



HOTSPOT (Drag and Drop is not supported)
You have multiple automated workflows that interact with Azure DevOps and use the following services:
-Azure Command-Line Interface (CLI)
-Azure PowerShell
-Azure Functions
You need to recommend which authentication method to use for each service. The solution must minimize the risk of compromising credentials.
What should you recommend for each service? To answer, select the appropriate options in the answer area.
Note: Each correct selection is worth one point.
Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: Microsoft Entra authentication
Azure CLI
Acquire a Microsoft Entra token via Azure CLI for ad-hoc requests that lasts for one hour instead of minting a longer-lived PAT.
Box 2: Azure DevOps OAuth
Azure PowerShell
Authenticate Azure Pipelines Powershell task against Azure DevOps Rest API
Enable access to token (option Allow Scripts to Access OAuth Token)

Box 3: A managed identity
Azure Functions
Call Azure Functions from workflows in Azure Logic Apps
To run code that performs a specific job in your logic app workflow, you don't have to build a complete app or infrastructure. Instead, you can create and call an Azure function. Azure Functions provides serverless computing in the cloud.
Limitations
Only Consumption workflows support authenticating Azure function calls using a managed identity with Microsoft Entra authentication.


Reference:

https://learn.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/entra https://stackoverflow.com/questions/54708685/authenticate-azure-pipelines-powershell-task-against-azure-dev ops-rest-api https://learn.microsoft.com/en-us/azure/logic-apps/call-azure-functions-from-workflows



You use Azure Pipelines pipeline to build and deploy an app named App1.
You need to ensure that before App1 is deployed, all the code for the app passes a security validation by using a custom tool.
What should you do?

  1. Add a status check to the policies of the branch used by your company's development department.
  2. Add a status check to the policies of the main branch.
  3. Add a service hook to the project.
  4. Limit the job authorization scope to the current project for all the release pipelines.

Answer(s): A



Viewing page 25 of 81
Viewing questions 121 - 125 out of 398 questions


Post your Comments and Discuss Microsoft AZ-400 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!