Microsoft AZ-204 Practice Test - Questions Answers, Page 40

List of questions
Question 391

HOTSPOT
You have an Azure Functions app using the Consumption hosting plan for a company. The app contains the following functions:
You plan to enable dynamic concurrency on the app. The company requires that each function has its concurrency level managed separately.
Question 392

You are developing several microservices to run on Azure Container Apps for a company. External TCP ingress traffic from the internet has been enabled for the microservices.
The company requires that the microservices must scale based on an Azure Event Hub trigger.
You need to scale the microservices by using a custom scaling rule.
Which two Kubernetes Event-driven Autoscaling (KEDA) trigger fields should you use? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Question 393

HOTSPOT
You have an Azure App Service web app named App1. App1 has Application Insights enabled.
You plan to review the configuration of telemetry sampling for Application Insights of App1.
You need to author an analytics query that will return the sampling rate.
How should you complete the provided query? To answer, select the appropriate options in the answer area.
Question 394

HOTSPOT
You are developing a web application that makes calls to the Microsoft Graph API. You register the application in the Azure portal and upload a valid X509 certificate.
You create an appsettings.json file containing the certificate name, client identifier for the application, and the tenant identifier of the Microsoft Entra ID. You create a method named ReadCertificate to return the X509 certificate by name.
You need to implement code that acquires a token by using the certificate.
Question 395

You have an Azure App Service plan named APSPIanl set to the Basic B1 pricing tier. APSPIanl contains an App Service web. You plan to enable schedule-based autoscaling for APSPIanl. You need to minimize the cost of running WebAppl.
Solution: Scale down ASPPIan1 to the Shared pricing tier.
Does the solution meet the goal?
Question 396

You have an Azure App Service plan named APSPIanl set to the Basic Bl pricing tier. APSPIanl contains an App Service web app named WebAppl. You plan lo enable schedule-based autoscaling for APSPIanl. You need to minimize the cost of running WebAppl. Solution: Scale up APSPIanl to the Premium V2 pricing tier.
Does the solution meet the goal?
Question 397

HOTSPOT
You have an Azure subscription that hosts an Application Insights workspace named Workspace1.
You plan to aulhoi .Net-based code and deploy it to an App Service Web App named App1. Telemetry generated by Appl will be ingested into Workspace1. You intend to use Microsoft Entra ID authentication and Azure role-based access control (RBAC) to prevent unauthorized telemetry from being ingested into Workspacel.
You need to configure the Entra ID credential class and the RBAC role for App1.
What should you configure? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection Is worth one point.
Question 398

You are developing a microservices-based application that uses Azure Container Apps. The application consists of several containerized services that handle tasks, such as processing orders, managing inventory, and generating reports. You deploy a new revision of the processing orders app.
Processing orders must be triggered by a web request and must always be available based on incoming web requests.
You need to validate that the replica is ready to handle incoming requests.
What should you implement?
Question 399

Vou have an on-premises, public-facing website named www.contoso.com.
You plan to test availability of www.contoso.com by using Application Insights availability tests.
You need to configure a test that will generate HTTP POST requests that include custom headers. Your solution must minimize development effort.
Which type of test should you configure?
Question 400

You manage an Azure Cosmos DB for a NoSQL API account named account1. The account contains a database named db1, which contains a container named container1. You configure account! with a session consistency level.
You plan to develop an application named Appl that will access container1. Individual instances of Appl must perform reads and writes. Appl must allow multiple nodes to participate in the same session.
You need to configure an object to share the session token between the nodes.
Which object should you use?
Question