Exam AZ-104 Microsoft Azure Administrator Questions and Answers – Page 1

The latest Exam AZ-104 Microsoft Azure Administrator certification actual real practice exam question and answer (Q&A) dumps are available free, which are helpful for you to pass the AZ-104 Microsoft Azure Administrator exam and earn AZ-104 Microsoft Azure Administrator certification.

Exam AZ-104 Microsoft Azure Administrator Questions and Answers

Manage Azure identities and governance: Question Set 1

Exam Question 1

You have an Azure subscription that contains the following users in an Azure Active Directory tenant named contoso.onmicrosoft.com:

NameRoleScope
User1Global administratorAzure Active Directory
User2Global administratorAzure Active Directory
User3User administratorAzure Active Directory
User4OwnerAzure Subscription
You have an Azure subscription that contains the following users in an Azure Active Directory tenant named contoso.onmicrosoft.com:

User1 creates a new Azure Active Directory tenant named external.contoso.onmicrosoft.com.
You need to create new user accounts in external.contoso.onmicrosoft.com.
Solution: You instruct User1 or User2 to create the user accounts.
Does that meet the goal?
A. Yes
B. No

Correct Answer:
A. Yes
Answer Description:
Only a global administrator can add users to this tenant.

Exam Question 2

You have an Azure subscription that contains the following users in an Azure Active Directory tenant named contoso.onmicrosoft.com:

NameRoleScope
User1Global administratorAzure Active Directory
User2Global administratorAzure Active Directory
User3User administratorAzure Active Directory
User4OwnerAzure Subscription
You have an Azure subscription that contains the following users in an Azure Active Directory tenant named contoso.onmicrosoft.com:

User1 creates a new Azure Active Directory tenant named external.contoso.onmicrosoft.com.
You need to create new user accounts in external.contoso.onmicrosoft.com.
Solution: You instruct User4 to create the user accounts.
Does that meet the goal?
A. Yes
B. No

Correct Answer:
B. No
Answer Description:
Only a global administrator can add users to this tenant.
References:
Microsoft Docs > Add or delete users using Azure Active Directory

Exam Question 3

You have an Azure subscription that contains the following users in an Azure Active Directory tenant named contoso.onmicrosoft.com:

NameRoleScope
User1Global administratorAzure Active Directory
User2Global administratorAzure Active Directory
User3User administratorAzure Active Directory
User4OwnerAzure Subscription
You have an Azure subscription that contains the following users in an Azure Active Directory tenant named contoso.onmicrosoft.com:

User1 creates a new Azure Active Directory tenant named external.contoso.onmicrosoft.com.
You need to create new user accounts in external.contoso.onmicrosoft.com.
Solution: You instruct User3 to create the user accounts.
Does that meet the goal?
A. Yes
B. No

Correct Answer:
B. No
Answer Description:
Only a global administrator can add users to this tenant.
References:
Microsoft Docs > Add or delete users using Azure Active Directory

Exam Question 4

You have an Azure subscription that contains an Azure Active Directory (Azure AD) tenant named contoso.com and an Azure Kubernetes Service (AKS) cluster named AKS1.
An administrator reports that she is unable to grant access to AKS1 to the users in contoso.com.
You need to ensure that access to AKS1 can be granted to the contoso.com users.
What should you do first?
A. From contoso.com, modify the Organization relationships settings.
B. From contoso.com, create an OAuth 2.0 authorization endpoint.
C. Recreate AKS1.
D. From AKS1, create a namespace.

Correct Answer:
B. From contoso.com, create an OAuth 2.0 authorization endpoint.
References:
Kubernetes Documentation > Reference > API Access Control > Authenticating > Users in Kubernetes

Exam Question 5

You have a Microsoft 365 tenant and an Azure Active Directory (Azure AD) tenant named contoso.com.
You plan to grant three users named User1, User2, and User3 access to a temporary Microsoft SharePoint document library named Library1.
You need to create groups for the users. The solution must ensure that the groups are deleted automatically after 180 days.
Which two groups should you create? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
A. an Office 365 group that uses the Assigned membership type
B. a Security group that uses the Assigned membership type
C. an Office 365 group that uses the Dynamic User membership type
D. a Security group that uses the Dynamic User membership type
E. a Security group that uses the Dynamic Device membership type
Correct Answer:
A. an Office 365 group that uses the Assigned membership type
C. an Office 365 group that uses the Dynamic User membership type
Answer Description:
You can set expiration policy only for Office 365 groups in Azure Active Directory (Azure AD).
Note: With the increase in usage of Office 365 Groups, administrators and users need a way to clean up unused groups. Expiration policies can help remove inactive groups from the system and make things cleaner.
When a group expires, all of its associated services (the mailbox, Planner, SharePoint site, etc.) are also deleted.
You can set up a rule for dynamic membership on security groups or Office 365 groups.
Incorrect Answers: B, D, E: You can set expiration policy only for Office 365 groups in Azure Active Directory (Azure AD).
References:
Microsoft Docs > Microsoft 365 group expiration policy

Exam Question 6

You have an Azure policy as shown in the following exhibit:

You have an Azure policy as shown in the following exhibit.

What is the effect of the policy?
A. You are prevented from creating Azure SQL servers anywhere in Subscription 1.
B. You can create Azure SQL servers in ContosoRG1 only.
C. You are prevented from creating Azure SQL Servers in ContosoRG1 only.
D. You can create Azure SQL servers in any resource group within Subscription 1.

Correct Answer:
B. You can create Azure SQL servers in ContosoRG1 only.
Answer Description:
You are prevented from creating Azure SQL servers anywhere in Subscription 1 with the exception of ContosoRG1

Exam Question 7

You have an Azure subscription named AZPT1 that contains the resources shown in the following table:

NameType
storage1Azure Storage account
VNET1Virtual network
VM1Azure virtual machine
VM1ManagedManaged disk for VM1
RVAULT1Recovery Services vault for the site recovery of VM1
You have an Azure subscription named AZPT1 that contains the resources shown in the following table.

You create a new Azure subscription named AZPT2.
You need to identify which resources can be moved to AZPT2.
Which resources should you identify?
A. VM1, storage1, VNET1, and VM1Managed only
B. VM1 and VM1Managed only
C. VM1, storage1, VNET1, VM1Managed, and RVAULT1
D. RVAULT1 only

Correct Answer:
C. VM1, storage1, VNET1, VM1Managed, and RVAULT1
Answer Description:
You can move a VM and its associated resources to a different subscription by using the Azure portal.
You can now move an Azure Recovery Service (ASR) Vault to either a new resource group within the current subscription or to a new subscription.
References:
Microsoft Docs > Move resources to a new resource group or subscription
Microsoft Docs > Moving an Azure Key Vault to another subscription

Exam Question 8

You recently created a new Azure subscription that contains a user named Admin1.
Admin1 attempts to deploy an Azure Marketplace resource by using an Azure Resource Manager template.
Admin1 deploys the template by using Azure PowerShell and receives the following error message: “User failed validation to purchase resources. Error message: “Legal terms have not been accepted for this item on this subscription. To accept legal terms, please go to the Azure portal (http://go.microsoft.com/fwlink/?LinkId=534873) and configure programmatic deployment for the Marketplace item or create it there for the first time.”
You need to ensure that Admin1 can deploy the Marketplace resource successfully.
What should you do?
A. From Azure PowerShell, run the Set-AzApiManagementSubscription cmdlet
B. From the Azure portal, register the Microsoft.Marketplace resource provider
C. From Azure PowerShell, run the Set-AzMarketplaceTerms cmdlet
D. From the Azure portal, assign the Billing administrator role to Admin1

Correct Answer:
C. From Azure PowerShell, run the Set-AzMarketplaceTerms cmdlet
Answer Description:
Set-AzMarketplaceTerms: Accept or reject terms for a given publisher id (Publisher), offer id (Product) and plan id (Name). Please use Get-AzMarketplaceTerms to get the agreement terms.
References:
Microsoft Docs > Set-AzMarketplaceTerms

Exam Question 9

You have an Azure Active Directory (Azure AD) tenant that contains 5,000 user accounts.
You create a new user account named AdminUser1.
You need to assign the User administrator administrative role to AdminUser1.
What should you do from the user account properties?
A. From the Licenses blade, assign a new license
B. From the Directory role blade, modify the directory role
C. From the Groups blade, invite the user account to a new group

Correct Answer:
B. From the Directory role blade, modify the directory role
Answer Description:
Assign a role to a user

  1. Sign in to the Azure portal with an account that’s a global admin or privileged role admin for the directory.
  2. Select Azure Active Directory, select Users, and then select a specific user from the list.
  3. For the selected user, select Directory role, select Add role, and then pick the appropriate admin roles from the Directory roles list, such as Conditional access administrator.
  4. Press Select to save.

Assign a role to a user

References:
Microsoft Docs > Assign administrator and non-administrator roles to users with Azure Active Directory

Exam Question 10

You have an Azure Active Directory (Azure AD) tenant named contoso.onmicrosoft.com that contains 100 user accounts.
You purchase 10 Azure AD Premium P2 licenses for the tenant.
You need to ensure that 10 users can use all the Azure AD Premium features.
What should you do?
A. From the Licenses blade of Azure AD, assign a license
B. From the Groups blade of each user, invite the users to a group
C. From the Azure AD domain, add an enterprise application
D. From the Directory role blade of each user, modify the directory role

Correct Answer:
A. From the Licenses blade of Azure AD, assign a license
Answer Description:
Many Azure Active Directory (Azure AD) services require you to license each of your users or groups (and associated members) for that service. Only users with active licenses will be able to access and use the licensed Azure AD services for which that’s true. Licenses are applied per tenant and do not transfer to other tenants.
Not all Microsoft services are available in all locations. Before a license can be assigned to a group, you must specify the Usage location for all members. You can set this value in the Azure Active Directory > Users > Profile > Settings area in Azure AD. Any user whose usage location is not specified inherits the location of the Azure AD organization.
You can add the licensing rights to users or to an entire group.
References:
Microsoft Docs > Assign or remove licenses in the Azure Active Directory portal