more on this:
Specifies how the LCM actually applies the configuration to the target nodes. Possible values are "ApplyOnly","ApplyAndMonitor", and "ApplyAndAutoCorrect".
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.
ApplyAndMonitor: This is the default value. The LCM applies any new configurations. After initial application of a new configuration, if the target node drifts from the desired state, DSC reports the discrepancy in logs. Note that DSC will attempt to apply the configuration until it is successful before ApplyAndMonitor takes effect.
ApplyAndAutoCorrect: DSC applies any new configurations. After initial application of a new configuration, if the target node drifts from the desired state, DSC reports the discrepancy in logs, and then re-applies the current configuration.
Change to ApplyAndAutoCorrect
https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/register-azurermautomationdscnode?view=azurermps-6.13.0#parameters
A is the answer.
https://learn.microsoft.com/en-us/powershell/dsc/managing-nodes/metaconfig?view=dsc-1.1#basic-settings
ConfigurationMode
- 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
- ApplyAndAutoCorrect: DSC applies any new configurations. After initial application of a new configuration, if the target node drifts from the desired state, DSC reports the discrepancy in logs, and then re-applies the current configuration.
A. Change the value of the ConfigurationMode parameter.
The current technical issue is that the test servers are experiencing configuration drift over time, and the Azure Automation State Configuration is failing to correct the configurations. The Register-AzureRmAutomationDscNode command is used to register the nodes with the Azure Automation State Configuration. One of the parameters of this command is the ConfigurationMode parameter, which specifies the mode in which the configuration should be applied. The ApplyOnly mode is currently being used, which means that the configuration will only be applied, but not checked or corrected. To resolve the current technical issue, the ConfigurationMode parameter should be changed to ApplyAndAutoCorrect, which will apply the configuration and also check and correct any drift. Therefore, option A is the correct answer.
You should add scenario to the question.
"Scenario: Current Technical Issue
The test servers are configured correctly when first deployed, but they experience configuration drift over time. Azure Automation State Configuration fails to correct the configurations.
Azure Automation State Configuration nodes are registered by using the following command.
Register-AzureRmAutomationDscNode
-ResourceGroupName 'TestResourceGroup'
-AutomationAccountName 'LitwareAutomationAccount'
-AzureVMName $vmanme
-ConfigurationMode 'ApplyOnly'
To resolve the current technical issue, what should you do to the Register-AzureRmAutomationDscNode
command?"
'"Azure Automation State Configuration fails to correct the configurations"
https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/register-azurermautomationdscnode?view=azurermps-6.13.0
"-ConfigurationMode
Specifies the DSC configuration mode. Valid values are:
ApplyAndMonitor
ApplyAndAutocorrect
ApplyOnly"
Answer is A
Given answer is correct
Possible values are "ApplyOnly","ApplyAndMonitor", and "ApplyAndAutoCorrect". Here you can use ApplyAndAutoCorrect
Sachin Kadam
This section is not available anymore. Please use the main Exam Page.AZ-400 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Mefguine
Highly Voted 4 years, 6 months agoexamkid
Highly Voted 4 years, 3 months agoThameur01
Most Recent 2 weeks agovsvaid
11 months, 2 weeks agozellck
1 year, 5 months agoMadbo
1 year, 7 months agomrg998
1 year, 10 months agowarchoon
1 year, 11 months agosyu31svc
2 years, 3 months agoEltooth
2 years, 6 months agoCheehp
2 years, 7 months agordemontis
2 years, 8 months agoMev4953
2 years, 9 months agoSara_Mo
2 years, 10 months agoScreamingHand
3 years agod0bermannn
3 years, 2 months agoSACHMAM
3 years, 5 months ago