az-104 Practice Question 1724
Exam: az-104
Domain: Deploy and manage Azure compute resources
Topic: Automate deployment of resources by using templates
Difficulty: medium
A company needs to automate the deployment of a web application across multiple Azure regions. They want to use ARM templates and Bicep to manage the deployment. How should they structure their ARM/Bicep files to ensure that the web application is deployed consistently across all regions, while also allowing for regional-specific configurations (e.g., different storage accounts)?
Answer Options
A
Use a single ARM/Bicep file for all regions without any regional-specific configurations.
B
Define parameters for region-specific resources and use variables or resource groups to manage common resources.
C
Create separate ARM/Bicep files for each region and manually update them for changes.
D
Use inline templates to define the entire deployment for each region separately.
Correct Answer
B: Define parameters for region-specific resources and use variables or resource groups to manage common resources.
Explanation
The correct answer is B. To achieve consistent deployment across multiple regions while allowing for regional-specific configurations, you should use parameters in your ARM/Bicep files to define region-specific resources (like storage accounts) and use variables or resource groups to manage common resources. Option A is incorrect because it suggests using a single ARM/Bicep file for all regions, which would not allow for regional-specific configurations. Option C is incorrect because it implies using separate ARM/Bicep files for each region, which is not efficient and can lead to maintenance issues. Option D is incorrect because it suggests using inline templates, which are not suitable for managing complex deployments with regional variations.