FEFreeExamDumps.in

AZ-204 Practice Questions — Page 8

A company uses Azure Container Apps. A container app named App1 resides in a resource group named RG1.

The company requires testing of updates to App1.

You enable multiple revision modes on App1.

You need to ensure traffic is routed to each revision of App1.

How should you complete the code segment?

NOTE: Each correct selection is worth one point.

You have an Azure Cosmos DB for NoSQL API account named account1 and a database named db1. An application named app1 will access db1 to perform read and write operations.

You plan to modify the consistency levels for read and write operations performed by app1 on db1.

You must enforce the consistency level on a per-operation basis whenever possible.

You need to configure the consistency level for read and write operations.

Which locations should you configure? To answer, move the appropriate locations to the correct operations. You may use each location once, more than once, or not at all. You may need to move the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

Question 72

You are creating an Azure Functions app project in your local development environment by using Azure Functions Core Tools.

You must create the project in either Python or C# without using a template.

You need to specify the command and its parameter required to create the Azure Functions app project.

Which command and parameter should you specify? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Question 73

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.

You need to configure the app for dynamic concurrency.

Which file or function names should you use? To answer, select the appropriate values in the answer area.

NOTE: Each correct selection is worth one point.

Question 74

You plan to implement an Azure function named Function1 that will use the timer trigger.

You plan to use a TimeSpan value to set the schedule of function execution.

You need to select the hosting model and the schedule expression assignment method.

Which hosting model and schedule expression assignment method should you use? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Question 75

You are developing a microservices-based application by using Azure Container Apps. The application consists of several containerized services that handle tasks, such as processing orders, managing inventory, and generating reports.

Processing orders has the following requirements:

• Orders must be triggered by a web request.

• Additional replicas must be added when the total number of web requests exceeds 300 for at least 15 seconds.

• Processing orders must always be available based on incoming web requests.

• Costs must be minimized for the Azure Container Apps instance.

You need to configure scaling.

How should you complete the CLI command? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Question 76

You create an Azure subscription. You then create an Azure resource group.

You plan to create a containerized task that will run as an Azure Container App in regular intervals.

You need to automate the process of creating the task in the resource group by using Azure CLI commands.

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 77

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?

  • A.HTTP readiness probe
  • B.TCP readiness probe
  • C.HTTP startup probe
  • D.TCP liveness probe
  • E.HTTP liveness probe

You are developing a microservices-based application by using Azure Container Apps. The application consists of several containerized services that handle tasks, such as processing orders, managing inventory, and generating reports.

You must deploy two microservices named serviceA and serviceB to support managing inventory. Deployment of the microservices have the following requirements:

• serviceA must create and configure all necessary Azure resources, including multiple Dapr components and an Azure Blob Storage account, by using Bicep files.

• serviceB must create and configure all necessary Azure resources without using Bicep files.

• All microservices must use the same resource group, environment, Azure Container Registry, and Log Analytics workspace.

You need to deploy the microservices.

Which CLI command should you use? To answer, move the appropriate CLI commands to the correct microservices. You may use each CLI command once, more than once, or not at all. You may need to move the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

Question 79

You are developing an Azure Function app for scalability and integration with Azure Blob Storage.

You must run the code in an Azure production environment that allows the function to scale based on demand, providing instance size selection and higher concurrency control.

The function must connect to other Azure services secured inside a virtual network, scale to zero instances when there are no incoming events and minimize costs.

You need to select a hosting plan to meet the requirement.

Which plan should you use?

  • A.Flex Consumption
  • B.Consumption
  • C.Premium
  • D.Dedicated