Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
What is a virtual machine (VM) in the context of cloud computing?
Not quite. Try another option.
Answer: A software-based emulation of a physical computer.
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.
Question 2 of 60 · virtual machines · Easy
Which cloud service model does providing a virtual machine fall under?
Not quite. Try another option.
Answer: Infrastructure as a Service (IaaS)
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.
What is the primary purpose of an Azure Availability Set?
Not quite. Try another option.
Answer: To ensure high availability for VMs within a single datacenter by distributing them across different hardware.
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.
Which Azure feature protects your applications from an entire datacenter failure by using physically separate locations within a region?
Not quite. Try another option.
Answer: Availability Zones
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.
Question 5 of 60 · Azure App Service plans · Easy
What does an Azure App Service Plan define?
Not quite. Try another option.
Answer: The compute resources (region, instance size, scale count) for your web apps.
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.
Question 6 of 60 · Azure App Service plans · Easy
If you have multiple web apps, can they share the same App Service Plan?
Not quite. Try another option.
Answer: Yes, multiple apps can run in and share the resources of a single plan.
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.
Question 7 of 60 · Configure Azure App Service · Easy
What is a 'deployment slot' in Azure App Service primarily used for?
Not quite. Try another option.
Answer: To stage and test a new version of an app before swapping it into production.
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.
Question 8 of 60 · Configure Azure App Service · Easy
Which Azure App Service feature allows you to automatically increase or decrease the number of running instances based on performance metrics?
Not quite. Try another option.
Answer: Autoscaling
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.
What is the main benefit of using Azure Container Instances (ACI)?
Not quite. Try another option.
Answer: It allows you to run containers without managing any underlying virtual machines.
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.
Which of the following is billed on a per-second basis in Azure Container Instances?
Not quite. Try another option.
Answer: vCPU and memory resources allocated to the container group.
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.
Question 11 of 60 · Manage virtual machines with the Azure CLI · Easy
Which is the correct Azure CLI command to start a stopped virtual machine?
Not quite. Try another option.
Answer: az vm start --name MyVM --resource-group MyResourceGroup
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.
Question 12 of 60 · Manage virtual machines with the Azure CLI · Easy
What is the purpose of the --resource-group parameter in an az vm create command?
Not quite. Try another option.
Answer: To specify the logical container where the new VM will be placed.
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.
Question 13 of 60 · Host a web application with Azure App Service · Easy
Azure App Service is an example of which type of cloud service model?
Not quite. Try another option.
Answer: Platform as a Service (PaaS)
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.
Question 14 of 60 · Host a web application with Azure App Service · Easy
Which of the following is a common method for deploying code to an Azure App Service web app?
Not quite. Try another option.
Answer: Continuous deployment from a Git repository (like GitHub or Azure Repos).
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.
Question 15 of 60 · Backup Vaults · Easy
What is the primary purpose of an Azure Recovery Services vault?
Not quite. Try another option.
Answer: To store and manage backups, recovery points, and backup policies.
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.
Question 16 of 60 · Backup Vaults · Easy
In the context of Azure Backup, what is a 'recovery point'?
Not quite. Try another option.
Answer: A copy of the original data from a specific point in time, from which you can restore.
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.
Question 17 of 60 · Backup Vaults · Easy
What does a backup policy in an Azure Recovery Services vault define?
Not quite. Try another option.
Answer: The schedule for when backups are taken and how long they are kept.
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).
Question 18 of 60 · virtual machines · Easy
What file is used by a virtual machine to store its operating system and user data?
Not quite. Try another option.
Answer: Virtual Hard Disk (VHD)
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.
Question 19 of 60 · Azure App Service plans · Easy
Which of the following App Service Plan tiers is designed for development/testing and does not support custom domains?
Not quite. Try another option.
Answer: Free
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.
Question 20 of 60 · Manage virtual machines with the Azure CLI · Easy
What is the Azure CLI?
Not quite. Try another option.
Answer: A command-line tool for creating and managing Azure resources.
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.
Question 21 of 60 · virtual machines · Medium
You 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?
Not quite. Try another option.
Answer: E-series (Memory Optimized)
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.
Question 22 of 60 · Configure virtual machine availability · Medium
You 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?
Not quite. Try another option.
Answer: Place the two web servers in one Availability Set, and the two database servers in a second, separate Availability Set.
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.
Question 23 of 60 · Azure App Service plans · Medium
Your 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?
Not quite. Try another option.
Answer: Create a Premium V2 (P2V2) plan for the production app, and a single Basic (B1) plan for both the staging and development apps.
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.
Question 24 of 60 · Manage virtual machines with the Azure CLI · Medium
You 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?
Not quite. Try another option.
Answer: az vm stop --resource-group rg-prod --name vm-main-01
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.
Question 25 of 60 · Configure Azure Container Instances · Medium
You 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?
Not quite. Try another option.
Answer: Never
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.
Question 26 of 60 · Configure Azure App Service · Medium
You 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?
Not quite. Try another option.
Answer: Deployment slots
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.
Question 27 of 60 · Host a web application with Azure App Service · Medium
You 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?
Not quite. Try another option.
Answer: A CI/CD pipeline using the Deployment Center with GitHub as the source
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.
Question 28 of 60 · Backup Vaults · Medium
You 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?
Not quite. Try another option.
Answer: It allows you to initiate a restore of the VM and its data to the paired secondary region from the backups stored there.
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.
Question 29 of 60 · Configure virtual machine availability · Medium
You 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?
Not quite. Try another option.
Answer: Availability Zones
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.
Question 30 of 60 · Azure App Service plans · Medium
An 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?
Not quite. Try another option.
Answer: Scaling up, which increases the CPU, memory, and storage of the existing VM instance.
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.
Question 31 of 60 · Manage virtual machines with the Azure CLI · Medium
You 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?
Not quite. Try another option.
Answer: az vm resize --resource-group dev-rg --name temp-vm --size Standard_D2s_v3
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.
Question 32 of 60 · Configure Azure Container Instances · Medium
You 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?
Not quite. Try another option.
Answer: The ACI must be deployed into a subnet that is delegated to 'Microsoft.ContainerInstance/containerGroups'.
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.
Question 33 of 60 · virtual machines · Medium
You 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?
Not quite. Try another option.
Answer: Managed Disks with the Premium SSD option.
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.
Question 34 of 60 · Configure Azure App Service · Medium
You 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?
Not quite. Try another option.
Answer: A CNAME record pointing www to the app's default hostname (e.g., myapp.azurewebsites.net).
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.
Question 35 of 60 · Host a web application with Azure App Service · Medium
After 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?
Not quite. Try another option.
Answer: Enable and review the Application Logging (Log stream) to check for startup errors or exceptions.
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.
Question 36 of 60 · Azure App Service plans · Medium
You 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?
Not quite. Try another option.
Answer: Increasing the number of worker instances in the S1 plan from one to three.
'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.
Question 37 of 60 · Manage virtual machines with the Azure CLI · Medium
You 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?
Not quite. Try another option.
Answer: az vm create --resource-group prod-rg --name web-vm-01 --image UbuntuLTS --generate-ssh-keys
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.
Question 38 of 60 · Configure virtual machine availability · Medium
An 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?
Not quite. Try another option.
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.
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.
Question 39 of 60 · Configure Azure Container Instances · Medium
You 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?
Not quite. Try another option.
Answer: Secure environment variables
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.
Question 40 of 60 · Configure Azure App Service · Medium
You 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?
Not quite. Try another option.
Answer: Enabling the Authentication / Authorization feature (Easy Auth) and configuring Azure AD as an identity provider.
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.
Question 41 of 60 · Configure virtual machine availability · Hard
You 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?
Not quite. Try another option.
Answer: Place the web and app tiers in a Proximity Placement Group, and place the database tier VMs across different Availability Zones.
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.
Question 42 of 60 · Manage virtual machines with the Azure CLI · Hard
You 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?
Not quite. Try another option.
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
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.
Question 43 of 60 · Azure App Service plans · Hard
A 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?
Not quite. Try another option.
Answer: Isolated v2 (I2v2) plan in an App Service Environment v3.
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.
Question 44 of 60 · Backup Vaults · Hard
Your 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)?
Not quite. Try another option.
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.
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.
Question 45 of 60 · Configure Azure Container Instances · Hard
You 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?
Not quite. Try another option.
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.
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.
Question 46 of 60 · Configure Azure App Service · Hard
You 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?
Not quite. Try another option.
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.
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.
Question 47 of 60 · virtual machines · Hard
You 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?
Not quite. Try another option.
Answer: An Lsv3-series VM utilizing its local NVMe SSD for temporary data and swap files.
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.
Question 48 of 60 · Host a web application with Azure App Service · Hard
A 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?
Not quite. Try another option.
Answer: The outbound TCP connection (SNAT) limit for the App Service has been exhausted.
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.
Question 49 of 60 · Configure virtual machine availability · Hard
You 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?
Not quite. Try another option.
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.
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.
Question 50 of 60 · Manage virtual machines with the Azure CLI · Hard
You 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?
Not quite. Try another option.
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.
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.
Question 51 of 60 · Backup Vaults · Hard
You 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?
Not quite. Try another option.
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.
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.
Question 52 of 60 · Configure Azure Container Instances · Hard
You 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?
Not quite. Try another option.
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.
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.
Question 53 of 60 · Azure App Service plans · Hard
An 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?
Not quite. Try another option.
Answer: Move the reporting app to a new, separate App Service Plan (e.g., another P2v2).
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.
Question 54 of 60 · virtual machines · Hard
You 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?
Not quite. Try another option.
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.
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.
Question 55 of 60 · Configure Azure App Service · Hard
An 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?
Not quite. Try another option.
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.
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.
Question 56 of 60 · Host a web application with Azure App Service · Hard
You 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?
Not quite. Try another option.
Answer: Cancel the swap. This will revert all traffic back to the aoriginal production slot immediately.
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.
Question 57 of 60 · Manage virtual machines with the Azure CLI · Hard
You 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?
Not quite. Try another option.
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.
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.
Question 58 of 60 · Backup Vaults · Hard
An 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?
Not quite. Try another option.
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.
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.
Question 59 of 60 · Configure virtual machine availability · Hard
A 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?
Not quite. Try another option.
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.
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).
Question 60 of 60 · virtual machines · Hard
Your 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?
Not quite. Try another option.
Answer: Choosing a VM from a constrained vCPU-capable series (e.g., Standard_E8-4ds_v5).
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.
That's unit 5
Answer a few questions and your score shows up here.
Nearly through. Did unit 5 of INT327 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 5 of INT327 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.