1What is a virtual machine (VM) in the context of cloud computing?
virtual machines
Easy
A.A type of network router.
B.A container for running a single application process.
C.A software-based emulation of a physical computer.
D.A physical server located in a data center.
Correct Answer: A software-based emulation of a physical computer.
Explanation:
A virtual machine (VM) is a software emulation of a computer system. It provides the functionality of a physical computer, running an operating system and applications, but is completely software-based and runs on a physical host machine.
Incorrect! Try again.
2Which cloud service model does providing a virtual machine fall under?
virtual machines
Easy
A.Software as a Service (SaaS)
B.Function as a Service (FaaS)
C.Platform as a Service (PaaS)
D.Infrastructure as a Service (IaaS)
Correct Answer: Infrastructure as a Service (IaaS)
Explanation:
IaaS provides fundamental computing resources, including servers (virtual machines), storage, and networking. The user is responsible for managing the operating system, applications, and data, while the cloud provider manages the underlying hardware.
Incorrect! Try again.
3What is the primary purpose of an Azure Availability Set?
Configure virtual machine availability
Easy
A.To ensure high availability for VMs within a single datacenter by distributing them across different hardware.
B.To automatically scale the number of VMs based on traffic.
C.To provide a template for creating new VMs.
D.To group VMs together for easier billing.
Correct Answer: To ensure high availability for VMs within a single datacenter by distributing them across different hardware.
Explanation:
An Availability Set is a logical grouping that ensures your VMs are spread across different fault domains (hardware racks) and update domains (groups for maintenance) to protect against localized hardware failures or planned maintenance events within a datacenter.
Incorrect! Try again.
4Which Azure feature protects your applications from an entire datacenter failure by using physically separate locations within a region?
Configure virtual machine availability
Easy
A.Availability Zones
B.Availability Sets
C.Update Domains
D.Resource Groups
Correct Answer: Availability Zones
Explanation:
Availability Zones are physically separate datacenters within an Azure region. Deploying resources across multiple zones provides redundancy and protects applications from failures that might affect an entire datacenter.
Incorrect! Try again.
5What does an Azure App Service Plan define?
Azure App Service plans
Easy
A.The source code and programming language of your web app.
B.The security rules and firewall settings for your web app.
C.The custom domain name and SSL certificate for your web app.
D.The compute resources (region, instance size, scale count) for your web apps.
Correct Answer: The compute resources (region, instance size, scale count) for your web apps.
Explanation:
An App Service Plan is essentially the server farm that hosts your web apps. It dictates the underlying compute power, memory, storage, and features available to the apps running within it.
Incorrect! Try again.
6If you have multiple web apps, can they share the same App Service Plan?
Azure App Service plans
Easy
A.Only if the web apps are written in the same programming language.
B.Only if the web apps are in the 'Free' pricing tier.
C.Yes, multiple apps can run in and share the resources of a single plan.
D.No, every web app must have its own unique App Service Plan.
Correct Answer: Yes, multiple apps can run in and share the resources of a single plan.
Explanation:
A key feature of App Service Plans is the ability to host multiple web apps. This can be a cost-effective approach as all the apps share the allocated compute resources of that plan.
Incorrect! Try again.
7What is a 'deployment slot' in Azure App Service primarily used for?
Configure Azure App Service
Easy
A.To reserve a static IP address for the application.
B.To define a specific server rack for the application to run on.
C.To stage and test a new version of an app before swapping it into production.
D.To store application log files and diagnostics data.
Correct Answer: To stage and test a new version of an app before swapping it into production.
Explanation:
Deployment slots are live apps with their own hostnames. They allow for zero-downtime deployments by letting you deploy a new version to a staging slot, validate it, and then swap it with the production slot seamlessly.
Incorrect! Try again.
8Which Azure App Service feature allows you to automatically increase or decrease the number of running instances based on performance metrics?
Configure Azure App Service
Easy
A.Deployment Slots
B.Autoscaling
C.Application Insights
D.Load Balancing
Correct Answer: Autoscaling
Explanation:
Autoscaling is a built-in feature of App Service (in Standard tier and above) that allows you to configure rules to automatically scale out (add instances) or scale in (remove instances) to match the application's load.
Incorrect! Try again.
9What is the main benefit of using Azure Container Instances (ACI)?
Configure Azure Container Instances
Easy
A.It is the best service for running stateful, database-driven applications.
B.It automatically builds container images from source code.
C.It allows you to run containers without managing any underlying virtual machines.
D.It provides a full Kubernetes orchestration environment.
Correct Answer: It allows you to run containers without managing any underlying virtual machines.
Explanation:
ACI is a serverless container service. Its primary advantage is simplicity and speed, as it provides containers-on-demand without the need to provision, configure, or manage any server infrastructure.
Incorrect! Try again.
10Which of the following is billed on a per-second basis in Azure Container Instances?
Configure Azure Container Instances
Easy
A.vCPU and memory resources allocated to the container group.
B.The amount of network data transferred out of Azure.
C.A flat monthly fee per subscription.
D.The number of container images stored in the registry.
Correct Answer: vCPU and memory resources allocated to the container group.
Explanation:
ACI has a per-second billing model. You are charged for the vCPU and memory resources requested by your container group for the duration that your instances are running.
Incorrect! Try again.
11Which is the correct Azure CLI command to start a stopped virtual machine?
Manage virtual machines with the Azure CLI
Easy
A.az vm create --name MyVM --resource-group MyResourceGroup
B.az vm run --name MyVM --resource-group MyResourceGroup
C.az vm poweron --name MyVM --resource-group MyResourceGroup
D.az vm start --name MyVM --resource-group MyResourceGroup
Correct Answer: az vm start --name MyVM --resource-group MyResourceGroup
Explanation:
The Azure CLI uses intuitive verbs for actions. To start a VM, the command is az vm start, and you must specify the name of the VM and the resource group it belongs to.
Incorrect! Try again.
12What is the purpose of the --resource-group parameter in an az vm create command?
Manage virtual machines with the Azure CLI
Easy
A.To select the VM size and performance tier.
B.To name the operating system disk for the new VM.
C.To specify the logical container where the new VM will be placed.
D.To assign a group of administrators to the new VM.
Correct Answer: To specify the logical container where the new VM will be placed.
Explanation:
In Azure, all resources must reside in a resource group, which is a container that holds related resources for an Azure solution. The --resource-group (or -g) parameter is essential for telling Azure where to create the new virtual machine.
Incorrect! Try again.
13Azure App Service is an example of which type of cloud service model?
Host a web application with Azure App Service
Easy
A.Infrastructure as a Service (IaaS)
B.Software as a Service (SaaS)
C.Platform as a Service (PaaS)
D.Desktop as a Service (DaaS)
Correct Answer: Platform as a Service (PaaS)
Explanation:
App Service is a PaaS offering because it abstracts away the underlying infrastructure (like OS, patching, and servers). You bring your code and configuration, and Azure manages the platform for you.
Incorrect! Try again.
14Which of the following is a common method for deploying code to an Azure App Service web app?
Host a web application with Azure App Service
Easy
A.Continuous deployment from a Git repository (like GitHub or Azure Repos).
B.Requesting a Microsoft engineer to manually upload the files.
C.Mailing a USB drive with the code to the Azure datacenter.
D.Using Remote Desktop to copy and paste files onto the server.
Correct Answer: Continuous deployment from a Git repository (like GitHub or Azure Repos).
Explanation:
Azure App Service has excellent integration with source control systems. Setting up a CI/CD (Continuous Integration/Continuous Deployment) pipeline from a Git repository is a modern and highly efficient way to deploy updates automatically.
Incorrect! Try again.
15What is the primary purpose of an Azure Recovery Services vault?
Backup Vaults
Easy
A.To manage DNS records and custom domain names.
B.To store and manage backups, recovery points, and backup policies.
C.To store virtual machine disk (VHD) files.
D.To store and manage user passwords and application secrets.
Correct Answer: To store and manage backups, recovery points, and backup policies.
Explanation:
A Recovery Services vault is the central Azure resource for managing backups. It holds the backup data for various services like Azure VMs and Azure Files, and it's where you configure policies for backup frequency and retention.
Incorrect! Try again.
16In the context of Azure Backup, what is a 'recovery point'?
Backup Vaults
Easy
A.A user account with permission to perform a restore operation.
B.A copy of the original data from a specific point in time, from which you can restore.
C.A script that automates the backup process.
D.The physical datacenter location where the backup is stored.
Correct Answer: A copy of the original data from a specific point in time, from which you can restore.
Explanation:
A recovery point, or snapshot, is the stored state of your data at the time the backup was taken. You can use this point to restore your data to how it was at that specific moment.
Incorrect! Try again.
17What does a backup policy in an Azure Recovery Services vault define?
Backup Vaults
Easy
A.The schedule for when backups are taken and how long they are kept.
B.The encryption key used to secure the backup data.
C.The network bandwidth limit for backup operations.
D.The list of users who are allowed to access the backups.
Correct Answer: The schedule for when backups are taken and how long they are kept.
Explanation:
A backup policy is a set of rules that automates the backup process. It primarily consists of two components: the backup schedule (e.g., daily at 2:00 AM) and the retention policy (e.g., keep daily backups for 30 days).
Incorrect! Try again.
18What file is used by a virtual machine to store its operating system and user data?
virtual machines
Easy
A.A text file (.txt)
B.A configuration file (.config)
C.A network interface card (NIC)
D.Virtual Hard Disk (VHD)
Correct Answer: Virtual Hard Disk (VHD)
Explanation:
A Virtual Hard Disk (VHD) is a file format that represents a virtual hard disk drive. It contains everything that would be on a physical hard drive, such as disk partitions, file systems, and the OS.
Incorrect! Try again.
19Which of the following App Service Plan tiers is designed for development/testing and does not support custom domains?
Azure App Service plans
Easy
A.Free
B.Basic
C.Premium
D.Standard
Correct Answer: Free
Explanation:
The 'Free' and 'Shared' tiers are intended for development and testing purposes. They run on shared infrastructure and have limitations, such as not supporting custom domains or SSL.
Incorrect! Try again.
20What is the Azure CLI?
Manage virtual machines with the Azure CLI
Easy
A.A software development kit (SDK) for building applications on Azure.
B.A command-line tool for creating and managing Azure resources.
C.A web-based portal for managing billing and subscriptions.
D.A graphical user interface for monitoring Azure services.
Correct Answer: A command-line tool for creating and managing Azure resources.
Explanation:
The Azure Command-Line Interface (CLI) is a set of commands used to create and manage Azure resources from a terminal or script, providing an alternative to the graphical Azure portal.
Incorrect! Try again.
21You are deploying a new application that is memory-intensive for in-memory caching but has relatively low CPU requirements. To optimize costs, which Azure VM size series would be the most appropriate choice?
virtual machines
Medium
A.D-series (General Purpose)
B.E-series (Memory Optimized)
C.N-series (GPU Optimized)
D.F-series (Compute Optimized)
Correct Answer: E-series (Memory Optimized)
Explanation:
The E-series VMs are memory-optimized and offer a high memory-to-CPU core ratio, making them ideal for relational database servers, medium to large caches, and in-memory analytics. The F-series is for compute-intensive workloads, and the N-series is for GPU-heavy tasks. While D-series is general purpose, E-series is specifically optimized for this memory-intensive scenario, making it the most appropriate choice.
Incorrect! Try again.
22You are deploying a critical 2-tier application consisting of two web servers and two database servers. To ensure the application can survive planned maintenance or a hardware failure within a datacenter, what is the best availability configuration?
Configure virtual machine availability
Medium
A.Deploy all four virtual machines into a single Availability Zone.
B.Place the two web servers in one Availability Set, and the two database servers in a second, separate Availability Set.
C.Place all four virtual machines into a single Availability Set.
D.Place one web server and one database server into Availability Set 1, and the other pair into Availability Set 2.
Correct Answer: Place the two web servers in one Availability Set, and the two database servers in a second, separate Availability Set.
Explanation:
By placing each tier (web and database) into its own Availability Set, you ensure that Azure's update and fault domains are applied independently to each tier. This prevents a scenario where, for example, both of your web servers are rebooted simultaneously for planned maintenance, which could happen if all VMs were in a single Availability Set.
Incorrect! Try again.
23Your company runs three web applications: a high-traffic production app, a staging app for testing, and a low-traffic development app. You need to ensure the production app's performance is not affected by the other apps, while minimizing costs. Which App Service Plan strategy should you implement?
Azure App Service plans
Medium
A.Place all three apps in a single, large Premium V3 (P3V3) App Service Plan.
B.Create three separate Basic (B1) App Service Plans, one for each app.
C.Create a Premium V2 (P2V2) plan for the production app, and a single Basic (B1) plan for both the staging and development apps.
D.Create a single Standard (S3) plan and use deployment slots for each environment.
Correct Answer: Create a Premium V2 (P2V2) plan for the production app, and a single Basic (B1) plan for both the staging and development apps.
Explanation:
This approach provides performance isolation for the critical production app by placing it in its own dedicated Premium plan. The non-critical staging and development apps, which have lower traffic, can share a less expensive Basic plan to minimize costs. Placing all in one plan removes isolation, and using three separate plans would be more expensive than necessary.
Incorrect! Try again.
24You need to temporarily stop a virtual machine named vm-main-01 in the resource group rg-prod to save on compute costs over the weekend. However, you must ensure that its public IP address is not released. Which Azure CLI command achieves this?
Manage virtual machines with the Azure CLI
Medium
A.az vm deallocate --resource-group rg-prod --name vm-main-01
B.az vm stop --resource-group rg-prod --name vm-main-01
C.az vm delete --resource-group rg-prod --name vm-main-01
D.az vm poweroff --resource-group rg-prod --name vm-main-01
Correct Answer: az vm stop --resource-group rg-prod --name vm-main-01
Explanation:
The az vm stop command stops the VM but does not deallocate its compute resources from the host. This means you are still billed for the resources, but the OS is shut down and the public IP is retained. In contrast, az vm deallocate stops the VM and releases the hardware, which stops compute charges and also releases a dynamic public IP address.
Incorrect! Try again.
25You need to run a container that executes a data-processing script once a day. The script runs for approximately 30 minutes and then exits. Which restart policy should you configure for the Azure Container Instance to ensure it runs to completion and does not restart automatically, optimizing for this type of task-based workload?
Configure Azure Container Instances
Medium
A.Always
B.UnlessStopped
C.Never
D.OnFailure
Correct Answer: Never
Explanation:
The 'Never' restart policy is designed for tasks that are intended to run once and then stop, such as a batch job or a data processing script. 'Always' would cause the container to restart even after successful completion, and 'OnFailure' would only restart it if the script exited with a non-zero error code. 'Never' is the most appropriate for this one-off, scheduled task.
Incorrect! Try again.
26You are managing a web application hosted on Azure App Service. You want to implement a blue-green deployment strategy to test a new version of the app with live traffic before making it the primary version. Which App Service feature is specifically designed for this purpose?
Configure Azure App Service
Medium
A.Deployment slots
B.WebJobs
C.Kudu console
D.App Service diagnostics
Correct Answer: Deployment slots
Explanation:
Deployment slots are live apps with their own hostnames. You can deploy a new version of your app to a non-production slot (e.g., 'staging'). After testing, you can swap the staging slot with the production slot. This action warms up the new version before the swap and provides instant rollback capability, which is the core of a blue-green deployment strategy.
Incorrect! Try again.
27You have developed a Python Flask web application and pushed the code to a GitHub repository. You want to configure the Azure App Service so that any new commit to the main branch of your GitHub repository automatically triggers a deployment to the App Service. What feature should you configure in the Azure portal?
Host a web application with Azure App Service
Medium
A.A CI/CD pipeline using the Deployment Center with GitHub as the source
B.FTP/S credentials in the Deployment Center
C.A scheduled WebJob that pulls code from the repository
D.A manual deployment using the Kudu console after each commit
Correct Answer: A CI/CD pipeline using the Deployment Center with GitHub as the source
Explanation:
The Deployment Center in Azure App Service is designed to set up continuous integration and continuous deployment (CI/CD). By linking it to a GitHub repository and a specific branch, you can configure it to automatically build and deploy your application whenever new code is committed, streamlining the development workflow.
Incorrect! Try again.
28You have configured Azure Backup for a critical VM using a Recovery Services vault with the Cross-Region Restore feature enabled. A regional disaster makes the primary Azure region completely unavailable. What capability does Cross-Region Restore provide in this scenario?
Backup Vaults
Medium
A.It creates a snapshot of the VM in the secondary region every hour.
B.It automatically fails over the VM to the secondary region.
C.It synchronizes the VM's disk writes in real-time to the secondary region.
D.It allows you to initiate a restore of the VM and its data to the paired secondary region from the backups stored there.
Correct Answer: It allows you to initiate a restore of the VM and its data to the paired secondary region from the backups stored there.
Explanation:
Cross-Region Restore works by replicating the backup data from the primary region's Recovery Services vault to a vault in the paired secondary region. In a disaster scenario where the primary region is down, you can access this replicated data in the secondary region and use it to restore the VM there. It is a manual restore process, not an automatic failover like Azure Site Recovery.
Incorrect! Try again.
29You need to deploy a business-critical application on Azure VMs that must be resilient to an entire datacenter failure within an Azure region. Which availability feature should you use?
Configure virtual machine availability
Medium
A.Availability Sets
B.Availability Zones
C.Proximity Placement Groups
D.VM Scale Sets
Correct Answer: Availability Zones
Explanation:
Availability Zones are physically separate locations within an Azure region, each with independent power, cooling, and networking. Deploying VMs across multiple Availability Zones protects an application from failures that affect a single datacenter. Availability Sets only protect against hardware failures or planned maintenance within a single datacenter.
Incorrect! Try again.
30An App Service Plan is currently hosting a web app that is experiencing high CPU usage. You decide to change the plan from a Standard S1 instance to a Premium P2V2 instance. What type of scaling operation is this, and what is its primary benefit?
Azure App Service plans
Medium
A.Scaling in, which decreases the number of VM instances.
B.Scaling out, which adds more VM instances to handle the load.
C.Scaling down, which reduces the resources to save costs.
D.Scaling up, which increases the CPU, memory, and storage of the existing VM instance.
Correct Answer: Scaling up, which increases the CPU, memory, and storage of the existing VM instance.
Explanation:
Changing the pricing tier of an App Service Plan (e.g., from S1 to P2V2) is known as 'scaling up' or 'vertical scaling'. This operation increases the resources (CPU cores, RAM, storage) available to the instance(s) in the plan. 'Scaling out' or 'horizontal scaling' refers to increasing the number of VM instances running the app within the same pricing tier.
Incorrect! Try again.
31You are writing a script to automate the deployment of a new Linux VM. You need to resize the VM temp-vm in resource group dev-rg from its current Standard_B1s size to a Standard_D2s_v3. Which Azure CLI command correctly performs this action?
Manage virtual machines with the Azure CLI
Medium
A.az vm resize --resource-group dev-rg --name temp-vm --size Standard_D2s_v3
B.az vm scale --resource-group dev-rg --name temp-vm --new-size Standard_D2s_v3
C.az vm modify --resource-group dev-rg --name temp-vm --size Standard_D2s_v3
D.az vm update --resource-group dev-rg --name temp-vm --set hardwareProfile.vmSize=Standard_D2s_v3
Correct Answer: az vm resize --resource-group dev-rg --name temp-vm --size Standard_D2s_v3
Explanation:
The correct Azure CLI command to change the size of an existing virtual machine is az vm resize. It requires the resource group, the VM name, and the target size as parameters. The other commands (update, scale, modify) are either used for different purposes or are not valid az vm commands for resizing.
Incorrect! Try again.
32You are deploying a container to Azure Container Instances (ACI) that needs to securely access resources within an existing Azure Virtual Network (VNet). What is the primary prerequisite for deploying an ACI into a VNet?
Configure Azure Container Instances
Medium
A.The VNet must be peered with another VNet.
B.The ACI configuration must include a Network Security Group (NSG).
C.The ACI must be deployed into a subnet that is delegated to 'Microsoft.ContainerInstance/containerGroups'.
D.The VNet must have a public IP address.
Correct Answer: The ACI must be deployed into a subnet that is delegated to 'Microsoft.ContainerInstance/containerGroups'.
Explanation:
To deploy Azure Container Instances into a virtual network, you must first delegate a subnet within that VNet to the ACI service. This delegation grants the ACI service permissions to create and manage service-specific resources in the subnet, enabling the container group to join the VNet.
Incorrect! Try again.
33You are provisioning a new Windows Server VM in Azure that will host a high-traffic I/O-intensive database. For simplified management, high performance, and better reliability, which disk type should you choose for the OS and data disks?
virtual machines
Medium
A.Unmanaged Disks on a Standard storage account.
B.Managed Disks with the Standard HDD option.
C.Unmanaged Disks on a Premium storage account.
D.Managed Disks with the Premium SSD option.
Correct Answer: Managed Disks with the Premium SSD option.
Explanation:
Managed Disks abstract the underlying storage accounts, simplifying management and improving reliability by integrating with features like Availability Sets. For a high-traffic, I/O-intensive database, Premium SSDs provide high-performance, low-latency disk support, making the combination of Managed Disks and Premium SSD the ideal choice over slower HDDs or the more complex Unmanaged Disks.
Incorrect! Try again.
34You have an Azure App Service web app and need to map a custom domain www.contoso.com to it. You have already verified ownership of contoso.com. What DNS records must you create with your domain registrar to point the domain to your web app?
Configure Azure App Service
Medium
A.An A record pointing to the App Service's IP address and a TXT record for verification.
B.An MX record pointing to the App Service's IP address.
C.A CNAME record pointing www to the app's default hostname (e.g., myapp.azurewebsites.net).
D.A PTR record for reverse DNS lookup and an A record.
Correct Answer: A CNAME record pointing www to the app's default hostname (e.g., myapp.azurewebsites.net).
Explanation:
To map a subdomain like www.contoso.com, the standard and recommended practice is to create a CNAME (Canonical Name) record. This record maps your custom domain to the App Service's default *.azurewebsites.net address. Using a CNAME is preferable to an A record because the underlying IP address of the App Service can change, and the CNAME will always resolve correctly.
Incorrect! Try again.
35After deploying a new version of your .NET web application to Azure App Service, users report seeing a generic "502 Bad Gateway" error. You suspect an issue with the application's startup process. What is the most effective first step to diagnose this problem?
Host a web application with Azure App Service
Medium
A.Restart the web app from the Azure portal.
B.Check the Azure Service Health dashboard for regional outages.
C.Scale up the App Service Plan to a higher tier.
D.Enable and review the Application Logging (Log stream) to check for startup errors or exceptions.
Correct Answer: Enable and review the Application Logging (Log stream) to check for startup errors or exceptions.
Explanation:
A 502 error often indicates that the application container or process failed to start correctly and bind to the port. The most direct way to diagnose this is to examine the application's own logs (stdout/stderr). The App Service Log stream provides a real-time view of these logs, which will likely contain the specific exception or configuration error preventing the app from starting.
Incorrect! Try again.
36You have an App Service Plan running on the S1 tier with one instance. During a marketing campaign, your web app's traffic spikes, and you need to handle the increased load immediately. Which action represents 'scaling out' and would be an appropriate response?
Azure App Service plans
Medium
A.Adding a new Web App to the existing S1 App Service Plan.
B.Configuring a Content Delivery Network (CDN) in front of the web app.
C.Increasing the number of worker instances in the S1 plan from one to three.
D.Changing the App Service Plan tier from S1 to P1V2.
Correct Answer: Increasing the number of worker instances in the S1 plan from one to three.
Explanation:
'Scaling out' (horizontal scaling) means increasing the number of instances that run your application. This distributes the load across multiple machines. Changing the tier to P1V2 is 'scaling up' (vertical scaling). While configuring a CDN is a good practice for performance, it doesn't address the immediate need to handle more server-side processing, which scaling out does.
Incorrect! Try again.
37You need to create a new Ubuntu Linux VM named web-vm-01 in the prod-rg resource group using a single Azure CLI command. The VM should have a public IP address and automatically generate SSH keys for authentication. Which command structure is correct for this task?
Manage virtual machines with the Azure CLI
Medium
A.az vm new --name web-vm-01 --rg prod-rg --os-type Linux --ssh-keys-generate
B.az vm create --resource-group prod-rg --name web-vm-01 --image UbuntuLTS --generate-ssh-keys
Correct Answer: az vm create --resource-group prod-rg --name web-vm-01 --image UbuntuLTS --generate-ssh-keys
Explanation:
The az vm create command is the all-in-one command for creating a virtual machine. It intelligently creates all necessary dependent resources like storage, networking, and a public IP by default unless specified otherwise. The --image UbuntuLTS specifies the OS, and --generate-ssh-keys creates and configures SSH keys for secure access. The other options use incorrect command names or parameters.
Incorrect! Try again.
38An Availability Set in Azure is configured with 3 fault domains and 10 update domains. A virtual machine is placed within this set. What does this configuration imply for the VM?
Configure virtual machine availability
Medium
A.The VM will not be rebooted for planned maintenance more than once in any 10-minute maintenance window.
B.The VM is isolated from hardware failures in 3 different racks and its host OS will be updated separately from hosts in 9 other update groups.
C.The VM is protected from the failure of up to 3 entire datacenters.
D.The VM shares a common power source and network switch with at most 2 other VMs in the set.
Correct Answer: The VM is isolated from hardware failures in 3 different racks and its host OS will be updated separately from hosts in 9 other update groups.
Explanation:
A fault domain (FD) represents a group of VMs that share a common power source and network switch (like a server rack). 3 FDs mean VMs are spread across 3 racks to protect against hardware failure. An update domain (UD) is a group of VMs that are rebooted together during planned maintenance. 10 UDs mean VMs are spread across 10 groups, and only one group is updated at a time, ensuring availability.
Incorrect! Try again.
39You need to pass a database connection string to a container running in Azure Container Instances without exposing this sensitive information in the container image or in deployment scripts. What is the most secure and appropriate ACI feature to use?
Configure Azure Container Instances
Medium
A.Environment variables
B.A mounted Azure File Share containing a config file
C.Secure environment variables
D.A command-line argument
Correct Answer: Secure environment variables
Explanation:
While standard environment variables can pass configuration, they are visible in plain text in the Azure portal and API responses. Secure environment variables are designed specifically for sensitive information like connection strings or keys. Their values are not displayed in the container's properties, providing a more secure way to inject secrets into the container at runtime.
Incorrect! Try again.
40You are configuring an Azure App Service for a multi-tenant application. You need to ensure that only authenticated users from your company's Azure Active Directory (Azure AD) can access the application. Which is the simplest, built-in way to achieve this?
Configure Azure App Service
Medium
A.Placing the App Service behind an Application Gateway with a Web Application Firewall (WAF).
B.Writing custom code within your application using the Microsoft Authentication Library (MSAL).
C.Configuring IP restrictions in the App Service networking settings.
D.Enabling the Authentication / Authorization feature (Easy Auth) and configuring Azure AD as an identity provider.
Correct Answer: Enabling the Authentication / Authorization feature (Easy Auth) and configuring Azure AD as an identity provider.
Explanation:
The App Service Authentication / Authorization feature, often called 'Easy Auth', is a platform-level feature that can secure your app with just a few clicks. By configuring Azure AD as the provider, you delegate the entire authentication flow to the platform without needing to modify your application code. This is the simplest and most direct method for this requirement.
Incorrect! Try again.
41You are designing a 3-tier application on Azure. The web and application tiers must have extremely low latency between them (<1ms), while the database tier requires the highest possible SLA and resilience against a datacenter failure. The application and web tiers can tolerate a datacenter failure as long as the service is restored. Which configuration best meets these requirements?
Configure virtual machine availability
Hard
A.Place web and app tier VMs into a Proximity Placement Group that is pinned to a single Availability Zone. Place the database tier VMs in a separate Availability Set spanning multiple fault/update domains.
B.Place the web and app tier VMs into a Proximity Placement Group. Place the database tier VMs across different Availability Zones. All resources must be within the same Availability Set.
C.Place the web and app tiers in a Proximity Placement Group, and place the database tier VMs across different Availability Zones.
D.Place all tiers in a single Availability Set.
Correct Answer: Place the web and app tiers in a Proximity Placement Group, and place the database tier VMs across different Availability Zones.
Explanation:
This is a synthesis question. The Proximity Placement Group (PPG) ensures that the web and app tier VMs are placed as physically close as possible in the same datacenter, satisfying the low-latency requirement. Spreading the database tier VMs across Availability Zones (physically separate datacenters within a region) provides the highest level of resilience against datacenter-level failures, offering a 99.99% SLA for two or more instances. Combining a PPG for latency-sensitive tiers and Availability Zones for the HA-critical tier is the optimal design. An Availability Set only protects against rack-level failures within a single datacenter. Pinning a PPG to a single Zone negates the high availability of that tier. You cannot span an Availability Set across Availability Zones.
Incorrect! Try again.
42You have dozens of VMs in a resource group. You need to retrieve a list of names and private IP addresses for only the VMs that are currently running, are located in eastus, and have a tag named Department with the value Finance. Which Azure CLI command with a JMESPath query correctly achieves this?
Manage virtual machines with the Azure CLI
Hard
A.bash
az vm list --resource-group MyRG --show-details --query "[?powerState=='VM running' && location=='eastus' && tags.Department=='Finance'].{Name:name, PrivateIP:privateIps}" -o table
B.bash
az vm list --resource-group MyRG --query "[?tags.Department=='Finance' && location=='eastus'].{Name:name, PrivateIP:privateIps}" -o table --show-details
C.bash
az vm list-ip-addresses --resource-group MyRG | az vm list --query "[?tags.Department=='Finance' && location=='eastus'].{Name:name, PrivateIP:virtualMachine.network.privateIpAddresses[0]}" -o table
D.bash
az vm list --resource-group MyRG --query "[?powerState=='VM running' && location=='eastus' && tags.Department=='Finance'].{Name:name, PrivateIP:privateIps}" -o table
Correct Answer: bash
az vm list --resource-group MyRG --show-details --query "[?powerState=='VM running' && location=='eastus' && tags.Department=='Finance'].{Name:name, PrivateIP:privateIps}" -o table
Explanation:
This question tests advanced JMESPath querying and knowledge of the specific data returned by az vm list. The key is knowing that the power state information is only available when the --show-details flag is used. The query then filters the array ([]) using a multi-conditional ? operator. It checks for powerState=='VM running', location=='eastus', and the nested tag value tags.Department=='Finance'. Finally, it projects ({}) the desired fields, name and privateIps, into a new structure. The other options are incorrect because they either miss the --show-details flag (making powerState unavailable), use an incorrect property name (privateIps is correct, not a long nested path), or attempt to pipe commands unnecessarily.
Incorrect! Try again.
43A financial services company needs to host a critical ASP.NET Core API. The requirements are: 1) Complete network isolation from other Azure tenants. 2) The ability to scale to handle up to 500 instances for month-end processing. 3) A VNet integration feature that allows access to on-premises resources via an ExpressRoute gateway. Which App Service Plan is the most appropriate and cost-effective choice?
Azure App Service plans
Hard
A.Standard (S3) plan with Hybrid Connections.
B.Isolated v2 (I2v2) plan in an App Service Environment v3.
C.Premium v2 (P3v2) plan deployed into an App Service Environment v2.
D.Premium v3 (P3v3) plan with VNet integration.
Correct Answer: Isolated v2 (I2v2) plan in an App Service Environment v3.
Explanation:
This question requires a deep understanding of the differences between App Service Plan tiers, especially regarding isolation and networking. The key requirement is 'Complete network isolation from other Azure tenants.' Only an App Service Environment (ASE) provides a dedicated, single-tenant deployment into a customer's VNet. The Isolated v2 plan runs on an ASEv3. A Premium v3 plan, while powerful and supporting VNet integration, still runs on multi-tenant infrastructure. An S3 plan with Hybrid Connections does not provide the required level of network isolation or scale. An ASEv2 (used by Isolated v1/Premium v2) is an older, less efficient, and more expensive technology than ASEv3 (used by Isolated v2), making the I2v2 plan the most appropriate modern choice.
Incorrect! Try again.
44Your company uses a Geo-Redundant Storage (GRS) enabled Recovery Services Vault in the West Europe region to back up critical VMs. A catastrophic failure renders the entire West Europe region inaccessible. You need to restore the VMs to the paired region, North Europe. What is a critical prerequisite and a key consideration when initiating the Cross-Region Restore (CRR)?
Backup Vaults
Hard
A.CRR is enabled by default on all GRS vaults; you can immediately restore to the paired region with the latest recovery point.
B.You must have enabled the CRR feature on the vault before the disaster. The restore process involves rehydrating data from archive-tier storage, which can take several hours.
C.You must have manually enabled the CRR feature on the vault before the disaster occurred. The RPO will be several hours, as GRS replication is asynchronous.
D.You must first declare a disaster with Azure support, which will trigger the GRS failover. Only then can you access the backup data in the paired region.
Correct Answer: You must have manually enabled the CRR feature on the vault before the disaster occurred. The RPO will be several hours, as GRS replication is asynchronous.
Explanation:
This is a critical edge case in disaster recovery planning. While the vault is GRS, the ability to perform a Cross-Region Restore is an opt-in feature that must be configured on the Recovery Services Vault before any disaster. If it's not enabled, the secondary region data is only available if Microsoft declares a regional disaster and performs a failover. When CRR is enabled, you can initiate the restore yourself. However, it's crucial to understand that GRS replication is asynchronous, meaning the latest available recovery point in the secondary region will lag behind the primary, resulting in a Recovery Point Objective (RPO) that is typically a few hours, not minutes.
Incorrect! Try again.
45You need to run a containerized data-processing task in Azure Container Instances (ACI). The task must read input files from a specific Azure File Share and securely write results to an Azure SQL Database. Both the Storage Account and the SQL Server are protected by service endpoints, allowing access only from a specific virtual network (VNet). What is the correct and most secure configuration for the ACI container group?
Configure Azure Container Instances
Hard
A.Deploy the ACI into the same VNet, mount the Azure File Share as a volume, and use a connection string with credentials stored in environment variables to connect to Azure SQL.
B.Deploy the ACI into a subnet within the VNet, use a system-assigned Managed Identity for the container group to authenticate with Azure SQL, and mount the Azure File Share as a volume using the storage account key stored in Azure Key Vault.
C.Deploy the ACI into a subnet within the VNet, grant the ACI's system-assigned Managed Identity permissions to both the Storage Account (for file share access) and the Azure SQL Database, and configure the container to use Managed Identity for authentication to both services.
D.Deploy the ACI with a public IP, use the Storage Account access key to mount the Azure File Share, and whitelist the ACI's public IP on the SQL Server firewall.
Correct Answer: Deploy the ACI into a subnet within the VNet, grant the ACI's system-assigned Managed Identity permissions to both the Storage Account (for file share access) and the Azure SQL Database, and configure the container to use Managed Identity for authentication to both services.
Explanation:
This question assesses the best practices for secure, integrated cloud services. The most secure and recommended approach avoids storing any secrets like connection strings or storage keys. 1) Deploying the ACI into the VNet (specifically, a delegated subnet) is necessary to bypass the service endpoint restrictions. 2) Using a system-assigned Managed Identity creates an identity for the ACI in Azure AD. 3) You can then grant this identity RBAC roles on both the Storage Account (e.g., 'Storage File Data SMB Share Contributor') and permissions within the Azure SQL Database. This allows the container to acquire tokens and authenticate to both services without handling any credentials, which is far more secure than using connection strings or storage keys, even if they are stored in Key Vault.
Incorrect! Try again.
46You are managing a web application with a staging deployment slot. You've just deployed a new version to staging and swapped it to production. A critical bug is found. You need to immediately roll back. During the initial slot configuration, the database connection string was marked as a "Deployment slot setting". What is the effect of this configuration on the rollback process?
Configure Azure App Service
Hard
A.When you swap production and staging back, the production app will correctly point to the old code but will use the staging database connection string, potentially causing data corruption.
B.The swap operation will fail because a slot-specific setting has changed, requiring a manual update before rollback.
C.The rollback swap will succeed, and the production app will correctly use the production connection string because slot settings are swapped along with the content.
D.When you swap back, the now-production slot (containing the old code) will retain its original production connection string, ensuring a seamless and safe rollback.
Correct Answer: When you swap back, the now-production slot (containing the old code) will retain its original production connection string, ensuring a seamless and safe rollback.
Explanation:
This question tests a nuanced but critical feature of App Service deployment slots. Settings marked as "Deployment slot setting" (also known as 'sticky' settings) do not move with the content during a swap. They are tied to the slot itself. So, the production slot always has the production connection string, and the staging slot always has the staging connection string. When you swap staging to production, the new code moves into the production slot and picks up the production connection string. When you roll back by swapping again, the old code moves back into the production slot and continues to use the same production connection string that never left the slot. This prevents the disastrous scenario of production code accidentally connecting to a staging database.
Incorrect! Try again.
47You are provisioning an Azure VM to host a large in-memory NoSQL database (like Redis or Memcached) that also requires extremely high, low-latency local disk throughput for temporary data and swap files. The workload is characterized by frequent, small read/write operations on a large dataset that must reside in RAM. Which VM series and storage configuration is the most technically suitable and cost-optimized for this specific workload?
virtual machines
Hard
A.A Dv5-series VM with multiple Premium SSD P30 disks configured in a RAID 0 array for high IOPS.
B.An Lsv3-series VM utilizing its local NVMe SSD for temporary data and swap files.
C.An Esv5-series VM with an Ultra Disk configured for maximum IOPS.
D.An M-series VM with Premium SSD storage.
Correct Answer: An Lsv3-series VM utilizing its local NVMe SSD for temporary data and swap files.
Explanation:
This question requires analyzing a complex workload and matching it to specialized Azure VM SKUs. The key requirements are large memory (in-memory database) and high, low-latency local disk throughput (temporary data). The Lsv3-series is specifically designed for storage-throughput-intensive workloads, featuring high-throughput, low-latency, directly-mapped local NVMe storage. This local storage is perfect for temporary data or swap files, offering superior performance over network-attached disks like Premium SSD or Ultra Disk for this use case. While Esv5-series (Memory Optimized) has a high memory-to-vCPU ratio, its reliance on network-attached storage wouldn't be as performant for the local disk requirement. M-series is overkill and optimized for massive memory sizes (like SAP HANA), making it less cost-effective. Dv5 is a general-purpose series. The Lsv3 provides the best combination of features for this specific scenario.
Incorrect! Try again.
48A Python Flask application running on an Azure App Service for Linux (P1v2 plan) is experiencing intermittent 502 Bad Gateway errors under moderate load. The App Service metrics show CPU and Memory are below 70%, but the 'Http Server Errors' metric is spiking. The application logs show tracebacks related to 'database connection timeout'. The database is an Azure Database for PostgreSQL. What is the most likely root cause of this issue?
Host a web application with Azure App Service
Hard
A.The Web Application Firewall (WAF) is incorrectly blocking legitimate database connection requests.
B.The outbound TCP connection (SNAT) limit for the App Service has been exhausted.
C.A misconfigured deployment slot is routing traffic to an offline instance.
D.The App Service Plan (P1v2) is underpowered and needs to be scaled up to a P2v2.
Correct Answer: The outbound TCP connection (SNAT) limit for the App Service has been exhausted.
Explanation:
This is a complex troubleshooting scenario. While scaling up (A) might seem plausible, the CPU/Memory metrics suggest it's not a resource bottleneck. The key clue is the combination of 502 Bad Gateway and 'database connection timeout' logs. Azure App Services have a limit on the number of concurrent outbound connections they can make to public endpoints (like the default endpoint for Azure PostgreSQL). If the Python application is not properly managing and pooling its database connections, it can quickly open and close many connections, exhausting the available SNAT ports on the underlying App Service worker. This prevents the app from establishing new connections to the database, leading to timeouts that manifest as 502 errors to the end-user. The best solution is to implement proper connection pooling in the application and/or use VNet integration with a service endpoint/private endpoint to bypass SNAT limits.
Incorrect! Try again.
49You have two business-critical VMs. To achieve high availability, you are evaluating two options:
1. Place both VMs in the same Availability Set within the East US region.
2. Place one VM in Availability Zone 1 and the other in Availability Zone 2 within the East US 2 region.
Assuming both VMs are running an identical application behind an Azure Load Balancer, which statement most accurately describes the difference in resilience and guaranteed SLA?
Configure virtual machine availability
Hard
A.Option 1 provides protection against software updates via Update Domains, while Option 2 does not offer any protection against planned maintenance events.
B.Option 1 provides a 99.95% SLA and protects against hardware failure within a datacenter. Option 2 provides a 99.99% SLA and protects against an entire datacenter failure.
C.Option 1 provides a 99.9% SLA against rack failures. Option 2 provides a 99.95% SLA against datacenter failures.
D.Both options provide a 99.99% SLA, but Option 2 has lower inter-VM latency.
Correct Answer: Option 1 provides a 99.95% SLA and protects against hardware failure within a datacenter. Option 2 provides a 99.99% SLA and protects against an entire datacenter failure.
Explanation:
This question tests the precise differences between Availability Sets and Availability Zones. An Availability Set protects against failures within a single datacenter by distributing VMs across different fault domains (power/network racks) and update domains (planned maintenance groups). This configuration offers a 99.95% SLA. An Availability Zone is a physically separate datacenter within the same region. Deploying VMs across two or more zones protects against the failure of an entire datacenter. This superior level of resilience is backed by a higher 99.99% SLA. Both options are protected against planned maintenance, as Azure coordinates updates across zones just as it does across update domains.
Incorrect! Try again.
50You need to write a script to deallocate all VMs in a resource group named ProjectX-RG that have a tag AutoShutdown set to true. However, the script must only deallocate a VM if its last boot time was more than 24 hours ago. Which combination of Azure CLI commands and scripting logic is required to accomplish this?
Manage virtual machines with the Azure CLI
Hard
A.A single az vm deallocate command with a complex --query parameter to filter by tags and boot time.
B.Use az vm run-command to execute a script inside each VM that checks its own uptime and shuts down if it exceeds 24 hours.
C.Use az graph to query all VMs with the specified tag and boot time properties, then pipe the resulting VM IDs to xargs with az vm deallocate.
D.Use az vm list with a query for the tag, then loop through the results. In the loop, use az vm get-instance-view to check the boot time and, if the condition is met, call az vm deallocate.
Correct Answer: Use az vm list with a query for the tag, then loop through the results. In the loop, use az vm get-instance-view to check the boot time and, if the condition is met, call az vm deallocate.
Explanation:
This problem requires multiple steps and cannot be solved with a single command. The boot time of a VM is not available in the standard az vm list output; it's part of the detailed instance view. Therefore, the correct logic is: 1. Get the list of VM IDs that have the AutoShutdown tag set to true using az vm list. 2. Iterate (e.g., in a Bash for loop) over this list of IDs. 3. Inside the loop, for each VM ID, call az vm get-instance-view. 4. From the instance view output, extract the boot time status timestamp. 5. Perform a date/time comparison in the script to see if the boot time is older than 24 hours. 6. If the condition is met, call az vm deallocate for that specific VM ID. az graph could be an alternative for querying but the logic of iterating and conditionally deallocating remains. run-command is inefficient and inappropriate for this management task.
Incorrect! Try again.
51You have configured an Azure VM backup policy with a daily backup retained for 30 days and a monthly backup sent to an Archive tier for 7 years (Long-Term Retention). A year later, an auditor requests a specific file from a VM that was backed up 180 days ago. What is the process and primary consideration for retrieving this file?
Backup Vaults
Hard
A.Initiate an Item-Level Restore directly from the archive tier; the process will be slow but will eventually mount the recovery point.
B.You must first initiate a 'rehydration' of the archived recovery point to the standard/vault tier, which may take several hours and incur costs. Once rehydrated, you can perform an Item-Level Restore.
C.Data in the Archive tier is for full DR scenarios only and does not support Item-Level Restore. The request cannot be fulfilled.
D.You must first perform a full restore of the VM from the archive tier to a new VM, then retrieve the file.
Correct Answer: You must first initiate a 'rehydration' of the archived recovery point to the standard/vault tier, which may take several hours and incur costs. Once rehydrated, you can perform an Item-Level Restore.
Explanation:
This question targets the specific operational details of using the Azure Backup Archive tier. Data stored in the archive tier is offline and not immediately accessible. Before you can perform any kind of restore (full or item-level), the recovery point must be moved from the archive tier back to the operational 'vault-standard' tier. This process is called rehydration. Rehydration has two priority options (standard and high) and can take up to 15 hours for standard priority. It also has associated data retrieval costs. Only after the rehydration is complete does the recovery point become available for a standard Item-Level Restore (file recovery) operation. Direct restore from the archive tier is not possible.
Incorrect! Try again.
52You need to run a GPU-accelerated machine learning inference workload using Azure Container Instances (ACI). The workload is sporadic, running for about 30 minutes every few hours. You need to minimize costs while ensuring the container has the necessary NVIDIA drivers. Which of the following statements accurately describes the optimal configuration approach?
Configure Azure Container Instances
Hard
A.Choose any GPU SKU, package the NVIDIA drivers inside your container image, and deploy to ACI.
B.Choose a V100 GPU SKU, a Linux-based container image with CUDA dependencies, and rely on the ACI platform to provision the GPU-enabled host with the necessary drivers, making them available to the container.
C.Choose a K80 GPU SKU, a Windows-based container image, and specify the drivers to be installed in the ARM template.
D.Choose a V100 GPU SKU, a Linux-based container image, and assume Azure automatically provisions the NVIDIA drivers on the underlying host.
Correct Answer: Choose a V100 GPU SKU, a Linux-based container image with CUDA dependencies, and rely on the ACI platform to provision the GPU-enabled host with the necessary drivers, making them available to the container.
Explanation:
This question dives into the specifics of using GPU resources in ACI. For ACI GPU workloads, you do not (and should not) package the low-level NVIDIA drivers into your container image. The ACI service provisions a GPU-enabled host VM (like an N-series VM) that already has the necessary drivers installed. Your container image only needs to include the user-mode CUDA libraries and dependencies that your application requires. ACI then makes the host drivers available to your container. GPU support in ACI is only for Linux containers, not Windows. V100 is a common and powerful GPU SKU available. For a sporadic workload, ACI's per-second billing model is highly cost-effective compared to running a dedicated GPU VM 24/7.
Incorrect! Try again.
53An App Service Plan (P2v2) in West Europe hosts ten different web apps for various departments. One of the apps, a reporting app, runs a heavy process every hour that consumes 95% of the CPU for 10 minutes, causing performance degradation for all other nine apps. What is the most operationally efficient and cost-effective solution to isolate the performance impact of the reporting app?
Azure App Service plans
Hard
A.Refactor the reporting process into an Azure Function with a Premium plan, triggered by a timer.
B.Keep the app in the same plan, but configure CPU quotas for it in the App Service settings.
C.Move the reporting app to a new, separate App Service Plan (e.g., another P2v2).
D.Scale up the current App Service Plan to a P3v2 to provide more CPU headroom for all apps.
Correct Answer: Move the reporting app to a new, separate App Service Plan (e.g., another P2v2).
Explanation:
This question is about the 'noisy neighbor' problem within an App Service Plan. An App Service Plan is the unit of scale; all apps within a plan share the same underlying VM resources. Scaling up the plan (P3v2) would help but is not cost-effective, as you're paying for higher capacity 24/7 for a problem that occurs for 10 minutes an hour. Azure App Service does not offer per-app CPU quotas. Refactoring into an Azure Function is a good long-term solution but is not the most operationally efficient (requires code changes). The simplest, most direct, and cost-effective solution is to isolate the workload. Moving the single noisy app to its own dedicated App Service Plan (even one of the same size) completely isolates its resource consumption from the other nine apps, ensuring they are not affected. This provides workload isolation at the infrastructure level.
Incorrect! Try again.
54You are deploying a high-performance SQL Server on an Azure VM that requires over 100,000 IOPS and sub-millisecond latency for its data files. The log files have a lower IOPS requirement but need extremely low latency. Which disk configuration provides the best performance for this workload?
virtual machines
Hard
A.Use a single large Ultra Disk for both data and log files, dynamically tuning its IOPS and throughput settings.
B.Place data files on a RAID 0 stripe set of 5 P40 Premium SSDs and log files on a single P30 Premium SSD.
C.Place data files on a Premium SSD v2 disk configured for maximum IOPS, and place log files on a separate Ultra Disk configured for low IOPS but with caching set to 'ReadOnly'.
D.Place data files on a Premium SSD v2 disk configured for high IOPS and throughput, and place log files on a separate Ultra Disk configured for lower IOPS but guaranteeing sub-millisecond latency.
Correct Answer: Place data files on a Premium SSD v2 disk configured for high IOPS and throughput, and place log files on a separate Ultra Disk configured for lower IOPS but guaranteeing sub-millisecond latency.
Explanation:
This is a high-level performance tuning question. For SQL Server, best practice is to separate data and log files onto different physical volumes.
Data Files: Need high IOPS and throughput. Premium SSD v2 is an excellent choice as it allows you to provision IOPS and throughput independently of disk size, making it potentially more cost-effective than a very large Ultra Disk for achieving 100k+ IOPS.
Log Files: The key requirement is latency. SQL transaction log writes are sequential and latency-sensitive. Ultra Disks are the only Azure disk offering that consistently provides sub-millisecond latency. Therefore, dedicating an Ultra Disk (even a small one) specifically for the transaction log is the optimal design for performance. Setting caching to 'ReadOnly' on a log drive is incorrect; it should be 'None' for logs. A RAID set of Premium SSDs can provide high IOPS but won't match the low latency of an Ultra Disk.
Incorrect! Try again.
55An App Service needs to securely connect to an on-premises Oracle database. The on-premises network is connected to Azure via a Site-to-Site VPN terminating on a Virtual Network Gateway in a VNet. The App Service must not be exposed to the public internet. Which configuration enables this connectivity?
Configure Azure App Service
Hard
A.Integrate the App Service with the VNet (VNet Integration), and ensure the VNet's routing table directs traffic for the on-premises IP range to the Virtual Network Gateway.
B.Configure a Hybrid Connection from the App Service to an on-premises server running the Hybrid Connection Manager.
C.Configure a Point-to-Site VPN from the App Service instance directly to the on-premises network.
D.Deploy the App Service into an App Service Environment (ASE) with a public IP and configure the on-premises firewall to allow traffic only from this IP.
Correct Answer: Integrate the App Service with the VNet (VNet Integration), and ensure the VNet's routing table directs traffic for the on-premises IP range to the Virtual Network Gateway.
Explanation:
This question tests advanced App Service networking. Hybrid Connections work at the application layer (TCP) and are generally used when you can't modify the VNet, but they don't provide true network-level integration. The best solution here is VNet Integration. This feature allows the App Service to inject its outbound traffic directly into a subnet in your VNet. Once the app's traffic is in the VNet, it behaves like any other resource in that VNet. Because the VNet is already connected to the on-premises network via the S2S VPN and gateway, the VNet's routing rules will automatically know how to forward packets destined for the on-premises IP address range to the gateway, establishing the connection. This provides full network-level connectivity without exposing the App Service publicly.
Incorrect! Try again.
56You have deployed a new version of a .NET web application to an Azure App Service staging slot. You have enabled the 'Swap with preview' feature to warm up the new version before completing the swap. During the preview phase, you notice a significant number of HTTP 500 errors in the application logs originating from the staging slot (now routing production traffic). What is the safest and most immediate course of action?
Host a web application with Azure App Service
Hard
A.Restart the staging slot instance from the Kudu console to force a clean application start.
B.Complete the swap, assuming the errors are transient warm-up issues, and then troubleshoot in production.
C.Cancel the swap. This will revert all traffic back to the original production slot immediately.
D.Scale up the App Service Plan to provide more resources to the warming-up instance.
Correct Answer: Cancel the swap. This will revert all traffic back to the aoriginal production slot immediately.
Explanation:
The 'Swap with preview' feature is designed specifically for this scenario: to catch critical errors before they fully impact production. The process works in two phases: 1) The swap operation applies all configuration from the production slot to the staging slot and restarts it. 2) Traffic is then redirected to the warmed-up staging slot for a final validation period. If errors are detected during this preview, the correct action is to 'Cancel the swap' (or reset the swap). This immediately reverts the routing change, sending all traffic back to the original, stable production slot, thereby minimizing user impact. Completing the swap would be reckless. Scaling up doesn't address the underlying code or configuration issue. Restarting the slot might fix it, but canceling the swap is the guaranteed, immediate way to restore service.
Incorrect! Try again.
57You need to update a complex, nested property on a virtual machine's configuration that is not exposed through a direct az vm update parameter. For example, you want to set the priority property within the billingProfile object to Spot. How can you achieve this using the Azure CLI without rewriting the entire VM configuration?
Manage virtual machines with the Azure CLI
Hard
A.Export the VM's JSON with az vm show, manually edit the JSON file to add the billing profile, and then re-apply it using az vm create with the modified JSON.
B.Use the az rest command to directly call the Azure Resource Manager API with a PATCH request and a JSON body containing only the property to be changed.
C.Use az vm update --set billingProfile.priority='Spot' --name MyVM -g MyRG.
D.Use the generic az resource update command with the appropriate --set property path.
Correct Answer: Use the az rest command to directly call the Azure Resource Manager API with a PATCH request and a JSON body containing only the property to be changed.
Explanation:
This question tests the deepest level of Azure CLI interaction. While az vm update --set is powerful, it doesn't support all nested properties. az resource update is also an option, but az rest is the most direct and flexible tool for interacting with any ARM API endpoint, especially for PATCH operations. To update a single property, you would construct a PATCH request. The command would look something like: az rest --method PATCH --uri /subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.Compute/virtualMachines/{vmName}?api-version=2022-03-01 --body '{"properties": {"billingProfile": {"maxPrice": -1}}}'. This method is highly specific and avoids the risk of misconfiguration that comes with fetching and re-applying an entire resource JSON.
Incorrect! Try again.
58An organization has a strict security policy that all Azure service traffic must remain on the Azure private network backbone and never traverse the public internet. They need to back up VMs located in a VNet to a Recovery Services Vault. What is the complete set of components required to meet this policy?
Backup Vaults
Hard
A.A Recovery Services Vault configured for VNet service endpoints for Microsoft.RecoveryServices.
B.A Recovery Services Vault with a Private Endpoint, a corresponding private DNS zone (e.g., privatelink.siterecovery.windowsazure.com) to resolve the vault's FQDN to the private IP, and public network access disabled on the vault.
C.A Recovery Services Vault, a Private Endpoint for the vault in the VNet, and public access disabled on the vault.
D.A Recovery Services Vault with a Private Endpoint, and a Network Security Group (NSG) rule on the VM subnet allowing outbound traffic to the 'AzureBackup' service tag.
Correct Answer: A Recovery Services Vault with a Private Endpoint, a corresponding private DNS zone (e.g., privatelink.siterecovery.windowsazure.com) to resolve the vault's FQDN to the private IP, and public network access disabled on the vault.
Explanation:
This question requires a comprehensive understanding of Private Endpoints. Simply creating a Private Endpoint is not enough. For the backup service to work correctly, the Azure Backup agents on the VMs must be able to resolve the vault's public FQDN to the private IP address of the Private Endpoint. This requires creating and linking a Private DNS Zone for the Azure Backup service to the VNet. When the agent tries to contact myvault.backup.windowsazure.com, the Azure DNS redirects it to the private zone, which returns the private IP. Disabling public network access on the vault is the final step to enforce the security policy, ensuring the vault can only be accessed via its private endpoints. Service Endpoints are not supported for Recovery Services Vaults.
Incorrect! Try again.
59A Virtual Machine Scale Set (VMSS) is deployed with its instances spread across all 3 Availability Zones in a region. You have also associated this VMSS with a Proximity Placement Group (PPG) to minimize latency for a co-located resource. What is the resulting behavior of instance placement?
Configure virtual machine availability
Hard
A.The deployment will fail, as a VMSS cannot be associated with both Availability Zones and a Proximity Placement Group simultaneously.
B.The VMSS will deploy all instances into a single zone, whichever zone the PPG is anchored to, ignoring the multi-zone setting.
C.The PPG setting will be ignored, and the instances will be spread across the 3 zones for maximum availability.
D.The VMSS will distribute instances across the 3 Availability Zones, and within each zone, it will attempt to place the instances in the same datacenter as other resources in the PPG.
Correct Answer: The VMSS will distribute instances across the 3 Availability Zones, and within each zone, it will attempt to place the instances in the same datacenter as other resources in the PPG.
Explanation:
This is a complex interaction between two availability and placement features. It is indeed possible to use both Availability Zones and Proximity Placement Groups with a VMSS. The behavior is hierarchical. Azure first honors the high-availability requirement of spreading instances across the specified zones (Zone 1, Zone 2, Zone 3). Then, within each of those zones, it tries to honor the PPG by co-locating the instances in that zone as physically close as possible to other resources in the PPG that are also in that same zone. This provides a balance of high availability (zone resiliency) and low latency (PPG co-location).
Incorrect! Try again.
60Your company is migrating a legacy application to an Azure VM. This application is licensed based on the number of physical CPU cores and is not compatible with hyper-threading (it performs worse with SMT enabled). You need to run it on a VM with 8 vCPUs but ensure it is running on only 4 physical cores. Which Azure VM feature allows you to achieve this specific configuration?
virtual machines
Hard
A.Choosing a VM from a constrained vCPU-capable series (e.g., Standard_E8-4ds_v5).
B.Running a startup script on the VM to disable hyper-threading in the guest OS.
C.Using a dedicated host to control the underlying physical hardware.
D.This is not possible; Azure vCPUs are an abstraction and cannot be mapped to physical cores.
Correct Answer: Choosing a VM from a constrained vCPU-capable series (e.g., Standard_E8-4ds_v5).
Explanation:
This question tests knowledge of specialized VM SKUs designed for licensing-sensitive workloads. Azure offers specific VM sizes known as 'constrained vCPU' sizes. A VM like the Standard_E8-4ds_v5 has the same memory, storage, and I/O as the Standard_E8ds_v5 but exposes only half the vCPUs. In this case, it provides 4 vCPUs while running on the same hardware as an 8 vCPU instance. This effectively disables hyper-threading for the guest OS and reduces the core count for software licensing purposes, all while maintaining the high memory/storage specs of the larger parent size. This is the official and supported Azure method for handling such licensing constraints.