exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 8 question 63 discussion

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

You have an Azure subscription that contains 50 virtual machines.
You plan to manage the configuration of the virtual machines by using Azure Automation State Configuration.
You need to create the Desired State Configuration (DSC) configuration files.
How should you structure the code blocks?

  • A. Node > Configuration > Resource
  • B. Configuration > Resource > Node
  • C. Resource > Configuration > Node
  • D. Configuration > Node > Resource
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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, 8 months ago
Selected Answer: D
https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/dsc-overview I would take D as the answer
upvoted 19 times
pdk88
2 years, 8 months ago
Correct, I agree with you. -Configuration -Node -Resource "A configuration script consists of the following parts: The Configuration block. This is the outermost script block. You define it by using the Configuration keyword and providing a name. In this case, the name of the configuration is MyDscConfiguration. One or more Node blocks. These define the nodes (computers or VMs) that you are configuring. In the above configuration, there is one Node block that targets a computer named TEST-PC1. The Node block can accept multiple computer names. One or more resource blocks. This is where the configuration sets the properties for the resources that it is configuring. In this case, there are two resource blocks, each of which call the WindowsFeature resource." https://docs.microsoft.com/en-us/powershell/dsc/configurations/configurations?view=dsc-1.1#configuration-syntax
upvoted 7 times
...
Darkeh
2 years, 7 months ago
correct answer
upvoted 1 times
...
xda
1 year, 3 months ago
Easylearn: Its sorted alphabetical
upvoted 3 times
...
...
Mattt
Most Recent 7 months, 1 week ago
Selected Answer: D
D is correct
upvoted 1 times
...
vsvaid
1 year, 4 months ago
Selected Answer: D
I think D
upvoted 1 times
...
Kent_020
1 year, 7 months ago
Configuration MyDscConfiguration { Node @('localhost', 'Server01') { WindowsFeature MyFeatureInstance
upvoted 3 times
...
bigz2021
1 year, 8 months ago
Selected Answer: D
you typically structure the code blocks as follows: 1. Configuration Block: 2. Node Block: 3. Resources:
upvoted 1 times
...
yana_b
1 year, 9 months ago
Selected Answer: D
Correct answer should be D https://learn.microsoft.com/en-us/azure/automation/automation-dsc-getting-started https://learn.microsoft.com/en-us/azure/automation/tutorial-configure-servers-desired-state#prerequisites https://learn.microsoft.com/en-us/azure/automation/automation-dsc-onboarding
upvoted 1 times
...
Pamban
1 year, 10 months ago
Selected Answer: D
this question appeared on today's (20/06/23) exam.selected D. scored 955. should be correct! cheers
upvoted 3 times
...
zellck
1 year, 11 months ago
Selected Answer: D
D is the answer. https://learn.microsoft.com/en-us/powershell/dsc/configurations/configurations?view=dsc-1.1#configuration-syntax A configuration script consists of the following parts: - The Configuration block. This is the outermost script block. You define it by using the Configuration keyword and providing a name. In this case, the name of the configuration is MyDscConfiguration. - One or more Node blocks. These define the nodes (computers or VMs) that you are configuring. In the above configuration, there is one Node block that targets a computer named TEST-PC1. The Node block can accept multiple computer names. - One or more resource blocks. This is where the configuration sets the properties for the resources that it is configuring. In this case, there are two resource blocks, each of which call the WindowsFeature resource.
upvoted 4 times
...
Madbo
2 years ago
The correct answer is D. Configuration > Node > Resource. In Azure Automation State Configuration, a configuration is defined using a series of resource blocks, and a configuration can contain one or more nodes. Each node represents a target system that is to be configured. Therefore, the configuration block comes first to define the overall configuration. The node block comes next to define the target systems to be configured. Finally, the resource block comes last to define the actual resources and their configuration settings.
upvoted 2 times
...
Ward
2 years, 2 months ago
Chat GPT Answer: B. Configuration > Resource > Node In Azure Automation State Configuration, the DSC configuration files should be structured in the following order: Configuration, Resource, and Node. The Configuration block specifies the name of the configuration and any parameters that are used. The Resource block specifies the resource type and name, and any properties that are needed to configure the resource. The Node block specifies the target node(s) to which the configuration should be applied, and the configuration(s) to apply to the node(s). Therefore, option B is the correct answer.
upvoted 1 times
maeterlinch
2 years, 2 months ago
First time GPT answer is wrong. I checked and GPT has corrected the answer below I apologize for the confusion. You are correct, the correct structure for DSC configuration files is: D. Configuration > Node > Resource This structure starts with the Configuration block, followed by the Node block, which specifies the target node for the configuration, and finally the Resource block, which defines the specific resources to be managed. Using this structure, you can define multiple Configuration blocks to manage different aspects of the system, and multiple Node blocks within each Configuration block to manage different target nodes. The Resource block specifies the specific resources to be managed on the target node. e on the target node.
upvoted 1 times
maeterlinch
2 years, 2 months ago
It seems that he is still studying.
upvoted 1 times
...
armvch
2 years, 1 month ago
Not the first time actually. I constantly see how ChatGPT can fail (at least with Azure questions)
upvoted 1 times
...
...
...
alexax578
2 years, 8 months ago
Selected Answer: D
Configuration > Node > Resource https://docs.microsoft.com/en-us/powershell/dsc/configurations/configurations
upvoted 1 times
giuliohome
2 years, 8 months ago
Are you reading the other answers in the forum before entering yours? Have you noticed that there is an upvote button if you want to agree to an already existing asnwer without adding anything new to the discussion? ... just for your info, in case you missed it ;-)
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago