You need to implement the ProcessPaymentAsync method in…

DRAG DROP
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 studyTo 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 Fabrikam, a company that specializes in payment processing. Fabrikam is developing
a solution to process payments for various events, such as music concerts. You develop an ASP.NET MVC
website that is hosted in Azure to support an upcoming music concert. The music concert is expected to
generate a large volume of ticket sales in a short amount of time.
The website uploads information to an Azure storage queue. A worker role in Azure retrieves information from
the queue and generates the concert tickets in a PDF file format after the financial transaction is approved.
You observe a delay between the time the website adds a message to a queue and the time it becomes
available to read from the queue. After examining the queue, you determine that no queue messages have a
DequeueCount value greater than zero. The website does not throw any errors.
Business Requirements
Payments
The music concert website must be able to submit event payment information for processing. The website must
remain responsive while submitting payment information. Customers must be able to add notes about their
orders to a free-form control on the website. These notes must be submitted with the payment when the
customer submits an order.
Customers often enter notes that exceed 7 KB in size.
Technical Requirements
Payment Submission and Processing
Event payment information must be sent from the website to a Windows Communication Foundation (WCF)
service worker role. The worker role must submit the information to the payment processor in JSON format.
Payment Processing
You have the following payment processing requirements:
If the number of messages in a queue goes above or below a specified threshold, worker role instances
must be created or deleted as needed. This process must be completed by using the least amount of effort.
It must be easy to reconfigure role instance thresholds.
Payments must be retrieved from the queue in the maximum batch sizes that are allowed by the queue and
pulled from the queue for 5 minutes.
The payment queue must not be re-created when processing payments.
During single Payment processing, the number of tickets available for an event must be updated. The
update operation must be retried for 30 seconds or 5 retry attempts, whichever occurs first. Each retry
should pause for at least two seconds and for one second longer than the previous attempt. If the update
fails, the payment should be placed in the poison queue.
Storage
You have the following storage requirements:
Payment information must be stored by using Azure Queue storage. Connection to the Azure storage
account has been established in a configured setting named StorageConnectionString, which is configured
for the web and worker roles.
A payment processing queue and a poison payment queue must be used when processing payments.
Azure Queue message content must be XML-safe and UTF-8 encoded.An Azure storage account must be established for diagnostic information in a configured setting named
DiagnosticsStorageConnectionString, which is configured for both the web and worker roles.
Security and Monitoring
Security
The web role must be secured by using HTTPS.
Monitoring
You must collect diagnostic data for both the web and worker roles by using the Diagnostics module.
Diagnostics configuration changes must not require the code of the roles to be rebuilt. The diagnostic data is
used for debugging and troubleshooting, measuring performance, monitoring resource usage, traffic analysis
and capacity planning, and auditing.
Performance testing must evaluate the roles under normal and stress conditions without incurring changes for
running Azure. Memory allocation, function time, and multithreading concurrency issues must be evaluated.
Deployment
You purchase a custom domain name fabrikamfunding.com to host the website, web role, and worker roles.
You must deploy an HTTPS certificate with the web role, and you must update associated configuration files
accordingly.
Web role and worker role instance sizes must be specified as Medium. You must deploy one web role instance
named FabrikamFundingPaymentGenerator, and worker role instances named
FabrikamFundingPaymentProcessor.
Application Structure
Relevant portions of the app files are shown below. Line numbers are included for reference only and include a
two-character prefix that denotes the specific file to while they belong.

You need to implement the ProcessPaymentAsync method in the QueueManager class.
Develop the solution by selecting and arranging the required code blocks in the correct order.
NOTE: You will not need all of the code segments.
Select and Place:

DRAG DROP
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 studyTo 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 Fabrikam, a company that specializes in payment processing. Fabrikam is developing
a solution to process payments for various events, such as music concerts. You develop an ASP.NET MVC
website that is hosted in Azure to support an upcoming music concert. The music concert is expected to
generate a large volume of ticket sales in a short amount of time.
The website uploads information to an Azure storage queue. A worker role in Azure retrieves information from
the queue and generates the concert tickets in a PDF file format after the financial transaction is approved.
You observe a delay between the time the website adds a message to a queue and the time it becomes
available to read from the queue. After examining the queue, you determine that no queue messages have a
DequeueCount value greater than zero. The website does not throw any errors.
Business Requirements
Payments
The music concert website must be able to submit event payment information for processing. The website must
remain responsive while submitting payment information. Customers must be able to add notes about their
orders to a free-form control on the website. These notes must be submitted with the payment when the
customer submits an order.
Customers often enter notes that exceed 7 KB in size.
Technical Requirements
Payment Submission and Processing
Event payment information must be sent from the website to a Windows Communication Foundation (WCF)
service worker role. The worker role must submit the information to the payment processor in JSON format.
Payment Processing
You have the following payment processing requirements:
If the number of messages in a queue goes above or below a specified threshold, worker role instances
must be created or deleted as needed. This process must be completed by using the least amount of effort.
It must be easy to reconfigure role instance thresholds.
Payments must be retrieved from the queue in the maximum batch sizes that are allowed by the queue and
pulled from the queue for 5 minutes.
The payment queue must not be re-created when processing payments.
During single Payment processing, the number of tickets available for an event must be updated. The
update operation must be retried for 30 seconds or 5 retry attempts, whichever occurs first. Each retry
should pause for at least two seconds and for one second longer than the previous attempt. If the update
fails, the payment should be placed in the poison queue.
Storage
You have the following storage requirements:
Payment information must be stored by using Azure Queue storage. Connection to the Azure storage
account has been established in a configured setting named StorageConnectionString, which is configured
for the web and worker roles.
A payment processing queue and a poison payment queue must be used when processing payments.
Azure Queue message content must be XML-safe and UTF-8 encoded.An Azure storage account must be established for diagnostic information in a configured setting named
DiagnosticsStorageConnectionString, which is configured for both the web and worker roles.
Security and Monitoring
Security
The web role must be secured by using HTTPS.
Monitoring
You must collect diagnostic data for both the web and worker roles by using the Diagnostics module.
Diagnostics configuration changes must not require the code of the roles to be rebuilt. The diagnostic data is
used for debugging and troubleshooting, measuring performance, monitoring resource usage, traffic analysis
and capacity planning, and auditing.
Performance testing must evaluate the roles under normal and stress conditions without incurring changes for
running Azure. Memory allocation, function time, and multithreading concurrency issues must be evaluated.
Deployment
You purchase a custom domain name fabrikamfunding.com to host the website, web role, and worker roles.
You must deploy an HTTPS certificate with the web role, and you must update associated configuration files
accordingly.
Web role and worker role instance sizes must be specified as Medium. You must deploy one web role instance
named FabrikamFundingPaymentGenerator, and worker role instances named
FabrikamFundingPaymentProcessor.
Application Structure
Relevant portions of the app files are shown below. Line numbers are included for reference only and include a
two-character prefix that denotes the specific file to while they belong.

You need to implement the ProcessPaymentAsync method in the QueueManager class.
Develop the solution by selecting and arranging the required code blocks in the correct order.
NOTE: You will not need all of the code segments.
Select and Place:

Answer:



Leave a Reply 3

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


jml

jml

IMHO the part with eventPayment declaration also must be used, otherwise eventPayment will be not possible to use in ProcessPayment(eventPayment)

Craig Locasto

Craig Locasto

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

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!