What code should you insert at line PM31?
HOTSPOT
###BeginCaseStudy###
Case Study: 4
Scenario 4
Application Information
You are developing a Windows Store app by using JavaScript. The app is named Print Near
Me. The app will allow mobile users to find printers in their local area that subscribe to the
Print Near Me network.
The Print Near Me app collects status data from subscribed networks, coordinates this data
with the status of printers that are listed in the central Print Near Me service, and displays the
closest locations that meet a user’s printing requirements. The locations are identified by
pinpoints on a map. The app uses a Printer Survey background task to populate the map.
The Print Here feature communicates with the central Print Near Me web server and nearby
printers, and generates custom printer interfaces based on the available printers. The printer
interfaces require complex calculations that involve repeated communications between the
app and the central web server, and may result in high memory usage.
Printer providers may indicate whether a subscribed printer is available to the network or
unavailable at any time.
Business Requirements
You have the following business requirements:
• Printer providers must have the option to approve users for each printer
through instant messaging or email.
• When a user launches the Print Near Me app, the Printer Survey task must
initiate communication between the app and the central web server to populate
the map.
• Map pinpoints must be displayed as follows:
o If the printer is available and does not require permission to print, display a
green pinpoint.
o If the printer is available and requires permission to print, display a yellow
pinpoint.
o If there is a printer or network status error, display a red pinpoint.
• Users must be able to initiate printing to a nearby printer by clicking or
tapping the printer’s pinpoint and then clicking Print Here.
Technical Requirements
You have the following technical requirements:
• The Print Here feature must run in a background process.
• The Printer Support feature must log and dispatch error messages.
o Log error messages locally.
o When the network is available, synchronize data with the central Print
Near Me web server.
• Background task events must be logged locally.
• The printer interface calculations must use the Printer Survey task for
communication to all sources.
• The Printer Survey task must push data to the app when the app is available.
Testing Requirements
You have the following testing requirements:
• Simulate user interactions in the app as part of the tests.
• Test the app performance on a variety of devices that have different
capabilities, such as processing speed and screen resolution.
• Generate a file on each device for analysis in Microsoft Visual Studio.
(Devices will not have Visual Studio installed.)
• Identify the app components that are called most frequently and that use the
most CPU resources.
• Ensure that the app detects the location of all printers and consistently reports
loss of connection.
printNearMe.js
###EndCaseStudy###
You need to ensure that the Printer Survey task populates the map pinpoints according to
the requirements.
What code should you insert at line PM31? (To answer, select the correct code segment
from each dropdown list in the answer area.)
Which keyword should you use?
You are developing a class named Account that will be used by several applications.
The applications that will consume the Account class will make asynchronous calls to the
Account class to execute several different methods.
You need to ensure that only one call to the methods is executed at a time.
Which keyword should you use?
Which code segment should you insert at line PM17?
###BeginCaseStudy###
Case Study: 4
Scenario 4
Application Information
You are developing a Windows Store app by using JavaScript. The app is named Print Near
Me. The app will allow mobile users to find printers in their local area that subscribe to the
Print Near Me network.
The Print Near Me app collects status data from subscribed networks, coordinates this data
with the status of printers that are listed in the central Print Near Me service, and displays the
closest locations that meet a user’s printing requirements. The locations are identified by
pinpoints on a map. The app uses a Printer Survey background task to populate the map.
The Print Here feature communicates with the central Print Near Me web server and nearby
printers, and generates custom printer interfaces based on the available printers. The printer
interfaces require complex calculations that involve repeated communications between the
app and the central web server, and may result in high memory usage.
Printer providers may indicate whether a subscribed printer is available to the network or
unavailable at any time.
Business Requirements
You have the following business requirements:
• Printer providers must have the option to approve users for each printer
through instant messaging or email.
• When a user launches the Print Near Me app, the Printer Survey task must
initiate communication between the app and the central web server to populate
the map.
• Map pinpoints must be displayed as follows:
o If the printer is available and does not require permission to print, display a
green pinpoint.
o If the printer is available and requires permission to print, display a yellow
pinpoint.
o If there is a printer or network status error, display a red pinpoint.
• Users must be able to initiate printing to a nearby printer by clicking or
tapping the printer’s pinpoint and then clicking Print Here.
Technical Requirements
You have the following technical requirements:
• The Print Here feature must run in a background process.
• The Printer Support feature must log and dispatch error messages.
o Log error messages locally.
o When the network is available, synchronize data with the central Print
Near Me web server.
• Background task events must be logged locally.
• The printer interface calculations must use the Printer Survey task for
communication to all sources.
• The Printer Survey task must push data to the app when the app is available.
Testing Requirements
You have the following testing requirements:
• Simulate user interactions in the app as part of the tests.
• Test the app performance on a variety of devices that have different
capabilities, such as processing speed and screen resolution.
• Generate a file on each device for analysis in Microsoft Visual Studio.
(Devices will not have Visual Studio installed.)
• Identify the app components that are called most frequently and that use the
most CPU resources.
• Ensure that the app detects the location of all printers and consistently reports
loss of connection.
printNearMe.js
###EndCaseStudy###
You need to implement the Print Here command.
Which code segment should you insert at line PM17?
mage:228.jpg
Which code segment should you use?
You are developing an application by using C#. The application will write events to an event
log. You plan to deploy the application to a server.
You create an event source named MySource and a custom log named MyLog on the
server.
You need to write events to the custom log.
Which code segment should you use?
Which code segment should you insert at line PS18?
###BeginCaseStudy###
Case Study: 4
Scenario 4
Application Information
You are developing a Windows Store app by using JavaScript. The app is named Print Near
Me. The app will allow mobile users to find printers in their local area that subscribe to the
Print Near Me network.
The Print Near Me app collects status data from subscribed networks, coordinates this data
with the status of printers that are listed in the central Print Near Me service, and displays the
closest locations that meet a user’s printing requirements. The locations are identified by
pinpoints on a map. The app uses a Printer Survey background task to populate the map.
The Print Here feature communicates with the central Print Near Me web server and nearby
printers, and generates custom printer interfaces based on the available printers. The printer
interfaces require complex calculations that involve repeated communications between the
app and the central web server, and may result in high memory usage.
Printer providers may indicate whether a subscribed printer is available to the network or
unavailable at any time.
Business Requirements
You have the following business requirements:
• Printer providers must have the option to approve users for each printer
through instant messaging or email.
• When a user launches the Print Near Me app, the Printer Survey task must
initiate communication between the app and the central web server to populate
the map.
• Map pinpoints must be displayed as follows:
o If the printer is available and does not require permission to print, display a
green pinpoint.
o If the printer is available and requires permission to print, display a yellow
pinpoint.
o If there is a printer or network status error, display a red pinpoint.
• Users must be able to initiate printing to a nearby printer by clicking or
tapping the printer’s pinpoint and then clicking Print Here.
Technical Requirements
You have the following technical requirements:
• The Print Here feature must run in a background process.
• The Printer Support feature must log and dispatch error messages.
o Log error messages locally.
o When the network is available, synchronize data with the central Print
Near Me web server.
• Background task events must be logged locally.
• The printer interface calculations must use the Printer Survey task for
communication to all sources.
• The Printer Survey task must push data to the app when the app is available.
Testing Requirements
You have the following testing requirements:
• Simulate user interactions in the app as part of the tests.
• Test the app performance on a variety of devices that have different
capabilities, such as processing speed and screen resolution.
• Generate a file on each device for analysis in Microsoft Visual Studio.
(Devices will not have Visual Studio installed.)
• Identify the app components that are called most frequently and that use the
most CPU resources.
• Ensure that the app detects the location of all printers and consistently reports
loss of connection.
printNearMe.js
###EndCaseStudy###
You need to implement the Printer Support error logging.
You need to ensure that the passwords are stored in the database by using a hash algorithm, Which cryptographi
You plan to store passwords in a Windows Azure SQL Database database.
You need to ensure that the passwords are stored in the database by using a hash
algorithm,
Which cryptographic algorithm should you use?
You need to ensure that the custom printer interfaces and the Printer Survey task communicate correctly
###BeginCaseStudy###
Case Study: 4
Scenario 4
Application Information
You are developing a Windows Store app by using JavaScript. The app is named Print Near
Me. The app will allow mobile users to find printers in their local area that subscribe to the
Print Near Me network.
The Print Near Me app collects status data from subscribed networks, coordinates this data
with the status of printers that are listed in the central Print Near Me service, and displays the
closest locations that meet a user’s printing requirements. The locations are identified by
pinpoints on a map. The app uses a Printer Survey background task to populate the map.
The Print Here feature communicates with the central Print Near Me web server and nearby
printers, and generates custom printer interfaces based on the available printers. The printer
interfaces require complex calculations that involve repeated communications between the
app and the central web server, and may result in high memory usage.
Printer providers may indicate whether a subscribed printer is available to the network or
unavailable at any time.
Business Requirements
You have the following business requirements:
• Printer providers must have the option to approve users for each printer
through instant messaging or email.
• When a user launches the Print Near Me app, the Printer Survey task must
initiate communication between the app and the central web server to populate
the map.
• Map pinpoints must be displayed as follows:
o If the printer is available and does not require permission to print, display a
green pinpoint.
o If the printer is available and requires permission to print, display a yellow
pinpoint.
o If there is a printer or network status error, display a red pinpoint.
• Users must be able to initiate printing to a nearby printer by clicking or
tapping the printer’s pinpoint and then clicking Print Here.
Technical Requirements
You have the following technical requirements:
• The Print Here feature must run in a background process.
• The Printer Support feature must log and dispatch error messages.
o Log error messages locally.
o When the network is available, synchronize data with the central Print
Near Me web server.
• Background task events must be logged locally.
• The printer interface calculations must use the Printer Survey task for
communication to all sources.
• The Printer Survey task must push data to the app when the app is available.
Testing Requirements
You have the following testing requirements:
• Simulate user interactions in the app as part of the tests.
• Test the app performance on a variety of devices that have different
capabilities, such as processing speed and screen resolution.
• Generate a file on each device for analysis in Microsoft Visual Studio.
(Devices will not have Visual Studio installed.)
• Identify the app components that are called most frequently and that use the
most CPU resources.
• Ensure that the app detects the location of all printers and consistently reports
loss of connection.
printNearMe.js
###EndCaseStudy###
You need to ensure that the custom printer interfaces and the Printer Survey task
communicate correctly.
What should you do?
Which code segment should you use?
Select Yes if the property is serialized according to the defined schema.
HOTSPOT
You have an existing order processing system that accepts .xml files,
The following code shows an example of a properly formatted order in XML:
You create the following class that will be serialized:
For each of the following properties, select Yes if the property is serialized according to the
defined schema. Otherwise, select No.
Which code segment should you insert at line PM34?
###BeginCaseStudy###
Case Study: 4
Scenario 4
Application Information
You are developing a Windows Store app by using JavaScript. The app is named Print Near
Me. The app will allow mobile users to find printers in their local area that subscribe to the
Print Near Me network.
The Print Near Me app collects status data from subscribed networks, coordinates this data
with the status of printers that are listed in the central Print Near Me service, and displays the
closest locations that meet a user’s printing requirements. The locations are identified by
pinpoints on a map. The app uses a Printer Survey background task to populate the map.
The Print Here feature communicates with the central Print Near Me web server and nearby
printers, and generates custom printer interfaces based on the available printers. The printer
interfaces require complex calculations that involve repeated communications between the
app and the central web server, and may result in high memory usage.
Printer providers may indicate whether a subscribed printer is available to the network or
unavailable at any time.
Business Requirements
You have the following business requirements:
• Printer providers must have the option to approve users for each printer
through instant messaging or email.
• When a user launches the Print Near Me app, the Printer Survey task must
initiate communication between the app and the central web server to populate
the map.
• Map pinpoints must be displayed as follows:
o If the printer is available and does not require permission to print, display a
green pinpoint.
o If the printer is available and requires permission to print, display a yellow
pinpoint.
o If there is a printer or network status error, display a red pinpoint.
• Users must be able to initiate printing to a nearby printer by clicking or
tapping the printer’s pinpoint and then clicking Print Here.
Technical Requirements
You have the following technical requirements:
• The Print Here feature must run in a background process.
• The Printer Support feature must log and dispatch error messages.
o Log error messages locally.
o When the network is available, synchronize data with the central Print
Near Me web server.
• Background task events must be logged locally.
• The printer interface calculations must use the Printer Survey task for
communication to all sources.
• The Printer Survey task must push data to the app when the app is available.
Testing Requirements
You have the following testing requirements:
• Simulate user interactions in the app as part of the tests.
• Test the app performance on a variety of devices that have different
capabilities, such as processing speed and screen resolution.
• Generate a file on each device for analysis in Microsoft Visual Studio.
(Devices will not have Visual Studio installed.)
• Identify the app components that are called most frequently and that use the
most CPU resources.
• Ensure that the app detects the location of all printers and consistently reports
loss of connection.
printNearMe.js
###EndCaseStudy###
You need to update the status of the map pinpoints for the Print Near Me control.
Which code segment should you insert at line PM34?