Cert Prep: Microsoft Azure Administrator (AZ-104) (Cloud Academy) Flashcards
Your Chief Technology officer wants to manage the Azure Virtual Machine (VM) infrastructure by establishing a baseline, high-level standard of quality for all the resources in your environment.
What tool can be used to implement this request?
Select one answer
A. VM Access extension
B. Azure VM agent extension
C. PowerShell DSC
D. Bitlocker
C. PowerShell DSC
Explanation:
Configuration Management deals with establishing a baseline, high-level standard of quality for all the resources in your environment. In this scenario, you will want to maintain the highest level of quality and serviceability of your virtual machines. There are several Configuration Management options in the Portal. PowerShell Desired State Configuration is one such tool. Different Configuration Management tools have different ways of implementing this desired state file, however, most tools are based on industry standards such as MOF or the Managed Object Format (MOF).
A company needs to connect their on-premise data center to Azure. They want to have a dedicated connection and at the same time want to have a failover connection. They don’t mind having a drop in latency when it comes to the failover connection. They also have around 500+ employees who will need to use this connection. Which of the following connection types would you use?
A. Site-to-Site for the main and failover connection.
B. Site-to-Site for the main and Point-to-Site for the failover connection.
C. ExpressRoute for the main connection and Site-to-Site for the failover connection.
D. Site-to-Site for the main and ExpressRoute for the failover connection.
C. ExpressRoute for the main connection and Site-to-Site for the failover connection.
Explanation:
An ExpressRoute connection behaves like a dedicated connection between your on-premise data center and Azure. You can establish multiple connections between your on-premise data center and Azure. In the failover connection, since the company does not mind a drop in latency, they can opt for a Site-to-Site VPN connection. This type of model is often used for a primary and failover connection from on-premise data centers and Azure.
Your company has resources in both Azure Infrastructure as a Service (IaaS) and on-premises architectures. You have an existing Azure Files Network File System version 4.1 (NFSv4.1). You have been asked to migrate the local-redundant storage (LRS) to zone-redundant storage (ZRS).
You want to maintain maximum control over the migration, and it must be completed by a date specified by management.
You need to select a supported method to complete the migrations.
What should you do?
A. Request a live migration.
B. Perform the migration using PowerShell.
C. Perform a manual migration.
D. Perform the migration via the Azure portal.
C. Perform a manual migration.
Explanation:
A manual migration from LRS to ZRS is the method for migrating Azure File Network File System version 4.1 NFSv4.1 shares in this scenario. A manual migration provides more flexibility and control than a conversion. You can use this option if you need the migration to be complete by a specific date, or if conversion is not supported for your scenario. Manual migration is also useful when moving a storage account to another region. See Move an Azure Storage account to another region for more details.
You must perform a manual migration if:
You want to migrate your storage account to a different region. Your storage account is a block blob account. Your storage account includes data in the archive tier and rehydrating the data is not desired.
You should not request a live migration in this scenario because Azure Files NFSv4.1 share migrations are not supported.
It is not possible to perform the migration from LRS to ZRS using PowerShell because it supports only LRS to GRS and LRS to RA-GRS migrations.
The Azure Portal supports LRS migrations to geo-redundant (GRS) and read-access geo-redundant (RA-GRS) storage.
A company’s app hosted in Azure is using the App Service. They want this app to interface with another application in another domain. Which of the below configurations will make this possible?
A. Enable CORS for the App Service.
B. Enable Autoscale for the App Service.
C. Enable OAuth for the App Service.
D. Enable API Definition for the App Service.
A. Enable CORS for the App Service.
Explanation:
App Service offers support for Cross Origin Resource Sharing (CORS), which enables JavaScript clients to make cross-domain calls to APIs that are hosted in API apps. App Service lets you configure CORS access to your API without writing any code in your API.
A company needs to connect their on-premise data centers to Azure. They have huge workloads that need to regularly transfer between on premise data centers and Azure. The company wants to avoid sending data over the public internet for security reasons. Which of the following connections should the company opt for to establish this connection?
A. Create a Site-to-Site connection
B. Create a Point-to-Site connection
C. Create an ExpressRoute connection
D. Create a VNet-to-VNet connection
C. Create an ExpressRoute connection
Explanation:
An ExpressRoute connection behaves like a dedicated connection between your on-premise data center and Azure. The Site-to-Site and Point-to-Site connections have to traverse the internet, and hence are not ideal when you have high workloads that need to be transferred between the on-premise and Azure location.
Which of the following statements correctly describes the difference between role-based access controls (RBAC) and resource locks?
A. Resource locks apply a restriction across all users and roles
B. RBAC applies a restriction across all users and roles
C. Resource locks apply a restriction to users only
D. RBAC applies a restriction to roles only.
A. Resource locks apply a restriction across all users and roles
Explanation:
Unlike RBAC, management locks apply a restriction across all users and roles.
When running multiple environments of a given Azure App Service application, what deployment slot option allows you to test configuration elements and ensure that your application works as expected before being pushed to production?
A. Swap with Preview
B. Staging Swap
C. Check ‘Slot Setting’ box
D. Swap App Settings
A. Swap with Preview
Explanation:
Swap with preview, or multi-phase swap, simplify validation of slot-specific configuration elements, such as connection strings. For mission-critical workloads, you want to validate that the app behaves as expected when the production slot’s configuration is applied, and you must perform such validation before the app is swapped into production. Swap with preview is what you need.
Which Azure tool is a cloud-based, command-line service for copying and migrating data between Azure Storage accounts?
A. AzCopy
B. Import/Export Service
C. Azure Data Box
D. Azure Storage Explorer
A. AzCopy
Explanation:
AzCopy is a Windows command-line utility. There are multiple uses for AzCopy. For example, you can copy data into your Blob storage account from your existing general-purpose storage accounts. Additionally, you can upload data from your on-premises storage devices into your Blob storage account.
Your manager has asked for advice on how best to fire off a console app that will nightly pick up some files that are uploaded to a Web App hosted on App Service and add them to Blob Storage. Cost and management effort are a concern.
Given what you know, which service would work best?
A. WebJobs
B. Azure Logic Apps
C. Azure Functions
D. Azure Automation
A. WebJobs
Explanation:
While there are multiple answers that would work, the answer that would be considered the “best” is the use of WebJobs.
WebJobs will have access to the files on the servers without any additional configuration. That will keep management and cost down.
How would you download the Azure Resource Manager (ARM) template for multiple existing Azure resources?
A. If those resources are in the same resource group, go to that resource group in the Azure Portal, select the resources, and export the template.
B. It’s not possible to download an ARM template for multiple existing resources.
C. Export the ARM template for each resource in the Azure Portal, and then concatenate them into a single ARM template.
D. If those resources are in the same subscription, go to that subscription in the Azure Portal, select the resources, and export the template.
A. If those resources are in the same resource group, go to that resource group in the Azure Portal, select the resources, and export the template.
Explanation:
In the Azure Portal, you can export an ARM template from either a resource group or a resource. The exported template is a “snapshot” of the current state of the resource group. You can export an entire resource group or specific resources within that resource group.
What major directory roles are available in Azure AD? (Choose 3 answers)
A. User
B. Global Administrator
C. Guest
D. Limited Administrator
A. User
B. Global Administrator
D. Limited Administrator
Explanation:
Administrator and Guest are not Directory roles in Azure AD. User, Global Administrator, and Limited Administrator are the three major Directory roles in Azure AD. Limited Administrator can be broken out into various types of “sub-administrators.”
Your organization wants to connect two Azure networks using an Azure VPN Gateway. Which connection method can you implement to meet this requirement?
A. An Azure Hybrid network
B. An Azure Accelerated Network
C. A VNet Peering connection
D. A VNet-to-VNet connection
D. A VNet-to-VNet connection
Explanation:
VNet Peering is an Azure-to-Azure connection which does not have to use VPN Gateways for connectivity across Azure VNets. If you did want to use Azure VPN Gateways, like in the case of on-premises connectivity, you can still do this between two Azure networks in what’s called a VNet-to-VNet connection. VNet-to-VNet connectivity utilizes the Azure VPN gateways to connect two or more virtual networks together securely with IPsec/IKE S2S VPN tunnels.
You have begun migrating your existing applications from on-premise servers to resources on an Azure Virtual Network. The on-premise network and Azure are currently connected via ExpressRoute. You need to ensure the ExpressRoute connection is healthy at all times. What Network Watcher service can you utilize to monitor the connection?
A. Connection Monitor (formerly Network Performance Monitor)
B. Traffic Analytics
C. VPN Troubleshoot
D. Connection Monitor (Classic)
A. Connection Monitor (formerly Network Performance Monitor)
Explanation:
The new Connection Monitor (formerly the Network Performance Monitor service) is a cloud-based hybrid network monitoring solution that helps you monitor network performance between various points in your network infrastructure. It also helps you monitor network connectivity to service and application endpoints and monitor the performance of Azure ExpressRoute.
Please note that Azure also has a legacy service that is also named Connection Monitor, but this has been changed to Connection Monitor Classic.
Question 14
Question
INCORRECT
You skipped the question, recorded as incorrect.
You are a start-up company currently hosting two small web applications, Web App 1 and Web App 2, on Azure Web Apps. Your Web Apps run on three instances on a Basic app service plan. You need to manage both web apps to meet the following requirements:
Allow Web App 1 to scale from 5-8 instances based on application workload, as traffic for this web app is growing. Maintain Web App 2 on three separate instances, as this application is also growing more popular. However, Web App 2 does not require scaling capabilities yet.
What steps would be most cost-effective and meet your application requirements?
A. Move Web App 1 to a separate Standard app service plan. Configure auto scaling for Web App 1 between a range of 5 to 8 instances based on application metrics. Keep your existing Basic app service plan for Web App 2.
B. Scale up to a Premium app service plan. Leave Web App 2 as it is currently configured. Configure auto scaling for Web App 1 between a range of 5 to 8 instances based on application metrics.
C. Move Web App 1 to a separate Premium app service plan. Configure auto scaling for Web App 1 between a range of 5 to 8 instances based on application metrics. Scale your Basic app service plan down to a Shared service plan for Web App 2.
D. Move Web App 1 to a separate Premium app service plan. Configure auto scaling for Web App 1 between a range of 5 to 8 instances based on application metrics. Scale up your existing service plan from Basic to Standard for Web App 2.
A. Move Web App 1 to a separate Standard app service plan. Configure auto scaling for Web App 1 between a range of 5 to 8 instances based on application metrics. Keep your existing Basic app service plan for Web App 2.
Explanation:
App Service plans are containers for the apps that you deploy in App Service. App Service plans are offered in different tiers, with more functionality provided by higher, more expensive tiers. The following list highlights some of the distinctions between the available tiers:
Free (Windows only): Run a small number of apps for free Shared (Windows only): Run more apps and provides support for custom domains Basic: Run unlimited apps and scale up to three instances with built-in load balancing Standard: The first tier that is recommended for production workloads. It scales up to ten (10) instances with Autoscaling support and VNet integration to access resources in your Azure virtual networks without exposing them to the internet Premium: Scale up to 20 instances and additional storage over the standard tier Isolated: Scale up to 100 instances, runs inside of an Azure Virtual Network isolated from other customers, and supports private access use cases
A client has an Azure Site-to-Site (S2S) connection between an on-premises location and an Azure virtual network (VNet) using a RouteBased Azure VPN gateway. This client has a requirement for all Internet-bound traffic from virtual machines (VMs) on their Azure VNet to be routed back to the on-premises location for auditing. Which of the following solutions would best meet the requirement?
A. Create Point-to-Site (P2S) connections between the VMs and client machines at the on-premises location
B. Configure forced tunneling to route Internet-bound traffic from the VMs to the on-premises location
C. Create another S2S connection between the on-premises location and VNet using a PolicyBased VPN gateway
D. Add the “GatewaySubnet” to a network security group (NSG) with a rule to disallow all internet bound traffic
B. Configure forced tunneling to route Internet-bound traffic from the VMs to the on-premises location
Explanation:
Forced tunneling can be used with Azure S2S connections and RouteBased (not PolicyBased) VPN gateways to route Internet-bound traffic from a VNet to an on-premises location for inspection and auditing. According to Microsoft recommendations, the “GatewaySubnet” should not be part of an NSG.
What does placing your virtual machines into an availability set accomplish regarding failures or outages?
A. It limits the impact of potential physical hardware failures.
B. It prevents hardware failures.
C. It may limit the impact of network outages in the future.
D. It protects your application from failures, power outages or anything else.
A. It limits the impact of potential physical hardware failures.
Explanation:
Placing two or more VMs in an availability set provides redundancy for them, and limits the impact of potential physical hardware failures.
Five developers in your company need to be able to connect to several application tier VMs. Your management team is concerned about security and doesn’t want everyone to have access to all of the VMs. Which of the following network connections would be best in this scenario?
A. A point-to-site VPN
B. A point-to-point VPN
C. A site-to-site VPN
D. An ExpressRoute connection
A. A point-to-site VPN
Explanation:
Point-to-site VPNs allow you to connect a single client to a virtual network. You can create multiple point-to-site VPNs to assist in these types of situations, and for just a few connections this makes for a viable option. However, once you need a large number of connections, you’ll want to consider a site-to-site VPN.