test 5 Flashcards
You’ve been tasked with enhancing the redundancy of Azure Files NFSv4.1 shares within a storage account, currently configured with Locally Redundant Storage (LRS). Your company aims to migrate the existing file storage to Zone-Redundant Storage (ZRS).
What is the supported method to carry out this migration?
A. Perform the migration via Azure Portal
B. Request a live migration
C. Perform a manual migration
D. Perform the migration using AzureCli
Perform a manual migration
You can Choose manual migration or request a live migration. But, Live migration is not supported in below case.
NFSv3 protocol support is enabled for Azure Blob Storage
The storage account contains Azure Files NFSv4.1 shares
You have an Azure subscription, which contains the following resources:
Prod-VM1 (virtual machine)
Prod-Webapp1 (app service)
Contoso.com (Azure AD domain services)
All the resources connect to prod-vnet1. You are planning to deploy an Azure Bastion host from Prod-Bastion1 to Prod-Vnet1.
Which resources can be protected by Prod-Bastion1?
A. Contoso.com only
B. Prod-VM1 and Prod-Webapp1
C. Prod-VM1 only
D. All of the resources
Prod-VM1 only
Bastion provides secure RDP and SSH connectivity to all of the VMs in the virtual network on which it is provisioned.
Which PowerShell cmdlet allows you to create a new Virtual machine scale set?
New-AzVM
Set-AzVmss
New-AzVmss
New-AzVmss
In the Azure Recovery Services vault, if you delete any data mistakenly, it goes to soft delete to protect your data and recover backups. For how many days is the data retained before being permanently deleted?
90 days
30 days
14 days
Infinite
14 days
You need to create a Network Security group using the PowerShell cmdlet and configure NSG rules to allow RDP and HTTP traffic.
$rule1 = New-AzNetworkSecurityRuleConfig -Name rdp-rule -Description “Allow RDP” `
-Access Allow -Protocol Tcp -Direction Inbound -Priority 100 -SourceAddressPrefix `
Internet -SourcePortRange * -DestinationAddressPrefix * -DestinationPortRange 3389
$rule2 = New-AzNetworkSecurityRuleConfig -Name web-rule -Description “Allow HTTP” `
-Access Allow -Protocol Tcp -Direction Inbound -Priority 101 -SourceAddressPrefix `
Internet -SourcePortRange * -DestinationAddressPrefix * -DestinationPortRange 80
New-AzNetworkSecurityGroup -ResourceGroupName TestRG -Location westus -Name `
“NSG-FrontEnd” -SecurityRules $rule1, $rule2
You executed the above PowerShell cmdlet; is it correct?
Yes
No
Yes
You have an Active Directory Forest named contoso.com. You install and configure Azure AD Connect to use password hash synchronization as the single sign-on (SSO) method. Staging mode is enabled. You review the synchronization results and discover that the
Synchronization Service Manager does not display any sync jobs.
You need to ensure that the synchronization completes successfully, and that exports, imports and synchronization could run.
What should you do?
A. From Azure PowerShell, run start-AdSyncSyncCycle policy type initial.
B. Run Azure AD connect and disable staging mode.
C. Run Azure AD connect and set the SSO method to pass-through Authentication.
Run Azure AD connect and disable staging mode.
Staging mode must be disabled. If the Azure AD connect is in staging mode, password hash synchronization will not work.
In your Azure subscription, there is a highly important resource group named “Prod-rg1.” The subscription owner intends to prevent the deletion of the resource group itself or any resources contained within it.
Which solution would you recommend. You also want to use a minimal amount of administrative effort.
Add a delete lock on individual resources inside the resource group.
Add a delete lock on the resource group.
Add a read-only lock on the subscription level.
Add a delete lock on the resource group.
Add a delete lock on the resource group itself. We can also place a lock on the resources inside a resource group as well, but it involves more administrative effort. Since our requirement is to use a minimal amount of administrative effort, we should place a lock on the resource group itself.
Your Azure subscription contains 10 virtual machines. You need to enable alerts if any virtual machine restarts, stops, or delocalizes. Alerts must be sent to three administrators by email and Azure App push notifications.
You need to create alert rules, action groups, and actions in the Azure portal.
What are the minimum number of alert rules, action groups, and actions you should create?
Alert Rules = 2; Action groups = 3; Actions = 1
Alert Rules = 3; Action groups = 1; Actions = 1
Alert Rules = 3; Action groups = 1; Actions = 3
Alert Rules = 1; Action groups = 1; Actions = 1
Alert Rules = 3; Action groups = 1; Actions = 3
You need to establish three alert rules, each corresponding to a specific condition: restarting a virtual machine, powering off a virtual machine, and deallocating a virtual machine.
Additionally, you should create a single action group, which can be linked to multiple alert rules. Within this action group, you will define multiple actions.
To cater to three administrators, you must create three distinct actions within the action group.
You plan to use a deployment template to deploy 6 instances of web app in east us region.
You need to ensure that you have met minimum prerequisites for deployment. Your solution must minimize costs in Azure.
Deploy Azure application gateway.
Deploy one Azure App service plan.
Deploy Azure Load Balancer.
Deploy five Azure app service plans.
Deploy One Azure App Service Plan:
Cost-Effective: This option is typically the most cost-effective because you only need one App Service Plan to host all six web app instances.
You have a subnet named Subnet1 that contains Azure virtual machines. A network security group (NSG) named NSG1 is associated to Subnet1. NSG1 only contains the default rules.
You need to create a rule in NSG1 to prevent the hosts on Subnet1 form connecting to the Azure portal. The hosts must be able to connect to other internet hosts.
To what should you set Destination in the rule?
Application security group
IP Addresses
Service Tag
Any
Service Tag
Explanation
You can use service tags.
You have an Azure subscription that contains a virtual machine named VM1.
To VM1, you plan to add a 1-TB data disk that meets the following requirements:
- Provides data resiliency in the event of a datacenter outage.
- Provides the lowest latency and the highest performance.
- Ensures that no data loss occurs if a host fails.
You need to recommend which type of storage and host caching to configure for the new data disk.
Storage Type: Premium SSD that uses locally-redundant storage(LRS)
Host caching: None
Storage Type: Premium SSD that uses Zone-redundant storage(ZRS)
Host caching: Read-only
Storage Type: Premium SSD that uses Zone-redundant storage(ZRS)
Host caching: Read/Write
Storage Type: Premium SSD that uses Zone-redundant storage(ZRS)
Host caching: Read-only
Explanation
Configuring the data disk with Premium SSD that uses Zone-redundant storage (ZRS) ensures data resiliency in the event of a datacenter outage by replicating data across multiple availability zones. Setting the host caching to read-only can improve performance by caching read operations, providing lower latency, and ensuring no data loss if a host fails.
Ensures that no data loss occurs if a host fails.
- Write caching can pose a risk of data loss in the event of a host failure. Thus, we need to be careful when enabling write caching.
You are managing your company’s virtual networks (VNets) in Azure.
Your company has Azure Virtual Machines (VMs) across three VNets:
- Prod-VNET1 has the address space 10.0.0.0/16.
- Prod-VNET2 has the address space 10.1.0.0/16.
- Prod-VNET3 has the address space 10.2.0.0/16.
You configure virtual network peering on the following networks:
- Prod-VNET1 network peering allows virtual network access to Prod-VNET2.
- Prod-VNET2 network peering allows virtual network access to Prod-VNET3.
- Prod-VNET3 network peering allows virtual network access to Prod-VNET2.
You need to determine if Azure VMs in a specific virtual network can communicate with Azure VMs in other virtual networks.
Azure VMs on VNET2 can connect to Azure VMs on which VNET?
A. VNET3 only
B. VNET1 only
C. VNET1 and VNET2
Why VNET3 only is correct:
VNet Peering Rules:
Peering is not transitive
Each peering connection is bilateral
Requires explicit configuration
Current Configuration:
VNET1 -> VNET2 (One-way)
VNET2 <-> VNET3 (Two-way)
Connectivity Analysis:
VNET2 can reach VNET3 (direct peering)
VNET1 can reach VNET2 but not vice versa
No transitive connectivity
Which Microsoft Entra ID role is automatically assigned to whoever creates the tenant first?
A. Global Administrator
B. Owner
C. Account Administrator
D. Service Administrator
A. Global Administrator
At network setting of a VM if the NIC public IP isn’t display. Which main is it?
Public IP is not available which means VM is not running.
Which Azure built-in role has full access to all resources including the right to delegate access to others ?
A. Reader
B. Owner
C. Contributor
D. User Access Administrator
B. Owner
Owner role has full access to all resources in Azure including the right to delegate access to others.
Under Azure RBAC, collection of permission is called as ________ ?
A. Role
scope
Security principal
A. Role
You are trying to assign an Azure Microsoft Entra ID P2 License to a user but getting error ? What could be the possible cause of the error ?
A. From users profile section, modify the usage location.
B. From the directory blade, modify the directory role.
A. From users profile section, modify the usage location.
Let me explain why this is correct and provide examples of how to fix it:
Using Azure Portal:
PowerShell commands to set usage location
Set-AzureADUser -ObjectId “user@contoso.com” -UsageLocation “US”
Then assign license
Set-AzureADUserLicense -ObjectId “user@contoso.com” -AssignedLicenses $license
Using Microsoft Graph API:
// PATCH request to update usage location
PATCH https://graph.microsoft.com/v1.0/users/{user-id}
Content-Type: application/json
{
“usageLocation”: “US”
}
Why Usage Location is Important:
License Requirements:
Usage location is mandatory for licensing
Determines service availability
Ensures compliance with regional regulations
Common Error Messages:
“License cannot be assigned to the user because the user is missing usage location”
“Unable to assign license - usage location required”
Regulatory Compliance:
Different services available in different regions
Data residency requirements
Compliance with local laws
You need to move some of the blueprint files to Azure. What should you do?
A. Generate an access key. Map a drive, and then copy the files by using File Explorer.
B. Use Azure Storage Explorer to copy the files.
C. Use the Azure Import/Export service.
D. Generate a shared access signature (SAS).
B: Use Azure Storage Explorer to copy the files.
Here’s why:
Azure Storage Explorer is the most appropriate tool because:
It’s specifically designed for managing Azure Storage resources
It provides a user-friendly graphical interface
It’s secure and supports all Azure authentication methods
It allows for easy drag-and-drop file transfers
It’s free and officially supported by Microsoft
It works efficiently for moving files of various sizes
Why other options are less suitable:
Option A (Generate an access key and map drive):
Less secure as access keys provide full access to the storage account
Mapping drives can be unreliable and may disconnect
Not recommended for production environments
Option C (Azure Import/Export service):
This service is meant for very large datasets (terabytes)
Requires physical hard drives to be shipped to Microsoft
Overkill for blueprint files
More time-consuming and expensive
Option D (Generate a SAS):
A SAS alone is just an access token
You still need a tool to actually transfer the files
It’s only part of a solution, not a complete answer
Site to Site VPN connections provide connectivity between an On-prem network and Azure Virtual Network using an encrypted tunnel over the public internet.
Is the above statement correct ?
A. Yes
B. No
C. Site to Site VPN connections provide connectivity between an On-prem network and Azure Virtual Network using an encrypted tunnel over the public internet.
A: Yes
Here’s why the statement is correct:
Site-to-Site VPN Connection Components:
Creates an encrypted tunnel between on-premises network and Azure VNet
Uses the public internet as the transport medium
Requires a VPN gateway in Azure
Requires a VPN device on-premises
Uses IPsec/IKE protocols for encryption
Key Characteristics:
Secure: Traffic is encrypted
Cost-effective: Uses existing internet connection
Public internet: Doesn’t require dedicated private lines
Always-on connection: Provides continuous connectivity
Supports hybrid cloud scenarios
Why it’s different from other connectivity options:
ExpressRoute uses private connectivity (not public internet)
Point-to-Site VPN connects individual devices (not entire networks)
VNet Peering connects Azure VNets (not on-premises)
Benefits:
More economical than dedicated lines
Relatively easy to set up
Good for hybrid scenarios
Suitable for most business needs
Provides secure communication
You create an Azure storage account.
You need to create a lifecycle management rule to move blobs to cool storage if the blobs have not been used for 30 days.
What should you do first?
A. Enable access tracking.
B. Refresh the blob inventory.
C. Enable versioning for blobs.
D. Rotate the storage account keys.
A. Enable access tracking.