Microsoft AZ-202 Exam Practice Questions (P. 4)
- Full Access (61 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #16
You host an on-premises ASP.NET Web API at the company headquarters. The Web API is consumed by applications running at the company's branch offices using the Azure Relay service. All the users of the applications are on the same Azure Active Directory (Azure AD).
You need to ensure that the applications can consume the Web API.
What should you do?
You need to ensure that the applications can consume the Web API.
What should you do?
- ACreate a Shared Access policy for Send permissions and another for Receive permissions.
- BCreate separate Azure AD groups named Senders and Receivers. In Access Control (IAM) for the Relay namespace, assign Senders the Reader role and assign Receivers the Reader role.
- CCreate dedicated Azure AD identities named Sender and Receiver. Assign Sender the Azure AD Identity Reader role. Assign Receiver the Azure AD Identity Reader role. Configure applications to use the respective identities.
- DCreate a Shared Access policy for the namespace. Use a connection string in Web API and use a different connection string in consumer applications.
Correct Answer:
D
To begin using Service Bus messaging entities in Azure, you must first create a namespace with a name that is unique across Azure. A namespace provides a scoping container for addressing Service Bus resources within your application.
When you publish an application through Azure Active Directory Application Proxy, you create an external URL for your users to go to when they're working remotely. This URL gets the default domain yourtenant.msappproxy.net.
References:
https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/application-proxy-configure-custom-domain
D
To begin using Service Bus messaging entities in Azure, you must first create a namespace with a name that is unique across Azure. A namespace provides a scoping container for addressing Service Bus resources within your application.
When you publish an application through Azure Active Directory Application Proxy, you create an external URL for your users to go to when they're working remotely. This URL gets the default domain yourtenant.msappproxy.net.
References:
https://docs.microsoft.com/en-us/azure/active-directory/manage-apps/application-proxy-configure-custom-domain
send
light_mode
delete
Question #17
DRAG DROP -
You develop a web app that uses the tier D1 app service plan by using the Web Apps feature of Microsoft Azure App Service.
Spikes in traffic have caused increases in page load times.
You need to ensure that the web app automatically scales when CPU load is about 85 percent and minimize costs.
Which four 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.
NOTE: Each correct selection is worth one point.
Select and Place:

You develop a web app that uses the tier D1 app service plan by using the Web Apps feature of Microsoft Azure App Service.
Spikes in traffic have caused increases in page load times.
You need to ensure that the web app automatically scales when CPU load is about 85 percent and minimize costs.
Which four 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.
NOTE: Each correct selection is worth one point.
Select and Place:

Correct Answer:
Step 1: Configure the web app to the Standard App Service Tier
The Standard tier supports auto-scaling, and we should minimize the cost.
Step 2: Enable autoscaling on the web app
First enable autoscale -
Step 3: Add a scale rule -
Step 4: Add a Scale condidation -
References:
https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-autoscale-get-started https://azure.microsoft.com/en-us/pricing/details/app-service/plans/

Step 1: Configure the web app to the Standard App Service Tier
The Standard tier supports auto-scaling, and we should minimize the cost.
Step 2: Enable autoscaling on the web app
First enable autoscale -
Step 3: Add a scale rule -
Step 4: Add a Scale condidation -
References:
https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-autoscale-get-started https://azure.microsoft.com/en-us/pricing/details/app-service/plans/
send
light_mode
delete
Question #18
DRAG DROP -
You are developing a multi-tenant ASP.NET Core application that will be hosted on Azure. The application will support multiple database platforms, including
Azure SQL and on-premises SQL Server instances.
You need to ensure the application supports distributed transactions.
Which technologies should you use? To answer, drag the appropriate technologies to the correct scenarios. Each technology 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.
Select and Place:

You are developing a multi-tenant ASP.NET Core application that will be hosted on Azure. The application will support multiple database platforms, including
Azure SQL and on-premises SQL Server instances.
You need to ensure the application supports distributed transactions.
Which technologies should you use? To answer, drag the appropriate technologies to the correct scenarios. Each technology 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.
Select and Place:

Correct Answer:
Box 1: Elastic Database Client Library
Sharded database applications in Azure: With this scenario, the data tier uses the Elastic Database client library or self-sharding to horizontally partition the data across many databases in SQL DB.
Box 2: MSDTC -
Eelastic database transactions cannot stretch across on premises SQL Server and Azure SQL Database. For distributed transactions on premises, continue to use MSDTC.
References:
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-elastic-transactions-overview

Box 1: Elastic Database Client Library
Sharded database applications in Azure: With this scenario, the data tier uses the Elastic Database client library or self-sharding to horizontally partition the data across many databases in SQL DB.
Box 2: MSDTC -
Eelastic database transactions cannot stretch across on premises SQL Server and Azure SQL Database. For distributed transactions on premises, continue to use MSDTC.
References:
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-elastic-transactions-overview
send
light_mode
delete
Question #19
You have implemented code that uses elastic transactions spanning across three different Azure SQL Database logical servers.
Database administration report that some transactions take longer to complete than expected.
You need to use the correct tool to monitor all the transactions originating from the elastic transaction implementation.
Which tool should you use?
Database administration report that some transactions take longer to complete than expected.
You need to use the correct tool to monitor all the transactions originating from the elastic transaction implementation.
Which tool should you use?
- AUse the dependencies section of Azure Applications Insights.
- BRun the sys.dm_tran_active_transactions dynamic management view.
- CRun the sys.dm_tran_current_snapshot dynamic management view.
- DRun the sys.dm_tran_active_snapshot_database_transactions dynamic management view.
Correct Answer:
B
Use Dynamic Management Views (DMVs) in SQL DB to monitor status and progress of your ongoing elastic database transactions.
These DMVs are particularly useful:
sys.dm_tran_active_transactions: Lists currently active transactions and their status. The UOW (Unit Of Work) column can identify the different child transactions that belong to the same distributed transaction. All transactions within the same distributed transaction carry the same UOW value. sys.dm_tran_database_transactions: Provides additional information about transactions, such as placement of the transaction in the log. sys.dm_tran_locks: Provides information about the locks that are currently held by ongoing transactions
References:
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-elastic-transactions-overview
B
Use Dynamic Management Views (DMVs) in SQL DB to monitor status and progress of your ongoing elastic database transactions.
These DMVs are particularly useful:
sys.dm_tran_active_transactions: Lists currently active transactions and their status. The UOW (Unit Of Work) column can identify the different child transactions that belong to the same distributed transaction. All transactions within the same distributed transaction carry the same UOW value. sys.dm_tran_database_transactions: Provides additional information about transactions, such as placement of the transaction in the log. sys.dm_tran_locks: Provides information about the locks that are currently held by ongoing transactions
References:
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-elastic-transactions-overview
send
light_mode
delete
Question #20
A company is migrating an existing on-premises third-party website to Azure. The website is stateless.
The company does not have access to the source code for the website. They do have the original installer.
The number of visitors at the website varies throughout the year. The on-premises infrastructure was resized to accommodate peaks but the extra capacity was not used.
You need to implement a virtual machine scale set instance.
What should you do?
The company does not have access to the source code for the website. They do have the original installer.
The number of visitors at the website varies throughout the year. The on-premises infrastructure was resized to accommodate peaks but the extra capacity was not used.
You need to implement a virtual machine scale set instance.
What should you do?
- AUse an autoscale setting to scale instances vertically.
- BUse an autoscale setting with unlimited maximum number of instances.
- CScale out by one instance when the average CPU usage of one of the instance is over 80 percent.
- DUse Azure Monitor to create autoscale settings using custom metrics.
Correct Answer:
D
Azure Monitor autoscaling allows you to scale the number of running instances up or down, based on telemetry data (metrics).
References:
https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/insights-autoscale-common-metrics
D
Azure Monitor autoscaling allows you to scale the number of running instances up or down, based on telemetry data (metrics).
References:
https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/insights-autoscale-common-metrics
send
light_mode
delete
All Pages