option
Questions
ayuda
daypo
search.php
ERASED TEST, YOU MAY BE INTERESTED ON AZ 204
COMMENTS STATISTICS RECORDS
TAKE THE TEST
Title of test:
AZ 204

Description:
Developing Solutions for Microsoft Azure

Author:
Olsjan
Other tests from this author

Creation Date:
10/01/2024

Category: Others

Number of questions: 100
Share the Test:
New CommentNuevo Comentario
No comments about this test.
Content:
You have two Hyper-V hosts named Host1 and Host2. Host1 has an Azure virtual machine named VM1 that was deployed by using a custom Azure Resource Manager template.You need to move VM1 to Host2.What should you do? From the Update management blade, click Enable From the Overview blade, move VM1 to a different subscription From the Redeploy blade, click Redeploy From the Profile blade, modify the usage location.
You have downloaded an Azure Resource Manager template to deploy numerous virtual machines. The template is based on a current virtual machine, but must be adapted to reference an administrative password. You need to make sure that the password is not stored in plain text. You are preparing to create the necessary components to achieve your goal. Which of the following should you create to achieve your goal? An Azure Key Vault An Azure Storage account Azure Active Directory (AD) Identity Protection An access policy An Azure policy A backup policy.
Your company has an Azure Kubernetes Service (AKS) cluster that you manage from an Azure AD-joined device. The cluster is located in a resource group.evelopers have created an application named MyApp. MyApp was packaged into a container image.You need to deploy the YAML manifest file for the applicationSolution: You install the Azure CLI on the device and run the kubectl apply `"f myapp.yaml command.Does this meet the goal? Yes No.
Your company has an Azure Kubernetes Service (AKS) cluster that you manage from an Azure AD-joined device. The cluster is located in a resource group.Developers have created an application named MyApp. MyApp was packaged into a container image.You need to deploy the YAML manifest file for the application.Solution: You install the docker client on the device and run the docker run -it microsoft/azure-cli:0.10.17 command.Does this meet the goal? Yes No.
Your company has a web app named WebApp1.You use the WebJobs SDK to design a triggered App Service background task that automatically invokes a function in the code every time new data is received in a queue.You are preparing to configure the service processes a queue data item.Which of the following is the service you should use? Logic Apps WebJobs Flow Functions.
Your company has an Azure subscription.You need to deploy a number of Azure virtual machines to the subscription by using Azure Resource Manager (ARM) templates. The virtual machines will be included in a single availability set.You need to ensure that the ARM template allows for as many virtual machines as possible to remain accessible in the event of fabric failure or maintenance.Which of the following is the value that you should configure for the platformFaultDomainCount property? 10 30 Min Value Max Value.
Your company has an Azure subscription.You need to deploy a number of Azure virtual machines to the subscription by using Azure Resource Manager (ARM) templates. The virtual machines will be included in a single availability set.You need to ensure that the ARM template allows for as many virtual machines as possible to remain accessible in the event of fabric failure or maintenance.Which of the following is the value that you should configure for the platformUpdateDomainCount property? 10 20 30 40.
You are creating an Azure Cosmos DB account that makes use of the SQL API. Data will be added to the account every day by a web application.You need to ensure that an email notification is sent when information is received from IoT devices, and that compute cost is reduced.You decide to deploy a function app.Which of the following should you configure the function app to use? Azure Cosmos DB connector SendGrid action Azure Event Hubs binding Consumption plan SendGrid binding.
This question requires that you evaluate the underlined text to determine if it is correct.You company has an on-premises deployment of MongoDB, and an Azure Cosmos DB account that makes use of the MongoDB API.You need to devise a strategy to migrate MongoDB to the Azure Cosmos DB account.You include the Data Management Gateway tool in your migration strategy.Instructions: Review the underlined text. If it makes the statement correct, select `No change required.` If the statement is incorrect, select the answer choice that makes the statement correct. No change required mongorestore Azure Storage Explorer AzCopy.
You are developing an e-Commerce Web App.You want to use Azure Key Vault to ensure that sign-ins to the e-Commerce Web App are secured by using Azure App Service authentication and Azure ActiveDirectory (AAD).What should you do on the e-Commerce Web App? Run the az keyvault secret command Enable Azure AD Connect. Enable Managed Service Identity (MSI). Create an Azure AD service principal.
This question requires that you evaluate the underlined text to determine if it is correct.Your Azure Active Directory Azure (Azure AD) tenant has an Azure subscription linked to it.Your developer has created a mobile application that obtains Azure AD access tokens using the OAuth 2 implicit grant type.The mobile application must be registered in Azure AD.You require a redirect URI from the developer for registration purposes. No change required. a secret a login hint a client ID.
You are creating an Azure key vault using PowerShell. Objects deleted from the key vault must be kept for a set period of 90 days. Which two of the following parameters must be used in conjunction to meet the requirement? (Choose two.) EnabledForDeployment EnablePurgeProtection EnabledForTemplateDeployment EnableSoftDelete.
You have an Azure Active Directory (Azure AD) tenant.You want to implement multi-factor authentication by making use of a conditional access policy. The conditional access policy must be applied to all users when they access the Azure portal. Which three settings should you configure? Users and groups-----0 users selected Cloud apps-----0 apps selected Conditions-----0 conditions selected Grant---0 controls selected Session---0 controls selected.
You manage an Azure SQL database that allows for Azure AD authentication.You need to make sure that database developers can connect to the SQL database via Microsoft SQL Server Management Studio (SSMS).You also need to make sure the developers use their on-premises Active Directory account for authentication. Your strategy should allow for authentication prompts to be kept to a minimum.Which of the following should you implement? Azure AD token Azure Multi-Factor authentication Active Directory integrated authentication OATH software tokens.
You are developing an application to transfer data between on-premises file servers and Azure Blob storage. The application stores keys, secrets, and certificates in Azure Key Vault and makes use of the Azure Key Vault APIs.You want to configure the application to allow recovery of an accidental deletion of the key vault or key vault objects for 90 days after deletion.What should you do? Run the Add-AzKeyVaultKey cmdlet. Run the az keyvault update --enable-soft-delete true --enable-purge-protection true CLI. Implement virtual network service endpoints for Azure Key Vault. Run the az keyvault update --enable-soft-delete false CLI.
You have developed a Web App for your company. The Web App provides services and must run in multiple regions.You want to be notified whenever the Web App uses more than 85 percent of the available CPU cores over a 5 minute period.Your solution must minimize costs. --Windows size --evaluation-frequency --auto-mitigate --CPU Usage --Percentage CPU --avg Percentage CPU.
You are configuring a web app that delivers streaming video to users. The application makes use of continuous integration and deployment.You need to ensure that the application is highly available and that the users' streaming experience is constant. You also want to configure the application to store data in a geographic location that is nearest to the user.Solution: You include the use of Azure Redis Cache in your design.Does the solution meet the goal? Yes No.
You are configuring a web app that delivers streaming video to users. The application makes use of continuous integration and deployment.You need to ensure that the application is highly available and that the users' streaming experience is constant. You also want to configure the application to store data in a geographic location that is nearest to the user. Solution: You include the use of an Azure Content Delivery Network (CDN) in your design. Yes No.
You are configuring a web app that delivers streaming video to users. The application makes use of continuous integration and deployment.You need to ensure that the application is highly available and that the users' streaming experience is constant. You also want to configure the application to store data in a geographic location that is nearest to the user. Solution: You include the use of a Storage Area Network (SAN) in your design. Yes No.
You develop a Web App on a tier D1 app service plan.You notice that page load times increase during periods of peak traffic.You want to implement automatic scaling when CPU load is above 80 percent. Your solution must minimize costs.What should you do first? Enable autoscaling on the Web App. Switch to the Premium App Service tier plan Switch to the Standard App Service tier plan Switch to the Azure App Services consumption plan.
Your company's Azure subscription includes an Azure Log Analytics workspace.Your company has a hundred on-premises servers that run either Windows Server 2012 R2 or Windows Server 2016, and is linked to the Azure Log Analytics workspace. The Azure Log Analytics workspace is set up to gather performance counters associated with security from these linked servers.You must configure alerts based on the information gathered by the Azure Log Analytics workspace.You have to make sure that alert rules allow for dimensions, and that alert creation time should be kept to a minimum. Furthermore, a single alert notification must be created when the alert is created and when the alert is resolved.You need to make use of the necessary signal type when creating the alert rules.Which of the following is the option you should use? The Activity log signal type The Application Log signal type The Metric signal type The Audit Log signal type.
You are developing a .NET Core MVC application that allows customers to research independent holiday accommodation providers.You want to implement Azure Search to allow the application to search the index by using various criteria to locate documents related to accommodation.You want the application to allow customers to search the index by using regular expressions.What should you do? Configure the SearchMode property of the SearchParameters class Configure the QueryType property of the SearchParameters class. Configure the Facets property of the SearchParameters class. Configure the Filter property of the SearchParameters class.
You are a developer at your company.You need to update the definitions for an existing Logic App.What should you use? the Enterprise Integration Pack (EIP) the Logic App Code View the API Connections the Logic Apps Designer.
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements.You are developing a solution for a public facing API.The API back end is hosted in an Azure App Service instance. You have implemented a RESTful service for the API back end.You must configure back-end authentication for the API Management service instance.Solution: You configure Basic gateway credentials for the Azure resource Yes No.
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. You are developing a solution for a public facing API. The API back end is hosted in an Azure App Service instance. You have implemented a RESTful service for the API back end. You must configure back-end authentication for the API Management service instance. Solution: You configure Client cert gateway credentials for the HTTP(s) endpoint. Does the solution meet the goal? Yes No.
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. You are developing a solution for a public facing API. The API back end is hosted in an Azure App Service instance. You have implemented a RESTful service for the API back end. You must configure back-end authentication for the API Management service instance. Solution: You configure Basic gateway credentials for the HTTP(s) endpoint. Does the solution meet the goal? Yes No.
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. You are developing a solution for a public facing API. The API back end is hosted in an Azure App Service instance. You have implemented a RESTful service for the API back end. You must configure back-end authentication for the API Management service instance. Solution: You configure Client cert gateway credentials for the Azure resource. Does the solution meet the goal? Yes No.
You are developing a .NET Core MVC application that allows customers to research independent holiday accommodation providers. You want to implement Azure Search to allow the application to search the index by using various criteria to locate documents related to accommodation venues. You want the application to list holiday accommodation venues that fall within a specific price range and are within a specified distance to anairport.What should you do? Configure the SearchMode property of the SearchParameters class Configure the QueryType property of the SearchParameters class. Configure the Facets property of the SearchParameters class Configure the Filter property of the SearchParameters class.
You are a developer at your company. You need to edit the workflows for an existing Logic App. What should you use? the Enterprise Integration Pack (EIP) the Logic App Code View the API Connections the Logic Apps Designer .
You are a developer for a company that provides a bookings management service in the tourism industry. You are implementing Azure Search for the tour agencies listed in your company's solution. You create the index in Azure Search. You now need to use the Azure Search .NET SDK to import the relevant data into the Azure Search service.Which three actions should you perform in sequence? Create a DataSource instance and set its Container property to the DataContainer Create an IndexBatch that contains the documents which must be added Set the DataSources property of the SearchServiceClient Create a SearchIndexClient object to connect to the search index Call the Documents.Index method of the SearchIndexClient and pass the IndexBatch Call the Documents.Suggest method of the SearchIndexClient and pass the DataSource.
You are developing an application that applies a set of governance policies for internal and external services, as well as for applications. You develop a stateful ASP.NET Core 2.1 web application named PolicyApp and deploy it to an Azure App Service Web App. The PolicyApp reacts to events from Azure Event Grid and performs policy actions based on those events. You have the following requirements: ✑ Authentication events must be used to monitor users when they sign in and sign out. ✑ All authentication events must be processed by PolicyApp. ✑ Sign outs must be processed as fast as possible. What should you do Create a new Azure Event Grid subscription for all authentication events. Use the subscription to process sign-out events Create a separate Azure Event Grid handler for sign-in and sign-out events Create separate Azure Event Grid topics and subscriptions for sign-in and sign-out events. Add a subject prefix to sign-out events. Create an Azure Event Grid subscription. Configure the subscription to use the subjectBeginsWith filter.
HOTSPOT - You are developing a C++ application that compiles to a native application named process.exe. The application accepts images as input and returns images in one of the following image formats: GIF, PNG, or JPEG. You must deploy the application as an Azure Function. You need to configure the function and host json files. How should you complete the json files? ''type'':http'' ''platform'':''gcm'' ''datatype'':''stream'' ''path'':''process.exe'' ''customHandler'':{''description'':{ ''languageWorker'':{''path'':{ ''extensions'':{''worker'':{ ''extensionBundle'':{ ''enableForwardingHttpRequest'':true ''enableForwardingHttpRequest'':false.
You are developing an Azure Static Web app that contains training materials for a tool company. Each tool’s training material is contained in a static web page that is linked from the tool’s publicly available description page. A user must be authenticated using Azure AD prior to viewing training.You need to ensure that the user can view training material pages after authentication headers responseOverrides navigationFallback 400 401 403 add azure graph referrer.
You are authoring a set of nested Azure Resource Manager templates to deploy Azure resources. You author an Azure Resource Manager template named mainTemplate.json that contains the following linked templates: linkedTemplate1.json, linkedTemplate2.json. You add parameters to a parameters template file named mainTemplate.parameters,json. You save all templates on a local device in the C:\templates\ folder.You have the following requirements: • Store the templates in Azure for later deployment. • Enable versioning of the templates. • Manage access to the templates by using Azure RBAC. • Ensure that users have read-only access to the templates. • Allow users to deploy the templates.ou need to store the templates in Azure.How should you complete the command? ts create storage account create storage account update blueprint artifact template create mainTemplate.json linkedTemplate1.json linkedTemplate2.json mainTemplate.parameters.json.
You are developing a service where customers can report news events from a browser using Azure Web PubSub. The service is implemented as an Azure Function App that uses the JSON WebSocket subprotocol to receive news events.You need to implement the bindings for the Azure Function App.How should you configure the binding? system message connected webPubSubTrigger user system message connected webPubSubTrigger webPubSubConnection.
You are building a software-as-a-service (SaaS) application that analyzes DNA data that will run on Azure virtual machines (VMs) in an availability zone. The data is stored on managed disks attached to the VM. The performance of the analysis is determined by the speed of the disk attached to the VM.You have the following requirements: • The application must be able to quickly revert to the previous day’s data if a systemic error is detected. • The application must minimize downtime in the case of an Azure datacenter outage You need to provision the managed disk for the VM to maximize performance while meeting the requirements. Which type of Azure Managed Disk should you use? DiskType---Premium SSD DiskType---Standard SSD DiskType---Standard HDD Redundancy---Geo-redundant storage (GRS) Redundancy---Zone-redundant storage (ZRS) Redundancy---Locally-redundant storage (LRS).
You are developing an application that includes two Docker containers. The application must meet the following requirements: • The containers must not run as root. • The containers must be deployed to Azure Container Instances by using a YAML file. • The containers must share a lifecycle, resources, local network, and storage volume. • The storage volume must persist through container crashes. • The storage volume must be deployed on stop or restart of the containers. You need to configure Azure Container Instances for the application.Which configuration values should you use? Shared lifecycle---Container group Shared lifecycle---Container image Shared lifecycle---Service endpoint Shared lifecycle---Resource group Storage volume---Azure file share Storage volume---Secret Storage volume---Empty directory Storage volume---Cloned Git repo.
You are a developer for a software as a service (SaaS) company that uses an Azure Function to process orders. The Azure Function currently runs on an Azure Function app that is triggered by an Azure Storage queue. You are preparing to migrate the Azure Function to Kubernetes using Kubernetes-based Event Driven Autoscaling (KEDA). You need to configure Kubernetes Custom Resource Definitions (CRD) for the Azure Function. Which CRDs should you configure? To answer, drag the appropriate CRD types to the correct locations. Each CRD type 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 Secret Deployment ScaledObject TriggerAuthentication.
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 develop a software as a service (SaaS) offering to manage photographs. Users upload photos to a web service which then stores the photos in Azure Storage Blob storage. The storage account type is General-purpose V2. When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. The process to produce a mobile friendly version of the image must start in less than one minute. You need to design the process that starts the photo processing. Solution: Trigger the photo processing from Blob storage events. Does the solution meet the goal? Yes No.
You are a developer for a software as a service (SaaS) company that uses an Azure Function to process orders. The Azure Function currently runs on an Azure Function app that is triggered by an Azure Storage queue. You are preparing to migrate the Azure Function to Kubernetes using Kubernetes-based Event Driven Autoscaling (KEDA). You need to configure Kubernetes Custom Resource Definitions (CRD) for the Azure Function. Which CRDs should you configure? To answer, drag the appropriate CRD types to the correct locations. Each CRD type 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 Secret Deployment ScaledObject TriggerAuthentication.
You are implementing a software as a service (SaaS) ASP.NET Core web service that will run as an Azure Web App. The web service will use an on premises SQL Server database for storage. The web service also includes a WebJob that processes data updates. Four customers will use the web service. ✑ Each instance of the WebJob processes data for a single customer and must run as a singleton instance. ✑ Each deployment must be tested by using deployment slots prior to serving production data. ✑ Azure costs must be minimized. ✑ Azure resources must be located in an isolated network. You need to configure the App Service plan for the Web App. How should you configure the App Service plan? Number of VM instances---2 Number of VM instances---4 Number of VM instances---8 Number of VM instances---16 Pricing tier---Isolated Pricing tier---Standard Pricing tier---Premium Pricing tier---Consumption.
You are creating a CLI script that creates an Azure web app and related services in Azure App Service. The web app uses the following variables: You need to automatically deploy code from GitHub to the newly created web app. How should you complete the script? az webapp az appservice plan create az webapp deployment az group delete az webapp create az appservice plan create git clone $gitrepo --plan $webappname az webapp deployment --repo-url $gitrepo--branch master--manual-integration.
Storage Blob storage. The storage account type is General-purpose V2. When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. The process to produce a mobile friendly version of the image must start in less than one minute. You need to design the process that starts the photo processing. Solution: Trigger the photo processing from Blob storage events. Does the solution meet the goal? Yes No.
You develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional deployment slots named Testing and Production. You enable auto swap on the Production deployment slot. You need to ensure that scripts run and resources are available before a swap operation occurs. Solution: Update the web.config file to include the applicationInitialization configuration element. Specify custom initialization actions to run thescripts.Does the solution meet the goal? No Yes.
You develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional deployment slots named Testing and Production. You enable auto swap on the Production deployment slot. You need to ensure that scripts run and resources are available before a swap operation occurs. Solution: Enable auto swap for the Testing slot. Deploy the app to the Testing slot. Does the solution meet the goal? No Yes.
You develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional deployment slots named Testing and Production. You enable auto swap on the Production deployment slot. You need to ensure that scripts run and resources are available before a swap operation occurs. Solution: Disable auto swap. Update the app with a method named statuscheck to run the scripts. Re-enable auto swap and deploy the app to the.Production slot. No Yes.
You are developing an Azure Web App. You configure TLS mutual authentication for the web app. You need to validate the client certificate in the web app Client certificate location---HTTP request header Client certificate location---Client cookie Client certificate location---HTTP message body Client certificate location---URL query string Encoding type----HTML Encoding type----URL Encoding type----UNICODE Encoding type----BASE64.
You are developing a Docker/Go using Azure App Service Web App for Containers. You plan to run the container in an App Service on Linux. You identify a Docker container image to use. None of your current resource groups reside in a location that supports Linux. You must minimize the number of resource groups required. You need to create the application and perform an initial deployment. Which three Azure CLI commands should you use to develop the solution? To answer, move the appropriate commands from the list of commandsto the answer area and arrange them in the correct order az group create az group update az webapp update az webapp create az appservice plan create.
You develop a website. You plan to host the website in Azure. You expect the website to experience high traffic volumes after it is published. You must ensure that the website remains available and responsive while minimizing cost.You need to deploy the website. What should you do? Deploy the website to a virtual machine. Configure the virtual machine to automatically scale when the CPU load is high Deploy the website to an App Service that uses the Shared service tier. Configure the App Service plan to automatically scale when the CPU load is high Deploy the website to a virtual machine. Configure a Scale Set to increase the virtual machine instance count when the CPU load is high Deploy the website to an App Service that uses the Standard service tier. Configure the App Service plan to automatically scale when the CPU load is high.
You are developing a serverless Java application on Azure. You create a new Azure Key Vault to work with secrets from a new Azure Functions application. The application must meet the following requirements: ✑ Reference the Azure Key Vault without requiring any changes to the Java code. ✑ Dynamically add and remove instances of the Azure Functions host based on the number of incoming application events. ✑ Ensure that instances are perpetually warm to avoid any cold starts. ✑ Connect to a VNet. ✑ Authentication to the Azure Key Vault instance must be removed if the Azure Function application is deleted. You need to grant the Azure Functions application access to the Azure Key Vault. Which three actions should you perform in sequence? Create a user-assigned managed identity for the application Create the Azure Functions app with a Premium plan type Create an access policy in Azure Key Vault for the application identity Create an SSL certification in Azure Key Vault for the application identity Create the Azure Functions app with an App Service plan type Create the Azure Functions app with a Consumption plan type.
A company is developing a Java web app. The web app code is hosted in a GitHub repository located at https://github.com/Contoso/webapp. The web app must be evaluated before it is moved to production. You must deploy the initial code release to a deployment slot named staging.You need to create the web app and deploy the code. How should you complete the commands? .
You have a web service that is used to pay for food deliveries. The web service uses Azure Cosmos DB as the data store. You plan to add a new feature that allows users to set a tip amount. The new feature requires that a property named tip on the document in Cosmos DB must be present and contain a numeric value. There are many existing websites and mobile apps that use the web service that will not be updated to set the tip property for some time. How should you complete the trigger? _value(); _readDocument('item'); getContext().getRequest(); if (!("tip" in i)) { if (request.getValue("tip") = = = null) if (isNaN(i)["tip"] || i["tip"] = = = null) r.setBody(i); r.setValue(i); __upsertDocument(i); __replaceDocument(i);.
You develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob.The app continues to time out after four minutes. The app must process the blob data. You need to ensure the app does not time out and processes the blob data. Solution: Use the Durable Function async pattern to process the blob data. Yes No.
You develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob.The app continues to time out after four minutes. The app must process the blob data. You need to ensure the app does not time out and processes the blob data. Solution: Pass the HTTP trigger payload into an Azure Service Bus queue to be processed by a queue trigger function and return an immediate.HTTP success response.Does the solution meet the goal? Yes No.
You develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob.The app continues to time out after four minutes. The app must process the blob data. You need to ensure the app does not time out and processes the blob data. Solution: Configure the app to use an App Service hosting plan and enable the Always On setting.Does the solution meet the goal? Yes No.
You are developing an application that uses Azure Blob storage. The application must read the transaction logs of all the changes that occur to the blobs and the blob metadata in the storage account for auditing purposes. The changes must be in the order in which they occurred, include only create, update, delete, and copy operations and be retained for compliance reasons.You need to process the transaction logs asynchronously.What should you do ? Process all Azure Blob storage events by using Azure Event Grid with a subscriber Azure Function app Enable the change feed on the storage account and process all changes for available events. Process all Azure Storage Analytics logs for successful blob events. Use the Azure Monitor HTTP Data Collector API and scan the request body for successful blob events.
You plan to create a Docker image that runs an ASP.NET Core application named ContosoApp. You have a setup script named setupScript.ps1 and a series of application files including ContosoApp.dll. You need to create a Dockerfile document that meets the following requirements: ✑ Call setupScripts.ps1 when the container is built. ✑ Run ContosoApp.dll when the container starts. The Dockerfile document must be created in the same folder where ContosoApp.dll and setupScript.ps1 are stored. Which five commands should you use to develop the solution? From microsoft/aspnetcorelatest WORKDIR /apps/ContosoApp CMD ["dotnet", "ContosoApp.dll"] COPY ./. Run powershell ./setupScript.ps1.
You are developing an Azure Function App that processes images that are uploaded to an Azure Blob container. Images must be processed as quickly as possible after they are uploaded, and the solution must minimize latency. You create code to process images when theFunction App is triggered.You need to configure the Function App.What should you do? Use an App Service plan. Configure the Function App to use an Azure Blob Storage input trigger Use a Consumption plan. Configure the Function App to use an Azure Blob Storage trigger Use a Consumption plan. Configure the Function App to use a Timer trigger. Use an App Service plan. Configure the Function App to use an Azure Blob Storage trigger Use a Consumption plan. Configure the Function App to use an Azure Blob Storage input trigger.
You are configuring a new development environment for a Java application. The environment requires a Virtual Machine Scale Set (VMSS), several storage accounts, and networking components. The VMSS must not be created until the storage accounts have been successfully created and an associated load balancer and virtual network is configured.How should you complete the Azure Resource Manager template? copy copyindex priority copy copyindex priority copy copyindex priority dependsOn.
You are developing an Azure Function App by using Visual Studio. The app will process orders input by an Azure Web App. The web app places the order information into Azure Queue Storage The code will log the time that the order was processed from the queue When the ProcessOrders function fails the function will retry up to five times for a given order,including the first try When there are multiple orders in the queue,a batch of orders will be retrieved from the queue and the ProcessOrders function will run multiple instances concurrently to process the orders The ProcessOrders function will output the order to an Orders table in Azure Table Storage.
You are developing a solution for a hospital to support the following use cases: ✑ The most recent patient status details must be retrieved even if multiple users in different locations have updated the patient record. ✑ Patient health monitoring data retrieved must be the current version or the prior version. ✑ After a patient is discharged and all charges have been assessed, the patient billing record contains the final charges. You provision a Cosmos DB NoSQL database and set the default consistency level for the database account to Strong. You set the value for Indexing Mode to Consistent.You need to minimize latency and any impact to the availability of the solution. You must override the default consistency level at the query level to meet the required consistency guarantees for the scenarios.Which consistency levels should you implement? Strong Consistent Prefix Bounded Staleness Eventual.
You are configuring a development environment for your team. You deploy the latest Visual Studio image from the Azure Marketplace to your Azure subscription.The development environment requires several software development kits (SDKs) and third-party components to support application development across the organization. You install and customize the deployed virtual machine (VM) for your development team. The customized VM must be saved to allow provisioning of a new team member development environment. You need to save the customized VM for future provisioning.Which tools or services should you use? Generalize the VM----Azure PowerShell Generalize the VM----Visual Studio command prompt Generalize the VM----Azure Migrate Generalize the VM----Azure Backup Store images---Azure Blob Storage Store images---Azure Data Lake Storage Store images---Azure File Storage Store images---Azure Table Storage.
You are preparing to deploy a website to an Azure Web App from a GitHub repository. The website includes static content generated by a script.You plan to use the Azure Web App continuous deployment feature.You need to run the static generation script before the website starts serving traffic.What are two possible ways to achieve this goal? Add the path to the static content generation tool to WEBSITE_RUN_FROM_PACKAGE setting in the host.json file Add a PreBuild target in the websites csproj project file that runs the static content generation script Create a file named run.cmd in the folder /run that calls a script which generates the static content and deploys the website. Create a file named .deployment in the root of the repository that calls a script which generates the static content and deploys the website.
You are developing an application to use Azure Blob storage. You have configured Azure Blob storage to include change feeds. A copy of your storage account must be created in another region. Data must be copied from the current storage account to the new storage account directly between the storage servers. You need to create a copy of the storage account in another region and copy the data. In which order should you perform the actions? Use AZCopy to copy the data to the new storage account Deploy the template to create a new storage account in the target region Export a Resource Manager template Create a new template deployment Modify the template by changing the storage account name and region.
You are preparing to deploy an Azure virtual machine (VM)-based application. The VMs that run the application have the following requirements: ✑ When a VM is provisioned the firewall must be automatically configured before it can access Azure resources. ✑ Supporting services must be installed by using an Azure PowerShell script that is stored in Azure Storage. You need to ensure that the requirements are met. Which features should you use? Run Command Serial console Hybrid Runbook Worker Custom Script Extension.
A company is developing a Node.js web app. The web app code is hosted in a GitHub repository located at https://github.com/TailSpinToys/webapp.The web app must be reviewed before it is moved to production. You must deploy the initial code release to a deployment slot named review.You need to create the web app and deploy the code.How should you complete the commands? .
You are developing an application that needs access to an Azure virtual machine (VM). The access lifecycle for the application must be associated with the VM service instance. You need to enable managed identity for the VM.How should you complete the PowerShell segment? -AssignIdentity -IdentityId: $SystemAssigned $UserAssigned.
Storage Blob storage. The storage account type is General-purpose V2. When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. The process to produce a mobile friendly version of the image must start in less than one minute. You need to design the process that starts the photo processing. Solution: Create an Azure Function app that uses the Consumption hosting model and that is triggered from the blob upload. Does the solution meet the goal? Yes No.
You develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional deployment slots named Testing and Production. You enable auto swap on the Production deployment slot. You need to ensure that scripts run and resources are available before a swap operation occurs. Solution: Update the app with a method named statuscheck to run the scripts. Update the app settings for the app. Set the WEBSITE_SWAP_WARMUP_PING_PATH and WEBSITE_SWAP_WARMUP_PING_STATUSES with a path to the new method and appropriate response codes.Does the solution meet the goal? No Yes.
You create the following PowerShell script: A log alert is created that sends an email when the CPU percentage is above 60 percent for five minutes A log alert is created that sends an email when the number of virtual machine heartbeats in the past hour is less than five The log alert is scheduled to run every two hours.
You are developing an Azure Function app. The app must meet the following requirements: ✑ Enable developers to write the functions by using the Rust language. ✑ Declaratively connect to an Azure Blob Storage account. You need to implement the app. Which Azure Function app features should you use? Customer handler Extension bundle Trigger Runtime Policy Hosting plan.
You are developing a web app that is protected by Azure Web Application Firewall (WAF). All traffic to the web app is routed through an Azure ApplicationGateway instance that is used by multiple web apps. The web app address is contoso.azurewebsites.net. All traffic must be secured with SSL. The Azure Application Gateway instance is used by multiple web apps. You need to configure the Azure Application Gateway for the web app.Which two actions should you perform? In the Azure Application Gateway's HTTP setting, enable the Use for App service setting Convert the web app to run in an Azure App service environment (ASE) Add an authentication certificate for contoso.azurewebsites.net to the Azure Application Gateway In the Azure Application Gateway's HTTP setting, set the value of the Override backend path option to contoso22.azurewebsites.net.
Storage Blob storage. The storage account type is General-purpose V2. When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. The process to produce a mobile friendly version of the image must start in less than one minute. You need to design the process that starts the photo processing. Solution: Use the Azure Blob Storage change feed to trigger photo processing. Does the solution meet the goal? Yes No.
You are developing a web application that runs as an Azure Web App. The web application stores data in Azure SQL Database and stores files in an AzureStorage account. The web application makes HTTP requests to external services as part of normal operations. The web application is instrumented with Application Insights. The external services are OpenTelemetry compliant. You need to ensure that the customer ID of the signed in user is associated with all operations throughout the overall system. What should you do? Add the customer ID for the signed in user to the CorrelationContext in the web application On the current SpanContext, set the TraceId to the customer ID for the signed in user Set the header Ocp-Apim-Trace to the customer ID for the signed in user Create a new SpanContext with the TraceFlags value set to the customer ID for the signed in user.
You are developing an Azure Function App. You develop code by using a language that is not supported by the Azure Function App host. The code language supports HTTP primitives. You must deploy the code to a production Azure Function App environment. You need to configure the app for deployment. Which configuration values should you use? Publish-----Code Publish-----Docker Container Runtime stack-----Node.js Runtime stack-----Python Runtime stack-----PowerShellCore Runtime stack-----Custom Handler Version-----14 LTS Version-----7.0 Version-----Custom.
You provision virtual machines (VMs) as development environments. One VM does not start. The VM is stuck in a Windows update process. You attach the OS disk for the affected VM to a recovery VM. You need to correct the issue Run the following command at an elevated command prompt: dism /image:\ /get=packages >c:\temp\Patch.txt Run the following command at an elevated command prompt: dism /Image:<Attached OS disks>:\ /Remove Package /PackageName:<package name to delete> Detach the OS disk and recreate the VM Open C:\temp\Patch.txt file and locate the update that is in a pending state.
You develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob.The app continues to time out after four minutes. The app must process the blob data. You need to ensure the app does not time out and processes the blob data. Solution: Update the functionTimeout property of the host.json project file to 10 minutes Yes No.
You are developing an Azure Durable Function to manage an online ordering process. The process must call an external API to gather product discount information. You need to implement the Azure Durable Function. Which Azure Durable Function types should you use? Orchestrator Entity Client Activity.
You are authoring a set of nested Azure Resource Manager templates to deploy multiple Azure resources. The templates must be tested before deployment and must follow recommended practices. You need to validate and test the templates before deployment. Which tools should you use? Parameter file Template function Azure Resource Manager test toolkit User-defined function What-if operation Azure Deployment Manager.
You develop Azure Durable Functions to manage vehicle loans. The loan process includes multiple actions that must be run in a specified order. One of the actions includes a customer credit check process, which may require multiple days to process. You need to implement Azure Durable Functions for the loan process. Which Azure Durable Functions type should you use? orchestrator client entity activity.
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 auto scaling configurations to achieve this goal? Recurrence profile CPU usage-based autoscaling Fixed date profile Predictive autoscaling.
You have an App Service plan named asp1 based on the Free pricing tier. You plan to use asp1 to implement an Azure Function app with a queue trigger. Your solution must minimize cost. You need to identify the configuration options that will meet the requirements. Which value should you configure? Azure App Service feature----Always on Azure App Service feature----Managed identity Azure App Service feature----Continuous deployment Azure App Service pricing tier----Basic Azure App Service pricing tier----Shared Azure App Service pricing tier----Standard.
You are developing several microservices to run on Azure Container Apps. The microservices must allow HTTPS access by using a custom domain. You need to configure the custom domain in Azure Container Apps. In which order should you perform the actions? Validate the custom domain name Enable ingress Bind the certificate Add DNS records to the domain provider Add the custom domain name.
You are developing several microservices to run on Azure Container Apps. External HTTP ingress traffic has been enabled for the microservices.The microservices must be deployed to the same virtual network and write logs to the same Log Analytics workspace. You need to deploy the microservices.What should you do? Enable single revision mode Use a separate environment for each container Use a private container registry image and single image for all containers. Use a single environment for all containers Enable multiple revision mode.
You are developing several microservices to run on Azure Container Apps. External HTTP ingress traffic has been enabled for the microservices. A deployed microservice must be updated to allow users to test new features. You have the following requirements: • Enable and maintain a single URL for the updated microservice to provide to test users. • Update the microservice that corresponds to the current microservice version. You need to configure Azure Container Apps. Which features should you configure? Single URL for the test users Current microservice activation------Revision label Single URL for the test users Current microservice activation------Revision mode Single URL for the test users Current microservice activation------Container image Single URL for the test users Current microservice activation------Container registry Current microservice activation---Revision label Current microservice activation---Revision mode Current microservice activation---Container image Current microservice activation---Container registry.
You plan to develop an Azure Functions app with an HTTP trigger. The app must support the following requirements: • Event-driven scaling • Ability to use custom Linux images for function execution You need to identify the app’s hosting plan and the maximum amount of time that the app function can take to respond to incoming requests.Which configuration setting values should you use? Hosting plan-----Consumption Hosting plan-----Dedicated Hosting plan-----Premium Timeout value----230 seconds Timeout value----10 minutes Timeout value----unlimited.
You develop a Python application for image rendering. The application uses GPU resources to optimize rendering processes. You have the following requirements: • The application must be deployed to a Linux container. • The container must be stopped when the image rendering is complete. • The solution must minimize cost. You need to deploy the application to Azure Computer target-----Azure Container instances Computer target-----Azure Kubernetes Service Computer target-----Azure Container Apps Computer target-----Azure App Service Container termination----Restart policy Container termination----Environment variable Container termination----System-assigned Managed identity Container termination----User-assigned Managed identity.
You plan to develop an Azure Functions app with an Azure Blob Storage trigger. The app will be used infrequently, with a limited duration of individual executions. The app must meet the following requirements: • Event-driven scaling • Support for deployment slots • Minimize costs You need to identify the hosting plan and the maximum duration when executing the app. Which configuration setting values should you use? Hosting plan-----Consumption Hosting plan-----Dedicated Hosting plan-----Premium Maximum execution time----230 seconds Maximum execution time----10 minutes Maximum execution time----unlimited.
You are developing an ASP.NET Core app hosted in Azure App Service. The app requires custom claims to be returned from Microsoft Entra ID for user authorization. The claims must be removed when the app registration is removed.You need to include the custom claims in the user access token.What should you do? Require the https://graph.microsoft.com/.default scope during authentication Configure the app to use the OAuth 2.0 authorization code flow Implement custom middleware to retrieve role information from Azure AD Add the groups to the groupMembershipClaims attribute in the app manifest Add the roles to the appRoles attribute in the app manifest.
You 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 microservices. What should you do? Enable single revision mode Use multiple environments for each container Use a private container registry and single image for all containers Use a single environment for all containers Enable multiple revision mode.
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? AZ-----container AZ-----containerapp AZ-----network AZ-----resource traffic set \-----app traffic set \-----connection traffic set \-----ingress traffic set \-----revision.
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 an HTTP scale rule, and apply the rule to the container app. Does the solution meet the goal? Yes No.
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 custom scale rule, and apply the rule to the container app. Does the solution meet the goal? Yes No.
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 and configure the minimum replicas to 1 for the container app. Does the solution meet the goal? Yes No.
You are developing a solution that uses the Azure Storage Client library for .NET. You have the following code: (Line numbers are included for reference only.) The code creates an infinite lease The code at line 06 always creates a new blob The finally block releases the lease.
You are building a website that uses Azure Blob storage for data storage. You configure Azure Blob storage lifecycle to move all blobs to the archive tier after 30 days.Customers have requested a service-level agreement (SLA) for viewing data older than 30 days. You need to document the minimum SLA for data recovery.Which SLA should you use? at least two days between one and 15 hours at least one day between zero and 60 minutes.
You are developing a ticket reservation system for an airline. The storage solution for the application must meet the following requirements: ✑ Ensure at least 99.99% availability and provide low latency. ✑ Accept reservations even when localized network outages or other unforeseen failures occur. ✑ Process reservations in the exact sequence as reservations are submitted to minimize overbooking or selling the same seat to multiple travelers. ✑ Allow simultaneous and out-of-order reservations with a maximum five-second tolerance window. You provision a resource group named airlineResourceGroup in the Azure South-Central US region. You need to provision a SQL API Cosmos DB account to support the app. How should you complete the Azure CLI commands? .
You are preparing to deploy a Python website to an Azure Web App using a container. The solution will use multiple containers in the same container group. TheDockerfile that builds the container is as follows: You build a container by using the following command. The Azure Container Registry instance named images is a private registry. The user name and password for the registry is admin. The Web App must always run the same version of the website regardless of future builds. You need to create an Azure Web App to run the website --sku SHARED --tags container --sku B1 --hyper-v --deployment-source-url images.azurecr.io/website:v1.0.0 --deployment-source-url images.azurecr.io/website:latest set--python-version 2.7 --generic-configurations user=admin password=admin set--python-version 3.6 --generic-configurations user=admin password=admin container set--docker-registry-server-url https://images.azurecr.io--u admin -p admin container set--docker-registry-server-url https://images.azurecr.io/website-u admin-p admin.
You are developing an ASP.NET Core web application. You plan to deploy the application to Azure Web App for Containers. The application needs to store runtime diagnostic data that must be persisted across application restarts. You have the following code: You need to configure the application settings so that diagnostic data is stored as required. How should you configure the web app's settings? LOCALAPPDATA WEBSITE_LOCALCACHE_ENABLED DOTNET_HOSTING_OPTIMIZATION_CACHE WEBSITES_ENABLE_APP_SERVICE_STORAGE /home /local D:\home D:\local.
A resource group named FourthCoffeePublicWebResourceGroup has been created in the WestUS region that contains an App Service Plan named AppServiceLinuxDockerPlan. #/bin/bash appName="FourthCoffeePublic WebSrandom" location="WestUS" dockerHubContainerPath="FourthCoffee/publicweb.v1" fqdn="http://www.fourthcoffee.com">www.fourthcoffee.com az webapp create --name SappName --plan AppServiceLinuxDockerPlan --resource-group fourthCoffeePublic WebResourceGroup az webapp config container set --docker-custom-image-name SdockerHubContainerPath --name SappName --resource-group fourthCoffeePublic WebResourceGroup az webapp config hostname add --webapp-name SappName --resource-group fourthCoffeePublic WebResourceGroup --hostname $fqdn.
Report abuse