exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 1 question 8 discussion

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

Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements.
You run the Register-AzureRmAutomationDscNode command in your company's environment.
You need to make sure that your company's test servers remain correctly configured, regardless of configuration drift.
Solution: You set the -ConfigurationMode parameter to ApplyOnly.
Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
syu31svc
Highly Voted 2 years, 10 months ago
Selected Answer: B
https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/register-azurermautomationdscnode?view=azurermps-6.13.0 Specifies the DSC configuration mode. Valid values are: ApplyAndMonitor ApplyAndAutocorrect ApplyOnly Answer is No; use ApplyAndAutocorrect for "correctly configured, regardless of configuration drift"
upvoted 20 times
...
Zeus666
Most Recent 5 months, 2 weeks ago
Selected Answer: B
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.
upvoted 2 times
...
74gjd_37
9 months ago
Selected Answer: 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. "
upvoted 1 times
...
zellck
9 months ago
Selected Answer: B
B is the answer. https://learn.microsoft.com/en-us/powershell/dsc/managing-nodes/metaconfig?view=dsc-1.1#basic-settings 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.
upvoted 3 times
...
FeriAZ
1 year, 3 months ago
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.
upvoted 2 times
...
ozbonny
1 year, 4 months ago
The proposed solution sets the -ConfigurationMode parameter to ApplyOnly when running the Register-AzureRmAutomationDscNode command. This indicates that the configuration will only be applied, but will not be checked or corrected for any configuration deviation (drift). Since the goal is to ensure that the company's test servers remain correctly configured regardless of configuration drift, the solution falls short of the goal. The settings will only be applied once and will not be maintained if there are unauthorized changes. Therefore, the correct answer is B. No.
upvoted 1 times
...
sca88
2 years ago
https://learn.microsoft.com/en-us/powershell/dsc/managing-nodes/metaconfig?view=dsc-1.1
upvoted 1 times
...
nhannn
2 years, 7 months ago
Selected Answer: B
It's B - No. With ApplyOnly: After the initial application of a new configuration, DSC does not check for drift from a previously configured state. It should be ApplyAndAutocorrect
upvoted 3 times
...
rods
2 years, 8 months ago
Selected Answer: B
Correct answer!
upvoted 2 times
...
bishtr3
2 years, 9 months ago
Answer B This link beautifully explained DSC configuration mode https://www.red-gate.com/simple-talk/sysadmin/powershell/powershell-desired-state-configuration-the-basics/
upvoted 1 times
...
reynaldo_aguiar
2 years, 10 months ago
Selected Answer: B
Answer B https://tkolber.medium.com/configuring-azure-dsc-automation-with-powershell-in-5-steps-454fbef9457b
upvoted 1 times
...
Govcomm
2 years, 11 months ago
No, ApplyAndAutocorrect is the right answer.
upvoted 1 times
...
UnknowMan
3 years, 1 month ago
Right , the option is ApplyAndAutocorrect
upvoted 4 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 ...