You need to build a Swagger specification for creating …

HOTSPOT
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 question on 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 sections 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 on 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. If the case study has an All
Information tab, note that the information displayed is identical to the information displayed on the subsequent
tabs. When you are ready to answer a question, click the Question button to return to the question.
Background
You are a developer for LitWare, Inc., a game development company. You are developing a backend service
for an online social gaming platform named GamerData. The game is built around point generators, which are
associated with physical landmarks. Players claim point generators which give them a set amount of points per
day.Business Requirements
Mobile App
The game itself runs on various mobile devices and is developed by TailSpin Toys, a company that specializes
in mobile game development. The mobile app will periodically make calls to the GamerData service to find the
five closest point generators that are located less than the specified distance from the player’s current location.
If no point generators are found, the search distance increases until one is found.
The mobile app shows all the point generators owned by each player. The mobile app allows for each player to
search for claimed point generators by player name. This search does not require exact spelling of names. The
details for each claimed generator is shown in the app.
When a player claims a point generator, they should receive an email notification. An Azure Function named
EmailPlayer has been developed to email players with details about recently claimed point generators.
Sponsors
The platform allows business to sponsor point generators within a business location.
Reports
A report named Daily Sponsor Report must be generated each day at midnight. The report must contain a
section for each sponsor. Each sponsor section must contain two subsections.
The first subsection of the report contains the names of the point generators for that sponsor, ordered by the
last time the point generator was claimed. The second subsection contains the current owners for each of the
point generators for the sponsor. Generation of reports must not impact the GamerData service.
Technical Requirements
GamerData Service
All data for the GamerData service is stored in an Azure DocumentDB instance named GamerData. Business
and players interact with the service by using a REST API.
The REST API must:
Produce valid Swagger API specifications for non-obsolete actions.
Be optimized for loading specific point generators.
Follow REST best practices.
Include appropriate terms of service.
Costs for all Azure services must be minimized.
Build and Deployment
The GamerData service will be deployed to Azure in a private VNet.
Security
Sponsors have accounts in an Azure Active Directory (Azure AD) with business-to-consumer (B2C) enabled
named litwaregamerdata.onmicrosoft.com managed by Litware, Inc. for both GamerData and LitWare, Inc.
services.
Only Litware, Inc. developers and automated testing tools should be able to directly access the GamerData
service. All other use of the service must be through Azure API Management. A description of the security
practices used during development, available on Microsoft SharePoint, must be available to users of the API
under the terms of service.Reporting
Azure Search will be used as the source for running reports. The properties of indexes in Azure Search must
match the names of the properties in DocumentDB.
Performance
The Azure DocumentDB must not be used for reporting purposes. All services must perform queries in the data
store when possible.
Application Structure
Startup.cs
Relevant portions of the app files are shown below. (Line numbers in the code segments are included for
reference only and include a two-character prefix that denotes the specific file to which they belong.)

PointController.cs
Relevant portions of the app files are shown below. (Line numbers in the code segments are included for
reference only and include a two-character prefix that denotes the specific file to which they belong.)

PointGenerator.cs
Relevant portions of the app files are shown below. (Line numbers in the code segments are included for
reference only and include a two-character prefix that denotes the specific file to which they belong.)

You need to build a Swagger specification for creating the GamerData managed API.
What should you do? To answer, select the appropriate options in the answer area.
Hot Area:

HOTSPOT
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 question on 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 sections 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 on 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. If the case study has an All
Information tab, note that the information displayed is identical to the information displayed on the subsequent
tabs. When you are ready to answer a question, click the Question button to return to the question.
Background
You are a developer for LitWare, Inc., a game development company. You are developing a backend service
for an online social gaming platform named GamerData. The game is built around point generators, which are
associated with physical landmarks. Players claim point generators which give them a set amount of points per
day.Business Requirements
Mobile App
The game itself runs on various mobile devices and is developed by TailSpin Toys, a company that specializes
in mobile game development. The mobile app will periodically make calls to the GamerData service to find the
five closest point generators that are located less than the specified distance from the player’s current location.
If no point generators are found, the search distance increases until one is found.
The mobile app shows all the point generators owned by each player. The mobile app allows for each player to
search for claimed point generators by player name. This search does not require exact spelling of names. The
details for each claimed generator is shown in the app.
When a player claims a point generator, they should receive an email notification. An Azure Function named
EmailPlayer has been developed to email players with details about recently claimed point generators.
Sponsors
The platform allows business to sponsor point generators within a business location.
Reports
A report named Daily Sponsor Report must be generated each day at midnight. The report must contain a
section for each sponsor. Each sponsor section must contain two subsections.
The first subsection of the report contains the names of the point generators for that sponsor, ordered by the
last time the point generator was claimed. The second subsection contains the current owners for each of the
point generators for the sponsor. Generation of reports must not impact the GamerData service.
Technical Requirements
GamerData Service
All data for the GamerData service is stored in an Azure DocumentDB instance named GamerData. Business
and players interact with the service by using a REST API.
The REST API must:
Produce valid Swagger API specifications for non-obsolete actions.
Be optimized for loading specific point generators.
Follow REST best practices.
Include appropriate terms of service.
Costs for all Azure services must be minimized.
Build and Deployment
The GamerData service will be deployed to Azure in a private VNet.
Security
Sponsors have accounts in an Azure Active Directory (Azure AD) with business-to-consumer (B2C) enabled
named litwaregamerdata.onmicrosoft.com managed by Litware, Inc. for both GamerData and LitWare, Inc.
services.
Only Litware, Inc. developers and automated testing tools should be able to directly access the GamerData
service. All other use of the service must be through Azure API Management. A description of the security
practices used during development, available on Microsoft SharePoint, must be available to users of the API
under the terms of service.Reporting
Azure Search will be used as the source for running reports. The properties of indexes in Azure Search must
match the names of the properties in DocumentDB.
Performance
The Azure DocumentDB must not be used for reporting purposes. All services must perform queries in the data
store when possible.
Application Structure
Startup.cs
Relevant portions of the app files are shown below. (Line numbers in the code segments are included for
reference only and include a two-character prefix that denotes the specific file to which they belong.)

PointController.cs
Relevant portions of the app files are shown below. (Line numbers in the code segments are included for
reference only and include a two-character prefix that denotes the specific file to which they belong.)

PointGenerator.cs
Relevant portions of the app files are shown below. (Line numbers in the code segments are included for
reference only and include a two-character prefix that denotes the specific file to which they belong.)

You need to build a Swagger specification for creating the GamerData managed API.
What should you do? To answer, select the appropriate options in the answer area.
Hot Area:

Answer:



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Pekah74

Pekah74

In my opinion the first one should be GET, as the data come in URL used in GET call.

Yan Myan

Yan Myan

Here is the result after running the code –

“paths”: {
“/api/pointgen/{name}”: {
“get”: {
“parameters”: [
{
“name”: “name”,
“in”: “path”,
“required”: true,
“type”: “string”
}
]
}
},
“/api/pointgen/nearby”: {
“get”: {
“parameters”: [
{
“name”: “longitude”,
“in”: “query”,
“required”: true,
“type”: “number”,
“format”: “double”
},
{
“name”: “latitude”,
“in”: “query”,
“required”: true,
“type”: “number”,
“format”: “double”
},
{
“name”: “minDistance”,
“in”: “query”,
“required”: true,
“type”: “integer”,
“format”: “int64”
}
]
}
},
“/api/pointgen”: { <— Update
"post": {
"parameters": [
{
"name": "pg",
"in": "body",
"required": false,
"schema": { "$ref": "#/definitions/PointGenerator" }
}
]
}
}

KUEI HAN

KUEI HAN

(22/Dec/2017 Updated) New 70-532 Exam Questions:

NEW QUESTION 228
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 sections, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have a web app that is deployed to Azure. You need to download a compressed collection of the diagnostic logs. What should you use?

A. Azure PowerShell
B. File Transfer Protocol (FTP)
C. Application Insights
D. Microsoft Visual Studio

Answer: A

NEW QUESTION 229
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 sections, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You are developing a new Azure Logic App. The Logic App requires a custom action to evaluate data from an internal, proprietary system. You create a custom ASP.NET Web API to retrieve data from the system and update the Logic App to use the API. The Logic App generates a timeout error when it requests data from the API. You need to eliminate the timeout error and allow the Logic App to retrieve data by using the API. What should you do?

A. Update the API to immediately return an HTTP `102 PROCESSING’ response when a request is received and an HTTP `205 RESET CONTENT’ response when the data is returned from the system.
B. Update the Logic App to use a new HTTP Webhook trigger to call out to the API’s newly-created subscribe and unsubscribe methods.
C. Update the API to immediately return an HTTP `202 ACCEPTED’ response when a request is received and an `200 OK’ response when the data is returned from the system.
D. Update the Logic App adding a wait action to include the interval object’s unit and count properties set to valid values.

Answer: C

NEW QUESTION 230
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 a Virtual Machine Scale Set (VMSS) named CorpWebVMSS to Azure by using Azure PowerShell and set the instance count to 1. The VMSS includes a storage account, load balancer, public IP address, and six Standard_A1 Windows virtual machines (VMs) that run Internet Information Services (IIS). All components are deployed to a resource group named CorpWebRG. You must increase the instance count to support the increased load on IIS. You need to manually scale out the number of VMs in the scale set to 5.
Solution: You run the following Azure PowerShell commands:
$vmss = Get-AzureRmVmss -ResourceGroupName CorpWebRG -VMScalesSetName CorpWebVMSS
$vmss.sku.capacity = 5
Update-AzureRmVmss -ResourceGroupName CorpWebRG -Name CorpWebVMSS -VirtualMachineScaleSet $vmss
Does the solution meet the goal?

A. Yes
B. No

Answer: B

NEW QUESTION 231
You are developing an Azure-hosted application that processes request messages for multiple office locations. You create an Azure Service Bus topic named Requests. The topic has a maximum size of 5 gigabytes (GB) and a default message time to live (TTL) of 5 minutes. You also create subscriptions named PriorityRequest and StandardRequest and include appropriate logic to route the messages. Users report that the application has not processed messages from PriorityRequest in several days. You need to retrieve the number of messages in the PriorityRequest subscription. Which metric should you use?

A. Subscription Length
B. Subscription Incoming Requests
C. Topic Incoming Messages
D. Topic Size

Answer: D

NEW QUESTION 232
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 a Virtual Machine Scale Set (VMSS) named CorpWebVMSS to Azure by using Azure PowerShell and set the instance count to 1. The VMSS includes a storage account, load balancer, public IP address, and six Standard_A1 Windows virtual machines (VMs) that run Internet Information Services (IIS). All components are deployed to a resource group named CorpWebRG. You must increase the instance count to support the increased load on IIS. You need to manually scale out the number of VMs in the scale set to 5.
Solution: You run the following command by using the Azure Command-Line Interface (CLI):
azure vmss scale -g CorpWebRG -n CorpWebVMSS -c 5
Does the solution meet the goal?

A. Yes
B. No

Answer: A

NEW QUESTION 233
You manage an on-premises server that runs Windows Server 2016. The server has a disk that contains 4 terabytes (TB) of data and thousands of files. None of the individual files are larger than 1 TB. You plan to create a virtual machine (VM) in Azure to process the workload currently handled by the on-premises server. You need to create a storage location for the data. What should you do?

A. Create premium storage account. Use a D-series VM.
B. Configure a StorSimple virtual array. Configure the VM to use the array with the SMB protocol.
C. Add a new table storage account. Update the VM workload to use the table storage.
D. Add a single le share to the VM. In the VM operating system, assign a drive letter.

Answer: D

NEW QUESTION 234
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 sections, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You develop an enterprise application that will be used only by the employees of a company. The application is not Internet-facing. You deploy instances of the application to Azure datacenters on two continents. You must implement a load balancing solution that meets the following requirements:
– Provide network-level distribution of traffic across all instances of the application.
– Support HTTP and HTTPS protocols.
– Manage all inbound and outbound connections.
Any back-end virtual machine (VM) must be able to service requests from the same user or client session.
Solution: You implement Traffic Manager.
Does the solution meet the goal?

A. Yes
B. No

Answer: B

NEW QUESTION 235
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 sections, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You develop an enterprise application that will be used only by the employees of a company. The application is not Internet-facing. You deploy instances of the application to Azure datacenters on two continents. You must implement a load balancing solution that meets the following requirements:
– Provide network-level distribution of traffic across all instances of the application.
– Support HTTP and HTTPS protocols.
– Manage all inbound and outbound connections.
Any back-end virtual machine (VM) must be able to service requests from the same user or client session.
Solution: You implement Traffic Manager and Application Gateway.
Does the solution meet the goal?

A. Yes
B. No

Answer: A

NEW QUESTION 236
You manage API management policies in Azure. You attempt to add a policy that is marked as unavailable. You need to ensure that you can add the desired policy. What should you do?

A. Modify the API Management policy definition.
B. Enable custom caching for the API Management service.
C. Modify the scope of the API policy.
D. Integrate the API Management service with the Azure Event Hub service.

Answer: C

NEW QUESTION 237
You develop an Azure App Service Mobile App. The Azure App Service must use Twitter as an authentication provider. You start by registering your application with Twitter. You need to update your app’s authentication and authorization in the Azure Portal. Which two values should you provide? (Each correct answer presents part of the solution. Choose two.)

A. API Key
B. Azure Active Directory (Azure AD) Bearer Token
C. JSON Web Token (JWT)
D. API Secret
E. Mobile App gateway URL

Answer: AD

New Case Study – ProseWare, Inc.
NEW QUESTION 238
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 need to ensure that moderators can be added to the system. Which authentication approach should you use?

A. Microsoft Office 365 Directory
B. Azure AD Self-Service Signup
C. Azure AD Organizational Units (OU)
D. Active Directory Federation

Answer: C

NEW QUESTION 239
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 need to implement the infrastructure for the Interaction Agents.
Solution: Create an Azure Container Service cluster and create a container for running Service Fabric.
Does the solution meet the goal?

A. Yes
B. No

Answer: A

More……

New Case Study – LitWare, Inc.
NEW QUESTION 245
You need to trigger the EmailPlayer Azure Function when a point generator is claimed. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

A. Insert code after line PC35 to create a Queue trigger and send a queue message.
B. Create a trigger based on the primary data store.
C. Create a trigger based on the reporting data store.
D. Insert code after line PC14 to create a Service Bus trigger and send a message.

Answer: BD

NEW QUESTION 246
You need to write an Azure Search Query to return data for the first subsection of the Daily Sponsor Report. Which query string should you use?

A. facets=currentOwner&sort=dateLastClaimed
B. $filter=sponsor&sort=dateLastClaimed
C. search=currentOwner&sort=dateLastClaimed
D. group=sponsor&sort=dateLastClaimed
E. facets=sponsor&sort=dateLastClaimed

Answer: C

More……

NEW QUESTION 254
You administer an Azure-based solution that performs image processing. You have four Standard D3 Azure Resource Manager (ARM) virtual machines (VMs). All VMs are deployed in a Virtual Machine Scale Set (VMSS). The servers must scale up or down as the workload increases or decreases. You need to configure auto-scaling to scale the VMSS when the server workload is above 95 percent or below 5 percent. What should you do?

A. Navigate to the VM’s Size panel and increase the instance count.
B. Navigate to the VMSS Metric panel and add a new alert for the CPU Percentage Metric.
Configure the alert to notify via email.
C. Navigate to the VM’s Metric panel and enable diagnostics for basic metrics.
D. Navigate to the VMSS Metric panel and add a new alert for the CPU Percentage Metric.
Configure the alert to notify via webhook.

Answer: D

P.S. These New 70-532 Exam Questions Were Just Updated From The Real 70-532 Exam, You Can Get The Newest 70-532 Dumps In PDF And VCE From — https://www.passleader.com/70-532.html (254q VCE and PDF)

Good Luck!