Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Microsoft Certified: DevOps Engineer Expert · Microsoft
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
The solution does **not** meet the goal. Setting the `-ConfigurationMode` parameter to `ApplyOnly` in the `Register-AzureRmAutomationDscNode` command only applies the configuration initially but does not ensure that the test servers remain correctly configured in the event of configuration drift. To ensure the servers stay correctly configured regardless of configuration drift, you should use the `-ConfigurationMode` parameter set to `ApplyAndAutoCorrect`. This mode applies the configuration and periodically checks and corrects any drift to ensure the servers remain compliant with the desired configuration. So the correct answer is **B.
https://learn.microsoft.com/en-us/powershell/dsc/managing-nodes/metaconfig?view=dsc-1.1 "ApplyOnly: DSC applies the configuration and does nothing further unless a new configuration is pushed to the target node or when a new configuration is pulled from a service. After initial application of a new configuration, DSC does not check for drift from a previously configured state. Note that DSC will attempt to apply the configuration until it is successful before ApplyOnly takes effect. "
1. ApplyOnly: Applies the configuration script once during registration. Does not monitor for future changes or drift. Not suitable for situations where continuous configuration management is required. 2. ApplyAndMonitor: Applies the configuration script initially. Continuously monitors the registered node for any configuration changes. If drift is detected, the script is automatically reapplied to bring the node back to the desired state. Suitable for situations where continuous configuration management is essential to prevent drift and ensure consistent configuration across nodes. 3. ApplyAndAutocorrect: Applies the configuration script initially. Continuously monitors the registered node for any configuration changes. If drift is detected, the script is automatically reapplied to correct the configuration immediately. Similar to ApplyAndMonitor, but with immediate correction of any drift.