Prepare and test your skills

Prepare and test your skills

Free sample question, answered and explained below. The AZ-900 Microsoft Azure Fundamentals Exam practice bank has 688 more like it. Try 10 free: instant score, no account.
An organization is designing an Azure Resource Manager (ARM) template to automate the deployment of virtual machines and storage resources across multiple environments. The administrator needs to configure the template so that a new storage account is provisioned only when deploying to a production environment.
Which ARM template element should be used to deploy the resource only when this requirement is met?
The outputs element in an ARM template defines values that are returned after a template deployment successfully finishes. These returned values can include resource identifiers, fully qualified domain names (FQDNs), or connection endpoints.
The outputs section does not dictate whether a resource is created during provisioning. It only executes after resources have been deployed to pass information back to the user, the deployment history, or a calling parent pipeline.
outputs are evaluated and exposed only after resource orchestration is complete.resources array.The organization needed to return the primary endpoint connection string or resource ID of the storage account to Azure Cloud Shell or a CI/CD pipeline after deployment.
Outputs often use conditional functions like if() to prevent evaluating references to resources that were skipped, but they cannot determine whether the resource itself gets deployed.
The copy element in an ARM template is used for resource iteration. It enables administrators to create multiple instances of a resource, variable, property, or output dynamically without duplicating JSON definitions.
The copy element controls iteration and count, not conditional logic. While a copy loop can deploy a specified number of resources (such as deploying three identical virtual machines), it does not serve as the standard boolean switch for conditionally creating a single resource based on an environment type.
count property to determine how many resource copies to provision in parallel or sequentially.copyIndex() helper function to iterate uniquely over resource names and configurations.The scenario required deploying multiple identical storage accounts or virtual network interfaces in a scalable loop using a single resource definition block.
While copy can be combined with expressions to deploy zero resources by setting count to 0, the dedicated and recommended approach for conditional provisioning in ARM templates is the condition element.
The condition element in an Azure Resource Manager (ARM) template is a resource-level property used to control conditional deployments. It accepts an expression that evaluates dynamically to a boolean value (true or false) at runtime during template execution.
condition element to the storage account definition, the template evaluates whether the target environment equals production (e.g., "[equals(parameters('environment'), 'production')]").true, Azure Resource Manager deploys the resource. When it evaluates to false, Azure Resource Manager skips creating the resource.false and is not deployed, Azure Resource Manager automatically removes it from the required dependency graph, allowing dependent resources to proceed without failing.equals(), bool(), and if().The condition element is the built-in declarative mechanism in ARM templates specifically designed to toggle resource provisioning based on parameters or logical expressions without requiring external scripting.
The apiVersion element specifies the version of the Azure REST API provider schema to use when creating or managing a specific resource within an ARM template.
The apiVersion property dictates the API syntax, properties, and capabilities supported by the Azure Resource Provider (such as Microsoft.Storage or Microsoft.Compute). It has no impact on whether a resource is conditionally deployed or skipped.
2025-06-01).The administrator needed to define which specific REST API release and feature set the Microsoft.Storage resource provider should use when interpreting resource configuration properties.
Modifying the apiVersion does not alter deployment sequencing, parallel execution, or whether a resource is created in a given environment.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated