Question 440
A generated Bicep file contains verbose nested JSON expressions. Which administrative action most directly meets the requirement?
Explanation
Correct Answer
Generated Bicep and decompiled JSON expressions can contain redundant nested constructs and implicit dependencies. Refactor into modules and parameters only after preserving resource IDs, conditions, outputs and dependency order; use compile and what-if checks before replacing working infrastructure.
Incorrect Answers
Changing API versions is a compatibility maintenance task; it does not replace needed conversion, parameter or source control workflow.
Decompilation has already happened if the generated Bicep contains verbose nested JSON expressions. Running the same conversion again is not a substitute for reviewing and refactoring the generated source. Simplify expressions/modules after checking that resource IDs, parameter behavior, outputs and dependencies remain equivalent.
Exporting an existing deployment may supply a baseline but it does not improve the verbose, generated Bicep already in hand. The refactor should preserve output resource IDs and dependencies while introducing maintainable modules or parameters.