test 6 Flashcards
You have below Azure VM in your subscription.
You need to create 10 more VMs based on the same configuration. Which blade will you use so that you can use the existing ARM template and modify it according to your requirements?
A. Serial console
B. Redeploy + reapply
C. Boot diagnostics
D. Export template
D. Export template.
Explanation: The “Export template” blade in the Azure portal allows you to export the ARM (Azure Resource Manager) template of an existing resource. You can then use this template to create additional resources with the same configuration. By exporting the template of the existing VM, you can modify it as needed and deploy it to create 10 more VMs with the same configuration.
B. Redeploy + reapply: This option is used to move a VM to a new Azure host or to reapply the VM’s state to resolve issues. It is not used for creating new VMs.
Your organization has hired a new cloud engineer and he should be able to manage cloud engineer’s access as well. You also need to follow Microsoft principle of least privilege.
Which role should be assigned to cloud engineer ?
A. User Access Administrator
B. Owner
C. User Administrator
D. Contributor
A. User Access Administrator.
Why correct: The “User Access Administrator” role allows the cloud engineer to manage user access to Azure resources. This role is specifically designed to grant permissions to manage access without giving full control over the resources themselves, aligning with the principle of least privilege.
Why wrong:
B. Owner: This role grants full access to all resources, including the ability to manage access. It does not follow the principle of least privilege as it provides more permissions than necessary.
C. User Administrator: This role is primarily used for managing user accounts and groups in Azure Active Directory, not for managing access to Azure resources.
D. Contributor: This role allows the user to create and manage all types of Azure resources but does not grant permissions to manage access to resources.
To migrate from on-premises file servers, your organization is considering Azure Premium File Shares.
You have the storage account in your Azure Subscription as shown below.
Storage acount name Prod-storage-01 has account type general-purpose storage V2
Select Yes if the statement is True. Otherwise select No.
Statement: You should create a new premium storage account since existing storage accounts will not allow you to create premium file share
A. No
B. Yes
B. Yes.
Why correct: Azure Premium File Shares require a storage account that supports premium performance. The existing storage account “Prod-storage-01” with account type general-purpose storage V2 does not support premium file shares. Therefore, you need to create a new premium storage account to use Azure Premium File Shares.
Your organization has deployed Microsoft 365 Business Standard licenses and has implemented Azure Active Directory self-service password reset. Now, you aim to establish a hybrid environment that connects your on-premises Active Directory Domain Services to Azure AD. As part of this setup, you must enable password writeback from Azure AD to your on-premises network.
Select Yes if the statement is True. Otherwise, select No.
Statement: Microsoft 365 Business Standard License supports password writeback.
A. Yes
B. No
The correct answer is B. No.
Here’s why:
Microsoft 365 Business Standard license does NOT support password writeback functionality. This is an important distinction for the AZ-104 exam.
Password writeback requires one of the following licenses:
Azure AD Premium P1
Azure AD Premium P2
Microsoft 365 Business Premium
Enterprise Mobility + Security E3 or higher
Key points to remember for AZ-104 exam:
License Requirements:
Not all Microsoft 365 licenses support advanced Azure AD features
Business Standard is a basic license focused on productivity apps and services
Password writeback is considered a premium feature
Password Writeback Benefits:
Allows users to change/reset their cloud passwords
Changes sync back to on-premises AD
Enhances security and reduces help desk calls
Supports hybrid identity management
Implementation Requirements:
Proper licensing (Premium licenses mentioned above)
Azure AD Connect installed and configured
Appropriate network connectivity
Required permissions in both Azure AD and on-premises AD
This is a common exam topic because it tests your understanding of:
License differences
Hybrid identity features
Azure AD premium features
Password management capabilities
Remember: While Microsoft 365 Business Standard provides essential business applications and services, it does not include advanced Azure AD features like password writeback. For such functionality, you need to upgrade to a premium license.
You have an Azure subscription that contains an Azure Active Directory (Azure AD) tenant named contoso.com. The tenant is synced to the on-premises Active
Directory domain. The domain contains the users shown in the following table.
SecAdmin1 role Security Administrator
BillAdmin1 role Billing Administrator
USer1 role reports reader
You enable self-service password reset (SSPR) for all users and configure SSPR to have the following authentication methods:
✑ Number of methods required to reset: 2
✑ Methods available to users: Mobile phone, Security questions
✑ Number of questions required to register: 3
✑ Number of questions required to reset: 3
You select the following security questions:
✑ What is your favorite food?
✑ In what city was your first job?
✑ What was the name of your first pet?
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:
Statement:
SecAdmin1 must answer the following question during the self-service password reset:
In what city was your first job?
BillAdmin1 must answer the following question during the self-service password reset:
What is your favorite food?
User1 must answer the following question during the self-service password reset:
What was the name of your first pet?
For this scenario, all statements should be marked as NO.
Here’s why:
The SSPR configuration shows:
2 authentication methods are required
Available methods are: Mobile phone AND Security questions
Users must register 3 security questions
Users must answer 3 questions to reset
All questions are available to all users
However, the key point is:
Users are not required to answer any specific security question
They can choose which questions to answer from the available pool of questions
The system doesn’t assign specific questions to specific users
Important notes for AZ-104 exam:
SSPR Configuration Components:
Authentication methods (minimum required)
Available methods
Registration requirements
Reset requirements
Key SSPR Concepts:
Users choose their security questions during registration
Questions aren’t assigned based on roles
All configured questions are available to all users
Users must register before using SSPR
Authentication Method Requirements:
Can require multiple methods
Methods are chosen during registration
Users must complete registration before using SSPR
All enabled users follow the same requirements
Security Questions:
Predefined or custom questions can be used
All questions are available to all users
Users select which questions to answer
No specific question assignments per user
Best Practices:
Use multiple authentication methods
Implement strong security questions
Regular review of SSPR policies
Monitor SSPR usage
License Requirements:
Azure AD Premium P1 or P2 for custom SSPR settings
Free tier has limited SSPR capabilities
Remember for the exam:
SSPR requirements are uniform across users
Users choose their security questions
No specific question assignments based on roles
Authentication methods are selected during registration
Understanding the difference between registration and reset requirements
You have an Azure subscription, and below is the hub and spoke topology given.
HUB-VNET is connected to on-premises using a site-to-site VPN, and SPOKE-VNET is peering into HUB-VNET.
How VM1 can communicate with On-premises using the same HUB-VNET virtual network gateway.
SPOKE-VNET has vnet 10.0.0.0/16 has subnet 10.0.0.0/24 including VM1
HUB-VNET has vnet 172.16.0.0/16 has subnet 172.16.0.0/24 including VM2
Select yes if the statement is true. Otherwise, select no.
Statement: You are planning to use Gateway Transit.
A. Yes
B. No
Yes. In a hub and spoke topology, Gateway Transit allows the spoke virtual networks to use the virtual network gateway in the hub to communicate with on-premises networks. This setup enables VM1 in the SPOKE-VNET to communicate with on-premises networks through the HUB-VNET’s virtual network gateway.
Hub and Spoke Topology: Familiarize yourself with this network architecture where the hub VNet acts as a central point of connectivity to on-premises networks, and the spoke VNets are peered with the hub.
VNet Peering: Learn how VNet peering allows VNets to communicate with each other through private IP addresses, and how it is used in hub and spoke topologies.
Virtual Network Gateway: Understand the role of a virtual network gateway in providing connectivity between Azure VNets and on-premises networks, typically through VPN or ExpressRoute.
Gateway Transit: Know how Gateway Transit allows spoke VNets to use the virtual network gateway in the hub VNet for communication with on-premises networks.
You have migrated your on-premises web application to the Azure web app, prod-webapp. After migration, it has been observed that the website is not accessible using the old domain name, https://www.cloudfinanceportal.com.
You need to configure DNS to resolve this issue.
Which two DNS records are needed to resolve this issue?
A. Create PTR record and map it to prod-webapp.azurewebsites.net.
B. Create Name server (NS) record and map it to IP address of prod-webapp.
C. Create A record and map it to IP address of prod-webapp.
D. Create CNAME record and map it to prod-webapp.azurewebsites.net.
D. Create CNAME record and map it to prod-webapp.azurewebsites.net.
CNAME records are used to map an alias name to a true or canonical domain name. In this case, you would map the old domain name to the Azure web app’s domain name (prod-webapp.azurewebsites.net), allowing users to access the web app using the old domain name.
C. Create A record and map it to IP address of prod-webapp.
An A record maps a domain name to an IP address. If you have a static IP address for your Azure web app, you can create an A record to map the old domain name directly to this IP address, ensuring that users can access the web app using the old domain name.
These two records will ensure that the old domain name resolves to the new Azure web app, making it accessible to users
Let’s examine the following situation:.
The resource group includes:
· Virtual Machine A
· Storage account B
· Virtual network C
You are trying to deploy the below resource using the ARM template:
· Network security group D
Below is the PowerShell cmdlet you are using to deploy the template.
New-AzResourceGroupDeployment -Mode Complete -Name ExampleDeployment `
-ResourceGroupName ExampleResourceGroup `
-TemplateFile c:\MyTemplates\storage.json
As you can see in the above cmdlet, we are using mode as complete. When deploying resources with Azure Resource Manager templates (ARM templates), you have two options for deployment mode: incremental or complete. What will happen if we use mode as complete?
A. The Resource Manager leaves unchanged resources in the resource group that aren’t defined in the template - that means virtual machine A, Storage account B, Virtual Network C will not be deleted.
B. Resource Manager deletes resources in the resource group that aren’t specified in the template. – that means virtual machine A, Storage account B, Virtual Network C will be deleted since these are not defined in ARM template.
B. When using the “complete” mode in Azure Resource Manager (ARM) template deployment, the Resource Manager deletes resources in the resource group that aren’t specified in the template. This means that any resources not defined in the ARM template, such as Virtual Machine A, Storage account B, and Virtual Network C, will be deleted from the resource group. The “complete” mode ensures that the resource group matches exactly what is defined in the template, removing any resources not included.
The policy must be configured to require members of the Global Administrators group to use multi-factor authentication and an Azure AD-joined device when they connect to Azure AD from untrusted locations.
Solution: You can access the multi-factor authentication page to alter the user settings. Does the solution meet the goal?
A. Yes
B. No
B. No. Accessing the multi-factor authentication page to alter user settings alone does not meet the goal. To require members of the Global Administrators group to use multi-factor authentication and an Azure AD-joined device when connecting from untrusted locations, you need to configure a Conditional Access policy in Azure AD. This policy should specify the conditions under which multi-factor authentication and device compliance are required, such as when accessing from untrusted locations.
You want to implement Azure file share on your on-premises Windows server. What is the recommended Windows OS required?
A. Windows server 2012
B. Windows server 2016
C. Windows server 2019 and above.
C. Windows Server 2019 and above. The recommended Windows OS for implementing Azure file share on an on-premises Windows server is Windows Server 2019 and above. This is because newer versions of Windows Server provide better integration with Azure services, improved security features, and enhanced support for cloud-based file sharing solutions like Azure File Sync, which allows you to centralize your file shares in Azure Files while keeping the flexibility, performance, and compatibility of an on-premises file server.
You have an Azure Resource Manager (ARM) template designed to deploy 10 virtual machines, and you want to automate the deployment. Identify one PowerShell and one Azure CLI command for this task. What are the two commands you would select?
A. New-AzResourceGroupDeployment
B. New-AzVM
C. az vm list
D. az deployment group create
A. New-AzResourceGroupDeployment
This PowerShell command is used to deploy resources defined in an ARM template to a resource group. It is suitable for deploying multiple virtual machines as specified in the template.
D. az deployment group create
This Azure CLI command is used to create a deployment at the resource group level using an ARM template. It is also suitable for deploying multiple virtual machines as defined in the template.
Your organization has an Azure subscription.
You are planning to create a virtual machine scale set (VMSS) that has the following settings:.
· Resource group name: RG1
· Region: West US
· Orchestration Mode: uniform
· Security type: Standard
· OS disk type: SSD standard
You need to add custom virtual machines to VMSS.
Which settings do you need to modify?
A. Security Type
B. OS disk Type
C. Orchestration Mode
C. Orchestration Mode. To add custom virtual machines to a Virtual Machine Scale Set (VMSS), you need to modify the Orchestration Mode. The “uniform” orchestration mode does not allow for custom virtual machines, as it is designed for identical instances managed by the scale set. To add custom VMs, you would need to use the “flexible” orchestration mode, which allows for more diverse configurations within the scale set.
Your company is planning on hosting a set of Azure virtual machines. The virtual machines will be used to host an application. The company wants to ensure that at least six Azure virtual machines are running during an Azure planned maintenance.
How would you deploy the Azure virtual machines?
A. Via an Azure Availability set that has seven update domains and one fault domain
B. Via an Azure Availability set that has five update domains and one fault domain
C. Via an Azure virtual scale set that has 6 Azure virtual machines running
A. Via an Azure Availability set that has seven update domains and one fault domain
You can deploy Azure virtual machines to an Availability Set that has seven update domains. If one update domain goes down, you will still have six update domains in place. Each machine can occupy an update domain.
Your company has an Azure App Service Plan named Plan1. This plan is hosting several Azure Web Apps. You have to provide additional memory and CPU to each Azure Web App. Which of the following can be implemented for this requirement?
A. Scale out Plan1
B. Scale up Plan1
C. Add a deployment slot
D. Configure CORS
B. Scale up Plan1
You can scale up the App Service Plan to get more CPU and Memory resources assigned to the respective web applications.
Your company has an Azure Web App named newapp1000. A deployment slot has been created for the Web App named “staging”.
You perform a swap of the staging and the production slot.
Is the setting for Web sockets swapped between the staging and the production slot?
A. Yes
B. No
The correct answer is B. No.
Here’s why:
Web socket settings are considered “slot-specific” settings in Azure Web Apps, which means they DO NOT swap when you perform a slot swap operation.
Important notes for AZ-104 exam:
Slot-specific settings (settings that DO NOT swap):
Publishing endpoints
Custom domain names
SSL certificates and bindings
Scale settings
WebJobs schedulers
IP restrictions
WebSockets
Always On settings
Diagnostic settings
Cross-origin resource sharing (CORS)
Settings that DO swap:
General application settings
Connection strings (unless marked as slot-specific)
Handler mappings
Public certificates
WebJobs content
Key exam points:
Understanding which settings swap and which don’t is crucial for the AZ-104 exam
You can make any app setting or connection string slot-specific by selecting the “Slot Setting” checkbox in the Configuration blade
After a swap, all slot-specific settings stay with their original slot
This behavior ensures that certain critical configurations remain with their intended slots
Remember: If you need WebSocket settings to be different between production and staging environments, they will remain with their respective slots during a swap operation, which is often desired for maintaining specific configurations per environment
Your company has the following Azure virtual networks defined as part of their Azure subscription
app-network1 IP address range 10.0.0.0/16 location East US
app-network2 IP address range 10.1.0.0/16 location East US
They want to delegate the process of establishing virtual network peering between the networks to a user named AdminA. Currently AdminA has been given the Azure AD Role of Global Administrator. The user has not been granted any roles at the subscription level.
Would the user be able to configure the virtual network peering connection?
A. Yes
B. No
B. No
The user needs to be given the required role at the subscription, resource group or resource level to establish the virtual network peering connection.
Your company currently has an Azure Web App that is part of a Basic App Service Plan. They want to enable custom domains and Backups for the Azure Web App. Which of the following needs to be first for achieving these requirements?
A. Scale up the App Service Plan
B. Scale out the App Service Plan
C. Configure an identity for the Azure Web App
D. Configure a deployment slot for the Azure Web App
A. Scale up the App Service Plan
Backups are currently only available for the Standard App Service Plan or higher. Hence you would need to scale up the App Service Plan first for this requirement.
You have an Azure virtual machine. You need to enable backups for the Azure virtual machine. The backups need to be taken at 2:00 every day. The backups need to be stored for 30 days.
Which of the following needs to be in place for storage of the backups?
A. Azure File share
B. Azure Blob container
C. Azure SQL database
D. Azure Recovery Services Vault
D. Azure Recovery Services Vault
The backups are stored in the Azure Recovery Services vault