AZ-202 practice questions
You are developing an Azure Durable Function instance. You need to add a delay by using a durable timer. What type of function should you use?
A. Activity
B. Orchestrator
C. Client
D. Webhook
Discussion forum
Question
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals. You develop an entertainment application where users can buy and trade virtual real estate. The application must scale to support thousands of users. The current architecture includes five Azure Virtual Machines (VM) that connect to an Azure SQL Database for account information and Azure Table Storage for backend services. A user interacts with these components in the cloud at any given time – Routing Service “” Routes a request to the appropriate service and must not persist data across sessions – Account Service “” Stores and manages all account information and authentication and requires data to persist across sessions. – User Service “” Stores and manages all user information and requires data to persist across sessions. – Housing Network Service “” Stores and manages the current real-estate economy and requires data to persist across sessions. – Trade Service “” Stores and manages virtual trade between accounts and requires data to persist across sessions. Due to volatile user traffic, a microservices solution is selected for scale agility. You need to migrate to a distributed microservices solution on Azure Service Fabric. Solution: Deploy a Windows container to Azure Service Fabric for each component. Does the solution meet the goal?
A. Yes
B. No
Discussion forum
Question
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals. You develop an entertainment application where users can buy and trade virtual real estate. The application must scale to support thousands of users. The current architecture includes five Azure Virtual Machines (VM) that connect to an Azure SQL Database for account information and Azure Table Storage for backend services. A user interacts with these components in the cloud at any given time – Routing Service “” Routes a request to the appropriate service and must not persist data across sessions – Account Service “” Stores and manages all account information and authentication and requires data to persist across sessions. – User Service “” Stores and manages all user information and requires data to persist across sessions. – Housing Network Service “” Stores and manages the current real-estate economy and requires data to persist across sessions. – Trade Service “” Stores and manages virtual trade between accounts and requires data to persist across sessions. Due to volatile user traffic, a microservices solution is selected for scale agility. You need to migrate to a distributed microservices solution on Azure Service Fabric. Solution: Create a Service Fabric Cluster with a stateful Reliable Service for Routing Service. Deploy a Guest Executable to Service Fabric for each component. Does the solution meet the goal?
A. Yes
B. No
Discussion forum
Question
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals. You develop an entertainment application where users can buy and trade virtual real estate. The application must scale to support thousands of users. The current architecture includes five Azure Virtual Machines (VM) that connect to an Azure SQL Database for account information and Azure Table Storage for backend services. A user interacts with these components in the cloud at any given time – Routing Service “” Routes a request to the appropriate service and must not persist data across sessions – Account Service “” Stores and manages all account information and authentication and requires data to persist across sessions. – User Service “” Stores and manages all user information and requires data to persist across sessions. – Housing Network Service “” Stores and manages the current real-estate economy and requires data to persist across sessions. – Trade Service “” Stores and manages virtual trade between accounts and requires data to persist across sessions. Due to volatile user traffic, a microservices solution is selected for scale agility. You need to migrate to a distributed microservices solution on Azure Service Fabric. Solution: Create a Service Fabric Cluster with a stateless Reliable Service for Routing Service. Create stateful Reliable Services for all other components. Does the solution meet the goal?
A. Yes
B. No
Discussion forum
Question
You are developing an Azure Batch solution to perform CPU intensive calculations. The calculations occur at a specific time each week and last for approximately one hour. Before any changes are made, a timer must be created to measure the initial duration. The timer must start before the first calculation is queued to run on the computer node. You need to implement the timer. Before which line should the timer be created?
A. CloudJob = batchClient.JobOperations.CreateJob();
B. batchClient.JobOperations.AddTask(JobId, tasks);
C. batchClient.Utilities.CreateTaskStateMonitor().WaitAll(addedTasks, TaskState.Completed, timeout);
D. using (BatchClient batchClient = BatchClient.Open(cred))
Discussion forum
Question
A company is migrating an existing on-premises third-party website to Azure. The website is stateless. The company does not have access to the source code for the website. They do have the original installer. The number of visitors at the website varies throughout the year. The on-premises infrastructure was resized to accommodate peaks but the extra capacity was not used. You need to implement a virtual machine scale set instance. What should you do?
A. Use an autoscale setting to scale instances vertically.
B. Use an autoscale setting with unlimited maximum number of instances.
C. Scale out by one instance when the average CPU usage of one of the instance is over 80 percent.
D. Use Azure Monitor to create autoscale settings using custom metrics.
Discussion forum
Question
You have implemented code that uses elastic transactions spanning across three different Azure SQL Database logical servers. Database administration report that some transactions take longer to complete than expected. You need to use the correct tool to monitor all the transactions originating from the elastic transaction implementation. Which tool should you use?
A. Use the dependencies section of Azure Applications Insights.
B. Run the sys.dm_tran_active_transactions dynamic management view.
C. Run the sys.dm_tran_current_snapshot dynamic management view.
D. Run the sys.dm_tran_active_snapshot_database_transactions dynamic management view.
Discussion forum
Question
You host an on-premises ASP.NET Web API at the company headquarters. The Web API is consumed by applications running at the company’s branch offices using the Azure Relay service. All the users of the applications are on the same Azure Active Directory (Azure AD). You need to ensure that the applications can consume the Web API. What should you do?
A. Create a Shared Access policy for Send permissions and another for Receive permissions.
B. Create separate Azure AD groups named Senders and Receivers. In Access Control (IAM) for the Relay namespace, assign Senders the Reader role and assign Receivers the Reader role.
C. Create dedicated Azure AD identities named Sender and Receiver. Assign Sender the Azure AD Identity Reader role. Assign Receiver the Azure AD Identity Reader role. Configure applications to use the respective identities.
D. Create a Shared Access policy for the namespace. Use a connection string in Web API and use a different connection string in consumer applications.
Discussion forum
Question
You maintain an Azure Web App that runs in a container. The container is using a DockerFile that is copied to numerous places and consumes a large amount of storage. You need to optimize the Dockerfile. What should you do?
A. Minimize layers by concatenating all RUN instructions on one line.
B. Configure the CLI with a .dockerignore file.
C. Minimize layers by grouping actions in as few RUN instructions as possible.
D. Use multiple RUN instructions for cached operation.
Discussion forum
Question
DRAG DROP – A company backs up all manufacturing data to Azure Blob Storage. Admins move blobs from hot storage to archive tier storage every month. You must automatically move blocks to Archive tier after they have not been accessed for 180 days. The path for any item that is not archived must be placed in an existing queue. This operation must be performed automatically once a month. You set the value of TierAgeInDays to 180. How should you configure the Logic App? To answer, drag the appropriate triggers or action blocks to the correct trigger or action slots. Each trigger or action block 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:
Discussion forum
Question
You are developing a software solution for an autonomous transportation system. The solution uses large data sets and Azure Batch processing to simulate navigation sets for entire fleets of vehicles. You need to create compute nodes for the solution on Azure Batch. What should you do?
A. In Python, implement the class: TaskAddParameter
B. In Python, implement the class: JobAddParameter
C. In the Azure portal, create a Batch account.
D. In Azure CLI, run the command: az batch pool create
Discussion forum
Question
You develop a solution that uses an Azure SQL Database to store user information for a mobile app. The app stores sensitive information about users. You need to hide sensitive information from developers that query the data for the mobile app. Which three items must you identify when configuring dynamic data masking? Each correct answer presents a part of the solution. NOTE: Each correct selection is worth one point.
A. Schema
B. Table
C. Index
D. Column
E. Trigger
Discussion forum
Question
A company uses Azure SQL Database to store data for an app. The data includes sensitive information. You need to implement measures that allow only members of the managers group to see sensitive information. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
A. Navigate to the following URL:
B. Exclude the managers group.
C. Include the managers group.
D. Run the following Azure PowerShell command:
E. Exclude the administrators group.
Discussion forum
Question
Members of the finance department for Aa company review and make changes to a Microsoft Excel workbook that is hosted on OneDrive. The workbook contains projected costs and revenue for a project. You need to develop an Azure Function that ingests data from the modified workbook and places it into a Microsoft Word document. Which two objects should you implement? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
A. A group conversation subscription
B. An Excel table input binding
C. A group subscription
D. An Excel table output binding
E. An auth token input binding
Discussion forum
Question
You are developing an Azure Durable Function instance. You need to add a delay by using a durable timer. What type of function should you use?
A. Activity
B. Orchestrator
C. Client
D. Webhook
Discussion forum
Question