ExamGecko
Home Home / Microsoft / AZ-104

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

Question list
Search
Search

List of questions

Search

Related questions











HOTSPOT

You create an Azure web app named WebApp1. WebApp1 has the autoscale settings shown in the following exhibit.

The scale out and scale in rules are configured to have a duration of 10 minutes and a cool down time of five minutes.

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 371
Correct answer: Question 371

Explanation:

Box 1: one instance

Refer to scaling condition provided in the question, August 8, 2018 is outside the schedule of the scale condition 1, and Default instance count is 1.

Box 2: two instances

The default instance count is important because autoscale scales your service to that count when metrics are not available. Therefore, select a default instance count that's safe for your workloads.

The Default instance count of scale condition 1 is 4, and the Scale in rule decreases the count with 1.

So initial instance count before scale in condition met = 4

CPU utilization was at 15% for 60 mins so after first 10 mins ( The scale out and scale in rules are configured to have a duration of 10 minutes )instance count reduces by 1 hence after first 10 mins instance count is 4-1=3

Now cool down period is 5 mins , after first 15 mins instance count is 3 .

After next 15 mins , instance count will be 3-1=2.

After next 15 mins , instance count will be =2 because minimum instance count must be 2 , it can't get reduced beyond 2.

So after 60 mins instance count will be at 2.

Reference:

https://docs.microsoft.com/en-us/azure/azure-monitor/platform/autoscale-best-practices

You have 100 Azure subscriptions. All the subscriptions are associated to the same Azure Active

Directory (Azure AD) tenant named contoso.com.

You are a global administrator.

You plan to create a report that lists all the resources across all the subscriptions.

You need to ensure that you can view all the resources in all the subscriptions.

What should you do?

A.
From the Azure portal, modify the profile settings of your account.
A.
From the Azure portal, modify the profile settings of your account.
Answers
B.
From Windows PowerShell, run the Add-AzureADAdministrativeUnitMember cmdlet.
B.
From Windows PowerShell, run the Add-AzureADAdministrativeUnitMember cmdlet.
Answers
C.
From Windows PowerShell, run the New-AzureADUserAppRoleAssignment cmdlet.
C.
From Windows PowerShell, run the New-AzureADUserAppRoleAssignment cmdlet.
Answers
D.
From the Azure portal, modify the properties of the Azure AD tenant.
D.
From the Azure portal, modify the properties of the Azure AD tenant.
Answers
Suggested answer: C

Explanation:

The New-AzureADUserAppRoleAssignment cmdlet assigns a user to an application role in Azure

Active Directory (AD). Use it for the application report.

Reference: https://docs.microsoft.com/en-us/powershell/module/azuread/newazureaduserapproleassignment?view=azureadps-2.0

You have a Microsoft SQL Server Always On availability group on Azure virtual machines. You need to configure an Azure internal load balancer as a listener for the availability group. What should you do?

A.
Enable Floating IP.
A.
Enable Floating IP.
Answers
B.
Set Session persistence to Client IP and protocol.
B.
Set Session persistence to Client IP and protocol.
Answers
C.
Set Session persistence to Client IP.
C.
Set Session persistence to Client IP.
Answers
D.
Create an HTTP health probe on port 1433.
D.
Create an HTTP health probe on port 1433.
Answers
Suggested answer: A

Explanation:

Reference:

https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sql/virtual-machines-windowsportal-sql-alwayson-int-listener

DRAG DROP

You have an Azure subscription that contains the following resources:

• a virtual network named VNet1

• a replication policy named ReplPolicy1

• a Recovery Services vault named Vault1

• an Azure Storage account named Storage1

You have an Amazon Web Services (AWS) EC2 virtual machine named VM1 that runs Windows Server 2019.

You need to migrate VM1 to VNet1 by using Azure Site Recovery.

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 374
Correct answer: Question 374

Explanation:

Step 1: Deploy an EC2 virtual machine as a configuration server

Prepare source include:

Use an EC2 instance that's running Windows Server 2012 R2 to create a configuration server and register it with your recovery vault.

Configure the proxy on the EC2 instance VM you're using as the configuration server so that it can access the service URLs.

Step 2: Install Azure Site Recovery Unified Setup.

Download Microsoft Azure Site Recovery Unified Setup. You can download it to your local machine and then copy it to the VM you're using as the configuration server.

Step 3: Enable replication for VM1.

Enable replication for each VM that you want to migrate. When replication is enabled, Site Recovery automatically installs the Mobility service.

Reference:

https://docs.microsoft.com/en-us/azure/site-recovery/migrate-tutorial-aws-azure

You deploy an Azure Application Gateway.

You need to ensure that all the traffic requesting https://adatum.com/internal resources is directed to an internal server pool and all the traffic requesting https://adatum.com/external resources is directed to an external server pool.

What should you configure on the Application Gateway?

A.
URL path-based routing
A.
URL path-based routing
Answers
B.
multi-site listeners
B.
multi-site listeners
Answers
C.
basic routing
C.
basic routing
Answers
D.
SSL termination
D.
SSL termination
Answers
Suggested answer: A

Explanation:

URL Path Based Routing allows you to route traffic to back-end server pools based on URL Paths of the request.

In the question there are two different path from where the traffic is getting generated as below

https://adatum.com/internal

https://adatum.com/external

So in this case we can use URL path-based routing feature of Application Gateway.

Reference:

https://docs.microsoft.com/en-us/azure/application-gateway/url-route-overview

You are building a custom Azure function app to connect to Azure Event Grid.

You need to ensure that resources are allocated dynamically to the function app. Billing must be based on the executions of the app.

What should you configure when you create the function app?

A.
the Windows operating system and the Consumption plan hosting plan
A.
the Windows operating system and the Consumption plan hosting plan
Answers
B.
the Windows operating system and the App Service plan hosting plan
B.
the Windows operating system and the App Service plan hosting plan
Answers
C.
the Docker container and an App Service plan that uses the Bl1 pricing tier
C.
the Docker container and an App Service plan that uses the Bl1 pricing tier
Answers
D.
the Docker container and an App Service plan that uses the SI pricing
D.
the Docker container and an App Service plan that uses the SI pricing
Answers
Suggested answer: A

Explanation:

Azure Functions runs in two different modes: Consumption plan and Azure App Service plan. the Consumption plan automatically allocates compute power when your code is running. Your app is scaled out when needed to handle load, and scaled down when code is not running.

Incorrect Answers:

B: When you run in an App Service plan, you must manage the scaling of your function app.

Reference:

https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-azure-function

You have an Azure web app named App1 that streams video content to users. App1 is located in the East US Azure region.

Users in North America stream the video content without any interruption.

Users in Asia and Europe report that the video buffer often and do not play back smoothly.

You need to recommend a solution to improve video streaming to the European and Asian users.

What should you recommend?

A.
Scale out the App Service plan.
A.
Scale out the App Service plan.
Answers
B.
Scale up the App Service plan.
B.
Scale up the App Service plan.
Answers
C.
Configure an Azure Content Delivery Network (CDN) endpoint.
C.
Configure an Azure Content Delivery Network (CDN) endpoint.
Answers
D.
Configure Azure File Sync.
D.
Configure Azure File Sync.
Answers
Suggested answer: C

Explanation:

A content delivery network (CDN) is a distributed network of servers that can efficiently deliver web content to users. CDNs' store cached content on edge servers in point-of-presence (POP) locations that are close to end users, to minimize latency.

Azure Content Delivery Network (CDN) offers developers a global solution for rapidly delivering highbandwidth content to users by caching their content at strategically placed physical nodes across the world.

Reference:

https://docs.microsoft.com/en-us/azure/cdn/cdn-overview

HOTSPOT

You have an Azure web app named App1 that has two deployment slots named Production and

Staging. Each slot has the unique settings shown in the following table.

You perform a slot swap.

What are the configurations of the Production slot after the swap? To answer, select the appropriate options in the answer area.

NOTE: Each correction is worth one point.


Question 378
Correct answer: Question 378

Explanation:

Which settings are swapped?

When you clone configuration from another deployment slot, the cloned configuration is editable.

Some configuration elements follow the content across a swap (not slot specific), whereas other configuration elements stay in the same slot after a swap (slot specific). The following lists show the settings that change when you swap slots.

Box 1 : On

Settings that are swapped:

General settings, such as framework version, 32/64-bit, web sockets

App settings (can be configured to stick to a slot)

Connection strings (can be configured to stick to a slot)

Handler mappings

Public certificates

WebJobs content

Hybrid connections *

Virtual network integration *

Service endpoints *

Azure Content Delivery Network *

Features marked with an asterisk (*) are planned to be unswapped.

So web sockets settings will be swapped. So Production will have web sockets settings from "Off" to "On" after the swap slot.

Box 2: App1-prod.contoso.com

Settings that aren't swapped:

Publishing endpoints

Custom domain names

Non-public certificates and TLS/SSL settings

Scale settings

WebJobs schedulers

IP restrictions

Always On

Diagnostic settings

Cross-origin resource sharing (CORS)

So Custom domain names will not be swapped. So Production will have Custom domain names of its own after the swap slot.

Reference:

https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots#what-happens-during-aswap

You have an Azure subscription that contains a virtual network named VNet1. VNet 1 has two subnets named Subnet1 and Subnet2. VNet1 is in the West Europe Azure region.

The subscription contains the virtual machines in the following table.

You need to deploy an application gateway named AppGW1 to VNet1.

What should you do first?

A.
Add a service endpoint.
A.
Add a service endpoint.
Answers
B.
Add a virtual network.
B.
Add a virtual network.
Answers
C.
Move VM3 to Subnet1.
C.
Move VM3 to Subnet1.
Answers
D.
Stop VM1 and VM2.
D.
Stop VM1 and VM2.
Answers
Suggested answer: D

Explanation:

If you have an existing virtual network, either select an existing empty subnet or create a new subnet in your existing virtual network solely for use by the application gateway.

Verify that you have a working virtual network with a valid subnet. Make sure that no virtual machines or cloud deployments are using the subnet. The application gateway must be by itself in a virtual network subnet.

Reference:

https://social.msdn.microsoft.com/Forums/azure/en-US/b09367f9-5d01-4cda-9127-b7a506a0a151/cant-create-application-gateway?forum=WAVirtualMachinesVirtualNetwork

https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-create-gateway

A web developer creates a web application that you plan to deploy as an Azure web app. Users must enter credentials to access the web application.

You create a new web app named WebApp1 and deploy the web application to WebApp1.

You need to disable anonymous access to WebApp1.

What should you configure?

A.
Access control (IAM)
A.
Access control (IAM)
Answers
B.
Advanced Tools
B.
Advanced Tools
Answers
C.
Deployment credentials
C.
Deployment credentials
Answers
D.
Authentication/Authorization
D.
Authentication/Authorization
Answers
Suggested answer: D

Explanation:

Anonymous access is an authentication method. It allows users to establish an anonymous connection.

Reference:

https://docs.microsoft.com/en-us/biztalk/core/guidelines-for-resolving-iis-permissions-problems

Total 644 questions
Go to page: of 65