The latest Microsoft AZ-303 Microsoft Azure Architect Technologies certification actual real practice exam question and answer (Q&A) dumps are available free, which are helpful for you to pass the Microsoft AZ-303 Microsoft Azure Architect Technologies exam and earn Microsoft AZ-303 Microsoft Azure Architect Technologies certification.
Exam Question 161
You use Visual Studio to create an ASP.NET web app named billing and enable Docker Compose support. You publish the app to Docker Hub. You then sign into Azure and create a Windows container app for the web app.
You need to view the progress of the app as it is starting up.
What should you do?
A. Visit http://billing.scm.azurewebsites.net/api/deployments.
B. Visit http://billing.scm.azurewebsites.net/api/logstream
C. Run the following Azure CLI command: az container show –name billing
D. Run the following PowerShell cmdlet: Get-AzContainerGroup -Name billing
Correct Answer:
B. Visit http://billing.scm.azurewebsites.net/api/logstream
Answer Description:
You should visit http://billing.scm.azurewebsites.net/api/logstream. This endpoint provides progress information for web app container instances.
You should not run the following Azure CLI command: az container show –name billing. This command shows the status of a container instance’s provisioning state. It does not show its entire progress.
You should not run the following PowerShell cmdlet: Get-AzContainerGroup -Name billing. This cmdlet shows the status of a container instance’s provisioning state. It does not show its entire progress.
You should not visit http://billing.scm.azurewebsites.net/api/deployments. This endpoint returns a JSON view of a web app deployment.
References:
Microsoft Docs > Run a custom Windows container in Azure (Preview)
Exam Question 162
You recently created a Web App for Containers instance named prodWeb that uses a Docker image. The name of the resource group is Production.
You need to change the instance to use the new image company1/testapp.
Which command should you use?
A. az webapp deployment container config -n prodWeb -g Production -c company1/testapp
B. az webapp create -n prodWeb -g Production -c company1/testapp
C. az webapp deployment source config -n prodWeb -g Production -c company1/testapp
D. az webapp config container set -n prodWeb -g Production -c company1/testapp
Correct Answer:
D. az webapp config container set -n prodWeb -g Production -c company1/testapp
Answer Description:
You should use the following command:
az webapp config container set -n prodWeb -g Production -c company1/testapp
This command changes the image for an existing container.
You should not use the following command:
az webapp deployment container config -n prodWeb -g Production -c company1/testapp
This command enables continuous deployment for a container instance.
You should not use the following command:
az webapp create -n prodWeb -g Production -c company1/testapp
This command creates a new container instance.
You should not use the following command:
az webapp deployment source config -n prodWeb -g Production -c company1/testapp
This command configures a GIT deployment.
References:
Microsoft Docs > Manage Web App for Containers using Azure CLI
Exam Question 163
You are building new web apps in Azure App Service.
You should use the web apps, stacks, and the available App Service plans as shown in the exhibit.
Web app | Stack |
---|---|
App1 | PHP 7.3 |
App2 | ASP.NET 4.7 |
App3 | .NET Core 3.1 |
App4 | Ruby 2.6 |
App Service Plan | Platform |
---|---|
Plan1 | Windows |
Plan2 | Linux |
You need to publish the web apps in an App Service plan that supports that stack runtime.
Which App Service plan can you use for each web app? To answer, select the appropriate options from the drop-down menus.
App1:
- Plan1 and Plan2
- Plan1 only
- Plan2 only
App2:
- Plan1 and Plan2
- Plan1 only
- Plan2 only
App3:
- Plan1 and Plan2
- Plan1 only
- Plan2 only
App4:
- Plan1 and Plan2
- Plan1 only
- Plan2 only
Correct Answer:
App1: Plan1 and Plan2
App2: Plan1 only
App3: Plan1 and Plan2
App4: Plan2 only
Answer Description:
You can use plan1 and plan2 for app1 and app3. PHP 7.3 and .NET Core 3.1 runtime stacks are supported by the App Service plans platforms running on Linux or Windows.
You can use plan1 only for app2. ASP.NET 4.7 is supported only by App Service plans platforms running on Windows.
You can use plan2 only for app4. Ruby 2.6 is supported only by App Service plans platforms running on Linux.
The az webapp list-runtimes –linux and az webapp list-runtimes commands can be used to view the latest languages and supported versions for App Service platforms.
References:
Microsoft Docs > App Service overview
Exam Question 164
Your office uses Azure for cloud computing. Your team consists of over 40 IT administrators across the country. Each IT administrator has permission to create virtual machines (VMs) in Azure.
You need to receive an e-mail whenever a VM is added or changed. The solution must be the most cost-effective and easy to implement.
What should you do?
A. Create a Service Bus namespace and implement a relay binding.
B. Create a Notification Hub namespace and implement a push notification.
C. Create a Function app that uses the HTTP trigger.
D. Create a Logic app that uses the Event Grid connector.
Correct Answer:
D. Create a Logic app that uses the Event Grid connector.
Answer Description:
You should create a Logic app that uses the Event Grid connector. A Logic app allows you to automate business processes. The Event Grid connector allows the Logic app to run whenever a resource event is added to Event Grid. In this scenario, a resource event is the VM addition or change. You can have the Logic app automatically e-mail you when this happens.
You should not create a Function app that uses the HTTP trigger. A Function app provides a serverless architecture that allows you to run code on a trigger. The HTTP trigger requires you to run the function by making an HTTP request. This would require you to manually monitor Azure for changes and then make the HTTP request. Event Grid is a better solution.
You should not create a Notification Hub namespace and implement a push notification. This allows a backend application to send notifications to Internet-connected devices. This is not suitable in this scenario.
You should not create a Service Bus namespace and implement a relay binding. This allows you to forward Internet messages to a backend network. This is not suitable for this scenario.
References:
Microsoft Docs > Tutorial: Monitor virtual machine changes by using Azure Event Grid and Logic Apps
Microsoft Docs > Azure Functions HTTP triggers and bindings overview
Exam Question 165
You are developing a web application that will serve as a search engine for the science department at a school. You plan to host the application in Azure.
A console application acts as a web crawler. It browses the web servers on the school’s network every 12 hours to build a local table of keywords and links. This table is used by the web application. You plan to host the web application in Azure App Service.
You need to make sure that the web crawler continues to work while the web application is in Azure without increasing costs.
What should you do?
A. Convert it to an Azure Function.
B. Deploy it as a Docker container instance.
C. Deploy it as a WebJob.
D. Convert it to a web application.
Correct Answer:
C. Deploy it as a WebJob.
Answer Description:
You should deploy the web crawler as a WebJob. A WebJob allows you to run a program in the context of a web application. The program can be written in Java, JavaScript, Python, PHP, Bash, PowerShell, or any .NET language. You can configure the WebJob to use a schedule as a trigger, which allows the console application to run every 12 hours. Also, WebJobs involves no additional cost.
You should not convert it to an Azure Function. Although an Azure Function can use a schedule as a trigger, it increases the cost, unlike a WebJob.
You should not convert it to a web application. There is no easy way to cause a web application to run on a scheduled basis.
You should not deploy it as a Docker container instance. Although you can run a Docker container instance on a schedule, it increases the cost, unlike a WebJob.
References:
Microsoft Docs > Run background tasks with WebJobs in Azure App Service
Microsoft Docs > Run a custom container in Azure
Microsoft Docs > Azure Functions triggers and bindings concepts
Exam Question 166
You have an Azure Virtual Machine (VM) provisioned in your Azure subscription.
You plan to implement an Azure Logic App to send an email notification every time this Azure VM is stopped.
You need to implement the Logic App.
Which three Logic App components should you use? To answer, move the appropriate components from the list of possible components to the answer area and arrange them in any order.
A. 1. an Event Grid trigger 2. a condition 3. an action
B. 1. an HTTP trigger 2. a condition 3. an action
C. 1. an HTTP trigger 2. a variable 3. an action
D. 1. an Event Grid trigger 2. a variable 3. an action
Correct Answer:
A. 1. an Event Grid trigger 2. a condition 3. an action
Answer Description:
You should use the components below:
- an Event Grid trigger
- a condition
- an action
You should use an Event Grid trigger. By default, Azure resources publish events to Azure Event Grid. You can respond to events on this Azure VM by initiating Logic Apps with this trigger.
You should also use a condition. You can use a condition to determine which action happened on the Azure VM. In this case, you are interested in the stop VM event.
Finally, you should use an action. After evaluating the event, you need to monitor the condition. To do this, when this event happens, you need to perform an action, such as send an email. You can use a send an email action in this case, by selecting the appropriate email provider action that matches your email address.
You should not use an HTTP trigger. You can use an HTTP trigger to initiate a logic app from an HTTP endpoint.
You should not use a variable. You can use a variable to simplify some steps in your logic app and reuse the same value during the workflow execution. It is not required to define a variable in this case.
References:
Microsoft Docs > Tutorial: Monitor virtual machine changes by using Azure Event Grid and Logic Apps
Microsoft Docs > Call service endpoints over HTTP or HTTPS from Azure Logic Apps
Microsoft Docs > Store and manage values by using variables in Azure Logic Apps
Exam Question 167
You are migrating an ASP.NET Core application to Azure App Service.
The application requires two different environments: a production environment for end-users and an approval environment for the QA team to validate new application versions. The application also needs to warm up some internal modules to better perform in production.
You need to configure the App Service to meet the requirements and minimize the solution costs.
Which App Service feature and pricing tier should you use?
Azure App Service tier:
- Basic
- Premium
- Standard
Feature:
- Always on
- Application gateway
- Deployment slots
Correct Answer:
Azure App Service tier: Standard
Feature: Deployment slots
Answer Description:
You should use the Standard tier. You need to use the standard pricing tier because it is the most cost-effective tier that supports deployment slots.
You should not use the Basic tier. This tier does not support any deployment slots, which is necessary to meet the requirements of having a different environment for the QA team and warm up the application before releasing it into production.
You should not use the Premium tier. Compared with the Standard tier, the Premium tier provides greater limits and access to premium SSD disks in the underlining virtual machine used by the App Service Plan. However, to minimize the solution costs, you should use the Standard tier.
You should use deployment slots. A deployment slot is a web app that runs in the same App Service plan from the original web app. This allows you to have different hosts, settings, or application versions than the production environment. You can use a deployment slot to test new application versions in the approval environment and warm up the application before releasing it into production. You can have up to five deployment slots in the Standard tier.
You should not use always on. You can use this feature to keep the application loaded in the App Service Plan memory, even if does not receive any traffic. It is recommended to always leave enabled for production environments in order to avoid HTTP 500 errors when the application is reloaded after not receiving traffic. You can disable always on in other environments to save some computing resources.
You should not use Application Gateway. Application Gateway is an HTTP/HTTPS layer load balancer used to route web traffic for one or multiple applications. It can also include Web Application Firewall (WAF) to secure your application against common security attacks. You can integrate Application Gateway with App Service, but it does not provide separate environments to test your application or warm up the application before releasing it into production.
References:
Microsoft Docs > Set up staging environments in Azure App Service
Microsoft Docs > Azure App Service plan overview
Microsoft Docs > Configure an App Service app in the Azure portal
Microsoft Docs > What is Azure Application Gateway?
Exam Question 168
You have a financial application developed in ASP.NET Core named finance1. You plan to migrate finance1 to an Azure App Service.
The application should be accessible only from private virtual networks on Azure or through a Virtual Private Network (VPN) connection with on-premises networks. For compliance reasons, the application needs to run on isolated physical hardware.
You need to implement the App Service to deploy finance1.
Which App Service tier should you use?
A. Standard tier
B. Shared tier
C. App Service Environment (ASE)
D. PremiumV2 tier
Correct Answer:
C. App Service Environment (ASE)
Answer Description:
You should use ASE. The ASE is an isolated environment used to securely run App Service apps. You can use ASE to provide complete isolation and secure network access using an Internal Load Balancer to deploy your App Service into a subnet in a virtual network and run your workload in dedicated and isolated hardware.
You should not use the PremiumV2, Standard, or Basic tiers. These tiers provide a public endpoint to access your application from the internet. Although you can filter inbound network traffic to block the internet connectivity and integrate the App Service with virtual networks by using service endpoints, these tiers run in multi-tenant hardware managed by Azure and do not run in complete isolated hardware.
References:
Microsoft Docs > Create and use an Internal Load Balancer App Service Environment
Microsoft Docs > Networking considerations for an App Service Environment
Microsoft Docs > App Service networking features
Microsoft Docs > Azure App Service plan overview
Exam Question 169
You deploy a .NET Core application that is configured to connect with an Azure Service Bus queue.
The application reads messages in the queue and processes the messages to an external service. You should avoid any cold start when running the application.
You need to provide the infrastructure for this application. You want to use the best Azure service and pricing tier.
Which service and tier should you use?
Service:
- Azure Container Instances (ACI)
- Azure Functions
- Login Apps
Pricing tier:
- Consumption plan
- Dedicated plan
- Premium plan
Correct Answer:
Service: Azure Functions
Pricing tier: Premium plan
Answer Description:
You should use Azure Functions. Azure Functions can run specialized code to perform a single task called functions without needing to manage application infrastructure. You can execute a function in response to events from other services by using triggers. You can use a variety of built-in triggers to execute your function, such as the trigger Service Bus.
You should not use Logic Apps. Logic Apps can automate tasks and integrate applications or data without having to write code. You can build workflows using a range of triggers similar to Azure Functions. However, you need to build custom connectors to integrate with external services that are not supported by the built-in connectors.
You should not use ACI. You can use ACI to run container applications that do not require complex orchestration. With an ACI, you need to develop the connection logic with the Service Bus queue into the application.
You should use the Premium plan. You can use this plan to always run your function on warm instances and avoid cold starts. A cold start is the process of loading your function in Azure infrastructure before you actually run the function, which increases latency.
You should not use the Consumption plan. This is the standard option to run Azure Functions without the need to manage application infrastructure. However, the application may suffer from a cold start.
You should not use the Dedicated plan. This plan runs the function in an existing App Service Plan in your subscription. You should use this plan if you have underutilized VMs that run other App Service instances.
References:
Microsoft Docs > Azure Functions scale and hosting
Microsoft Docs > Azure Functions triggers and bindings concepts
Azure Blog > Serverless > Understanding serverless cold start
Microsoft Docs > An introduction to Azure Functions
Microsoft Docs > Choose the right integration and automation services in Azure
Microsoft Docs > Overview – What is Azure Logic Apps?
Microsoft Docs > What is Azure Container Instances?
Exam Question 170
You pull a Dockerfile from an online repository. You build a container image from this file, and you want to add it to an Azure Container Registry named mytestreg. The name of image is my-test-app.
You need to deploy the image to the registry.
Which command should you run from your developer computer?
A. docker push mytestreg.azurecr.io/my-test-app
B. az container create –name mytestreg –image my-test-app
C. docker run -p mytestreg my-test-app
D. az acr create –name mytestreg\my-test-app
Correct Answer:
A. docker push mytestreg.azurecr.io/my-test-app
Answer Description:
You should use the following command: docker push mytestreg.azurecr.io/my-test-app
This command pushes the image named my-test-app to an Azure login server named mytestreg.azurecr.io.
You should not use the following command: docker run -p mytestreg my-test-app
This command runs a container locally. In this scenario, you need to deploy the container image.
You should not use the following command: az acr create --name mytestreg\my-test-app
The az acr create command creates an Azure Container Registry.
You should not use the following command: az container create --name mytestreg --image my-test-app
The az container create command creates a container instance in Azure.
References:
Microsoft Docs > Tutorial: Create an Azure container registry and push a container image
Microsoft Docs > Tutorial: Create a container image for deployment to Azure Container Instances
Microsoft Docs > Tutorial: Deploy a container application to Azure Container Instances