All practice questions
1252 questions
Your company has an Azure subscription named Sub1 that contains a resource group named RG1. You need to ensure that a user named User1 can view all resources inside RG1. User1 must not be able to view resources in any other resource groups within Sub1, nor modify any resources. Which action should you perform?
An administrator is managing a standard general-purpose v2 storage account named storage1. The storage account currently uses Locally Redundant Storage (LRS) and contains a blob container named archive.
The administrator needs to meet the following requirements:
1. Ensure the storage account is replicated to a secondary region to protect against regional outages.
2. Automatically move blobs in the archive container to the Archive storage tier if they have not been modified for more than 90 days.
Which two actions should the administrator perform? (Select TWO.)
Select all that apply
You manage a Microsoft Entra ID tenant. You create an administrative unit named Regional-AU and add several security groups to it.
You need to delegate the ability to manage the membership of these security groups to a user named Admin1. The solution must follow the principle of least privilege.
Which role and scope should you assign to Admin1?
An organization uses an Azure tenant hierarchy configured as follows:
- Tenant Root Group (Management Group)
- MG-Prod (Management Group)
- Sub-Prod-01 (Subscription)
- RG-Sec (Resource Group)
- RG-App (Resource Group)
- VM-App-01 (Virtual Machine)
You have two users with the following role configurations:
- User1 is assigned the Global Administrator directory role in Microsoft Entra ID. No other roles are assigned.
- User2 is assigned the User Access Administrator role at the MG-Prod management group scope.
User1 needs to assign the Contributor role to a security group at the RG-App scope.
User2 needs to assign the Reader role to a service principal at the RG-Sec scope.
Who can perform their respective role assignments without modifying any existing permissions or configurations?
An organization has an Azure subscription containing a General Purpose v2 (GPv2) storage account named storage1 configured with Geo-Redundant Storage (GRS). The storage account contains two blob containers:
* media-delivery – Stores active, frequently accessed media assets used by a web application.
* compliance-logs – Stores historical logs.
To minimize storage costs, a lifecycle management policy is applied to storage1 with a rule that transitions all blobs in compliance-logs to the Archive tier 30 days after creation.
A major regional outage occurs in the primary region of storage1. An administrator attempts to initiate a customer-managed failover of storage1 to the secondary region to restore write capabilities for the web application, but the failover operation is blocked.
Which of the following is the most appropriate action to resolve this issue and ensure the web application can fail over to the secondary region in the event of a future primary region outage?
An organization's Azure environment is structured with the following hierarchy:
- Tenant Root Group
- Corporate-MG (Management Group)
- Production-MG (Management Group)
- Azure Subscription A
- Resource Group: RG-Shared-01
The following configurations are implemented:
1. A CanNotDelete resource lock is applied to RG-Shared-01.
2. A user is assigned the Owner role at the Corporate-MG level.
3. The administrator assigns the same user a custom RBAC role at the RG-Shared-01 level. The custom role contains a NotActions statement for deleting resources.
The user attempts to delete an Azure storage account that resides inside RG-Shared-01.
What is the outcome of the user's deletion attempt?
An administrator needs to import of data from an on-premises Windows file server to an Azure storage account. The target destination is an Azure Files share. Due to limited WAN bandwidth, the administrator decides to use the Azure Import/Export service to ship physical hard drives to an Azure datacenter.
Which of the following processes must the administrator use to prepare the hard drives and configure the import job?
Zenith Retail Group uses the following Azure Management Group hierarchy:
* Tenant Root Group (Policy assigned: Allowed locations restricted to `East US` with Deny effect)
* Retail-Operations (Management Group) (Policy assigned: Allowed locations restricted to `East US 2` with Deny effect; Role assignment: User1 is assigned the Contributor role)
* Online-Store (Management Group)
* Sub-Online-Prod (Subscription) (Role assignment: User1 is assigned the Reader role)
* RG-Web-Prod (Resource Group) (Resource Lock: CanNotDelete lock applied)
User1 attempts to create a new virtual machine in the resource group `RG-Web-Prod` in the `East US 2` region.
Which of the following describes the outcome of the deployment attempt?
Your company has a Microsoft Entra ID tenant. You need to delegate password reset capabilities to a user named Admin1. Admin1 must only be allowed to reset passwords for users who meet both of the following criteria:
* Belong to the Sales department.
* Have their usage location set to the United States (US).
You need to implement a solution that requires the minimum administrative effort and follows the principle of least privilege.
Which configuration should you implement?
An administrator manages a General Purpose v2 (GPv2) storage account named storagelogsa in the East US region. The storage account is currently configured to use Locally Redundant Storage (LRS) and contains block blobs in a container named activitylogs.
A lifecycle management policy is applied to the storage account with a single rule:
- Filter: Blob prefix is activitylogs/archive/
- Action: Transition blobs to the Archive tier 30 days after modification.
Currently, the container contains:
- 500 blobs under activitylogs/raw/ (all modified 45 days ago, currently in the Hot tier)
- 200 blobs under activitylogs/archive/ (all modified 45 days ago, currently in the Archive tier)
You need to change the replication configuration of the storage account from LRS to Zone-Redundant Storage (ZRS) to ensure zonal availability. When you attempt to change the replication setting in the Azure portal, the option is unavailable.
Which of the following actions should you perform first to enable the replication configuration change?
An organization has the following Azure resource hierarchy and configuration:
- A management group named MG-Production contains an Azure subscription named Sub-App.
- Sub-App contains a resource group named RG-Data.
- RG-Data contains a storage account named storage1.
- A ReadOnly resource lock is applied directly to the storage1 resource.
The following security principals are configured:
- User1 is a Microsoft Entra ID user with the Global Administrator directory role. The 'Access management for Azure resources' setting is disabled in the directory properties.
- User2 has the Reader role assigned at the MG-Production level and the Storage Blob Data Contributor role assigned at the RG-Data level.
- User3 has the Contributor role assigned at the Sub-App level.
All users attempt to access resources using Microsoft Entra ID authentication. Which of the following describes the effective permissions of the users?
You manage a Microsoft Entra ID tenant. You are planning to create dynamic groups to automate administrative tasks.
Statement: A single Microsoft Entra ID dynamic group can contain both user objects and device objects as members simultaneously.
Is this statement true or false?
You are planning the replication configuration for a new Azure Storage account. The storage account must meet the following requirements:
* Provide protection against a datacenter failure within the primary region by replicating data across three availability zones.
* Provide protection against a regional disaster by replicating data to a secondary region.
Which two replication options should you select to meet these requirements?
Select all that apply
An organization's Azure environment is structured with the following resource hierarchy:
- Management Group: `MG-Production`
- Subscription: `Sub-Production`
- Resource Group: `RG-App-Services`
A user named Admin1 is assigned the Global Administrator directory role in Microsoft Entra ID. Admin1 logs into the Azure portal but is unable to view the resources within `RG-App-Services` or the subscription itself. What should you do to allow Admin1 to view the web apps inside `RG-App-Services`?
An organization needs to retrieve of archival data stored in an Azure Files share and transfer it to an on-premises Windows Server 2022 file server. The on-premises facility has an internet connection with a maximum dedicated bandwidth of for this transfer. The data transfer must be completed as quickly as possible. Which service or configuration should the administrator use to export the data?
An enterprise retail company, Contoso Sports, organizes its Azure environment using the following Management Group (MG) hierarchy:
- Tenant Root Group
- MG-Retail-Global
- MG-Retail-APAC
- Sub-APAC-Online (Subscription)
- Sub-APAC-Backoffice (Subscription)
- MG-Retail-EMEA
- Sub-EMEA-Online (Subscription)
The following security controls and configurations are applied:
1. At MG-Retail-Global, an Azure Policy definition is assigned that denies the creation of public IP addresses (Microsoft.Network/publicIPAddresses).
2. At MG-Retail-APAC, the Owner role is assigned to User1.
3. At Sub-APAC-Online, a ReadOnly resource lock is applied to a resource group named 'rg-ecom-prod'.
User1 attempts to perform the following three tasks:
- Task A: Create a Virtual Network inside the 'rg-ecom-prod' resource group in the Sub-APAC-Online subscription.
- Task B: Create a Virtual Network inside a new resource group in the Sub-APAC-Backoffice subscription.
- Task C: Create a Public IP address in a new resource group in the Sub-APAC-Backoffice subscription.
Which of the tasks can User1 successfully complete?
An administrator is configuring a General Purpose v2 (GPv2) storage account named corpstore01 in the East US region. The storage account currently uses Locally Redundant Storage (LRS) and hosts critical application logs. The administrator must meet the following requirements:
- Replicate the storage account to the West US region to protect against regional outages while allowing read access to the replicated data in West US under normal operations.
- Automatically move block blobs inside the container named telemetry that begin with the prefix daily/ to the Archive storage tier if they have not been modified for more than 90 days.
- Ensure that the storage account is prepared for customer-managed failover, and understand the redundancy state of the account after a failover is executed.
Which of the following configurations and statements are correct for this scenario? (Select TWO.)
Select all that apply
You manage two General Purpose v2 (GPv2) storage accounts in the East US region:
* `storage1`: Configured with Locally Redundant Storage (LRS).
* `storage2`: Configured with Zone-Redundant Storage (ZRS).
You need to update the replication configuration of both storage accounts to meet the following requirements:
* Replicate all data to a secondary region (West US).
* Maintain zone redundancy in the primary region.
* Ensure there is no downtime or data loss during the configuration change.
* Avoid manual data replication.
Which two actions should you perform?
Select all that apply
Your company has a Microsoft Entra ID tenant. The tenant contains an Administrative Unit named Corporate-AU. The following resources are members of Corporate-AU:
* A user named User1
* A dynamic user group named HQ-Staff
A user named Admin1 is currently assigned the Groups Administrator role scoped to Corporate-AU. You need to ensure that User1 is added to HQ-Staff. The solution must follow the principle of least privilege. Which action should you perform?
An organization is designing its Azure Management Group hierarchy to manage multiple subscriptions. Which of the following statements regarding the structure and inheritance behavior of Azure Management Groups are correct? (Select TWO.)
Select all that apply