ExamGecko
Home Home / Microsoft / AZ-104

Microsoft AZ-104 Practice Test - Questions Answers, Page 39

Question list
Search
Search

List of questions

Search

Related questions











HOTSPOT

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

VM1 and VM2 run the websites in the following table.

AppGW1 has the backend pools in the following table.

DNS resolves site1.contoso.com, site2.contoso.com, and site3.contoso.com to the IP address of

AppGW1.

AppGW1 has the listeners in the following table.

AppGW1 has the rules in the following table.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.


Question 381
Correct answer: Question 381

Explanation:

Vm1 is in Pool1. Rule2 applies to Pool1, Listener 2, and site2.contoso.com

Your company has a main office in Australia and several branch offices in Asia.

The company's data center uses a VMware virtualization infrastructure to host several virtualized servers.

You purchase an Azure subscription and plan to move all virtual machines to Azure to a resource group in the Australia Southeast location.

You need to create an Azure Migrate migration project.

Which geography should you select?

A.
Central India
A.
Central India
Answers
B.
Australia Central
B.
Australia Central
Answers
C.
Australia Southeast
C.
Australia Southeast
Answers
D.
United States
D.
United States
Answers
Suggested answer: C

Explanation:

In Project Details, specify the project name, and geography in which you want to create the project.

Review supported geographies for public and government clouds.

Reference:

https://docs.microsoft.com/en-us/azure/migrate/how-to-add-tool-first-time

HOTSPOT

You have an Azure web app named WebApp1.

You need to provide developers with a copy of WebApp1 that they can modify without affecting the production WebApp1. When the developers finish testing their changes, you must be able to switch the current line version of WebApp1 to the new version.

Which command should you run prepare the environment? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Question 383
Correct answer: Question 383

Explanation:

Box 1: New-AzureRmWebAppSlot

The New-AzureRmWebAppSlot cmdlet creates an Azure Web App Slot in a given a resource group that uses the specified App Service plan and data center.

Box 2: -SourceWebApp

Reference:

https://docs.microsoft.com/en-us/powershell/module/azurerm.websites/new-azurermwebappslot

DRAG DROP

You are configuring serverless computing in Azure.

You need to receive an email message whenever a resource is created in or deleted from a resource group. Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.


Question 384
Correct answer: Question 384

Explanation:

Reference:

https://docs.microsoft.com/en-us/azure/event-grid/monitor-virtual-machine-changes-event-gridlogic-app

Action 1: Create an Azure Logic App

Action 2: Create an Azure Event Grid Trigger

Action 3: Create conditions and actions


Reference:

https://docs.microsoft.com/en-us/azure/event-grid/monitor-virtual-machine-changes-event-gridlogic-app

DRAG DROP

You have an Azure subscription that contains an Azure Service Bus named Bus1.

Your company plans to deploy two Azure web apps named App1 and App2. The web apps will create messages that have the following requirements:

Each message created by App1 must be consumed by only a single consumer

Each message created by App2 will be consumed by multiple consumers.

Which resource should you create for each web app? To answer, drag the appropriate resources to the correct web apps. Each resource may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.


Question 385
Correct answer: Question 385

Explanation:

Reference:

https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-queues-topicssubscriptions

HOTSPOT

You have an Azure Service Bus.

You create a queue named Queue1. Queue1 is configured as shown in the following exhibit.

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.


Question 386
Correct answer: Question 386

Explanation:

Box 1: retained until manually deleted

Since by default PeekLock shall be enabled in Queue, so it will move to DeadLetter after 2hours and stays there until manually deleted. Messages in the dead letter queue should be deleted manually.

Box 2: deleted immediately

Once a message is pulled, it will be deleted immediately. It does not make sense to keep the message further 5 minutes "locked" in the queue. Locking the message makes sense, for the case, when processing the message from a receiver, to lock the message, to avoid processing/receiving the message simultaneously by another receiver.

The receiving client initiates settlement of a received message with a positive acknowledgment when it calls Complete at the API level. This indicates to the broker that the message has been successfully processed and the message is removed from the queue or subscription.

Reference:

https://docs.microsoft.com/en-us/azure/service-bus-messaging/message-expiration

https://docs.microsoft.com/en-us/azure/service-bus-messaging/message-transfers-locks-settlement

You are configuring Azure Active Directory (AD) Privileged Identity Management.

You need to provide a user named Admm1 with read access to a resource group named RG1 for only one month.

The user role must be assigned immediately.

What should you do?

A.
Assign an active role.
A.
Assign an active role.
Answers
B.
Assign an eligible role.
B.
Assign an eligible role.
Answers
C.
Assign a permanently active role.
C.
Assign a permanently active role.
Answers
D.
Create a custom role and a conditional access policy.
D.
Create a custom role and a conditional access policy.
Answers
Suggested answer: B

Explanation:

Azure AD Privileged Identity Management introduces the concept of an eligible admin. Eligible admins should be users that need privileged access now and then, but not all-day, every day. The role is inactive until the user needs access, then they complete an activation process and become an active admin for a predetermined amount of time.

Reference:

https://docs.microsoft.com/en-us/azure/active-directory/privileged-identity-management/pimconfigure

You have an Azure App Service plan named AdatumASP1 that hosts several Azure web apps.

You discover that the web apps respond slowly.

You need to provide additional memory and CPU resources to each instance of the web apps.

What should you do?

A.
Add continues WebJob that use the multi-instance scale
A.
Add continues WebJob that use the multi-instance scale
Answers
B.
Scale out AdatumASP1
B.
Scale out AdatumASP1
Answers
C.
Add a virtual machine scale set
C.
Add a virtual machine scale set
Answers
D.
Scale up AdatumASP1
D.
Scale up AdatumASP1
Answers
Suggested answer: D

Explanation:

Reference:

https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/app-service/web-sites-scale.md

Scale up : Correct Choice

Scale up: Get more CPU, memory, disk space, and extra features like dedicated virtual machines (VMs), custom domains and certificates, staging slots, autoscaling, and more. You scale up by changing the pricing tier of the App Service plan that your app belongs to.

Scale out : Incorrect Choice

Scale out: Increase the number of VM instances that run your app. You can scale out to as many as 30 instances, depending on your pricing tier. App Service Environments in Isolated tier further increases your scale-out count to 100 instances. For more information about scaling out, see Scale instance count manually or automatically.

Add continuous WebJobs : Incorrect Choice

WebJobs is a feature of Azure App Service that enables you to run a program or script in the same instance as a web app, API app, or mobile app. Add continuous WebJobs will Starts immediately when the WebJob is created. To keep the job from ending, the program or script typically does its work inside an endless loop. If the job does end, you can restart it.Starts only when triggered manually or on a schedule.

Add a virtual machine scale set : Incorrect Choice

A virtual machine scale set allows you to deploy and manage a set of identical, autoscaling virtual machines. You can scale the number of VMs in the scale set manually. You can also define rules to autoscale based on resource usage such as CPU, memory demand, or network traffic. It will not increase the slowness of the apps.

Reference:

https://docs.microsoft.com/en-us/azure/app-service/manage-scale-up

https://docs.microsoft.com/en-us/azure/app-service/webjobs-create#webjob-types

You have an Azure subscription that contains the resources shown in the following table.

You need to deploy Application1 to Cluster1.

Which command should you run?

A.
az acr build
A.
az acr build
Answers
B.
az aks create
B.
az aks create
Answers
C.
docker build
C.
docker build
Answers
D.
kubectl apply
D.
kubectl apply
Answers
Suggested answer: A

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have an Azure virtual machine named VM1 that runs Windows Server 2016.

You need to create an alert in Azure when more than two error events are logged to the System event log on VM1 within an hour.

Solution: You create an Azure storage account and configure shared access signatures (SASs). You install the Microsoft Monitoring Agent on VM1. You create an alert in Azure Monitor and specify the storage account as the source.

Does this meet the goal?

A.
Yes
A.
Yes
Answers
B.
No
B.
No
Answers
Suggested answer: B

Explanation:

Instead: You create an Azure Log Analytics workspace and configure the data settings. You install the Microsoft Monitoring Agent on VM1. You create an alert in Azure Monitor and specify the Log

Analytics workspace as the source.

Reference:

https://docs.microsoft.com/en-us/azure/azure-monitor/platform/agents-overview

Total 644 questions
Go to page: of 65