AZ-305 Practice Question 91: Machine Configuration Guest Audit

Microsoft Azure Solutions Architect Expert (AZ-305) · Test 10 · question 1 of 10

Identity, Governance & Monitoringmedium

A company has already onboarded 300 Windows and Linux virtual machines to Azure Arc and Azure resource management. The security team now adds a new requirement: it must be able to audit settings that exist inside the guest operating system itself, such as whether a specific registry key is set, a local security policy is applied, or a configuration file matches an approved baseline, and report each machine as compliant or non-compliant in Azure Policy. The team wants a native Azure capability rather than a third-party configuration management tool.

What should you include in the design?

Select one answer
Show answer and explanation

Answer:

  • A. Assign built-in Azure Policy definitions that use the machine configuration (guest configuration) feature, and enable the required extension and managed identity on each machine

Machine configuration (formerly guest configuration) extends Azure Policy into the guest operating system. It uses desired state configuration tooling installed inside the machine, via an extension and a managed identity, to audit or enforce settings such as registry keys, local security policy, installed applications and configuration files, and it reports compliance back to Azure Policy for both Azure VMs and Arc-enabled servers.

Option B is wrong because a deployIfNotExists policy effect only acts on Azure Resource Manager properties of a resource; it has no visibility inside the operating system. Option C is wrong because performance counters describe resource utilization, not configuration compliance, and alert rules do not produce a policy compliance state. Option D is wrong because the regulatory compliance dashboard aggregates results from existing assessments, including machine configuration, but enabling it does not by itself audit any in-guest setting; the underlying machine configuration policies still have to be assigned.

Reference: What is Azure Machine Configuration?

Practice Test 10 ›

Study guides for AZ-305