McAfee-Secured Website

Exam Bundle

Exam Code: AZ-104

Exam Name Microsoft Azure Administrator

Certification Provider: Microsoft

Corresponding Certification: Microsoft Certified: Azure Administrator Associate

Microsoft AZ-104 Bundle $44.99

100% Microsoft AZ-104 Guaranteed Success With Testking Training Materials

Get Real AZ-104 Exam Questions & Expert Verified Answers as Experienced on the Real Exam!

  • Questions & Answers

    AZ-104 Questions & Answers

    606 Questions & Answers

    The ultimate exam preparation tool, Questions & Answers mirrors the actual AZ-104 exam while allowing you to hone and measure every aspect of your test-taking ability.

  • AZ-104 Video Course

    AZ-104 Video Course

    132 Video Lectures

    AZ-104 Video Course is developed by Microsoft Professionals to help you pass the AZ-104 exam.

    Description

    This course will improve your knowledge and skills required to pass Microsoft Azure Administrator exam.
  • Study Guide

    AZ-104 Study Guide

    458 PDF Pages

    Developed by industry experts, this 458-page guide spells out in painstaking detail all of the information you need to ace AZ-104 exam.

Microsoft Azure Administrator (AZ-104) Practice Tests

Satisfaction Guaranteed

Money Back Guarantee

Testking provides hassle-free money back guarantee with our products. That is because we have 100% trust in the abilities of our professional and experience product team, and our record is a proof of that.

99.6% PASS RATE
Total Cost: $194.97
Bundle Price: $149.98

Purchase Individually

  • Questions & Answers

    Questions & Answers

    606 Questions

    $124.99
  • AZ-104 Video Course

    Video Course

    132 Video Lectures

    $39.99
  • Study Guide

    Study Guide

    458 PDF Pages

    $29.99

Microsoft AZ-104 Practice Test 42

Question 410

An infrastructure template takes a department prefix from deployment input and computes a standardized name suffix internally. What distinction is appropriate?

  1. Use only a hard-coded variable for the department prefix, requiring a template edit for every environment.
  2. Use a parameter for the external department prefix and a variable or expression for the derived name.
  3. Define the computed suffix as a separate required parameter so every caller manually reconstructs it.
  4. Store the computed resource name in a parameter file and the template can never calculate it.

Explanation

Correct Answer

B:

Parameters expose intended inputs while variables derive internal values within the template. This reduces unnecessary user-supplied configuration.

Incorrect Answers

A:

Hard-coding the external input undermines reuse when the prefix should be supplied for each deployment.

C:

Derived values are more reliably generated inside the template than duplicated as mandatory external input.

D:

Bicep supports expressions and variables for internal derived values; a fixed parameter-file name needlessly duplicates logic.

Question 411

A scheduled application on an Azure VM must read Azure Key Vault secrets without an app registration secret stored on the VM disk. What should be configured?

  1. Store the Key Vault secret itself in VM Custom Script Extension settings and share the settings with every operator.
  2. Enable a VM system-assigned identity without granting it any Key Vault data permissions.
  3. Assign the operator an Azure Owner role and have the VM use the operator personal access token indefinitely.
  4. Enable a supported managed identity on the VM and grant narrowly scoped Key Vault data access to that principal.

Explanation

Correct Answer

D:

Managed identity can provide token-based workload access to Azure resources without app-maintained client secrets. Authorization still needs a vault role.

Incorrect Answers

A:

Embedding the protected value in VM configuration reintroduces credential handling and possible unintended disclosure.

B:

Identity existence alone does not authorize reading Key Vault secrets; the workload principal needs a scoped data role or access policy.

C:

Human owner privileges and long-lived personal tokens are not an appropriate passwordless workload identity pattern.

Question 412

A VM's OS disk becomes corrupted, but the resource's networking and identity configuration should be preserved. The team has a repaired compatible managed OS disk. Which administrative operation can help?

  1. Use a supported OS disk swap workflow to attach the repaired disk while retaining the VM resource configuration.
  2. Create another VM and migrate every NIC and identity resource, even though an eligible disk swap could retain the VM.
  3. Delete the VM and all attached disks before restoring anything.
  4. Attach the repaired disk as a data disk and the existing corrupted OS disk will boot from it without an OS disk swap.

Explanation

Correct Answer

A:

OS disk swap can replace the boot disk for supported VMs without rebuilding every Azure resource attachment. Compatibility and downtime must be planned.

Incorrect Answers

B:

A full replacement introduces unnecessary resource changes compared with a compatible OS disk swap.

C:

Deleting everything destroys configuration and may eliminate needed recovery assets.

D:

Attaching a repaired OS disk only as data does not change the VM boot disk configuration.

Question 413

A VM Scale Set deployment briefly shows more instances than the requested steady-state count during provisioning. Operators think autoscale ignored the limit. Which feature should they inspect?

  1. Reduce the VMSS autoscale maximum below its steady-state instance count and temporary overprovisioned instances cannot exist.
  2. Restrict the VMSS autoscale maximum to the requested steady-state size but leave the scale set overprovisioning behavior unchanged.
  3. Treat the temporarily extra instances as proof that the VMSS maximum setting was ignored, without examining the overprovision flag.
  4. Check whether VMSS overprovisioning was enabled and account for its temporary capacity behavior.

Explanation

Correct Answer

D:

VMSS overprovisioning can temporarily create extra instances to improve deployment success, then remove surplus capacity. It differs from ordinary autoscale target count.

Incorrect Answers

A:

Autoscale limits and provisioning overprovisioning address different behaviors. The temporary extra instances may arise from VMSS overprovisioning during provisioning.

B:

An autoscale maximum limits the intended steady-state capacity, while VMSS provisioning may temporarily overprovision instances. The overprovision setting should be reviewed directly.

C:

VMSS overprovisioning can temporarily create excess instances independent of ordinary autoscale limits.

Question 414

A memory-heavy application is CPU-light. The team wants to select a VM series optimized for higher RAM per vCPU without redesigning the workload. Which sizing approach is appropriate?

  1. Increase the number of managed data disks and this raises the VM memory per vCPU ratio.
  2. Select a compute-optimized size solely because it has the word compute in its description.
  3. Compare supported memory-optimized VM families and regional availability against workload metrics and quotas.
  4. Select a higher vCPU count in the same CPU-optimized family without checking memory-to-vCPU ratios.

Explanation

Correct Answer

C:

Azure VM families differ in vCPU, memory and I/O characteristics. Selection should follow actual bottleneck and regional SKU support.

Incorrect Answers

A:

Storage disk capacity and count do not change a VM size memory-to-CPU configuration.

B:

Compute-optimized families prioritize a different resource balance and may not satisfy memory pressure.

D:

Adding cores alone may not address memory pressure or provide the best RAM-to-vCPU balance.

Question 415

An analytics VM repeatedly reads an immutable dataset from a managed disk, with few or no writes. The team is evaluating supported host caching modes. Which option can improve read latency when compatible?

  1. Use ReadWrite caching for every transactional log disk by default regardless of consistency requirements.
  2. Consider a ReadOnly host caching mode for the managed data disk after validating workload and disk support.
  3. Set the managed disk SKU to Premium and ReadOnly host caching is automatically enabled.
  4. Enable guest OS file caching and it is exactly the Azure managed disk ReadOnly host cache setting.

Explanation

Correct Answer

B:

ReadOnly caching can accelerate repeated reads for suitable managed disks. Compatibility and consistency constraints must be checked.

Incorrect Answers

A:

ReadWrite caching can be unsafe for particular write-sensitive workloads and is not a universal setting.

C:

Disk performance tier and host caching mode are distinct settings; the desired cache mode must be supported and explicitly checked.

D:

Guest caches and Azure host-level managed disk caching are different layers and require different configuration.

Question 416

An application runs Container Apps in single revision mode. The team expects several previous revisions to receive traffic concurrently after each update. What should the operator explain?

  1. Assign an equal traffic weight to two revisions while leaving the app in single revision mode.
  2. Grant both revision images AcrPull permission and this enables simultaneous active traffic routing.
  3. Single revision mode ordinarily routes active traffic to one revision; multiple revision mode is needed for simultaneous version traffic splits.
  4. Every new revision automatically receives 50 percent of traffic regardless of mode.

Explanation

Correct Answer

C:

Revision mode controls how versions coexist and receive traffic. Multiple mode supports controlled canary weights when configured.

Incorrect Answers

A:

Single revision mode does not support simultaneously serving multiple active revision weights as required.

B:

Registry permissions allow image retrieval, not changing Container Apps revision mode.

D:

Automatic fixed traffic splits are not guaranteed under single revision mode.

Question 417

A global application pulls private OCI images from multiple regions and wants local registry replicas with a single logical registry name. Which Azure Container Registry capability should be considered if its tier supports it?

  1. Enable zone redundancy for the registry in its primary Azure region and this automatically creates additional registry replicas in remote Azure regions.
  2. Create separate registries with the same DNS login name in multiple regions, without using registry geo-replication.
  3. Configure geo-replication on each Container App instead of on the image registry.
  4. Enable supported ACR geo-replication to the needed regions, validating plan tier and network restrictions.

Explanation

Correct Answer

D:

ACR geo-replication can place supported registry replicas in multiple regions for resilient image distribution. Availability depends on registry tier and regional support.

Incorrect Answers

A:

Zone redundancy improves resilience inside one region and does not establish geographically separate ACR replicas. Supported ACR geo-replication is the requested regional distribution feature.

B:

Independently named registries do not preserve one logical ACR registry with automatic regional replicas.

C:

Application deployment geography is distinct from distributing registry images through ACR regional replicas.

Question 418

A containerized report should run every morning at 03:00, produce a file and terminate; no request-facing HTTP endpoint is necessary. Which Container Apps workload construct fits?

  1. Configure a scheduled Container Apps job with an appropriate cron trigger, resources and credentials.
  2. Use a Container App with public ingress and set minReplicas to one, treating an HTTP listener as the required scheduler.
  3. Configure an always-running Container App with no ingress and rely on its autoscaler to start a job at 03:00 each morning.
  4. Configure a KEDA HTTP scale rule with a cron expression on a non-HTTP job that has no app endpoint.

Explanation

Correct Answer

A:

Container Apps jobs support scheduled short-lived executions rather than a continuously available web service. Job outcome and retry policy need monitoring.

Incorrect Answers

B:

An always-on request service is not necessary for a cron-triggered short-lived report job.

C:

Event-driven app replica scaling is not a cron-triggered Container Apps job execution; a scheduled job is the purpose-built primitive for run-and-exit tasks.

D:

The purpose-built scheduled Container Apps job trigger is distinct from HTTP app replica scaling.

Question 419

A container runs an irreversible one-time database migration in Azure Container Instances. Its process may terminate with a nonzero exit code after partially updating records. The team must guarantee that the migration cannot rerun before an operator inspects the result. Which statement about ACI restart policies is accurate?

  1. Choose OnFailure because it never restarts a failed process.
  2. Choose Always because it prevents retries after crashes.
  3. Choose a restart policy of OnCompletion to ensure a one-time migration never reruns.
  4. No built-in ACI restart policy guarantees zero restarts following a nonzero process exit; design explicit execution control and idempotent recovery.

Explanation

Correct Answer

D:

Microsoft documents that Never prevents automatic restart after successful exit code 0, but an ACI container with a nonzero exit may still be restarted by the platform. An irreversible operation requires a separate operational safety design rather than relying on Never for a strict no-retry guarantee.

Incorrect Answers

A:

OnFailure retries failed runs, contrary to the stated no-auto-retry requirement.

B:

Always restarts regardless of exit result and may repeat irreversible changes.

C:

ACI supports Never, OnFailure and Always restart policies, not a separate OnCompletion option.

Question 420

A CI identity should publish images only under one ACR repository namespace instead of modifying every repository. Which authorization pattern should be evaluated where supported?

  1. Use supported repository-scoped permissions or conditions granting push only to the intended repository.
  2. Grant registry-wide owner privileges so the pipeline never receives a permission error.
  3. Disable ACR authentication and allow anyone to push any image.
  4. Use an Azure role assignment with an unrestricted AcrPush action at registry scope but the repository name in the CI project automatically restricts it.

Explanation

Correct Answer

A:

Scoped repository authorization reduces the effect of a compromised publisher credential. Role mode and repository feature support need verification.

Incorrect Answers

B:

Registry-wide administrative rights exceed the requested single-repository ability.

C:

Anonymous push creates an uncontrolled supply chain entry point.

D:

Without repository-scoped conditions or tokens, registry-wide push rights are not limited by the CI project name.