You have an Azure subscription named Subscription1 that contains a custom Azure policy…
- User
You have an Azure subscription named Subscription1 that contains a custom Azure policy named Policy1. Policy1 is an audit policy that monitors naming convention compliance for the resources deployed to Subscription1. You have a pipeline named Pipeline1 in Azure Pipelines. Pipeline1 deploys Azure Resource Manager (ARM) resources to Subscription1. You need to ensure that the resources deployed by Pipeline1 comply with Policy1. What should you add to Pipeline1? A. a pre-deployment task that runs a security and compliance assessment B. a post-deployment task that runs a security and compliance assessment C. an ARM template deployment task to assign Policy1 to Subscription1 D. an ARM template deployment task to deploy Policy1 to Subscription1
- Assistant
To ensure that the resources deployed by Pipeline1 comply with Policy1, you should add:
B. a post-deployment task that runs a security and compliance assessment
Here's why this is the appropriate choice:
-
Policy1 is an audit policy that monitors naming convention compliance. Audit policies in Azure Policy are designed to check the current state of resources to determine if they comply with specified rules.
-
Security and Compliance Assessment: By adding a post-deployment task to run a security and compliance assessment, you can evaluate whether the deployed resources conform to the policy after they have been created or modified by the pipeline. This is essential to ensure compliance as part of the continuous deployment process. This task will run an assessment against the deployed resources to see if they meet the audit policy criteria.
-
- User
You have a project in Azure DevOps. You need to push notifications about pull requests to a Microsoft Teams channel. The solution must minimize development effort. What should you do? A. Install the Azure Pipelines app for Teams and configure a subscription to receive notifications in the channel. B. Use Azure Automation to connect to the Azure DevOps REST API and send messages to Teams. C. Install the Azure Repos app for Teams and configure a subscription to receive notifications in the channel. D. Use an Azure function to connect to the Azure DevOps REST API and send messages to Teams.
- Assistant
To push notifications about pull requests to a Microsoft Teams channel while minimizing development effort, you should:
C. Install the Azure Repos app for Teams and configure a subscription to receive notifications in the channel.
- User
Your company has a project in Azure DevOps for a new application. The application will be deployed to several Azure virtual machines that run Windows Server 2022. You need to recommend a deployment strategy for the virtual machines. The strategy must meet the following requirements:
-
Ensure that the virtual machines maintain a consistent configuration.
-
Minimize administrative effort to configure the virtual machines.
What should you include in the recommendation?
AAzure Resource Manager templates and the PowerShell Desired State Configuration (DSC) extension for Windows BDeployment YAML and Azure pipeline deployment groups CAzure Resource Manager templates and the Custom Script Extension for Windows DDeployment YAML and Azure pipeline stage templates
-
- Assistant