Tüm alıştırma soruları

1252 soru

Soru 961Soru

An administrator is configuring diagnostics for an Azure Container Registry named acr1. Diagnostic logs are configured to send repository events to a Log Analytics workspace.

You need to write a Kusto Query Language (KQL) query to count the number of successful image pull operations (where the operation is RepositoryPull and the result is Success) initiated from IP addresses outside of the corporate subnet 192.168.0.0/16 during the last 48 hours. The results must be grouped by the repository name and the caller's IP address.

Which KQL query should you run?

Cevabı ve açıklamayı göster

Cevap: ContainerRegistryRepositoryEvents
| where TimeGenerated > ago(48h)
| where OperationName == "RepositoryPull" and Result == "Success"
| where not(ipv4_is_in_range(CallerIpAddress, "192.168.0.0/16"))
| summarize PullCount = count() by Repository, CallerIpAddress

Cevap

The query starting with ContainerRegistryRepositoryEvents and using not(ipv4_is_in_range(CallerIpAddress, '192.168.0.0/16')) to filter the subnet is correct.
The correct query targets the ContainerRegistryRepositoryEvents table, which contains data-plane event logs for the Azure Container Registry. It applies filters for the last 48 hours using TimeGenerated > ago(48h), restricts the logs to successful pull operations, excludes the specified subnet using the not(ipv4_is_in_range()) function, and groups the count of operations using summarize PullCount = count() by Repository, CallerIpAddress.

Adım Adım Çözüm

1
Select the log source table.
ContainerRegistryRepositoryEvents
Data-plane events like registry pull operations are logged in resource-specific diagnostic tables rather than the AzureActivity control-plane log table.
2
Apply the time range and operation status filters.
TimeGenerated > ago(48h) and OperationName == 'RepositoryPull' and Result == 'Success'
Filters must be applied early in the pipeline to optimize query performance and ensure columns are not projected away before filtering.
3
Exclude the corporate subnet range.
not(ipv4_is_in_range(CallerIpAddress, '192.168.0.0/16'))
Direct inequality comparison (!=) checks for literal string match rather than evaluating IP addresses within a CIDR subnet block. The ipv4_is_in_range function evaluates subnet membership correctly.
4
Aggregate the counts by repository and IP address.
summarize PullCount = count() by Repository, CallerIpAddress
The KQL summarize operator with count() groups and aggregates the filtered rows as required.

Anahtar Kavram

Selecting correct resource diagnostic tables and performing CIDR-based IP filtering in KQL.
Soru 962Soru

An administrator manages an Azure virtual machine named VM-AppDb01 that runs Windows Server 2022. The virtual machine has Azure Disk Encryption (ADE) enabled, with keys stored in an Azure Key Vault. VM-AppDb01 is backed up to a Recovery Services vault named Vault01.

Following a database corruption event, you need to restore the entire virtual machine to its last known good state. When navigating to the restore options in Vault01, you must select the appropriate recovery configuration.

Which restore option is supported and must be selected to recover the virtual machine?

Cevabı ve açıklamayı göster

Cevap: Restore disks to a storage account, and then recreate the virtual machine using a template or PowerShell.

Cevap

Restore disks to a storage account, and then recreate the virtual machine using a template or PowerShell.
For virtual machines encrypted with Azure Disk Encryption (ADE), Azure Backup does not support direct virtual machine recovery options such as creating a new VM or replacing the existing disks directly from the portal. The only supported method is to restore the virtual machine's disks to an Azure storage account. Once the disks are successfully restored, the administrator can recreate the virtual machine using the generated Azure Resource Manager (ARM) template or custom PowerShell scripts, referencing the original key vault and secret URLs.

Adım Adım Çözüm

1
Identify the encryption status of the virtual machine.
The virtual machine VM-AppDb01 has Azure Disk Encryption (ADE) enabled.
Encryption status dictates which restore methods are supported by Azure Backup.
2
Determine the supported restore options for Azure Disk Encryption (ADE) encrypted VMs.
Direct VM restore options (Create new VM and Replace existing VM) are disabled/unsupported for ADE-encrypted VMs. The only supported restore option is to restore the VM disks to a storage account.
Azure Backup cannot directly orchestrate the VM recreation for ADE-encrypted VMs due to security configurations and access to Key Vault secrets.
3
Recreate the virtual machine from the restored disks.
Use the deployment templates or PowerShell script generated during the disk restore process to provision the new VM and associate it with the existing encryption keys in the Key Vault.
This completes the full recovery of the encrypted virtual machine.

Anahtar Kavram

Azure Virtual Machine recovery options and limitations for encrypted (ADE) VMs
Tahmini Süre:3m 0s
Soru 963Soru

A company manages document storage in an Azure Storage account named stcorplegal. You need to allow members of a Microsoft Entra ID group named LegalAuditors to view and download blobs in a container named case-files. The auditors will navigate to the container using the Azure portal. The solution must follow the principle of least privilege.

Which two role assignments should you configure?

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Reader at the storage account scope; Storage Blob Data Reader at the container scope

Cevap

Assign the Reader role at the storage account scope and the Storage Blob Data Reader role at the container scope.
To view and download blobs in a specific container using the Azure portal under the principle of least privilege, two permissions are required: first, the Reader role at the storage account scope to enable resource navigation in the portal; and second, the Storage Blob Data Reader role at the container scope to provide read access only to the necessary container.

Adım Adım Çözüm

1
Determine the portal navigation requirement
To access the storage container via the Azure portal, users must be able to navigate to the storage account resource itself. The Reader role at the storage account scope grants this control plane permission without exposing data.
Azure portal navigation requires control plane visibility at the resource level.
2
Determine the data access requirement
To view and download blobs, users need data plane permissions. The Storage Blob Data Reader role grants read and list capabilities.
Microsoft Entra ID authentication distinguishes between management operations and data operations.
3
Apply the least privilege principle to scope selection
Assigning Storage Blob Data Reader at the container scope limits the data access strictly to the target container, rather than the entire storage account or subscription.
Minimizing the scope of permissions prevents unauthorized access to other containers.

Anahtar Kavram

Configuring access to Azure Storage using Microsoft Entra ID requires separate control plane permissions (for portal navigation) and data plane permissions (for actual data access) scoped to the minimum level necessary.
Soru 964Soru

You have an Azure subscription that contains a Standard storage account named sa-prod-files-01. The storage account contains an SMB file share named corp-shared-docs. You need to configure backup for corp-shared-docs using an existing Recovery Services vault. Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Öğeleri doğru sıraya koymak için sürükleyin

Cevabı ve açıklamayı göster

Cevap

To configure backup for the SMB file share in the Standard storage account, first initiate the backup wizard from the Recovery Services vault for Azure FileShare, select the storage account to register it, choose the target SMB file share, and finally select or create a backup policy and enable the backup.
Configuring backup for an SMB file share in an Azure storage account requires initiating the backup from the Recovery Services vault, selecting the target Standard storage account to register it, choosing the target SMB file share, and then applying a backup policy and enabling the protection.

Adım Adım Çözüm

1
Initiate the Backup wizard in the Recovery Services vault and select Azure FileShare.
The vault initiates the wizard to configure backup for an Azure file share.
This tells the vault which workload type you want to protect.
2
Select the Standard storage account sa-prod-files-01.
The storage account is registered with the vault, scanning for available file shares.
Registering the storage account makes its containing shares accessible to the vault.
3
Select the SMB file share corp-shared-docs.
The specific file share is selected for backup protection.
This specifies the exact target file share within the registered storage account.
4
Select or create a backup policy and click Enable Backup.
The backup schedule and retention are configured, and protection is enabled.
This establishes the backup schedule and completes the registration process.

Anahtar Kavram

Azure Files Backup configuration steps using a Recovery Services vault.
Soru 965Soru

You have an Azure subscription containing a Log Analytics workspace named Workspace1. Multiple Azure virtual machines in different resource groups send their performance metrics and diagnostic logs to Workspace1. You need to allow a user named User1 to run Kusto Query Language (KQL) queries to analyze the CPU usage of only the virtual machines located in a resource group named RG-Prod. User1 must not be able to view logs for virtual machines in other resource groups. Which configuration should you implement?

Cevabı ve açıklamayı göster

Cevap: Assign User1 the Reader role on RG-Prod, and configure the access control mode of Workspace1 to use resource or workspace permissions.

Cevap

Assign User1 the Reader role on RG-Prod, and configure the access control mode of Workspace1 to use resource or workspace permissions.
The correct configuration is to assign User1 the Reader role on the resource group RG-Prod and configure the workspace to use resource or workspace permissions. This ensures resource-context access is enabled. With this setting, users can query log data for resources they have read access to, without needing access to the workspace itself. This restricts the user from seeing logs for virtual machines in other resource groups.

Adım Adım Çözüm

1
Determine the access model required for User1.
User1 must only view logs for resources within RG-Prod. This requires resource-context access, where access is determined by permissions on individual resources rather than the workspace.
Workspace-context access exposes all log data within the workspace, which would violate the constraint.
2
Select the correct Access Control Mode for the Log Analytics workspace.
Configure Workspace1 to use 'Use resource or workspace permissions'.
This is the default setting that enables resource-context access.
3
Assign the appropriate RBAC role to User1 at the correct scope.
Assign the Reader role to User1 on the resource group RG-Prod.
Having read permissions on the resource group allows the user to query logs for all virtual machines within that resource group using KQL.

Anahtar Kavram

Log Analytics Access Control Modes (Resource-context vs Workspace-context)
Soru 966Soru

An administrator is configuring a monitoring solution for a set of Azure Virtual Machines that send diagnostics to a central Log Analytics workspace. The administrator must meet the following requirements:
1. Ensure that developers can only view diagnostic logs for the specific virtual machines they own (resource-context access), without granting them access to view logs of other resources in the workspace.
2. Write a query to retrieve the most recent CPU utilization percentage (using the `% Processor Time` counter from the `Processor` object) for each virtual machine, returning only the records where this latest CPU utilization value exceeds 80%.

Which of the following configurations and Kusto Query Language (KQL) queries should the administrator implement? (Select TWO.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Configure the Log Analytics workspace access control mode to 'Use resource or workspace permissions' and assign the Reader role to the developers on their respective virtual machines.; Run the query: Perf | where CounterName == "% Processor Time" and ObjectName == "Processor" | summarize arg_max(TimeGenerated, CounterValue) by Computer | where CounterValue > 80

Cevap

Configure the Log Analytics workspace access control mode to 'Use resource or workspace permissions', assign the Reader role to developers on their respective virtual machines, and run the KQL query that filters by CPU utilization before using the summarize arg_max operator.
The correct configuration uses 'Use resource or workspace permissions' to enable resource-context access, which respects Azure RBAC permissions granted on individual virtual machines. The correct KQL query filters the Perf table for CPU utilization before running summarize arg_max, ensuring that the latest CPU measurement is returned and that the query does not fail due to referencing columns that are not projected by the arg_max function.

Adım Adım Çözüm

1
Determine the correct access control mode for resource-context log access.
The workspace must be set to 'Use resource or workspace permissions', and permissions must be granted at the resource (VM) level.
This allows resource-context access where permissions on individual resources dictate which logs a user can view, preventing access to unauthorized logs in the same workspace.
2
Evaluate KQL filter placement for correct metric retrieval.
Filter the Perf table for CounterName == '% Processor Time' and ObjectName == 'Processor' before summarizing.
Filtering first ensures that arg_max evaluates only the CPU performance records, finding the latest CPU measurement instead of the latest record of any arbitrary performance counter.
3
Verify schema projection in the KQL summarization step.
Use summarize arg_max(TimeGenerated, CounterValue) by Computer, which yields only Computer, TimeGenerated, and CounterValue.
Since CounterName is not projected, any filter referencing CounterName must be executed before the summarize operator to avoid compilation errors.
4
Filter final aggregated CPU metrics.
Apply the filter where CounterValue > 80 on the projected output.
This isolates virtual machines whose most recent CPU utilization measurement is strictly greater than 80%.

Anahtar Kavram

Log Analytics access control modes (resource-context vs workspace-context) and KQL query pipeline optimization and projection behavior.
Soru 967Soru

An organization's Azure infrastructure is organized under a management group named MG-Enterprise, which contains an Azure subscription named Sub-Operations. Within this subscription, there is a resource group named RG-AppPlatform containing virtual machines, storage accounts, and web apps. You need to assign the appropriate roles to various users and identities to meet their administrative requirements. Match each user or identity requirement to the most appropriate Azure RBAC or Microsoft Entra ID role to enforce the principle of least privilege.

Soldaki öğeye tıklayın, sonra eşleşen sağdaki öğeye tıklayın

Öğeler

User1 needs to delegate Azure RBAC role assignments to team members within RG-AppPlatform but must not have the ability to create, delete, or modify Azure resources.
Group1 (support team security group) needs to start, stop, and restart virtual machines in RG-AppPlatform to perform maintenance, but must not be able to modify the virtual machine sizes or configuration.
AppService-MSI (a system-assigned managed identity) needs to read files from blob storage containers in RG-AppPlatform but must not be able to view storage account access keys or modify configurations.
User2 needs to create and manage user accounts and groups in the Microsoft Entra ID tenant, but must not have any permissions to manage Azure resources.

Eşleşmeler

Cevabı ve açıklamayı göster

Cevap

Match the requirements to the correct built-in roles: User1 matches User Access Administrator; Group1 matches Virtual Machine Operator; AppService-MSI matches Storage Blob Data Reader; User2 matches User Administrator.
The correct pairings map each role to its specific boundary and least privilege requirement. User Administrator is an Entra ID directory role required for tenant-level user/group management. User Access Administrator is an Azure RBAC role for managing role assignments. Virtual Machine Operator permits VM operations without configuration modification. Storage Blob Data Reader is a data-plane role allowing blob reads without exposing keys.

Adım Adım Çözüm

1
Identify the administrative boundary for User2.
User2 needs to manage directory objects (users and groups) in the Microsoft Entra ID tenant.
Microsoft Entra ID roles (like User Administrator) are distinct from Azure RBAC roles and operate at the tenant level.
2
Identify the least privilege control-plane role for VM operations for Group1.
Group1 needs to start/stop VMs without modifying properties.
Virtual Machine Operator provides these operational permissions without the configuration management permissions of Virtual Machine Contributor.
3
Determine the data-plane access required for AppService-MSI.
AppService-MSI requires read access to blob data but no key access.
Storage Blob Data Reader provides read access to storage data plane (blobs) using Entra ID, ensuring keys are not exposed.
4
Determine the access control delegation requirement for User1.
User1 needs to assign roles in the resource group without resource modification.
User Access Administrator grants the microsoft.authorization/roleassignments/* permission but no resource write permissions.

Anahtar Kavram

Azure RBAC vs Microsoft Entra ID roles, and control plane vs data plane role configuration.
Soru 968Soru

An administrator is configuring Azure App Service plans for two new applications:

* AppA is a marketing website that requires custom domain support, custom SSL bindings, and manual scaling up to 33 instances.
* AppB is a business-critical API that requires regional virtual network (VNet) integration, 1515 deployment slots for testing environments, and auto-scaling up to 2525 instances.

You need to select the most cost-effective App Service plan pricing tier for each application. Which two pricing tiers should you select?

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Basic (B1) for AppA; Premium (P1v3) for AppB

Cevap

Basic (B1) for AppA and Premium (P1v3) for AppB are the correct choices.
For AppA, the Basic (B1) tier is the most cost-effective option because it supports custom domains, SSL bindings, and manual scaling up to 33 instances. For AppB, the Premium (P1v3) tier is required because the Standard (S1) tier is limited to 55 deployment slots and 1010 scale-out instances, which do not meet the requirement of 1515 slots and 2525 instances. Premium (P1v3) meets these requirements and is cheaper than the Isolated tier.

Adım Adım Çözüm

1
Analyze requirements for AppA
AppA requires custom domains, custom SSL, and manual scaling up to 33 instances.
Identify the minimum capabilities needed for AppA.
2
Select the most cost-effective tier for AppA
The Basic (B1) tier is the lowest tier that supports custom domains, SSL bindings, and manual scaling up to 33 instances.
Choose the most cost-effective option meeting all identified criteria for AppA.
3
Analyze requirements for AppB
AppB requires regional VNet integration, 1515 deployment slots, and auto-scaling up to 2525 instances.
Identify the minimum capabilities needed for AppB.
4
Select the most cost-effective tier for AppB
Standard (S1) supports up to 55 slots and 1010 scale-out instances. Premium (P1v3) supports up to 2020 slots and 3030 instances. Therefore, Premium (P1v3) is the minimum tier that meets all requirements for AppB.
Evaluate standard and premium limitations to choose the cost-optimal tier for AppB.

Anahtar Kavram

Azure App Service plan pricing tiers determine the features, scaling limits, and deployment slot availability for hosted applications. Standard tier supports up to 55 slots and 1010 instances, while Premium tier supports up to 2020 slots and 3030 instances.
Soru 969Soru

An administrator manages a Microsoft Entra ID tenant that contains two Azure subscriptions named `sub-dev` and `sub-prod`. A virtual machine named `vm-backend-01` resides in `sub-dev` and is backed up to a Recovery Services vault. The administrator needs to recover `vm-backend-01` and place the restored resources directly into `sub-prod`.

Which of the following actions is a prerequisite that must be completed on the target subscription before performing this recovery operation?

Cevabı ve açıklamayı göster

Cevap: Register the `Microsoft.RecoveryServices` resource provider in `sub-prod`.

Cevap

Register the `Microsoft.RecoveryServices` resource provider in `sub-prod`.
Registering the `Microsoft.RecoveryServices` resource provider in `sub-prod` is the correct answer. To restore a virtual machine across subscriptions (Cross-Subscription Restore) within the same tenant, the target subscription must have the recovery services resource provider registered so that Azure Backup can deploy the restored resources.

Adım Adım Çözüm

1
Identify the target subscription where the virtual machine needs to be recovered.
The target subscription is identified as `sub-prod`.
This is the destination where the restored virtual machine resources will reside.
2
Check the registered resource providers in the target subscription.
The `Microsoft.RecoveryServices` resource provider is identified as a requirement.
Azure Backup requires the recovery service resource provider to be registered in the destination subscription to perform the restore operation.
3
Register the resource provider if it is not already registered.
The `Microsoft.RecoveryServices` resource provider is registered, allowing cross-subscription restore operations to succeed.
This ensures the Azure Backup service has permission and capability to create resources in the target subscription.

Anahtar Kavram

Cross-Subscription Restore for Azure Virtual Machines
Soru 970Soru

Your company has an Azure subscription containing a virtual network named `vnet-finance-prod` with an address space of 10.100.0.0/2210.100.0.0/22. You plan to deploy the following resources:

- A pool of virtual machines in a subnet named `snet-application` that requires at least 2727 usable IP addresses.
- An Azure Bastion host to secure access to the virtual machines.
- A Virtual Network Gateway to enable hybrid connectivity with the on-premises network.

You need to configure the subnets for these resources while minimizing the address space allocated to each subnet.

Which two subnets should you create? (Select two.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: AzureBastionSubnet with the address range 10.100.1.0/2610.100.1.0/26; GatewaySubnet with the address range 10.100.2.0/2710.100.2.0/27

Cevap

AzureBastionSubnet with the address range 10.100.1.0/2610.100.1.0/26 and GatewaySubnet with the address range 10.100.2.0/2710.100.2.0/27
The correct subnet configurations satisfy Azure's sizing rules: the Bastion subnet must be named AzureBastionSubnet with a prefix of /26/26 or larger, and the Virtual Network Gateway subnet must be named GatewaySubnet with a prefix of /29/29 or larger. The configuration using a /26/26 prefix for the Bastion subnet and a /27/27 prefix for the Gateway subnet meets these rules.

Adım Adım Çözüm

1
Calculate the minimum subnet size for the application host pool.
The application pool requires 2727 usable IP addresses. Adding Azure's 55 reserved IP addresses yields a total requirement of 3232 addresses. This requires a subnet prefix of /27/27 (23227=322^{32-27} = 32). A /28/28 subnet only provides 1616 addresses (1111 usable), which is insufficient.
Azure reserves the first four and the last IP address in every subnet, which must be factored into sizing calculations.
2
Determine the minimum subnet size for Azure Bastion.
The subnet for Azure Bastion must be named exactly AzureBastionSubnet and requires a prefix of /26/26 or larger.
Azure Bastion has strict prefix size limits; configuring a prefix smaller than /26/26 (such as /27/27) will cause deployment failures.
3
Determine the minimum subnet size for the Virtual Network Gateway.
The subnet for the gateway must be named exactly GatewaySubnet and requires a prefix of /29/29 or larger.
Azure Virtual Network Gateways require at least a /29/29 prefix size to support gateway instances; a /30/30 subnet is invalid.

Anahtar Kavram

Azure Virtual Network Subnet sizing constraints, reserved IP addresses, and service-specific subnet requirements (Azure Bastion and GatewaySubnet).
Soru 971Soru

An Azure subscription contains a virtual network named `VNet1` (10.10.0.0/1610.10.0.0/16). `VNet1` contains three subnets: `Subnet-Web` (10.10.1.0/2410.10.1.0/24), `Subnet-App` (10.10.2.0/2410.10.2.0/24), and `Subnet-DMZ` (10.10.0.0/2410.10.0.0/24). A Network Virtual Appliance (NVA) named `NVA1` is deployed in `Subnet-DMZ` and has the IP address 10.10.0.410.10.0.4. You need to ensure that all traffic from `Subnet-Web` destined for `Subnet-App` is routed through `NVA1`. Which two actions should you perform? (Select two.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Create a route table, add a route for destination 10.10.2.0/2410.10.2.0/24 with the next hop type set to Virtual Appliance and next hop IP address set to 10.10.0.410.10.0.4, and associate the route table with Subnet-Web.; Enable IP forwarding on the Azure network interface associated with NVA1.

Cevap

To route traffic from the web subnet to the application subnet through the NVA, you must create a route table with a route targeting the application subnet (10.10.2.0/2410.10.2.0/24) using the virtual appliance (10.10.0.410.10.0.4) as the next hop, associate this route table with the web subnet, and enable IP forwarding on the network interface of the NVA.
The correct options state that you must associate a route table with a custom route targeting the application subnet using the virtual appliance as the next hop to the web subnet, and enable IP forwarding on the network interface of the NVA. The route table overrides system routing to ensure traffic is sent to the NVA's IP, and IP forwarding allows the NVA to accept and forward packets not addressed to its own IP.

Adım Adım Çözüm

1
Configure the User-Defined Route (UDR) in a route table.
A route table is created with a route pointing to destination 10.10.2.0/2410.10.2.0/24, using next hop type 'Virtual Appliance' and next hop IP address 10.10.0.410.10.0.4.
This route overrides the default system route that directs traffic directly between subnets in the same virtual network.
2
Associate the route table with the source subnet.
The route table is associated with Subnet-Web.
Associating the route table applies the custom routing rules to all resources deployed within the web subnet.
3
Configure IP forwarding on the Network Virtual Appliance (NVA).
IP forwarding is enabled on the Azure network interface of NVA1.
Azure network interfaces drop traffic not destined for their assigned IP addresses by default. Enabling IP forwarding allows the NVA to receive and forward transit traffic.

Anahtar Kavram

User-Defined Routes (UDR) and IP forwarding for Network Virtual Appliances (NVA)
Soru 972Soru

An administrator needs to back up a virtual machine named AppServer-West-VM that is deployed in the West US region. A Recovery Services Vault named Vault-East-RSV is located in the East US region. Which configuration should the administrator use to back up AppServer-West-VM?

Cevabı ve açıklamayı göster

Cevap: Deploy a Recovery Services Vault in the West US region and configure backups for the virtual machine within that vault.

Cevap

Deploy a Recovery Services Vault in the West US region and configure backups for the virtual machine within that vault.
To back up an Azure virtual machine, the virtual machine and the Recovery Services Vault must be located in the same region. Since the virtual machine is in the West US region, a Recovery Services Vault must also be deployed in the West US region to enable backups. Additionally, Azure Virtual Machines must be backed up using a Recovery Services Vault, as Backup Vaults do not support backing up Azure Virtual Machines.

Adım Adım Çözüm

1
Verify the region of the source virtual machine to be backed up.
The virtual machine is located in the West US region.
Azure Virtual Machine backup requires the target vault and the source virtual machine to reside in the same geographical region.
2
Determine the correct vault type required for Azure Virtual Machine backup.
A Recovery Services Vault is required, as Backup Vaults do not support backing up Azure Virtual Machines.
Azure Backup uses Recovery Services Vaults for virtual machines, SQL Server in Azure VMs, SAP HANA in Azure VMs, and Azure Files.
3
Deploy a Recovery Services Vault in the target region.
Create a Recovery Services Vault in the West US region and register the virtual machine.
This satisfies both the vault type requirement and the regional alignment constraint.

Anahtar Kavram

Azure virtual machine backup requires a Recovery Services Vault located in the same region as the virtual machine.
Soru 973Soru

You need to recover individual application configuration files from a backup of an Azure Linux virtual machine named `VM-AppLinux`. You are using a local Windows 11 client machine, and a healthy Linux virtual machine named `VM-Helper` is running in the same virtual network as `VM-AppLinux`.

Which sequence of actions should you perform to complete the item-level recovery? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Öğeleri doğru sıraya koymak için sürükleyin

Cevabı ve açıklamayı göster

Cevap

To perform Item-Level Recovery for a Linux VM when using a Windows client, you must first download the Python script and password from the Azure portal, transfer the script to the Linux helper VM, run the script on the helper VM using the password to mount the volumes, copy the files, and then click Unmount Disks in the Azure portal.
The correct sequence starts with downloading the script and password from the Azure portal. Since the backup is from a Linux VM, the downloaded script is a Python script that mounts Linux-native volumes. A standard Windows 11 client cannot mount these filesystems natively, so the script must be transferred to the Linux helper VM (`VM-Helper`). Running the script on `VM-Helper` mounts the volumes, allowing the user to copy the files. Finally, clicking Unmount Disks in the Azure portal cleans up the session.

Adım Adım Çözüm

1
Navigate to File Recovery in the Azure portal, choose the recovery point, download the Python script, and copy the password.
The administrator obtains the `.py` script and the password required to authenticate the iSCSI connection to the recovery point.
This is the initial step required to gain access to the files within the backup recovery point.
2
Transfer the script to `VM-Helper`.
The script is ready to run on a Linux-compatible system.
The script mounts Linux-native volumes (like ext4) which cannot be natively mounted on the administrator's Windows 11 client.
3
Run the Python script on `VM-Helper` and provide the password.
The backup volumes are mounted as local filesystems on the helper VM.
The script establishes an iSCSI session to mount the recovery point disks.
4
Copy the required configuration files.
The files are retrieved and stored in their target location.
This fulfills the restore goal of recovering the specific configuration files.
5
Click Unmount Disks in the Azure portal.
The iSCSI connection is closed and the recovery volumes are unmounted.
This completes the clean-up process and releases the backup resources.

Anahtar Kavram

Item-Level Recovery (ILR) for Linux Azure Virtual Machines
Soru 974Soru

Your company has an Azure subscription containing multiple resource groups. You need to ensure that the security team receives an SMS notification whenever a resource group is deleted. You have configured an activity log alert rule for this event. What should you configure next to specify the SMS recipient details and trigger the notification?

Cevabı ve açıklamayı göster

Cevap: An Action Group

Cevap

An Action Group
The correct answer is the option stating 'An Action Group'. In Azure Monitor, alert rules define the criteria for triggering an alert, whereas Action Groups define the notification preferences (such as SMS, email, or voice) and automated actions (such as Azure Functions or webhooks) that occur when the alert is triggered. To send an SMS notification to the security team, you must create and link an action group containing their phone number.

Adım Adım Çözüm

1
Identify the requirement: sending an SMS notification to a specific team when an alert fires.
Requires defining notification channels and recipient endpoints.
Alert rules only define the conditions for triggering an alert; they do not natively store contact information.
2
Select the Azure Monitor component designed to store notification preferences.
An Action Group is selected because it holds configurations for SMS, email, webhooks, and other actions.
Action Groups are reusable objects that tell Azure Monitor who and how to notify when an alert rule condition is met.
3
Associate the Action Group with the activity log alert rule.
The configuration is complete and ready to send notifications.
An alert rule must point to one or more action groups to perform any notification actions upon being triggered.

Anahtar Kavram

Azure Monitor Action Groups are the primary mechanism used to define and manage notification preferences and actions for Azure alerts.
Tahmini Süre:45s
Soru 975Soru

Your company has a strict security policy requiring Microsoft Entra ID authorization for all data plane operations on Azure Storage accounts. The use of Storage Account Access Keys and Shared Access Signatures (SAS) is disabled.

An administrator needs to upload files from an on-premises workstation to a blob container named `archive` in a storage account named `stdatafiles2026`. The storage account's network routing is configured to restrict access to selected networks.

Which of the following configurations are required to ensure the administrator can upload the files using AzCopy? (Select three.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Run the `azcopy login` command on the workstation prior to executing the transfer.; Configure the firewall of `stdatafiles2026` to allow traffic from the public IP address of the on-premises workstation.; Assign the Storage Blob Data Contributor role to the administrator's Microsoft Entra ID account.

Cevap

To successfully upload files using AzCopy under these network and security constraints, the administrator must log in using Entra ID credentials via the command-line interface, assign the Storage Blob Data Contributor role to the user account to grant write access to the blob container, and add the workstation's public IP address to the storage account firewall rules to permit network access.
To copy data to a storage account with restricted network access under a policy that requires Entra ID auth, you must authenticate the command line session by running the command to log in, ensure your user identity has a data plane role such as the Storage Blob Data Contributor role, and add the workstation's public IP address to the storage account's firewall configuration.

Adım Adım Çözüm

1
Authenticate the local session using Entra ID.
The local session is authenticated using the administrator's corporate credentials.
Since SAS and Access Keys are disabled by policy, token-based authentication using the 'azcopy login' command is mandatory.
2
Ensure correct data plane permissions.
The administrator's account is assigned the Storage Blob Data Contributor role.
Standard control-plane RBAC roles like Contributor or Owner do not grant access to read or write data inside containers. A data plane role is required.
3
Establish network connectivity through the firewall.
The on-premises workstation's public IP address is added to the allowed firewall rules on the storage account.
Because network access is restricted to selected networks, the client's IP must be explicitly whitelisted; internal trusted service exceptions do not apply to external clients.

Anahtar Kavram

Authorizing and securing data movement using AzCopy with Microsoft Entra ID authentication and firewall constraints.
Soru 976Soru

A company requires a lightweight compute solution to run a batch utility in Azure. The utility connects to a database, processes transaction records, and then exits. If the utility encounters a database connection error during its run, it must automatically attempt to rerun. However, if the process finishes successfully, it must terminate and remain stopped until the next scheduled run. You also need to protect the database credentials used by the utility from being exposed in plain text in the deployment configuration.

Which two options should you configure for the Azure Container Instances (ACI) deployment? (Select two.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: Set the restart policy of the container group to OnFailure.; Define the database credentials as secure environment variables.

Cevap

Configure the container group restart policy to OnFailure and pass the database credentials as secure environment variables.
Setting the container group's restart policy to OnFailure ensures that the container automatically restarts only if its execution exits with an error code, which aligns with the requirement to retry on a database connection error. Configuring credentials as secure environment variables prevents the sensitive data from being visible in clear text when querying the container group's properties or viewing it in the Azure portal.

Adım Adım Çözüm

1
Determine the appropriate restart policy based on container lifecycle requirements.
The restart policy must be set to OnFailure.
Since the task needs to rerun if it fails (exit code non-zero) but must remain stopped upon successful execution (exit code zero), OnFailure is the only policy that meets these criteria.
2
Determine the secure method for passing database credentials to the container.
Configure the database connection credentials as secure environment variables.
Using secure environment variables (secureValue in ARM templates) prevents sensitive values from being returned in the container instance properties or shown in the portal.

Anahtar Kavram

Azure Container Instances (ACI) restart policies and secure environment configuration
Soru 977Soru

An administrator is configuring an Azure Application Gateway v2 named `AppGW1` in a dedicated subnet named `Subnet-GW` within `VNet-Hub`. To comply with security policies, the administrator associates a Network Security Group (NSG) named `NSG-GW` to `Subnet-GW`. The NSG contains a custom inbound rule (Rule1) with a priority of 300 that denies all inbound traffic from any source. To allow client HTTPS traffic, the administrator creates another inbound rule (Rule2) with a priority of 200 that allows traffic from the `Internet` service tag to destination port 443. After applying these rules, the backend health status of all backend pools shows as 'Unknown' and client communication fails. Which configuration change should the administrator implement on `NSG-GW` to restore backend health monitoring and allow the Application Gateway to function?

Cevabı ve açıklamayı göster

Cevap: Add an inbound security rule with a priority of 250 that allows traffic from the `GatewayManager` service tag to destination ports 65200-65535.

Cevap

Add an inbound security rule with a priority of 250 that allows traffic from the `GatewayManager` service tag to destination ports 65200-65535.
The correct configuration change is to add an inbound rule allowing traffic from the `GatewayManager` service tag on ports 65200-65535 with a priority value less than 300 (such as 250). Azure Application Gateway v2 requires this communication for internal management and health probes. Since the custom deny rule is at priority 300, any allow rule must be assigned a lower priority value to be evaluated first.

Adım Adım Çözüm

1
Identify the cause of the 'Unknown' backend health state, which is the blocking of management traffic from the Gateway Manager service.
The Azure Application Gateway infrastructure requires inbound connectivity from the `GatewayManager` service tag on ports 65200-65535 for health probes and management.
By default, Azure allows this traffic, but the custom rule (priority 300) denying all inbound traffic overrides the default rules.
2
Determine the required priority for the new allow rule.
Since the custom deny rule has a priority of 300, the new allow rule must have a priority number lower than 300 (e.g., 250) to take precedence.
Azure Network Security Groups process rules in order of priority, where lower numbers have higher precedence.

Anahtar Kavram

Azure Application Gateway v2 requires inbound traffic from the `GatewayManager` service tag on ports 65200-65535. Any custom NSG rules blocking inbound traffic must have a higher priority number (lower precedence) than the rule allowing this management traffic.
Soru 978Soru

An administrator manages a premium storage account named `saengshared` in the West US 2 region. The storage account hosts an SMB file share named `projectshares`. To protect the file share, a Recovery Services vault named `rsv-westus2-01` is deployed in the same region. The firewalls and virtual networks settings on `saengshared` are configured to restrict access to selected networks only. When configuring backup for the file share, the operation fails because the vault cannot access the storage account. What must be configured on `saengshared` to resolve the issue?

Cevabı ve açıklamayı göster

Cevap: Enable the 'Allow Azure services on the trusted services list to access this storage account' exception in the firewall settings.

Cevap

Enable the 'Allow Azure services on the trusted services list to access this storage account' exception in the firewall settings.
The correct answer is to enable the exception 'Allow Azure services on the trusted services list to access this storage account'. Azure Backup is a trusted Microsoft service, and enabling this setting allows the service to orchestrate backup and restore operations for the file share even when the storage account firewall is configured to block public access.

Adım Adım Çözüm

1
Identify the cause of the backup failure.
The storage account firewall blocks access from the Recovery Services vault.
The storage account is configured to restrict access to selected networks only, blocking external service access by default.
2
Determine the supported method to allow Azure Backup through the storage account firewall.
Identify that Azure Backup is a trusted Microsoft service.
Azure Backup can bypass storage firewalls natively when the trusted services exception is enabled.
3
Configure the exception on the storage account.
Enable the exception 'Allow Azure services on the trusted services list to access this storage account'.
This allows the backup service to access the SMB file share snapshots securely without opening the firewall to all public networks.

Anahtar Kavram

Bypassing Azure Storage Account firewalls for trusted Microsoft services like Azure Backup during Azure Files backup configuration.
Soru 979Soru

An organization has an Azure subscription containing a resource group named rg-resources. The resource group contains a storage account named stcontentprod, which has a blob container named assets. A user named Alex needs to view and download blobs in the assets container using the Azure portal. Alex is already assigned the Reader role for the rg-resources resource group. When Alex attempts to view the blobs in the container, the Azure portal displays an authorization error. You need to resolve the access issue while following the principle of least privilege. Which action should you perform?

Cevabı ve açıklamayı göster

Cevap: Assign the Storage Blob Data Reader role to Alex scoped to the assets container

Cevap

Assign the Storage Blob Data Reader role to Alex scoped to the assets container
Assigning the Storage Blob Data Reader role to the user scoped to the container is the correct approach. The Reader role at the resource group level grants the necessary control plane permissions to navigate to the storage account in the Azure portal. However, data plane access to read blobs requires a specific data plane role, such as Storage Blob Data Reader. Scoping this role to the specific container instead of the entire storage account enforces the principle of least privilege.

Adım Adım Çözüm

1
Analyze the user's current control plane permissions.
The user is already assigned the Reader role at the resource group level, which is inherited by the storage account and allows portal navigation.
To browse resources in the Azure portal, a user needs control plane read access.
2
Determine the required data plane permissions.
To view and download blobs using Microsoft Entra ID authentication, the user requires data plane read access.
Control plane roles like Reader or Contributor do not grant data plane access to blob contents.
3
Identify the role and scope that satisfies the principle of least privilege.
The Storage Blob Data Reader role provides read-only data access. Scoping it to the specific container rather than the storage account limits access to only the required resources.
Assigning permissions at the narrowest scope possible minimizes security risks.

Anahtar Kavram

Azure RBAC separation of control plane and data plane for Microsoft Entra ID authentication
Tahmini Süre:1m 30s
Soru 980Soru

An administrator needs to monitor a set of Azure virtual machines that report to a Log Analytics workspace. The administrator must identify virtual machines that have not sent a heartbeat in the last 1515 minutes, but were active and sent a heartbeat within the last 2424 hours.

Which of the following Kusto Query Language (KQL) queries should the administrator run? (Select two.)

Geçerli olan tümünü seçin

Cevabı ve açıklamayı göster

Cevap: kql
Heartbeat
| where TimeGenerated > ago(24h)
| summarize LastHeartbeat = max(TimeGenerated) by Computer
| where LastHeartbeat < ago(15m)
; kql
Heartbeat
| summarize LastHeartbeat = max(TimeGenerated) by Computer
| where LastHeartbeat between (ago(24h) .. ago(15m))

Cevap

The two correct queries summarize the maximum TimeGenerated per computer first, and then filter the results to find those where the last heartbeat occurred between 2424 hours ago and 1515 minutes ago.
The correct queries aggregate the latest heartbeat per computer before applying the inactivity check. The query that filters raw data to the last 2424 hours and then keeps computers with a last heartbeat older than 1515 minutes successfully isolates offline systems. The query using the between operator on the aggregated last heartbeat achieves the exact same logical result by selecting computers whose latest heartbeat falls within the inactive window of 2424 hours to 1515 minutes ago.

Adım Adım Çözüm

1
Analyze the log source and aggregation requirement
The target table is the Heartbeat table, and the query must group results by Computer while finding the maximum timestamp representing the most recent heartbeat.
Grouping by Computer is necessary because each virtual machine sends multiple heartbeats over time, and we need to evaluate only the most recent status of each machine.
2
Determine the temporal filters and order of operations
To avoid false positives, the filter for the inactivity threshold (older than 1515 minutes) must be applied after the maximum timestamp is calculated for each computer.
If records are filtered before aggregation, the query will evaluate older heartbeats of active virtual machines and incorrectly report them as offline.
3
Validate equivalent queries matching the requirements
One valid query limits the dataset to the last 2424 hours, aggregates by computer, and filters out results with a heartbeat in the last 1515 minutes. The other valid query aggregates first and then uses the KQL between operator to filter the aggregated timestamp directly.
Both approaches correctly identify computers that have their absolute latest heartbeat within the 2424-hour to 1515-minute window.

Anahtar Kavram

KQL Query Order of Operations and Temporal Aggregations
ÖncekiSayfa 49 / 63Sonraki
Tüm alıştırma soruları — Microsoft Azure Administrator (AZ-104) | Examkin