exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 18 question 1 discussion

Actual exam question from Microsoft's AZ-400
Question #: 1
Topic #: 18
[All AZ-400 Questions]


To resolve the current technical issue, what should you do to the Register-AzureRmAutomationDscNode command?

  • A. Change the value of the ConfigurationMode parameter.
  • B. Replace the Register-AzureRmAutomationDscNode cmdlet with Register-AzureRmAutomationScheduledRunbook
  • C. Add the AllowModuleOverwrite parameter.
  • D. Add the DefaultProfile parameter.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Mefguine
Highly Voted 4 years, 6 months ago
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.
upvoted 29 times
...
examkid
Highly Voted 4 years, 3 months ago
Change to ApplyAndAutoCorrect https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/register-azurermautomationdscnode?view=azurermps-6.13.0#parameters
upvoted 12 times
...
Thameur01
Most Recent 2 weeks ago
Selected Answer: A
Change to ApplyAndAutoCorrect
upvoted 1 times
...
vsvaid
11 months, 2 weeks ago
Selected Answer: A
Correct answer
upvoted 1 times
...
zellck
1 year, 5 months ago
Selected Answer: A
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.
upvoted 1 times
...
Madbo
1 year, 7 months ago
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.
upvoted 1 times
...
mrg998
1 year, 10 months ago
Selected Answer: A
100000000000000000000% A
upvoted 1 times
...
warchoon
1 year, 11 months ago
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?"
upvoted 1 times
...
syu31svc
2 years, 3 months ago
Selected Answer: A
'"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
upvoted 1 times
...
Eltooth
2 years, 6 months ago
Selected Answer: A
A is correct answer.
upvoted 2 times
...
Cheehp
2 years, 7 months ago
Selected during exam. A. Change the value of the ConfigurationMode parameter.
upvoted 2 times
...
rdemontis
2 years, 8 months ago
Selected Answer: A
correct answer
upvoted 2 times
...
Mev4953
2 years, 9 months ago
https://docs.microsoft.com/en-us/powershell/dsc/managing-nodes/metaconfig?view=dsc-1.1#:~:text=ConfigurationMode,applies%20the%20current%20configuration.
upvoted 1 times
...
Sara_Mo
2 years, 10 months ago
A. Change the value of the ConfigurationMode parameter to "ApplyAndAutoCorrect".
upvoted 1 times
...
ScreamingHand
3 years ago
This Q appeared on 5th Nov 2021
upvoted 1 times
...
d0bermannn
3 years, 2 months ago
ApplyAndAutocorrect option is all that we need there, just see get-help Register-AzAutomationDscNode
upvoted 1 times
...
SACHMAM
3 years, 5 months ago
Given answer is correct Possible values are "ApplyOnly","ApplyAndMonitor", and "ApplyAndAutoCorrect". Here you can use ApplyAndAutoCorrect Sachin Kadam
upvoted 3 times
...
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.

SaveCancel
Loading ...