Microsoft AZ-104 Practice Test 35
Question 340
The portal shows a deleted file share but restore is disabled because its soft-delete retention expired. Why?
- Share soft-delete recovery applies only inside the configured retention window.
- Enable a supported Azure Files identity-based authentication method and share-level authorization.
- Increase Blob Storage soft-delete retention after the Azure Files share recovery window has already expired.
- List soft-deleted containers and restore the eligible container by name and version when applicable.
Explanation
Correct Answer
A:A deleted share that exceeds the retention period is not ordinarily recoverable through that feature. An independent backup may be necessary. This matters here because the portal shows a deleted file share but restore is disabled because its soft-delete retention expired. Why.
Incorrect Answers
B:Azure Files can use supported identity integration such as AD DS or Microsoft Entra Kerberos, depending on account and client requirements. This matters here because the portal shows a deleted file share but restore is disabled because its soft-delete retention expired. Why.
C:Azure Files share soft-delete uses its own retention and restore behavior. After its recovery window expires, enabling Blob soft delete cannot recover the deleted file share.
D:Deleted containers are separate from active containers during soft-delete retention. Normal listing may hide recoverable entries. This matters here because the portal shows a deleted file share but restore is disabled because its soft-delete retention expired. Why.
Question 341
A large dataset must be transferred efficiently into Blob Storage from on-premises Linux servers. What Microsoft command-line utility should be used?
- Add an explicitly scoped lifecycle deletion rule for expired blobs where authorized.
- Enable blob versioning and lifecycle policy rules for eligible previous versions.
- Use AzCopy to transfer the data with authenticated source and destination.
- Grant a scoped SAS or appropriate data role constrained to the destination container.
Explanation
Correct Answer
C:AzCopy supports efficient repeatable transfers and suitable parallelism for Azure Storage. It avoids writing a custom high-volume copy client.
Incorrect Answers
A:Archive movement does not delete an object. Retention expiry needs a separate supported delete policy.
B:Versioning provides history, while lifecycle cleanup bounds retained versions under policy. A versioning switch alone can grow storage indefinitely. This matters here because a large dataset must be transferred efficiently into Blob Storage from on-premises Linux servers. What Microsoft….
D:Container-scoped permissions limit an external workflow's access surface. Storage account keys would expose broader authorization.
Question 342
A scheduled AzCopy job copies only part of the intended folder hierarchy. What switch or filter should be checked?
- Inspect file-system ACLs on the target folder as well as the share-level role.
- Inspect recursive copy and include/exclude options for the AzCopy command.
- Create Blob Storage lifecycle management rules with supported age-based tier actions.
- Increase the Azure Files quota even though the destination has space, and leave the AzCopy recursion and include/exclude switches unchanged.
Explanation
Correct Answer
B:AzCopy behavior depends on source paths and recursion or filters. A successful command can still transfer only a subset of intended content.
Incorrect Answers
A:Share-level authorization and folder ACLs are cumulative controls. Access to the share does not automatically grant access to every directory. This matters here because a scheduled AzCopy job copies only part of the intended folder hierarchy. What switch or filter should be checked.
C:Lifecycle management can transition eligible blobs to access tiers and delete objects based on configured rules. Manual browsing is not required.
D:Capacity is not the stated explanation for omitted subfolders. AzCopy copy options determine whether nested paths are traversed and which files match filters; verify the command and logs.
Question 343
An ARM JSON template needs to create four nearly identical public IP resources using a number parameter. Which syntax supports this?
- Add an if condition to the relevant resource or module declaration.
- Use a for expression to generate resources with index-based unique names.
- Decompile the ARM template to Bicep and inspect the generated source.
- Use a resource copy loop with the required count and unique name expression.
Explanation
Correct Answer
D:ARM copy loops generate repeated resource definitions at deployment time. Manually duplicating blocks creates drift.
Incorrect Answers
A:Bicep conditional deployment lets a template include optional resources based on a parameter. Manually deleting source lines is not reusable.
B:Bicep loops create repeated resource instances with parameter-driven counts. Each instance needs a legitimate unique name.
C:Bicep decompilation provides a translation starting point. Generated output can require manual cleanup and validation.
Question 344
A copy loop deploys multiple resources with the same name and fails. What should be fixed?
- Index the relevant array or use each loop item to derive the intended subnet reference.
- Include the copy index or another unique value in the generated resource name.
- Use a for expression to generate resources with index-based unique names.
- Review and parameterize environment references and remove invalid generated properties.
Explanation
Correct Answer
B:Repeated resource instances must have distinct resource identities in their scope. The loop count alone does not generate unique names.
Incorrect Answers
A:Loop inputs can vary by iteration. An unindexed constant can incorrectly attach every NIC to the same subnet. This matters here because a copy loop deploys multiple resources with the same name and fails.
C:Bicep loops create repeated resource instances with parameter-driven counts. Each instance needs a valid unique name. This matters here because a copy loop deploys multiple resources with the same name and fails.
D:Exported templates often contain source-environment identifiers and properties that cannot be redeployed unchanged. Editing and validation are necessary.
Question 345
A team has a legacy ARM JSON template and wants a more maintainable Bicep starting point. Which tool action helps?
- Deploy the existing ARM JSON repeatedly and expect the Azure CLI to convert it into maintainable Bicep source automatically.
- Export the resource group's template and review the generated representation.
- Review and parameterize environment references and remove invalid generated properties.
- Decompile the ARM template to Bicep and inspect the generated source.
Explanation
Correct Answer
D:Bicep decompilation provides a translation starting point. Generated output can require manual cleanup and validation. This matters here because a team has a legacy ARM JSON template and wants a more maintainable Bicep starting point. Which tool action helps.
Incorrect Answers
A:Deployment applies the ARM template but does not refactor its authoring format. Use an appropriate Bicep decompile workflow, then manually inspect and repair the generated source.
B:Template export can capture many existing resource definitions for adaptation. Exports are not guaranteed complete reusable production source.
C:Exported templates often contain source-environment identifiers and properties that cannot be redeployed unchanged. Editing and validation are necessary. This matters here because a team has a legacy ARM JSON template and wants a more maintainable Bicep starting point. Which tool action helps.
Question 346
The decompiler output contains warnings and awkward expressions but compiles. What is the recommended next step?
- Change a normal resource declaration to a correctly scoped existing resource declaration where appropriate.
- Treat a clean what-if preview as proof that decompiled Bicep contains no warnings or maintainability defects.
- Review resource semantics and run Bicep lint or what-if before production deployment.
- Add new symbolic-resource dependencies solely to silence decompiler warnings without reviewing the generated Bicep semantics.
Explanation
Correct Answer
C:A conversion pass does not prove that generated resources preserve operational intent. Validation and human review remain important.
Incorrect Answers
A:A normal declaration describes desired deployment state. An existing declaration is the Bicep mechanism for referencing resources not created by this file.
B:Even when an infrastructure diff is acceptable, decompiled expressions and unsupported properties may need review. Run linting and semantic inspection rather than relying only on predicted changes.
D:Declaring dependencies cannot prove that a decompiled resource definition retains the intended API properties or deployment behavior. Inspect decompiler warnings and validate with Bicep lint and what-if.
Question 347
A Bicep module must refer to a storage account already provisioned by another team without redeploying it. Which resource declaration applies?
- Run what-if and redeclare the existing storage account as a new resource in the same Bicep file.
- Declare the storage account with the existing keyword and correct scope.
- Add an if condition to the relevant resource or module declaration.
- Declare a location parameter and reference it in resource properties.
Explanation
Correct Answer
B:The existing modifier references a pre-existing resource and can expose its properties without provisioning a replacement.
Incorrect Answers
A:What-if can flag unexpected creation but does not turn a resource into a reference. A correctly scoped existing declaration is needed to avoid managing another team's account.
C:Bicep conditional deployment lets a template include optional resources based on a parameter. Manually deleting source lines is not reusable. This matters here because a Bicep module must refer to a storage account already provisioned by another team without redeploying it. Which….
D:Parameters separate deployment-time choices from reusable resource definitions. Hard-coded locations require editing source for each environment. This matters here because a Bicep module must refer to a storage account already provisioned by another team without redeploying it. Which….
Question 348
A VM uses two managed data disks, but throughput does not improve after upgrading their individual tiers. What additional cap matters?
- Disable password authentication under approved access policy and limit SSH ingress through NSG or Bastion.
- Check the VM size's aggregate disk IOPS and throughput limits.
- Upgrade only the managed disks again without checking the aggregate storage caps on the VM size.
- Expand both guest filesystems and assume that removes the VM size's aggregate uncached disk throughput cap.
Explanation
Correct Answer
B:Disk performance can be capped by both individual disk SKUs and total VM throughput. Faster disks cannot exceed the host capability. This matters here because a VM uses two managed data disks, but throughput does not improve after upgrading their individual tiers. What….
Incorrect Answers
A:Key authentication alone does not prohibit password guessing if the daemon still accepts passwords. Network exposure should also be narrowed. This matters here because a VM uses two managed data disks, but throughput does not improve after upgrading their individual tiers. What….
C:A larger disk tier cannot overcome the attached VM size’s aggregate IOPS and throughput limits. Compare those VM-level ceilings before spending on another disk upgrade.
D:Guest filesystem expansion changes capacity available to the OS, not the VM SKU's aggregate IOPS or throughput ceiling. Compare both disk-tier limits and VM-level storage performance before upgrading again.
Question 349
The average disk throughput is below the disk SKU rating while VM uncached IOPS is saturated. Where is the bottleneck?
- Inspect VM-level storage performance limits rather than assuming the disk tier is undersized.
- Keep increasing the disks’ advertised IOPS ratings without examining the VM’s uncached throughput limits.
- Upgrade only the managed disk tier while retaining the VM size already capped at its uncached IOPS limit.
- Add an HTTP health probe to the VM and assume it increases the VM size’s aggregate uncached disk IOPS ceiling.
Explanation
Correct Answer
A:The VM host's aggregate caps can limit total performance independently of an individual disk's maximum particularations.
Incorrect Answers
B:Disk SKU ratings alone cannot overcome the VM size’s own uncached disk throughput limit. The reported saturation points to the VM-level performance ceiling.
C:Increasing a disk's advertised IOPS cannot bypass the host VM's uncached I/O ceiling. Compare VM-level IOPS and throughput caps with disk counters, then resize the VM if the host—not the disk—is saturated.
D:Health probes judge endpoint availability, not disk-subsystem throughput. A VM can saturate its own aggregate storage IOPS limit even when individual managed disks have unused capacity.
Question 350
An administrator needs to increase a managed data disk's capacity without replacing a VM. What operations are required?
- Plan a region migration using Azure Resource Mover or appropriate replication and recovery tooling.
- Resize the VM first and assume the existing data disk will automatically grow without changing its provisioned size.
- Attach an appropriately sized persistent Azure managed data disk and mount it in the guest.
- Increase the managed disk size and expand the guest partition or filesystem appropriately.
Explanation
Correct Answer
D:Azure disk size changes allocate block capacity, but the guest OS may need a partition/filesystem extension to use it.
Incorrect Answers
A:Cross-region VM relocation involves data transfer and dependencies; it is not a simple resource-group reassignment.
B:Changing compute capacity does not enlarge an Azure managed disk. Increase the disk resource's provisioned capacity and then extend the partition and filesystem inside the guest using a supported procedure.
C:Managed disks provide durable Azure storage tied to the VM, whereas temporary disks can lose data on deallocation or host events. This matters here because an administrator needs to increase a managed data disk's capacity without replacing a VM. What operations are required.