Microsoft Azure Administrator AZ-104 ARM Templates and Bicep Deployments Practice Test 2

 

Topic 07 Practice Test 2 covers ARM Templates and Bicep Deployments for Microsoft Azure Administrator AZ-104 and maps to the objective: Automate deployment of resources by using ARM templates or Bicep files. For broader exam preparation, review the Microsoft AZ-104 Exam Dumps. Every option includes focused technical reasoning explaining both the Azure concept and its fit to the scenario.

Question 1

Contoso deploys a template containing two resources into a group that also contains manually managed resources. Those unrelated resources must remain. Which deployment behavior should be used? Choose ONE.

  1. Use incremental deployment behavior
  2. Use complete deployment mode only when undeclared resources must be removed
  3. Run the Resource Manager what-if operation
  4. Export a template from the current resource group or selected resources

Correct Answer: A

Correct Answer

 

 

Answer A is correct because Incremental deployment updates resources declared in the template while leaving unrelated existing resources in the target scope, making it the safer general deployment behavior. It is the suitable choice for Contoso; the deciding requirement is: declared resources should be updated while unrelated existing resources in the resource group remain untouched.

Incorrect Answers

 

Answer B is incorrect because Complete mode can delete resources in the target resource group that are not represented in the deployment, so it should be used deliberately when that destructive reconciliation is intended. The Contoso scenario instead calls for this outcome: declared resources should be updated while unrelated existing resources in the resource group remain untouched.

Answer C is incorrect because The what-if operation previews expected resource changes before deployment, helping an administrator detect unintended creates, deletes, or property modifications without applying them. This would not resolve the stated requirement for Contoso: declared resources should be updated while unrelated existing resources in the resource group remain untouched.

Answer D is incorrect because In the Contoso case, the required result is: declared resources should be updated while unrelated existing resources in the resource group remain untouched. Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse. Selecting this would solve a neighboring problem instead.

 

Question 2

Fabrikam wants Resource Manager to update resources present in its template but not delete other resources from the target resource group. Which mode best fits? Choose ONE.

  1. Use complete deployment mode only when undeclared resources must be removed
  2. Use incremental deployment behavior
  3. Run the Resource Manager what-if operation
  4. Export a template from the current resource group or selected resources

Correct Answer: B

Correct Answer

 

 

Answer B is correct because For Fabrikam, the required behavior is: declared resources should be updated while unrelated existing resources in the resource group remain untouched. Incremental deployment updates resources declared in the template while leaving unrelated existing resources in the target scope, making it the safer general deployment behavior. That is why this option fits.

Incorrect Answers

 

Answer A is incorrect because Complete mode can delete resources in the target resource group that are not represented in the deployment, so it should be used deliberately when that destructive reconciliation is intended. That feature is valid Azure functionality, but The requirement for Fabrikam is: declared resources should be updated while unrelated existing resources in the resource group remain untouched.

Answer C is incorrect because For Fabrikam, the required behavior is: declared resources should be updated while unrelated existing resources in the resource group remain untouched. The what-if operation previews expected resource changes before deployment, helping an administrator detect unintended creates, deletes, or property modifications without applying them. That is not the behavior this scenario calls for.

Answer D is incorrect because Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse. That does not line up with the stated constraint for Fabrikam: declared resources should be updated while unrelated existing resources in the resource group remain untouched.

 

Question 3

Northwind Traders is deploying a partial infrastructure definition and explicitly does not want undeclared resources removed. Which deployment behavior is appropriate? Choose ONE.

  1. Use complete deployment mode only when undeclared resources must be removed
  2. Run the Resource Manager what-if operation
  3. Use incremental deployment behavior
  4. Export a template from the current resource group or selected resources

Correct Answer: C

Correct Answer

 

 

Answer C is correct because Incremental deployment updates resources declared in the template while leaving unrelated existing resources in the target scope, making it the safer general deployment behavior. The technical fit for Northwind Traders is direct because the requirement is: declared resources should be updated while unrelated existing resources in the resource group remain untouched.

Incorrect Answers

 

Answer A is incorrect because For Northwind Traders, the deciding constraint is: declared resources should be updated while unrelated existing resources in the resource group remain untouched. Complete mode can delete resources in the target resource group that are not represented in the deployment, so it should be used deliberately when that destructive reconciliation is intended. This solves a different operational need.

Answer B is incorrect because The what-if operation previews expected resource changes before deployment, helping an administrator detect unintended creates, deletes, or property modifications without applying them. Even though the feature can be useful, it does not provide The required outcome for Northwind Traders: declared resources should be updated while unrelated existing resources in the resource group remain untouched.

Answer D is incorrect because The Northwind Traders scenario is testing this requirement: declared resources should be updated while unrelated existing resources in the resource group remain untouched. Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse. This option does not provide that result.

 

Question 4

Adventure Works has a shared resource group and a template that owns only some resources. Which deployment mode minimizes risk to the others? Choose ONE.

  1. Use complete deployment mode only when undeclared resources must be removed
  2. Run the Resource Manager what-if operation
  3. Export a template from the current resource group or selected resources
  4. Use incremental deployment behavior

Correct Answer: D

Correct Answer

 

 

Answer D is correct because Incremental deployment updates resources declared in the template while leaving unrelated existing resources in the target scope, making it the safer general deployment behavior. For Adventure Works, that directly matches the stated requirement: declared resources should be updated while unrelated existing resources in the resource group remain untouched.

Incorrect Answers

 

Answer A is incorrect because Complete mode can delete resources in the target resource group that are not represented in the deployment, so it should be used deliberately when that destructive reconciliation is intended. It misses the key condition in the Adventure Works case: declared resources should be updated while unrelated existing resources in the resource group remain untouched.

Answer B is incorrect because Adventure Works must satisfy this condition: declared resources should be updated while unrelated existing resources in the resource group remain untouched. The what-if operation previews expected resource changes before deployment, helping an administrator detect unintended creates, deletes, or property modifications without applying them. This option is aimed at another design goal.

Answer C is incorrect because Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse. Adventure Works needs a different capability; the required result is: declared resources should be updated while unrelated existing resources in the resource group remain untouched.

 

Question 5

Tailspin Toys changed several resource properties manually after deployment and now wants an autogenerated template reflecting the current resource group state. Which export option should it choose? Choose ONE.

  1. Export a template from the current resource group or selected resources
  2. Export the template from deployment history
  3. Run az bicep decompile against the ARM JSON template
  4. Run the Resource Manager what-if operation

Correct Answer: A

Correct Answer

 

 

Answer A is correct because The required outcome for Tailspin Toys is: the generated template must reflect the current state of existing resources including post-deployment manual changes. Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse. This option provides that capability.

Incorrect Answers

 

Answer B is incorrect because The requirement for Tailspin Toys is: the generated template must reflect the current state of existing resources including post-deployment manual changes. Exporting from deployment history retrieves the ARM JSON template that was actually used for that deployment, making it the appropriate choice when the original deployment definition is required. The option therefore targets a different Azure capability.

Answer C is incorrect because The Bicep decompile command converts an ARM JSON template into a Bicep starting point; the generated Bicep should be reviewed because decompilation is not guaranteed to reproduce ideal source code. The mismatch for Tailspin Toys is the stated requirement: the generated template must reflect the current state of existing resources including post-deployment manual changes.

Answer D is incorrect because The Tailspin Toys design calls for this outcome: the generated template must reflect the current state of existing resources including post-deployment manual changes. The what-if operation previews expected resource changes before deployment, helping an administrator detect unintended creates, deletes, or property modifications without applying them. This choice addresses another concern.

 

Question 6

Woodgrove Bank inherited resources with no known original template and needs a starting point generated from the resources as they exist now. What should it export? Choose ONE.

  1. Export the template from deployment history
  2. Export a template from the current resource group or selected resources
  3. Run az bicep decompile against the ARM JSON template
  4. Run the Resource Manager what-if operation

Correct Answer: B

Correct Answer

 

 

Answer B is correct because Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse. The deciding condition in The Woodgrove Bank scenario is: the generated template must reflect the current state of existing resources including post-deployment manual changes. This option fits that condition.

Incorrect Answers

 

Answer A is incorrect because Exporting from deployment history retrieves the ARM JSON template that was actually used for that deployment, making it the appropriate choice when the original deployment definition is required. This would not resolve the stated requirement for Woodgrove Bank: the generated template must reflect the current state of existing resources including post-deployment manual changes.

Answer C is incorrect because In the Woodgrove Bank case, the required result is: the generated template must reflect the current state of existing resources including post-deployment manual changes. The Bicep decompile command converts an ARM JSON template into a Bicep starting point; the generated Bicep should be reviewed because decompilation is not guaranteed to reproduce ideal source code. Selecting this would solve a neighboring problem instead.

Answer D is incorrect because The what-if operation previews expected resource changes before deployment, helping an administrator detect unintended creates, deletes, or property modifications without applying them. It is not the appropriate selection for Woodgrove Bank; the scenario requires: the generated template must reflect the current state of existing resources including post-deployment manual changes.

 

Question 7

Proseware wants to select several existing resources and generate an ARM or Bicep representation of their current configuration. Which action should it use? Choose ONE.

  1. Export the template from deployment history
  2. Run az bicep decompile against the ARM JSON template
  3. Export a template from the current resource group or selected resources
  4. Run the Resource Manager what-if operation

Correct Answer: C

Correct Answer

 

 

Answer C is correct because The key requirement for Proseware is: the generated template must reflect the current state of existing resources including post-deployment manual changes. Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse.

Incorrect Answers

 

Answer A is incorrect because For Proseware, the required behavior is: the generated template must reflect the current state of existing resources including post-deployment manual changes. Exporting from deployment history retrieves the ARM JSON template that was actually used for that deployment, making it the appropriate choice when the original deployment definition is required. That is not the behavior this scenario calls for.

Answer B is incorrect because The Bicep decompile command converts an ARM JSON template into a Bicep starting point; the generated Bicep should be reviewed because decompilation is not guaranteed to reproduce ideal source code. That does not line up with the stated constraint for Proseware: the generated template must reflect the current state of existing resources including post-deployment manual changes.

Answer D is incorrect because The what-if operation previews expected resource changes before deployment, helping an administrator detect unintended creates, deletes, or property modifications without applying them. For Proseware, however, that does not meet the stated requirement: the generated template must reflect the current state of existing resources including post-deployment manual changes.

 

Question 8

Litware needs a snapshot-style infrastructure template based on the current state of a resource group rather than the original deployment definition. What should it do? Choose ONE.

  1. Export the template from deployment history
  2. Run az bicep decompile against the ARM JSON template
  3. Run the Resource Manager what-if operation
  4. Export a template from the current resource group or selected resources

Correct Answer: D

Correct Answer

 

 

Answer D is correct because Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse. This aligns with The Litware scenario, whose requirement is: the generated template must reflect the current state of existing resources including post-deployment manual changes.

Incorrect Answers

 

Answer A is incorrect because Exporting from deployment history retrieves the ARM JSON template that was actually used for that deployment, making it the appropriate choice when the original deployment definition is required. Even though the feature can be useful, it does not provide The required outcome for Litware: the generated template must reflect the current state of existing resources including post-deployment manual changes.

Answer B is incorrect because The Litware scenario is testing this requirement: the generated template must reflect the current state of existing resources including post-deployment manual changes. The Bicep decompile command converts an ARM JSON template into a Bicep starting point; the generated Bicep should be reviewed because decompilation is not guaranteed to reproduce ideal source code. This option does not provide that result.

Answer C is incorrect because The required outcome for Litware is: the generated template must reflect the current state of existing resources including post-deployment manual changes. The what-if operation previews expected resource changes before deployment, helping an administrator detect unintended creates, deletes, or property modifications without applying them. This capability does not satisfy that condition.

 

Question 9

Wingtip Toys must recover the template that was actually submitted for a named resource-group deployment last month. Which export source should it use? Choose ONE.

  1. Export the template from deployment history
  2. Export a template from the current resource group or selected resources
  3. Run the Resource Manager what-if operation
  4. Run az bicep decompile against the ARM JSON template

Correct Answer: A

Correct Answer

 

 

Answer A is correct because For Wingtip Toys, the technical constraint is: the administrator needs the exact ARM JSON definition that was used for a specific historical deployment. Exporting from deployment history retrieves the ARM JSON template that was actually used for that deployment, making it the appropriate choice when the original deployment definition is required.

Incorrect Answers

 

Answer B is incorrect because Wingtip Toys must satisfy this condition: the administrator needs the exact ARM JSON definition that was used for a specific historical deployment. Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse. This option is aimed at another design goal.

Answer C is incorrect because The what-if operation previews expected resource changes before deployment, helping an administrator detect unintended creates, deletes, or property modifications without applying them. Wingtip Toys needs a different capability; the required result is: the administrator needs the exact ARM JSON definition that was used for a specific historical deployment.

Answer D is incorrect because The Bicep decompile command converts an ARM JSON template into a Bicep starting point; the generated Bicep should be reviewed because decompilation is not guaranteed to reproduce ideal source code. The Wingtip Toys scenario instead calls for this outcome: the administrator needs the exact ARM JSON definition that was used for a specific historical deployment.

 

Question 10

  1. Datum needs the original ARM JSON from deployment history, not a snapshot of resources after later manual changes. What should the administrator export? Choose ONE.
  2. Export a template from the current resource group or selected resources
  3. Export the template from deployment history
  4. Run the Resource Manager what-if operation
  5. Run az bicep decompile against the ARM JSON template

Correct Answer: B

Correct Answer

 

 

Answer B is correct because The A. Datum scenario turns on this requirement: the administrator needs the exact ARM JSON definition that was used for a specific historical deployment. Exporting from deployment history retrieves the ARM JSON template that was actually used for that deployment, making it the appropriate choice when the original deployment definition is required. That makes this the appropriate choice.

Incorrect Answers

 

Answer A is incorrect because Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse. The mismatch for A. Datum is the stated requirement: the administrator needs the exact ARM JSON definition that was used for a specific historical deployment.

Answer C is incorrect because The A. Datum design calls for this outcome: the administrator needs the exact ARM JSON definition that was used for a specific historical deployment. The what-if operation previews expected resource changes before deployment, helping an administrator detect unintended creates, deletes, or property modifications without applying them. This choice addresses another concern.

Answer D is incorrect because The Bicep decompile command converts an ARM JSON template into a Bicep starting point; the generated Bicep should be reviewed because decompilation is not guaranteed to reproduce ideal source code. That feature is valid Azure functionality, but The requirement for A. Datum is: the administrator needs the exact ARM JSON definition that was used for a specific historical deployment.

 

Question 11

Fourth Coffee wants to retrieve a previously executed deployment template exactly as it was deployed. Which Resource Manager export option is appropriate? Choose ONE.

  1. Export a template from the current resource group or selected resources
  2. Run the Resource Manager what-if operation
  3. Export the template from deployment history
  4. Run az bicep decompile against the ARM JSON template

Correct Answer: C

Correct Answer

 

 

Answer C is correct because Exporting from deployment history retrieves the ARM JSON template that was actually used for that deployment, making it the appropriate choice when the original deployment definition is required. The capability is relevant to Fourth Coffee because the required outcome is: the administrator needs the exact ARM JSON definition that was used for a specific historical deployment.

Incorrect Answers

 

Answer A is incorrect because In the Fourth Coffee case, the required result is: the administrator needs the exact ARM JSON definition that was used for a specific historical deployment. Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse. Selecting this would solve a neighboring problem instead.

Answer B is incorrect because The what-if operation previews expected resource changes before deployment, helping an administrator detect unintended creates, deletes, or property modifications without applying them. It is not the appropriate selection for Fourth Coffee; the scenario requires: the administrator needs the exact ARM JSON definition that was used for a specific historical deployment.

Answer D is incorrect because For Fourth Coffee, the deciding constraint is: the administrator needs the exact ARM JSON definition that was used for a specific historical deployment. The Bicep decompile command converts an ARM JSON template into a Bicep starting point; the generated Bicep should be reviewed because decompilation is not guaranteed to reproduce ideal source code. This solves a different operational need.

 

Question 12

Lucerne Publishing is auditing a deployment and needs the template stored with that deployment record. Where should it export from? Choose ONE.

  1. Export a template from the current resource group or selected resources
  2. Run the Resource Manager what-if operation
  3. Run az bicep decompile against the ARM JSON template
  4. Export the template from deployment history

Correct Answer: D

Correct Answer

 

 

Answer D is correct because The scenario for Lucerne Publishing requires this result: the administrator needs the exact ARM JSON definition that was used for a specific historical deployment. Exporting from deployment history retrieves the ARM JSON template that was actually used for that deployment, making it the appropriate choice when the original deployment definition is required. This directly addresses it.

Incorrect Answers

 

Answer A is incorrect because Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse. That does not line up with the stated constraint for Lucerne Publishing: the administrator needs the exact ARM JSON definition that was used for a specific historical deployment.

Answer B is incorrect because The what-if operation previews expected resource changes before deployment, helping an administrator detect unintended creates, deletes, or property modifications without applying them. For Lucerne Publishing, however, that does not meet the stated requirement: the administrator needs the exact ARM JSON definition that was used for a specific historical deployment.

Answer C is incorrect because The Bicep decompile command converts an ARM JSON template into a Bicep starting point; the generated Bicep should be reviewed because decompilation is not guaranteed to reproduce ideal source code. It misses the key condition in the Lucerne Publishing case: the administrator needs the exact ARM JSON definition that was used for a specific historical deployment.

 

Question 13

Contoso has a large ARM JSON template and wants to begin maintaining it as Bicep. Which command should it run first? Choose ONE.

  1. Run az bicep decompile against the ARM JSON template
  2. Export a template from the current resource group or selected resources
  3. Run a resource-group-scope deployment
  4. Use a Bicep module for the reusable component

Correct Answer: A

Correct Answer

 

 

Answer A is correct because The Bicep decompile command converts an ARM JSON template into a Bicep starting point; the generated Bicep should be reviewed because decompilation is not guaranteed to reproduce ideal source code. It is the suitable choice for Contoso; the deciding requirement is: an existing ARM JSON template must be converted into a Bicep starting point.

Incorrect Answers

 

Answer B is incorrect because The Contoso scenario is testing this requirement: an existing ARM JSON template must be converted into a Bicep starting point. Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse. This option does not provide that result.

Answer C is incorrect because The required outcome for Contoso is: an existing ARM JSON template must be converted into a Bicep starting point. A resource-group deployment targets resources to a specific resource group and can be executed with commands such as az deployment group create using the template or Bicep file. This capability does not satisfy that condition.

Answer D is incorrect because The requirement for Contoso is: an existing ARM JSON template must be converted into a Bicep starting point. Bicep modules let a deployment compose reusable infrastructure definitions and pass parameters to them, which is preferable to duplicating the same resource block across files. The option therefore targets a different Azure capability.

 

Question 14

Fabrikam exported an ARM template as main.json and now wants an equivalent Bicep file to review and refactor. What should it use? Choose ONE.

  1. Export a template from the current resource group or selected resources
  2. Run az bicep decompile against the ARM JSON template
  3. Run a resource-group-scope deployment
  4. Use a Bicep module for the reusable component

Correct Answer: B

Correct Answer

 

 

Answer B is correct because For Fabrikam, the required behavior is: an existing ARM JSON template must be converted into a Bicep starting point. The Bicep decompile command converts an ARM JSON template into a Bicep starting point; the generated Bicep should be reviewed because decompilation is not guaranteed to reproduce ideal source code. That is why this option fits.

Incorrect Answers

 

Answer A is incorrect because Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse. Fabrikam needs a different capability; the required result is: an existing ARM JSON template must be converted into a Bicep starting point.

Answer C is incorrect because A resource-group deployment targets resources to a specific resource group and can be executed with commands such as az deployment group create using the template or Bicep file. The Fabrikam scenario instead calls for this outcome: an existing ARM JSON template must be converted into a Bicep starting point.

Answer D is incorrect because Bicep modules let a deployment compose reusable infrastructure definitions and pass parameters to them, which is preferable to duplicating the same resource block across files. This would not resolve the stated requirement for Fabrikam: an existing ARM JSON template must be converted into a Bicep starting point.

 

Question 15

Northwind Traders is modernizing infrastructure-as-code from ARM JSON to Bicep and needs an automated initial conversion. Which operation is designed for this? Choose ONE.

  1. Export a template from the current resource group or selected resources
  2. Run a resource-group-scope deployment
  3. Run az bicep decompile against the ARM JSON template
  4. Use a Bicep module for the reusable component

Correct Answer: C

Correct Answer

 

 

Answer C is correct because The Bicep decompile command converts an ARM JSON template into a Bicep starting point; the generated Bicep should be reviewed because decompilation is not guaranteed to reproduce ideal source code. The technical fit for Northwind Traders is direct because the requirement is: an existing ARM JSON template must be converted into a Bicep starting point.

Incorrect Answers

 

Answer A is incorrect because The Northwind Traders design calls for this outcome: an existing ARM JSON template must be converted into a Bicep starting point. Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse. This choice addresses another concern.

Answer B is incorrect because A resource-group deployment targets resources to a specific resource group and can be executed with commands such as az deployment group create using the template or Bicep file. That feature is valid Azure functionality, but The requirement for Northwind Traders is: an existing ARM JSON template must be converted into a Bicep starting point.

Answer D is incorrect because For Northwind Traders, the required behavior is: an existing ARM JSON template must be converted into a Bicep starting point. Bicep modules let a deployment compose reusable infrastructure definitions and pass parameters to them, which is preferable to duplicating the same resource block across files. That is not the behavior this scenario calls for.

 

Question 16

Adventure Works has an exported JSON template and wants Bicep source generated as a starting point. Which Azure CLI/Bicep capability should it use? Choose ONE.

  1. Export a template from the current resource group or selected resources
  2. Run a resource-group-scope deployment
  3. Use a Bicep module for the reusable component
  4. Run az bicep decompile against the ARM JSON template

Correct Answer: D

Correct Answer

 

 

Answer D is correct because The Bicep decompile command converts an ARM JSON template into a Bicep starting point; the generated Bicep should be reviewed because decompilation is not guaranteed to reproduce ideal source code. For Adventure Works, that directly matches the stated requirement: an existing ARM JSON template must be converted into a Bicep starting point.

Incorrect Answers

 

Answer A is incorrect because Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse. It is not the appropriate selection for Adventure Works; the scenario requires: an existing ARM JSON template must be converted into a Bicep starting point.

Answer B is incorrect because For Adventure Works, the deciding constraint is: an existing ARM JSON template must be converted into a Bicep starting point. A resource-group deployment targets resources to a specific resource group and can be executed with commands such as az deployment group create using the template or Bicep file. This solves a different operational need.

Answer C is incorrect because Bicep modules let a deployment compose reusable infrastructure definitions and pass parameters to them, which is preferable to duplicating the same resource block across files. Even though the feature can be useful, it does not provide The required outcome for Adventure Works: an existing ARM JSON template must be converted into a Bicep starting point.

 

Question 17

Tailspin Toys wants a reusable template that accepts an environment name during deployment and returns the created resource ID afterward. Which TWO constructs should it use? Choose TWO.

  1. Define a parameter for the value
  2. Define a variable for the computed internal value
  3. Add an output to the deployment
  4. Use complete deployment mode only when undeclared resources must be removed
  5. Export a template from the current resource group or selected resources

Correct Answers: A, C

Correct Answers

 

 

Answer A is correct because The required outcome for Tailspin Toys is: a parameter accepts the environment value and an output returns the created resource identifier. Template parameters accept values at deployment time and make ARM or Bicep deployments reusable across environments without editing the resource definition for every deployment. This option provides that capability.

Answer C is correct because The Tailspin Toys scenario turns on this requirement: a parameter accepts the environment value and an output returns the created resource identifier. Outputs return selected values after deployment, such as a resource ID, endpoint, or generated name, so downstream automation or an operator can consume the result. That makes this the appropriate choice.

Incorrect Answers

 

Answer B is incorrect because Variables hold reusable expressions or derived values inside a template, which avoids repeating complex expressions when the value does not need to be supplied by the deployer. It misses the key condition in the Tailspin Toys case: a parameter accepts the environment value and an output returns the created resource identifier.

Answer D is incorrect because Tailspin Toys must satisfy this condition: a parameter accepts the environment value and an output returns the created resource identifier. Complete mode can delete resources in the target resource group that are not represented in the deployment, so it should be used deliberately when that destructive reconciliation is intended. This option is aimed at another design goal.

Answer E is incorrect because Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse. Tailspin Toys needs a different capability; the required result is: a parameter accepts the environment value and an output returns the created resource identifier.

 

Question 18

Woodgrove Bank wants to minimize unintended production changes. It needs to preview a Bicep deployment and preserve unrelated resources during the actual deployment. Which TWO choices satisfy the requirement? Choose TWO.

  1. Use complete deployment mode only when undeclared resources must be removed
  2. Run the Resource Manager what-if operation
  3. Export the template from deployment history
  4. Use incremental deployment behavior
  5. Run az bicep decompile against the ARM JSON template

Correct Answers: B, D

Correct Answers

 

 

Answer B is correct because The what-if operation previews expected resource changes before deployment, helping an administrator detect unintended creates, deletes, or property modifications without applying them. The deciding condition in The Woodgrove Bank scenario is: what-if previews changes and incremental behavior preserves unrelated undeclared resources. This option fits that condition.

Answer D is correct because Incremental deployment updates resources declared in the template while leaving unrelated existing resources in the target scope, making it the safer general deployment behavior. The capability is relevant to Woodgrove Bank because the required outcome is: what-if previews changes and incremental behavior preserves unrelated undeclared resources.

Incorrect Answers

 

Answer A is incorrect because The requirement for Woodgrove Bank is: what-if previews changes and incremental behavior preserves unrelated undeclared resources. Complete mode can delete resources in the target resource group that are not represented in the deployment, so it should be used deliberately when that destructive reconciliation is intended. The option therefore targets a different Azure capability.

Answer C is incorrect because Exporting from deployment history retrieves the ARM JSON template that was actually used for that deployment, making it the appropriate choice when the original deployment definition is required. The mismatch for Woodgrove Bank is the stated requirement: what-if previews changes and incremental behavior preserves unrelated undeclared resources.

Answer E is incorrect because The Woodgrove Bank design calls for this outcome: what-if previews changes and incremental behavior preserves unrelated undeclared resources. The Bicep decompile command converts an ARM JSON template into a Bicep starting point; the generated Bicep should be reviewed because decompilation is not guaranteed to reproduce ideal source code. This choice addresses another concern.

 

Question 19

Proseware is converting an existing environment into maintainable infrastructure-as-code. It needs a snapshot of current resource state and then a Bicep starting point from exported ARM JSON. Which TWO actions should it perform? Choose TWO.

  1. Export a template from the current resource group or selected resources
  2. Export the template from deployment history
  3. Run a resource-group-scope deployment
  4. Run az bicep decompile against the ARM JSON template
  5. Use complete deployment mode only when undeclared resources must be removed

Correct Answers: A, D

Correct Answers

 

 

Answer A is correct because The key requirement for Proseware is: exporting current resources captures current state and decompiling ARM JSON creates a Bicep starting point. Exporting from existing resources produces an autogenerated snapshot of current resource state, including changes made after the original deployment, and usually needs cleanup before reuse.

Answer D is correct because The scenario for Proseware requires this result: exporting current resources captures current state and decompiling ARM JSON creates a Bicep starting point. The Bicep decompile command converts an ARM JSON template into a Bicep starting point; the generated Bicep should be reviewed because decompilation is not guaranteed to reproduce ideal source code. This directly addresses it.

Incorrect Answers

 

Answer B is incorrect because Exporting from deployment history retrieves the ARM JSON template that was actually used for that deployment, making it the appropriate choice when the original deployment definition is required. This would not resolve the stated requirement for Proseware: exporting current resources captures current state and decompiling ARM JSON creates a Bicep starting point.

Answer C is incorrect because In the Proseware case, the required result is: exporting current resources captures current state and decompiling ARM JSON creates a Bicep starting point. A resource-group deployment targets resources to a specific resource group and can be executed with commands such as az deployment group create using the template or Bicep file. Selecting this would solve a neighboring problem instead.

Answer E is incorrect because Complete mode can delete resources in the target resource group that are not represented in the deployment, so it should be used deliberately when that destructive reconciliation is intended. It is not the appropriate selection for Proseware; the scenario requires: exporting current resources captures current state and decompiling ARM JSON creates a Bicep starting point.

 

Question 20

Litware has two Bicep resources where one references the other and also needs the deployment pipeline to return the second resource endpoint. Which TWO template behaviors should it use? Choose TWO.

  1. Add an explicit dependsOn only when the dependency cannot be inferred
  2. Reference the other resource symbolically so Bicep infers the dependency
  3. Define a parameter for the value
  4. Use complete deployment mode only when undeclared resources must be removed
  5. Add an output to the deployment

Correct Answers: B, E

Correct Answers

 

 

Answer B is correct because Bicep creates an implicit dependency when one resource references another resource symbol, reducing the need for an explicit dependsOn entry for that relationship. This aligns with The Litware scenario, whose requirement is: the symbolic reference provides an inferred dependency and an output returns the endpoint.

Answer E is correct because Outputs return selected values after deployment, such as a resource ID, endpoint, or generated name, so downstream automation or an operator can consume the result. It is the suitable choice for Litware; the deciding requirement is: the symbolic reference provides an inferred dependency and an output returns the endpoint.

Incorrect Answers

 

Answer A is incorrect because For Litware, the required behavior is: the symbolic reference provides an inferred dependency and an output returns the endpoint. An explicit dependsOn is useful when Resource Manager must enforce ordering and the relationship is not already represented through a symbolic or expression-based resource reference. That is not the behavior this scenario calls for.

Answer C is incorrect because Template parameters accept values at deployment time and make ARM or Bicep deployments reusable across environments without editing the resource definition for every deployment. That does not line up with the stated constraint for Litware: the symbolic reference provides an inferred dependency and an output returns the endpoint.

Answer D is incorrect because Complete mode can delete resources in the target resource group that are not represented in the deployment, so it should be used deliberately when that destructive reconciliation is intended. For Litware, however, that does not meet the stated requirement: the symbolic reference provides an inferred dependency and an output returns the endpoint.

 

Leave a Reply

How It Works

img
Step 1. Choose Exam
on ExamLabs
Download IT Exams Questions & Answers
img
Step 2. Open Exam with
Avanset Exam Simulator
Press here to download VCE Exam Simulator that simulates real exam environment
img
Step 3. Study
& Pass
IT Exams Anywhere, Anytime!