All Microsoft exams

Free AZ-140 practice test: 30 questions with answers

30 original questions for Configuring and Operating Microsoft Azure Virtual Desktop, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.

Free questions
30
Full bank
100 questions

AZ-140 exam guide: topics, cost and format

All 30 AZ-140 questions with answers

The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.

Plan and implement session hosts (6 questions)

  1. Question 1

    Which two descriptions of AVD load-balancing methods for a pooled host pool are correct? (Choose two.)

    1. ALeast-cost placement across Azure regions only
    2. BRandom assignment that ignores host capacity
    3. CBreadth-first spreads new sessions across the available session hosts
    4. DDepth-first fills one session host before new sessions move to another
    5. ERound-robin across all hosts regardless of current load
    Show answer and explanation
    Correct answer: C, D

    Breadth-first distributes sessions across hosts, while depth-first concentrates them on one host until it is full. Round-robin, regional cost placement and random assignment are not the AVD load-balancing methods.

  2. Question 2

    Which connection design means session hosts do not need inbound RDP ports opened from the internet?

    1. AInbound RDP on TCP 3389 from 0.0.0.0/0, permitted by the default NSG rule
    2. BReverse connect over outbound HTTPS from the session host to the AVD gateway
    3. CAn inbound OpenVPN listener on TCP 1194 on each session host's public IP address via NAT
    4. DAn SSH tunnel opened from the internet to each session host's public IP on port 22
    Show answer and explanation
    Correct answer: B

    Reverse connect has the session host initiate an outbound connection to the AVD gateway, so no inbound listener is needed. Inbound RDP, SSH tunnels and inbound VPN listeners all expose the host to inbound connections.

  3. Question 3

    A pooled host pool must cap the number of concurrent sessions on each session host. Which setting controls this?

    1. AMaximum session limit on the host pool
    2. BMaximum number of app workspaces
    3. CMaximum network adapter speed on each VM host
    4. DMaximum storage IOPS on each host's OS disk
    Show answer and explanation
    Correct answer: A

    The maximum session limit caps concurrent sessions per host in a pooled host pool. Network speed, storage IOPS and workspace counts do not limit sessions.

  4. Question 4

    A session host is deallocated to save cost, but users must be able to connect and have it started automatically. Which AVD feature provides this?

    1. AStart VM on Connect
    2. BAzure DevOps pipelines
    3. CAzure Bastion
    4. DAzure Site Recovery
    Show answer and explanation
    Correct answer: A

    Start VM on Connect powers on a deallocated session host when a user connects. Bastion provides administrative access, Site Recovery replicates VMs for disaster recovery, and DevOps pipelines automate deployments.

  5. Question 5

    Session hosts run continuously in a production pool. Which purchase option reduces the cost of this steady, committed usage?

    1. APremium SSD managed disks on every session host
    2. BA static public IP address for each session host
    3. CAzure reserved virtual machine instances or a savings plan
    4. DSpot VMs with eviction risk for every user session
    Show answer and explanation
    Correct answer: C

    Reservations and savings plans discount steady, committed compute usage. Premium disks and public IPs add cost, and Spot VMs can be evicted, which is unsuitable for user sessions.

  6. Question 6

    Which two actions are needed to roll an updated image out to new session hosts in an existing host pool? (Choose two.)

    1. ADelete the workspace before deploying
    2. BDisable Entra ID sign-in on the image
    3. CPublish the image version to an Azure Compute Gallery
    4. DCreate new session hosts from that image version and add them to the host pool
    5. EEdit the registry directly on every running production session host
    Show answer and explanation
    Correct answer: C, D

    Publishing a versioned image to a compute gallery and deploying new hosts from it is the controlled update path. Editing running hosts in place, deleting the workspace and disabling sign-in are unsuitable.

Manage access and security (6 questions)

  1. Question 7

    A compliance rule requires that AVD control plane traffic from the corporate network does not traverse the public internet. Which feature supports this?

    1. APublishing the workspace feed to the public internet
    2. BPrivate endpoints (Azure Private Link) for AVD
    3. CPort forwarding on the perimeter firewall
    4. DA public IP address on each session host
    Show answer and explanation
    Correct answer: B

    Private endpoints bring AVD control plane access onto a virtual network, keeping that traffic off the public internet. Public IPs, port forwarding and public publishing all expose traffic to the internet instead.

  2. Question 8

    Which role must users hold on an application group so that they can see and open the published desktop?

    1. AStorage Blob Data Reader
    2. BDesktop Virtualization User
    3. CReader on the Log Analytics workspace
    4. DOwner on the subscription
    Show answer and explanation
    Correct answer: B

    The Desktop Virtualization User role on the application group grants users access to the published resources. Owner is broader than needed, and storage or log readers do not grant desktop access.

  3. Question 9

    Which AVD host pool setting controls whether clipboard, drives and printers are redirected into sessions?

    1. ALog Analytics workspace data retention period
    2. BRDP properties for device redirection
    3. CScaling plan exclusion tags on session hosts
    4. DStorage account firewall IP rules
    Show answer and explanation
    Correct answer: B

    RDP properties on the host pool control redirection of the clipboard, drives and printers. Scaling exclusions, storage firewalls and log retention do not govern session redirection.

  4. Question 10

    A session host needs a service password to reach a file share, and the password must not appear in scripts. Which Azure service should hold it?

    1. AA storage queue used as a secret store
    2. BA text file on the session host desktop
    3. CAzure Key Vault
    4. DThe host pool description field
    Show answer and explanation
    Correct answer: C

    Azure Key Vault stores secrets and grants access through managed identities or role assignments. The other options expose the secret in plain text or are not secret stores.

  5. Question 11

    Which authentication option lets users access an Azure Files share for FSLogix profiles with their Entra ID identity instead of a shared key?

    1. AA storage account key stored in a login script
    2. BPublic blob access on the container
    3. CAnonymous SMB access enabled on the share
    4. DEntra Kerberos authentication for Azure Files
    Show answer and explanation
    Correct answer: D

    Entra Kerberos authentication lets Entra ID identities access Azure Files over SMB with per-user authorisation. Anonymous access, shared keys in scripts and public blob access all weaken security.

  6. Question 12

    A policy must block AVD sign-ins from devices that are not compliant with company security baselines. Which Conditional Access control achieves this?

    1. AA storage account firewall exception for the AVD subnet
    2. BA session control on the storage account with sign-in limits
    3. CA DNS forwarder rule for the private storage endpoint
    4. DA grant control that requires a compliant device
    Show answer and explanation
    Correct answer: D

    Conditional Access grant controls can require a compliant or hybrid-joined device before access is allowed. Storage and DNS settings do not evaluate device compliance.

Plan and implement an Azure Virtual Desktop architecture (6 questions)

  1. Question 13

    A company wants many office users to share a set of session hosts running Windows 11 Enterprise multi-session. Which host pool type fits?

    1. AStandalone virtual machine per user
    2. BPersonal host pool with direct assignment
    3. CPooled host pool
    4. DAzure Virtual Desktop client app with no host pool
    Show answer and explanation
    Correct answer: C

    A pooled host pool lets many users share session hosts, which matches multi-session operating systems. Personal pools give each user a dedicated VM, standalone VMs sit outside AVD management, and the client app alone supplies no hosts.

  2. Question 14

    Which AVD object groups published desktops and RemoteApp programs so they can be assigned to users through a workspace?

    1. AFSLogix profile share
    2. BSession host image
    3. CApplication group
    4. DScaling plan
    Show answer and explanation
    Correct answer: C

    An application group publishes a desktop or RemoteApp programs from a host pool, and workspaces present those groups to users. Scaling plans manage capacity, profile shares store user profiles, and images are templates for hosts.

  3. Question 15

    A personal host pool must give each user the same desktop every time they sign in. Which assignment behaviour should be configured?

    1. AAutomatic assignment, which keeps each user on the host assigned at first sign-in
    2. BBreadth-first load balancing across the pool's session hosts at logon
    3. CRemoteApp streaming, which publishes individual apps from the session hosts
    4. DDepth-first load balancing across the pool's session hosts at sign-in
    Show answer and explanation
    Correct answer: A

    Automatic assignment in a personal host pool assigns a host at first sign-in, and the assignment then persists. Load balancing applies to pooled host pools, and RemoteApp streaming is a publishing mode rather than an assignment setting.

  4. Question 16

    Which Azure Virtual Desktop resource groups the application groups that appear to users in the client?

    1. AWorkspace
    2. BStorage account
    3. CLog Analytics workspace
    4. DScaling plan
    Show answer and explanation
    Correct answer: A

    A workspace groups application groups and is the feed users see in the AVD client. Storage accounts hold files, the Log Analytics workspace stores logs, and scaling plans manage host capacity.

  5. Question 17

    Which two session host operating systems support multiple concurrent user sessions on one VM? (Choose two.)

    1. AWindows 11 Home
    2. BWindows 8.1 Enterprise single-session
    3. CWindows 11 Enterprise multi-session
    4. DWindows 10 Enterprise multi-session
    5. EWindows 11 Pro single-session
    Show answer and explanation
    Correct answer: C, D

    The Enterprise multi-session editions of Windows 10 and Windows 11 allow many concurrent users on one VM. Single-session editions and Home editions do not support multiple concurrent sessions.

  6. Question 18

    An administrator wants to test a new session host image on a small set of hosts before updating the production host pool. Which option fits?

    1. AFSLogix cloud cache container
    2. BValidation environment host pool
    3. CScaling plan with peak hours
    4. DDrain mode on the active hosts
    Show answer and explanation
    Correct answer: B

    The validation environment host pool receives early updates so they can be tested before production. Scaling plans manage capacity, FSLogix cache stores profiles, and drain mode stops new sessions on a host.

Configure the user environment (6 questions)

  1. Question 19

    Which two statements about FSLogix profile containers are correct? (Choose two.)

    1. AThey can be stored on Azure Files or Azure NetApp Files
    2. BThey replace the need for user profile backups
    3. CThey store the Windows operating system files for each host
    4. DThey require local administrator rights on every user device
    5. EThey attach a virtual hard disk holding the user profile at sign-in
    Show answer and explanation
    Correct answer: A, E

    FSLogix mounts a profile VHD from SMB storage such as Azure Files or Azure NetApp Files at sign-in. Containers are not backups, do not hold operating system files, and do not need local administrator rights on endpoints.

  2. Question 20

    Which FSLogix capability caches profile data locally and synchronises it to one or more storage locations for resilience?

    1. ACloud Cache
    2. BAzure VM Image Builder
    3. COffice container only
    4. DRedirections.xml
    Show answer and explanation
    Correct answer: A

    Cloud Cache writes profile data to a local cache and can synchronise to several storage targets. The Office container stores Office data only, Redirections.xml controls folder redirection, and Image Builder creates images.

  3. Question 21

    A user's profile container has grown very large with cache folders. Which FSLogix configuration reduces the container size?

    1. ARedirections.xml or exclusion lists for cache folders
    2. BA higher screen resolution for the user's session on the host
    3. CDisabling Windows Update on the session host
    4. DAdding a second virtual network adapter to the VM
    Show answer and explanation
    Correct answer: A

    Excluding cache paths and redirecting folders keeps the container small. Screen resolution, update settings and extra network adapters do not affect what is stored in the profile.

  4. Question 22

    Which technology mounts packaged application images from a file share into session hosts so apps are available without a full installation on each host?

    1. AHyper-V checkpoints
    2. BRobocopy mirror jobs
    3. CWindows Sandbox
    4. DMSIX app attach
    Show answer and explanation
    Correct answer: D

    MSIX app attach mounts application package images from a share, so the apps become available without installing them on every host. Windows Sandbox is an isolated temporary environment, checkpoints capture VM state, and Robocopy copies files.

  5. Question 23

    Which service automates building a customised Windows image with applications and publishes it to Azure Compute Gallery for session hosts?

    1. AAzure Advisor
    2. BAzure Cost Management
    3. CAzure Policy compliance dashboard
    4. DAzure VM Image Builder
    Show answer and explanation
    Correct answer: D

    Azure VM Image Builder automates customised image creation and can publish the result to Azure Compute Gallery. Advisor gives recommendations, Cost Management tracks spend, and the policy dashboard reports compliance.

  6. Question 24

    Which two requirements apply to an FSLogix profile share in Azure Files that uses Entra Kerberos authentication? (Choose two.)

    1. AIdentity-based authentication is enabled on the Azure Files share
    2. BUsers have share-level RBAC roles that allow them to write their own profile files
    3. CThe storage account key is shared with every user
    4. DThe storage account has a public IP address
    5. EEach user has local administrator rights on the session host
    Show answer and explanation
    Correct answer: A, B

    Identity-based authentication and share-level RBAC roles let each user access only their own profile container. Sharing account keys, public IPs and local administrator rights are unnecessary and unsafe.

Monitor and maintain an Azure Virtual Desktop environment (6 questions)

  1. Question 25

    Which Azure Monitor experience gives dashboards of AVD host health, connections and performance?

    1. AAzure Cost Management and budgets
    2. BAzure DNS private zone query analytics
    3. CAzure Advisor score for reliability
    4. DAzure Virtual Desktop Insights
    Show answer and explanation
    Correct answer: D

    Azure Virtual Desktop Insights uses Azure Monitor and Log Analytics to show host health, connection activity and performance. Advisor gives recommendations, budgets track spend, and DNS analytics is not an AVD view.

  2. Question 26

    Which two data sources feed Azure Virtual Desktop Insights? (Choose two.)

    1. AOffice macro execution logs from user devices
    2. BAVD resource diagnostic settings sent to a Log Analytics workspace
    3. CPerformance counters collected from session hosts by the Azure Monitor agent
    4. DPrint spooler event logs from file servers
    5. EStorage account access keys stored in a dashboard
    Show answer and explanation
    Correct answer: B, C

    Diagnostic settings send AVD connection and host records, and the Azure Monitor agent supplies performance counters, to Log Analytics for Insights. Print spooler logs, storage keys and macro logs are not AVD Insights sources.

  3. Question 27

    Which query language is used to analyse AVD records stored in a Log Analytics workspace?

    1. ABicep templates
    2. BPowerShell Desired State Configuration
    3. CKusto Query Language (KQL)
    4. DT-SQL only
    Show answer and explanation
    Correct answer: C

    Log Analytics queries use Kusto Query Language. T-SQL belongs to SQL databases, PowerShell DSC configures machine state, and Bicep defines infrastructure templates.

  4. Question 28

    Users report that sessions lag. Which view helps the administrator check connection round-trip time and quality for those sessions?

    1. AThe Azure Advisor cost recommendations tab panel
    2. BAzure Virtual Desktop Insights connection performance views
    3. CAzure DNS private zones linked to the virtual network with auto-registration
    4. DStorage account lifecycle rules for blob tiers
    Show answer and explanation
    Correct answer: B

    AVD Insights exposes connection quality and round-trip measurements. Advisor cost recommendations, private DNS zones and storage lifecycle rules do not describe session quality.

  5. Question 29

    Session hosts must be patched on a schedule without interrupting active users. Which approach fits best?

    1. ADisable Windows Update permanently through a Group Policy setting on every host
    2. BSchedule updates with Azure Update Manager and drain hosts before maintenance
    3. CInstall updates when a user reports a problem with a degraded session
    4. DRestart every session host at noon each day without draining or notifying signed-in users
    Show answer and explanation
    Correct answer: B

    Scheduled maintenance combined with drain mode keeps hosts patched while limiting disruption. Midday restarts interrupt users, disabling updates leaves hosts exposed, and reactive patching is unsafe.

  6. Question 30

    Administrators need to be notified when the number of available session hosts drops below a threshold. Which Azure Monitor feature should be used?

    1. AAn action group that sends SMS and email to on-call staff
    2. BService Health advisories and incident notices about Azure platform events in the region
    3. CA workbook exported as a PDF report with host availability charts
    4. DAn alert rule based on a log or metric condition that calls an action group
    Show answer and explanation
    Correct answer: D

    Alert rules on logs or metrics fire when a threshold is met and then notify through an action group. Action groups only deliver notifications, workbooks display data, and Service Health covers Azure platform events.