AZ-400 · Question #598
AZ-400 Question #598: Real Exam Question with Answer & Explanation
The command shown is 'az deployment group what-if', which is a What-If operation that evaluates changes against an existing resource group (RG1) without actually deploying anything - hence 'The command will evaluate the resources in RG1' is correct (Yes). The What-If operation co
Question
Hotspot Question You have a Bicep file named Main.bicep. You run the following command. You receive the following response. Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic. NOTE: Each correct selection is worth one point. Answer:
Explanation
The command shown is 'az deployment group what-if', which is a What-If operation that evaluates changes against an existing resource group (RG1) without actually deploying anything - hence 'The command will evaluate the resources in RG1' is correct (Yes). The What-If operation compares the desired state in the Bicep file against the current state of the resource group; if StorageAccount3 exists in RG1 but is not defined in Main.bicep, it will be flagged as 'ignored' (shown in the What-If output as resources that exist but are not managed by the template), making 'StorageAccount3 will be ignored' also correct (Yes). The 'ignored' status in What-If output specifically means the resource exists in the resource group but is outside the scope of the template, so it will not be modified or deleted.
Topics
Community Discussion
No community discussion yet for this question.