Practice Free AZ-204 Exam Online Questions
You develop and deploy an Azure App Service web app named App1. You create a new Azure Key Vault named Vault 1. You import several API keys, passwords, certificates, and cryptographic keys into Vault1.
You need to grant App1 access to Vault1 and automatically rotate credentials Credentials must not be stored in code.
What should you do?
- A . Enable App Service authentication for Appt. Assign a custom RBAC role to Vault1.
- B . Add a TLS/SSL binding to App1.
- C . Assign a managed identity to App1.
- D . Upload a self-signed client certificate to Vault1. Update App1 to use the client certificate.
You develop Azure Web Apps for a commercial diving company. Regulations require that all divers fill out a health questionnaire every 15 days after each diving job starts.
You need to configure the Azure Web Apps so that the instance count scales up when divers are filling out the questionnaire and scales down after they are complete.
You need to configure autoscaling.
What are two possible autoscaling configurations to achieve this goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
- A . Predictive autoscaling
- B . CPU usage-based autoscaling
- C . Recurrence profile
- D . Fixed date profile
You develop Azure Web Apps for a commercial diving company. Regulations require that all divers fill out a health questionnaire every 15 days after each diving job starts.
You need to configure the Azure Web Apps so that the instance count scales up when divers are filling out the questionnaire and scales down after they are complete.
You need to configure autoscaling.
What are two possible autoscaling configurations to achieve this goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
- A . Predictive autoscaling
- B . CPU usage-based autoscaling
- C . Recurrence profile
- D . Fixed date profile
You need to resolve the capacity issue.
What should you do?
- A . Convert the trigger on the Azure Function to an Azure Blob storage trigger
- B . Ensure that the consumption plan is configured correctly to allow scaling
- C . Move the Azure Function to a dedicated App Service Plan
- D . Update the loop starting on line PC09 to process items in parallel
You develop a gateway solution for a public facing news API. The news API back end is implemented as a RESTful service and uses an OpenAPI specification.
You need to ensure that you can access the news API by using an Azure API Management service instance.
Which Azure PowerShell command should you run?
- A . Import-AzureRmApiManagementApi CContext $ApiMgmtContext CSpecificationFormat "Swagger" -SpecificationPath $SwaggerPath CPath $Path
- B . New-AzureRmApiManagementBackend -Context $ApiMgmtContext -Url $Url -Protocol http
- C . New-AzureRmApiManagement CResourceGroupName $ResourceGroup CName $Name C Location $Location COrganization $Org CAdminEmail $AdminEmail
- D . New-AzureRmApiManagementBackendProxy CUrl $ApiUrl
You must implement Application Insights instrumentation capabilities utilizing the Azure Mobile Apps SDK to provide meaningful analysis of user interactions with a mobile app.
You need to capture the data required to implement the Usage Analytics feature of Application Insights.
Which three data values should you capture? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A . Trace
- B . Session Id
- C . Exception
- D . User Id
- E . Events
DRAG DROP
You are developing a .NET Core model-view controller (MVC) application hosted on Azure for a health care system that allows providers access to their information.
You develop the following code:
You define a role named SysAdmin.
You need to ensure that the application meets the following authorization requirements:
✑ Allow the ProviderAdmin and SysAdmin roles access to the Partner controller regardless of whether the user holds an editor claim of partner.
✑ Limit access to the Manage action of the controller to users with an editor claim of partner who are also members of the SysAdmin role.
How should you complete the code? To answer, drag the appropriate code segments to the correct locations. Each code segment 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.
DRAG DROP
You are developing a .NET Core model-view controller (MVC) application hosted on Azure for a health care system that allows providers access to their information.
You develop the following code:
You define a role named SysAdmin.
You need to ensure that the application meets the following authorization requirements:
✑ Allow the ProviderAdmin and SysAdmin roles access to the Partner controller regardless of whether the user holds an editor claim of partner.
✑ Limit access to the Manage action of the controller to users with an editor claim of partner who are also members of the SysAdmin role.
How should you complete the code? To answer, drag the appropriate code segments to the correct locations. Each code segment 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.
Vou are developing a microservice to run on Azure Container Apps for a company. External HTTP ingress traffic has been enabled. The company requires that updates to the microservice must not cause downtime. You need to deploy an update to the microservice.
What should you do?
- A . Enable multiple revision mode.
- B . Use a private container registry and single image for all containers.
- C . Use multiple environments for each container.
- D . Enable single revision mode.
- E . Use a single environment for all containers.
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might
have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You deploy an Azure Container Apps app and disable ingress on the container app.
Users report that they are unable to access the container app. You investigate and observe that the app has scaled to 0 instances.
You need to resolve the issue with the container app.
Solution: Enable ingress, create a TCP scale rule, and apply the rule to the container app.
Does the solution meet the goal?
- A . Yes
- B . No