Microsoft DevOps Engineer Expert AZ-400 Practice Question

You are designing the configuration-management portion of an infrastructure-as-code solution for an Azure-hosted application platform. Infrastructure is provisioned through Bicep templates in Azure Pipelines, and the operations team wants to store OS hardening baselines in the same Git repository so that changes follow the normal pull-request process. The baselines must be:

  • applied automatically to any new or existing Windows or Linux VM that belongs to a specified environment tag,
  • continuously monitored for drift and remediated if necessary,
  • delivered through an Azure-native service that does not require you to deploy or manage a third-party agent. Which approach should you recommend?
  • Package each baseline as a guest-configuration package, publish it to Azure Policy, and assign the corresponding policy definition to VMs that have the appropriate environment tag, enabling remediation.

  • Install the Chef client on every VM and use an Azure DevOps extension to apply cookbooks that implement the required baselines.

  • Create DSC configurations in Azure Automation State Configuration and configure each VM to use the pull server hosted in the Automation account.

  • Add a Custom Script Extension step to the Bicep templates that invokes a PowerShell or Bash script to apply the baseline during VM deployment.

Microsoft DevOps Engineer Expert AZ-400
Design and implement build and release pipelines
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot