WebMagicInformatica
AZ-104 practice questions

AZ-104 practice questions: Deploy and manage Azure compute resources

6 free questions on Deploy and manage Azure compute resources, 24% of the Azure Administrator Associate (AZ-104) exam. Try each one, then open the answer and explanation. None of them are in the free readiness check, so you can still take it fresh.

Question 1

A line-of-business app runs on two VMs. The company needs the highest SLA that Azure offers for VMs in a single region. What should you do?

  1. A.

    Deploy both VMs in the same availability set.

  2. B.

    Deploy a single VM with Premium SSD disks.

  3. C.

    Deploy the VMs in different resource groups.

  4. D.

    Deploy the VMs across two or more availability zones.

Show answer and explanation

Answer: D

Two or more VMs deployed across availability zones carry the highest VM SLA (99.99%).

  • Deploy both VMs in the same availability set.: An availability set provides a lower SLA (99.95%).
  • Deploy a single VM with Premium SSD disks.: A single VM with premium storage has a lower SLA (99.9%).
  • Deploy the VMs in different resource groups.: Resource groups are only a management boundary and do not affect availability.
Question 2

A web app runs in an App Service plan on the Basic tier. You need a staging deployment slot to test releases and swap them into production with no downtime. What should you do?

  1. A.

    Scale out the plan to three instances.

  2. B.

    Scale up the App Service plan to the Standard tier or higher.

  3. C.

    Move the app to the Free tier.

  4. D.

    Add a custom domain to the app.

Show answer and explanation

Answer: B

Deployment slots need the Standard, Premium or Isolated tiers. Scaling up changes the plan's tier.

  • Scale out the plan to three instances.: Scaling out adds instances but does not change the tier.
  • Move the app to the Free tier.: The Free tier does not support slots.
  • Add a custom domain to the app.: A custom domain has no effect on slot support.
Question 3Choose 2

Which TWO are benefits of using Bicep rather than writing ARM JSON templates directly? (Choose two.)

  1. A.

    It deploys resources without using Azure Resource Manager.

  2. B.

    It requires a separate state file that you must store.

  3. C.

    It has a simpler, more readable syntax that is transpiled to ARM JSON.

  4. D.

    It supports modules for reusing and organising deployments.

  5. E.

    It natively provisions resources in other clouds.

Show answer and explanation

Answer: C and D

Bicep is a declarative language with concise syntax that compiles to ARM templates, and it has modules for reuse.

  • It deploys resources without using Azure Resource Manager.: Bicep deployments still go through Resource Manager.
  • It requires a separate state file that you must store.: Resource Manager tracks state; Bicep needs no state file.
  • It natively provisions resources in other clouds.: Bicep targets Azure resources.
Question 4

An administrator shuts down a VM from inside the operating system and expects compute charges to stop. The portal shows the status as Stopped. What is the situation?

  1. A.

    Compute charges continue because the VM is not deallocated; use Stop in the portal or CLI to deallocate.

  2. B.

    Compute charges stop and only the disks are billed.

  3. C.

    All charges including disks and IP stop.

  4. D.

    The VM is automatically deleted after 24 hours.

Show answer and explanation

Answer: A

Shutting down from the guest OS leaves the VM allocated (Stopped). Only a Stopped (deallocated) VM stops compute charges.

  • Compute charges stop and only the disks are billed.: That applies only to a deallocated VM.
  • All charges including disks and IP stop.: Disks and static public IPs continue to be billed.
  • The VM is automatically deleted after 24 hours.: Azure does not delete stopped VMs.
Question 5

You need free TLS for www.contoso.com on an App Service app that is on the Basic tier. The domain is already mapped and verified. What should you do?

  1. A.

    Upgrade to the Free tier.

  2. B.

    Create an App Service managed certificate for the domain and bind it to the hostname.

  3. C.

    Install a certificate on the VM hosting the app.

  4. D.

    Disable HTTPS only.

Show answer and explanation

Answer: B

App Service managed certificates are free and auto-renewed for subdomains and require the Basic tier or higher.

  • Upgrade to the Free tier.: The Free tier doesn't support custom TLS bindings.
  • Install a certificate on the VM hosting the app.: App Service is a managed platform without VM access.
  • Disable HTTPS only.: That removes encryption rather than adding it.
Question 6

You must create 30 VMs from a standard hardened image and replicate that image to three regions for deployments. Which service should you use to store and replicate the image versions?

  1. A.

    Azure Compute Gallery.

  2. B.

    An Azure Files share.

  3. C.

    An Azure Policy initiative.

  4. D.

    A management group.

Show answer and explanation

Answer: A

Azure Compute Gallery stores versioned VM images and replicates them across regions for scalable deployments.

  • An Azure Files share.: It stores files, not deployable images with versions and replication.
  • An Azure Policy initiative.: Initiatives enforce settings and do not store images.
  • A management group.: It only organises subscriptions.

How ready are you for AZ-104?

Take the free readiness check: 15 questions from every exam domain in 20 minutes, with your score per domain.

  • 20 minutes
  • 15 questions
  • Free with an account

More AZ-104 practice by topic

Back to the AZ-104 practice test →

Independent practice material written from the official exam guide. Not affiliated with or endorsed by the exam provider.