AZ-204Developing Solutions for Microsoft Azurepopular - Practice Questions - Post 37

AZ-204Developing Solutions for Microsoft Azurepopular - Practice Questions - Post 37

1. 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?

Page: Page 23

Option A: Require the https://graph.microsoft.com/.default scope during authentication.

Option B: Configure the app to use the OAuth 2.0 authorization code flow.

Option C: Implement custom middleware to retrieve role information from Azure AD.

Option D: Add the groups to the groupMembershipClaims attribute in the app manifest.

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


2. 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?

Page: Page 23

Option A: Enable single revision mode.

Option B: Use multiple environments for each container.

Option C: Use a private container registry and single image for all containers.

Option D: Use a single environment for all containers.

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


3. HOTSPOT (Drag and Drop is not supported) 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.

Page: Page 24

Option A: See Explanation section for answer.

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


4. 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 an HTTP scale rule, and apply the rule to the container app. Does the solution meet the goal?

Page: Page 24

Option A: Yes

Option B: No

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


5. 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 custom scale rule, and apply the rule to the container app. Does the solution meet the goal?

Page: Page 24

Option A: Yes

Option B: No

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


6. 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 and configure the minimum replicas to 1 for the container app. Does the solution meet the goal?

Page: Page 24

Option A: Yes

Option B: No

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


7. HOTSPOT (Drag and Drop is not supported) Case study This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided. To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study. At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section. To start the case study To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. When you are ready to answer a question, click the Question button to return to the question. Background Munson’s Pickles and Preserves Farm is an agricultural cooperative corporation based in Washington, US, with farms located across the United States. The company supports agricultural production resources by distributing seeds fertilizers, chemicals, fuel, and farm machinery to the farms. Current Environment The company is migrating all applications from an on-premises datacenter to Microsoft Azure. Applications support distributors, farmers, and internal company staff. Corporate website • The company hosts a public website located at http://www.munsonspicklesandpreservesfarm.com. The site supports farmers and distributors who request agricultural production resources. Farms • The company created a new customer tenant in the Microsoft Entra admin center to support authentication and authorization for applications. Distributors • Distributors integrate their applications with data that is accessible by using APIs hosted at http://www.munsonspicklesandpreservesfarm.com/api to receive and update resource data. Requirements The application components must meet the following requirements: Corporate website • The site must be migrated to Azure App Service. • Costs must be minimized when hosting in Azure. • Applications must automatically scale independent of the compute resources. • All code changes must be validated by internal staff before release to production. • File transfer speeds must improve, and webpage-load performance must increase. • All site settings must be centrally stored, secured without using secrets, and encrypted at rest and in transit. • A queue-based load leveling pattern must be implemented by using Azure Service Bus queues to support high volumes of website agricultural production resource requests. Farms • Farmers must authenticate to applications by using Microsoft Entra ID. Distributors • The company must track a custom telemetry value with each API call and monitor performance of all APIs. • API telemetry values must be charted to evaluate variations and trends for resource data. Internal staff • App and API updates must be validated before release to production. • Staff must be able to select a link to direct them back to the production app when validating an app or API update. • Staff profile photos and email must be displayed on the website once they authenticate to applications by using their Microsoft Entra ID. Security • All web communications must be secured by using TLS/HTTPS. • Web content must be restricted by country/region to support corporate compliance standards. • The principle of least privilege must be applied when providing any user rights or process access rights. • Managed identities for Azure resources must be used to authenticate services that support Microsoft Entra ID authentication. Issues Corporate website • Farmers report HTTP 503 errors at the same time as internal staff report that CPU and memory usage are high. • Distributors report HTTP 502 errors at the same time as internal staff report that average response times and networking traffic are high. • Internal staff report webpage load sizes are large and take a long time to load. • Developers receive authentication errors to Service Bus when they debug locally. Distributors • Many API telemetry values are sent in a short period of time. Telemetry traffic, data costs, and storage costs must be reduced while preserving a statistically correct analysis of the data points sent by the APIs. You need to configure App Service to support the corporate website migration. Which configuration should you use? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Page: Page 25

Option A: See Explanation section for answer.

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


8. DRAG DROP (Drag and Drop is not supported) 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.

Page: Page 25

Option A: See Explanation section for answer.

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


9. HOTSPOT (Drag and Drop is not supported) 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.

Page: Page 25

Option A: See Explanation section for answer.

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


10. 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 have an Azure App Service plan named APSPlan1 set to the Basic B1 pricing tier. APSPlan1 contains an App Service web app named WebApp1. You plan to enable schedule-based autoscaling for APSPlan1. You need to minimize the cost of running WebApp1. Solution: Scale down ASPPlan1 to the Shared pricing tier. Does the solution meet the goal?

Page: Page 25

Option A: Yes

Option B: No

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


11. 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 have an Azure App Service plan named APSPlan1 set to the Basic B1 pricing tier. APSPlan1 contains an App Service web app named WebApp1. You plan to enable schedule-based autoscaling for APSPlan1. You need to minimize the cost of running WebApp1. Solution: Scale out APSPlan1. Does the solution meet the goal?

Page: Page 26

Option A: Yes

Option B: No

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


12. 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 have an Azure App Service plan named APSPlan1 set to the Basic B1 pricing tier. APSPlan1 contains an App Service web app named WebApp1. You plan to enable schedule-based autoscaling for APSPlan1. You need to minimize the cost of running WebApp1. Solution: Scale up ASPPlan1 to the Premium V2 pricing tier. Does the solution meet the goal?

Page: Page 26

Option A: Yes

Option B: No

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


13. HOTSPOT (Drag and Drop is not supported) 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.

Page: Page 26

Option A: See Explanation section for answer.

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


14. 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 an TCP scale rule, and apply the rule to the container app. Does the solution meet the goal?

Page: Page 26

Option A: Yes

Option B: No

Answer(s):

Explanation: Not available

SEO Keywords: SEO keywords not available


15. DRAG DROP (Drag and Drop is not supported) You have two Azure Container Registry (ACR) instances: ACR01 and ACR02. You plan to implement a containerized application named APP1 that will use a base image named BASE1. The image for APP1 will be stored in ACR01. The image BASE1 will be stored in ACR02. You need to automate the planned implementation by using a sequence of five Azure command-line interface (Azure CLI) commands. Your solution must ensure that the APP1 image stored in ACR01 will be automatically updated when the BASE1 image is updated. In which order should you perform the actions? To answer, move all container build automation options from the list of container build automations to the answer area and arrange them in the correct order. NOTE: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.

Page: Page 27

Option A: See Explanation section for answer.

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


16. HOTSPOT (Drag and Drop is not supported) 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.

Page: Page 27

Option A: See Explanation section for answer.

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


17. HOTSPOT (Drag and Drop is not supported) 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 must secure the container apps. All apps must reside in the same virtual network, share the same Dapr configuration, and share the same logging location. Apps must support the configuration of the amount of memory and compute resources available to containers. You need to configure the Azure Container App. 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.

Page: Page 27

Option A: See Explanation section for answer.

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


18. HOTSPOT (Drag and Drop is not supported) 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.) For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Hot Area:

Page: Page 27

Option A: See Explanation section for answer.

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


19. 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?

Page: Page 28

Option A: at least two days

Option B: between one and 15 hours

Option C: at least one day

Option D: between zero and 60 minutes

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


20. HOTSPOT (Drag and Drop is not supported) 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? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:

Page: Page 28

Option A: See Explanation section for answer.

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


21. HOTSPOT (Drag and Drop is not supported) 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. The Dockerfile 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. How should you complete the commands? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:

Page: Page 28

Option A: See Explanation section for answer.

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


22. HOTSPOT (Drag and Drop is not supported) You are developing a back-end Azure App Service that scales based on the number of messages contained in a Service Bus queue. A rule already exists to scale up the App Service when the average queue length of unprocessed and valid queue messages is greater than 1000. You need to add a new rule that will continuously scale down the App Service as long as the scale up condition is not met. How should you configure the Scale rule? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:

Page: Page 28

Option A: See Explanation section for answer.

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


23. DRAG DROP (Drag and Drop is not supported) You have an application that uses Azure Blob storage. You need to update the metadata of the blobs. Which three methods should you use to develop the solution? To answer, move the appropriate methods from the list of methods to the answer area and arrange them in the correct order. Select and Place:

Page: Page 29

Option A: See Explanation section for answer.

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


24. 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 are developing an Azure solution to collect point-of-sale (POS) device data from 2,000 stores located throughout the world. A single device can produce 2 megabytes (MB) of data every 24 hours. Each store location has one to five devices that send data. You must store the device data in Azure Blob storage. Device data must be correlated based on a device identifier. Additional stores are expected to open in the future. You need to implement a solution to receive the device data. Solution: Provision an Azure Event Grid. Configure the machine identifier as the partition key and enable capture. Does the solution meet the goal?

Page: Page 29

Option A: Yes

Option B: No

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


25. You develop Azure solutions. You have a .NET application that needs to receive a message each time an Azure virtual machine finishes processing data. The messages must NOT persist after being processed by the receiving application. You need to implement the .NET object that will receive the messages. Which object should you use?

Page: Page 29

Option A: QueueClient

Option B: SubscriptionClient

Option C: TopicClient

Option D: CloudQueueClient

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


26. DRAG DROP (Drag and Drop is not supported) You are maintaining an existing application that uses an Azure Blob GPv1 Premium storage account. Data older than three months is rarely used. Data newer than three months must be available immediately. Data older than a year must be saved but does not need to be available immediately. You need to configure the account to support a lifecycle management rule that moves blob data to archive storage for data not modified in the last year. 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. Select and Place:

Page: Page 29

Option A: See Explanation section for answer.

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


27. You develop Azure solutions. You must connect to a No-SQL globally-distributed database by using the .NET API. You need to create an object to configure and execute requests in the database. Which code segment should you use?

Page: Page 30

Option A: new Container(EndpointUri, PrimaryKey);

Option B: new Database(EndpointUri, PrimaryKey);

Option C: new CosmosClient(EndpointUri, PrimaryKey);

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


28. You have an existing Azure storage account that stores large volumes of data across multiple containers. You need to copy all data from the existing storage account to a new storage account. The copy process must meet the following requirements: -Automate data movement. -Minimize user input required to perform the operation. -Ensure that the data movement process is recoverable. What should you use?

Page: Page 30

Option A: AzCopy

Option B: Azure Storage Explorer

Option C: Azure portal

Option D: .NET Storage Client Library

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


29. DRAG DROP (Drag and Drop is not supported) You are developing a web service that will run on Azure virtual machines that use Azure Storage. You configure all virtual machines to use managed identities. You have the following requirements: -Secret-based authentication mechanisms are not permitted for accessing an Azure Storage account. -Must use only Azure Instance Metadata Service endpoints. You need to write code to retrieve an access token to access Azure Storage. To answer, drag the appropriate code segments to the correct locations. Each code segment may be used 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:

Page: Page 30

Option A: See Explanation section for answer.

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


30. DRAG DROP (Drag and Drop is not supported) You are developing a new page for a website that uses Azure Cosmos DB for data storage. The feature uses documents that have the following format: You must display data for the new page in a specific order. You create the following query for the page: You need to configure a Cosmos DB policy to support the query. How should you configure the policy? To answer, drag the appropriate JSON segments to the correct locations. Each JSON 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. Select and Place:

Page: Page 30

Option A: See Explanation section for answer.

Answer(s):

Explanation:

SEO Keywords: SEO keywords not available


0/Post a Comment/Comments

#Advertisement

Top Post Ad