Skip to Content

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

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

Exam Question 281

You have an Azure Kubernetes Service (AKS) cluster named AKS1 and a computer named Computer1 that runs Windows 10. Computer1 that has the Azure CLI installed.
You need to install the kubectl client on Computer1.
Which command should you run? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
You need to install the kubectl client on Computer1. Which command should you run?
Correct Answer:

To install kubectl locally, use the az aks install-cli command: az aks install-cli
Answer Explanation:
To install kubectl locally, use the az aks install-cli command: az aks install-cli

Exam Question 282

You have an Azure subscription named Subscription1 that contains the quotas shown in the following table.

Quota Location Usage
Standard BS Family vCPUs West US 0 of 20
Standard D Family vCPUs West US 0 of 20
TOtal Regional vCPUs West US 0 of 20

You deploy virtual machines to Subscription1 as shown in the following table.

Name Size vCPUs Location Status
VM1 Standard_B2ms 2 West US Running
VM2 Standard_B16ms 16 West US Stopped

You plan to deploy the virtual machines shown in the following table.

Name Size vCPUs
VM3 Standard_B2ms 1
VM4 Standard_D4s_v3 4
VM5 Standard_B16ms 16

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.

  • You can deploy VM3 to West US.
  • You can deploy VM4 to West US.
  • You can deploy VM5 to West US.

Correct Answer:

  • You can deploy VM3 to West US: Yes
  • You can deploy VM4 to West US: No
  • You can deploy VM5 to West US: No

Answer Explanation:
The total regional vCPUs is 20 so that means a maximum total of 20 vCPUs across all the different VM sizes. The deallocated VM with 16 vCPUs counts towards the total. VM20 and VM1 are using 18 of the maximum 20 vCPUs leaving only two vCPUs available. Quota is calculated based on the total number of cores in use both allocated and deallocated.

Reference:
Microsoft Docs > Check vCPU quotas using Azure PowerShell

Exam Question 283

You have an Azure subscription that contains an Azure Availability Set named WEBPROD-AS-USE2 as shown in the following exhibit.
You have an Azure subscription that contains an Azure Availability Set named WEBPROD-AS-USE2 as shown in the following exhibit.
You add 14 virtual machines to WEBPROD-AS-USE2.
Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.
NOTE: Each correct selection is worth one point.

When Microsoft performs planned maintenance in East US 2, the maximum number of unavailable virtual machines will be [answer choice].

  • 2
  • 7
  • 10
  • 14

If the server rack in the Azure datacenter that hosts WEBPROD-AS-USE2 experiences a power failure, the maximum number of unavailable virtual machines will be [answer choice].

  • 2
  • 7
  • 10
  • 14

Correct Answer:
When Microsoft performs planned maintenance in East US 2, the maximum number of unavailable virtual machines will be [2].
If the server rack in the Azure datacenter that hosts WEBPROD-AS-USE2 experiences a power failure, the maximum number of unavailable virtual machines will be [7].

Answer Explanation:
Box 1: 2 –
There are 10 update domains. The 14 VMs are shared across the 10 update domains so four update domains will have two VMs and six update domains will have one VM. Only one update domain is rebooted at a time. Therefore, a maximum of two VMs will be offline.
Box 2: 7 –
There are 2 fault domains. The 14 VMs are shared across the 2 fault domains, so 7 VMs in each fault domain. A rack failure will affect one fault domain so 7 VMs will be offline.

Reference:
Microsoft Docs > Availability options for Azure Virtual Machines

Exam Question 284

You have a deployment template named Template1 that is used to deploy 10 Azure web apps.
You need to identify what to deploy before you deploy Template1. The solution must minimize Azure costs.
What should you identify?

A. five Azure Application Gateways
B. one App Service plan
C. 10 App Service plans
D. one Azure Traffic Manager
E. one Azure Application Gateway

Correct Answer:
B. one App Service plan

Answer Explanation:
You create Azure web apps in an App Service plan.

Exam Question 285

You plan to deploy an Azure container instance by using the following Azure Resource Manager template.
You plan to deploy an Azure container instance by using the following Azure Resource Manager template.
Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the template.

Internet users [answer choice].

  • can connect to the container from any device.
  • cannot connect to the container.
  • can only connect to the container from devices that run Windows.

If Internet Information Services (IIS) in the container fall, [answer choice].

  • the container will restart automatically.
  • the container will only restart manually.
  • the container must be redeployed.

Correct Answer:
Internet users [can connect to the container from any device].
If Internet Information Services (IIS) in the container fall, [the container will restart automatically].

Exam Question 286

You have an Azure subscription that contains a virtual machine named VM1. VM1 hosts a line-of-business application that is available 24 hours a day. VM1 has one network interface and one managed disk. VM1 uses the D4s v3 size.
You plan to make the following changes to VM1:

  • Change the size to D8s v3.
  • Add a 500-GB managed disk.
  • Add the Puppet Agent extension.
  • Enable Desired State Configuration Management.

Which change will cause downtime for VM1?

A. Enable Desired State Configuration Management
B. Add a 500-GB managed disk
C. Change the size to D8s v3
D. Add the Puppet Agent extension

Correct Answer:
C. Change the size to D8s v3

Answer Explanation:
While resizing the VM it must be in a stopped state.

Reference:
Azure Blog > Resize virtual machines

Exam Question 287

You have an app named App1 that runs on an Azure web app named webapp1.
The developers at your company upload an update of App1 to a Git repository named Git1.
Webapp1 has the deployment slots shown in the following table.

Name Function
webapp1-prod Production
webapp1-test Staging

You need to ensure that the App1 update is tested before the update is made available to users.
Which two actions should you perform? Each correct answer presents part of the solution.
A. Swap the slots
B. Deploy the App1 update to webapp1-prod, and then test the update
C. Stop webapp1-prod
D. Deploy the App1 update to webapp1-test, and then test the update
E. Stop webapp1-test

Correct Answer:
A. Swap the slots
D. Deploy the App1 update to webapp1-test, and then test the update

Exam Question 288

You have an Azure subscription named Subscription1 that has the following providers registered:

  • Authorization
  • Automation
  • Resources
  • Compute
  • KeyVault
  • Network
  • Storage
  • Billing
  • Web

Subscription1 contains an Azure virtual machine named VM1 that has the following configurations:

  • Private IP address: 10.0.0.4 (dynamic)
  • Network security group (NSG): NSG1
  • Public IP address: None
  • Availability set: AVSet
  • Subnet: 10.0.0.0/24
  • Managed disks: No

Location: East US –
You need to record all the successful and failed connection attempts to VM1.
Which three actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

A. Enable Azure Network Watcher in the East US Azure region.
B. Add an Azure Network Watcher connection monitor.
C. Register the MicrosoftLogAnalytics provider.
D. Create an Azure Storage account.
E. Register the Microsoft.Insights resource provider.
F. Enable Azure Network Watcher flow logs.

Correct Answer:
A. Enable Azure Network Watcher in the East US Azure region.
E. Register the Microsoft.Insights resource provider.
F. Enable Azure Network Watcher flow logs.

Answer Explanation:
A network security group (NSG) enables you to filter inbound traffic to, and outbound traffic from, a virtual machine (VM). You can log network traffic that flows through an NSG with Network Watcher’s NSG flow log capability. In this tutorial, you learn how to:

  • Create a VM with a network security group
  • Enable Network Watcher and register the Microsoft.Insights provider
  • Enable a traffic flow log for an NSG, using Network Watcher’s NSG flow log capability
  • Download logged data
  • View logged data

You can log network traffic that flows through an NSG with Network Watcher’s NSG flow log capability.
In the Azure portal, enable Network Watcher
Register Insights provider. NSG flow logging requires the Microsoft.Insights provider.
Enable NSG flow log. NSG flow log data is written to an Azure Storage account, Subscription1 has storage.

Reference:
Microsoft Docs > Tutorial: Log network traffic to and from a virtual machine using the Azure portal

Exam Question 289

You need to deploy an Azure virtual machine scale set that contains five instances as quickly as possible.
What should you do?

A. Deploy five virtual machines. Modify the Availability Zones settings for each virtual machine.
B. Deploy five virtual machines. Modify the Size setting for each virtual machine.
C. Deploy one virtual machine scale set that is set to VM (virtual machines) orchestration mode.
D. Deploy one virtual machine scale set that is set to ScaleSetVM orchestration mode.

Correct Answer:
D. Deploy one virtual machine scale set that is set to ScaleSetVM orchestration mode.

Answer Explanation:
Virtual machine scale sets will support 2 distinct orchestration modes:
ScaleSetVM – Virtual machine instances added to the scale set are based on the scale set configuration model. The virtual machine instance lifecycle – creation, update, deletion – is managed by the scale set.
VM (virtual machines) – Virtual machines created outside of the scale set can be explicitly added to the scaleset.

Reference:
Microsoft Docs > Orchestration modes

Exam Question 290

You plan to create the Azure web apps shown in the following table.

Name Runtime stack
WebApp1 .NET Core 3.0
WebApp2 ASP .NET V4.7
WebApp3 PHP 7.3
WebApp4 Ruby 2.6

What is the minimum number of App Service plans you should create for the web apps?

A. 1
B. 2
C. 3
D. 4

Correct Answer:
A. 1

Reference:
Microsoft Docs > Configure an App Service app in the Azure portal

    Ads Blocker Image Powered by Code Help Pro

    Your Support Matters...

    We run an independent site that\'s committed to delivering valuable content, but it comes with its challenges. Many of our readers use ad blockers, causing our advertising revenue to decline. Unlike some websites, we haven\'t implemented paywalls to restrict access. Your support can make a significant difference. If you find this website useful and choose to support us, it would greatly secure our future. We appreciate your help. If you\'re currently using an ad blocker, please consider disabling it for our site. Thank you for your understanding and support.