You need to update the DoWork() method of the background task to meet the requirements
###BeginCaseStudy###
Case Study: 3
E-reader app
Background
You are developing a Windows Store style e-reader app.
Business Requirements
• Users must be able to upload e-books and documents and download them to ereader devices.
• Users must be able to set a password to restrict access to their e-books and
documents.
• Users must be able to create and store encrypted metadata about their e-books
and documents.
• The app must replace system-generated error messages with custom-defined
messages. These custom messages must come from a list of approved text.
• User actions such as printing pages, saving users’ current locations in
documents, and taking notes should be enabled from buttons on an AppBar
control.
• The app must provide trial functionality that will expire after 14 days. If the
app expires while it is running, the app must display an expiration message to
the user and prompt the user to purchase the app.
Technical Requirements
General:
• Configuration files must be read-only. All user settings must be stored in the
Contoso Settings Service.
• The SocialPoller background task must run the code in the DoWork() method
to collect content from the Contoso feed.
• The UI must always remain responsive to user actions.
Security
• Secured e-book and document passwords must to be encrypted so that only the user
who created the passwords can retrieve the metadata associated to the e-books and
documents.
• The system must log all exceptions through the auditing object and notify technicians
of the issue.
Storage:
• The app must cache the next two chapters to the local device for users to read
while disconnected from the network. This cache must be persisted if a reboot
is performed.
• User state such as the current location in an e-book or document must be
stored in the Microsoft SQL Azure database.
• User settings such as font sizes and colors must be stored through the Contoso
Settings Service.
Network:
• Communication between the app and e-book vendors must occur over an
encrypted communication channel.
• Communication must use certificates to enable the SSL connection.
Trial Functionality:
• The isPrintEnabled variable must determine if the user can print.
• The isMarketEnabled variable must determine if the user can use the
marketplace.
• The isTrialEnabled variable must determine if the application is still in trial
mode.
Printing:
• The default printing options are portrait orientation and grayscale color mode.
• The app must enable the user to select the media size and printing orientation.
SocialPoller.es
Auditor.cs
ContentPage.es
Book.cs
Book.cs
SocialPost.es
Pagel.xaml.es
App.xaml.cs
###EndCaseStudy###
You need to update the DoWork() method of the background task to meet the requirements.
What should you do? (Each correct answer presents part of the solution. Choose all that apply.)
Which capabilities should you enable?
###BeginCaseStudy###
Case Study: 3
E-reader app
Background
You are developing a Windows Store style e-reader app.
Business Requirements
• Users must be able to upload e-books and documents and download them to ereader devices.
• Users must be able to set a password to restrict access to their e-books and
documents.
• Users must be able to create and store encrypted metadata about their e-books
and documents.
• The app must replace system-generated error messages with custom-defined
messages. These custom messages must come from a list of approved text.
• User actions such as printing pages, saving users’ current locations in
documents, and taking notes should be enabled from buttons on an AppBar
control.
• The app must provide trial functionality that will expire after 14 days. If the
app expires while it is running, the app must display an expiration message to
the user and prompt the user to purchase the app.
Technical Requirements
General:
• Configuration files must be read-only. All user settings must be stored in the
Contoso Settings Service.
• The SocialPoller background task must run the code in the DoWork() method
to collect content from the Contoso feed.
• The UI must always remain responsive to user actions.
Security
• Secured e-book and document passwords must to be encrypted so that only the user
who created the passwords can retrieve the metadata associated to the e-books and
documents.
• The system must log all exceptions through the auditing object and notify technicians
of the issue.
Storage:
• The app must cache the next two chapters to the local device for users to read
while disconnected from the network. This cache must be persisted if a reboot
is performed.
• User state such as the current location in an e-book or document must be
stored in the Microsoft SQL Azure database.
• User settings such as font sizes and colors must be stored through the Contoso
Settings Service.
Network:
• Communication between the app and e-book vendors must occur over an
encrypted communication channel.
• Communication must use certificates to enable the SSL connection.
Trial Functionality:
• The isPrintEnabled variable must determine if the user can print.
• The isMarketEnabled variable must determine if the user can use the
marketplace.
• The isTrialEnabled variable must determine if the application is still in trial
mode.
Printing:
• The default printing options are portrait orientation and grayscale color mode.
• The app must enable the user to select the media size and printing orientation.
SocialPoller.es
Auditor.cs
ContentPage.es
Book.cs
Book.cs
SocialPost.es
Pagel.xaml.es
App.xaml.cs
###EndCaseStudy###
You need to enable the capabilities that allow communication according to the technical
requirements.
Which capabilities should you enable? (Each correct answer presents part of the solution. Choose all
that apply.)
Which code snippets should you include in Target 1 and Target 2 to complete the code?
###BeginCaseStudy###
Case Study: 3
E-reader app
Background
You are developing a Windows Store style e-reader app.
Business Requirements
• Users must be able to upload e-books and documents and download them to ereader devices.
• Users must be able to set a password to restrict access to their e-books and
documents.
• Users must be able to create and store encrypted metadata about their e-books
and documents.
• The app must replace system-generated error messages with custom-defined
messages. These custom messages must come from a list of approved text.
• User actions such as printing pages, saving users’ current locations in
documents, and taking notes should be enabled from buttons on an AppBar
control.
• The app must provide trial functionality that will expire after 14 days. If the
app expires while it is running, the app must display an expiration message to
the user and prompt the user to purchase the app.
Technical Requirements
General:
• Configuration files must be read-only. All user settings must be stored in the
Contoso Settings Service.
• The SocialPoller background task must run the code in the DoWork() method
to collect content from the Contoso feed.
• The UI must always remain responsive to user actions.
Security
• Secured e-book and document passwords must to be encrypted so that only the user
who created the passwords can retrieve the metadata associated to the e-books and
documents.
• The system must log all exceptions through the auditing object and notify technicians
of the issue.
Storage:
• The app must cache the next two chapters to the local device for users to read
while disconnected from the network. This cache must be persisted if a reboot
is performed.
• User state such as the current location in an e-book or document must be
stored in the Microsoft SQL Azure database.
• User settings such as font sizes and colors must be stored through the Contoso
Settings Service.
Network:
• Communication between the app and e-book vendors must occur over an
encrypted communication channel.
• Communication must use certificates to enable the SSL connection.
Trial Functionality:
• The isPrintEnabled variable must determine if the user can print.
• The isMarketEnabled variable must determine if the user can use the
marketplace.
• The isTrialEnabled variable must determine if the application is still in trial
mode.
Printing:
• The default printing options are portrait orientation and grayscale color mode.
• The app must enable the user to select the media size and printing orientation.
SocialPoller.es
Auditor.cs
ContentPage.es
Book.cs
Book.cs
SocialPost.es
Pagel.xaml.es
App.xaml.cs
###EndCaseStudy###
DRAG DROP
You need to ascertain whether the app trial period has expired.
You have the following code that you plan to insert at line AX22 of App.xaml.cs:
Which code snippets should you include in Target 1 and Target 2 to complete the code? (To answer,
drag the appropriate code snippets to the correct targets in the answer area. Each code snippet 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.)
Which code segment should you use?
###BeginCaseStudy###
Case Study: 3
E-reader app
Background
You are developing a Windows Store style e-reader app.
Business Requirements
• Users must be able to upload e-books and documents and download them to ereader devices.
• Users must be able to set a password to restrict access to their e-books and
documents.
• Users must be able to create and store encrypted metadata about their e-books
and documents.
• The app must replace system-generated error messages with custom-defined
messages. These custom messages must come from a list of approved text.
• User actions such as printing pages, saving users’ current locations in
documents, and taking notes should be enabled from buttons on an AppBar
control.
• The app must provide trial functionality that will expire after 14 days. If the
app expires while it is running, the app must display an expiration message to
the user and prompt the user to purchase the app.
Technical Requirements
General:
• Configuration files must be read-only. All user settings must be stored in the
Contoso Settings Service.
• The SocialPoller background task must run the code in the DoWork() method
to collect content from the Contoso feed.
• The UI must always remain responsive to user actions.
Security
• Secured e-book and document passwords must to be encrypted so that only the user
who created the passwords can retrieve the metadata associated to the e-books and
documents.
• The system must log all exceptions through the auditing object and notify technicians
of the issue.
Storage:
• The app must cache the next two chapters to the local device for users to read
while disconnected from the network. This cache must be persisted if a reboot
is performed.
• User state such as the current location in an e-book or document must be
stored in the Microsoft SQL Azure database.
• User settings such as font sizes and colors must be stored through the Contoso
Settings Service.
Network:
• Communication between the app and e-book vendors must occur over an
encrypted communication channel.
• Communication must use certificates to enable the SSL connection.
Trial Functionality:
• The isPrintEnabled variable must determine if the user can print.
• The isMarketEnabled variable must determine if the user can use the
marketplace.
• The isTrialEnabled variable must determine if the application is still in trial
mode.
Printing:
• The default printing options are portrait orientation and grayscale color mode.
• The app must enable the user to select the media size and printing orientation.
SocialPoller.es
Auditor.cs
ContentPage.es
Book.cs
Book.cs
SocialPost.es
Pagel.xaml.es
App.xaml.cs
###EndCaseStudy###
You need to handle the following exception and meet the error handling requirements.
Which code segment should you use?
Which caching technique should you use in each scenario?
###BeginCaseStudy###
Case Study: 3
E-reader app
Background
You are developing a Windows Store style e-reader app.
Business Requirements
• Users must be able to upload e-books and documents and download them to ereader devices.
• Users must be able to set a password to restrict access to their e-books and
documents.
• Users must be able to create and store encrypted metadata about their e-books
and documents.
• The app must replace system-generated error messages with custom-defined
messages. These custom messages must come from a list of approved text.
• User actions such as printing pages, saving users’ current locations in
documents, and taking notes should be enabled from buttons on an AppBar
control.
• The app must provide trial functionality that will expire after 14 days. If the
app expires while it is running, the app must display an expiration message to
the user and prompt the user to purchase the app.
Technical Requirements
General:
• Configuration files must be read-only. All user settings must be stored in the
Contoso Settings Service.
• The SocialPoller background task must run the code in the DoWork() method
to collect content from the Contoso feed.
• The UI must always remain responsive to user actions.
Security
• Secured e-book and document passwords must to be encrypted so that only the user
who created the passwords can retrieve the metadata associated to the e-books and
documents.
• The system must log all exceptions through the auditing object and notify technicians
of the issue.
Storage:
• The app must cache the next two chapters to the local device for users to read
while disconnected from the network. This cache must be persisted if a reboot
is performed.
• User state such as the current location in an e-book or document must be
stored in the Microsoft SQL Azure database.
• User settings such as font sizes and colors must be stored through the Contoso
Settings Service.
Network:
• Communication between the app and e-book vendors must occur over an
encrypted communication channel.
• Communication must use certificates to enable the SSL connection.
Trial Functionality:
• The isPrintEnabled variable must determine if the user can print.
• The isMarketEnabled variable must determine if the user can use the
marketplace.
• The isTrialEnabled variable must determine if the application is still in trial
mode.
Printing:
• The default printing options are portrait orientation and grayscale color mode.
• The app must enable the user to select the media size and printing orientation.
SocialPoller.es
Auditor.cs
ContentPage.es
Book.cs
Book.cs
SocialPost.es
Pagel.xaml.es
App.xaml.cs
###EndCaseStudy###
DRAG DROP
You need to meet the app caching requirements.
Which caching technique should you use in each scenario? (To answer, drag the appropriate
technique to the correct scenario. Each technique 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.)
Which lines of code should you use at line PG34?
###BeginCaseStudy###
Case Study: 3
E-reader app
Background
You are developing a Windows Store style e-reader app.
Business Requirements
• Users must be able to upload e-books and documents and download them to ereader devices.
• Users must be able to set a password to restrict access to their e-books and
documents.
• Users must be able to create and store encrypted metadata about their e-books
and documents.
• The app must replace system-generated error messages with custom-defined
messages. These custom messages must come from a list of approved text.
• User actions such as printing pages, saving users’ current locations in
documents, and taking notes should be enabled from buttons on an AppBar
control.
• The app must provide trial functionality that will expire after 14 days. If the
app expires while it is running, the app must display an expiration message to
the user and prompt the user to purchase the app.
Technical Requirements
General:
• Configuration files must be read-only. All user settings must be stored in the
Contoso Settings Service.
• The SocialPoller background task must run the code in the DoWork() method
to collect content from the Contoso feed.
• The UI must always remain responsive to user actions.
Security
• Secured e-book and document passwords must to be encrypted so that only the user
who created the passwords can retrieve the metadata associated to the e-books and
documents.
• The system must log all exceptions through the auditing object and notify technicians
of the issue.
Storage:
• The app must cache the next two chapters to the local device for users to read
while disconnected from the network. This cache must be persisted if a reboot
is performed.
• User state such as the current location in an e-book or document must be
stored in the Microsoft SQL Azure database.
• User settings such as font sizes and colors must be stored through the Contoso
Settings Service.
Network:
• Communication between the app and e-book vendors must occur over an
encrypted communication channel.
• Communication must use certificates to enable the SSL connection.
Trial Functionality:
• The isPrintEnabled variable must determine if the user can print.
• The isMarketEnabled variable must determine if the user can use the
marketplace.
• The isTrialEnabled variable must determine if the application is still in trial
mode.
Printing:
• The default printing options are portrait orientation and grayscale color mode.
• The app must enable the user to select the media size and printing orientation.
SocialPoller.es
Auditor.cs
ContentPage.es
Book.cs
Book.cs
SocialPost.es
Pagel.xaml.es
App.xaml.cs
###EndCaseStudy###
You need to configure the print options that a user can change.
Which lines of code should you use at line PG34? (Each correct answer presents part of the solution.
Choose all that apply.)
Which elements should you include in Target 1, Target 2 and Target 3 to complete the code?
###BeginCaseStudy###
Case Study: 4
Fabrikam, Inc
Overview
Fabrikam, Inc. is a realtor in the United States.
Fabrikam grants its customers access to a web site, where they can search for houses for rent
and for sale. Its customers can enter basic requirements, such as location, number of rooms,
dimensions, and a price range. The web site displays a list of houses that meet the customers’
criteria. The customers can then view more details about each house and can add a listing to a
favorites list.
Requirements
Business Goals
Fabrikam plans to provide a more interactive experience for its customers. Fabrikam is
creating a video tour for each listing. The video tours can be used to visit the property
virtually.
Fabrikam plans to create a Windows Store app on Windows 8.1 RT and Windows 8.1 Pro
devices.
General Requirements
Fabrikam identifies the following general requirements for the app:
• The app interface must be available in English, Spanish, and French.
• The app must provide the customers with the ability to perform searches the
same way that the current web site does.
• It is expected that the customers will view more than 3,000 pictures annually.
The main page of the app must show a list of the last 10 pictures that were
viewed.
• If pictures are added to a listing that is in a customer’s favorites list, the
pictures must be downloaded automatically from Windows Azure. This must
occur if the app is suspended or not running.
Printing Requirements
Customers must be able to print the details of a listing from the details page by clicking a
button within the app.
You plan to add the following XAML markup to the listing details page:
<Button x:Name=”btnPrint Content=”Print” Click=”InvoicePrint” />.
Video Tour Requirements
Fabrikam identifies the following requirements for the video tours:
• Customers must be able to play the video tour on a different device by using a
button within the app.
• When a customer clicks the details of a listing, the app must start downloading
the video tour in the background.
• When the app starts, the app must verify whether there are any pending
downloads, and resume any paused downloads.
• The last five viewed video tours that are not on the customer’s favorites list
must be cached for subsequent viewing.
• Customers must be able to download all of the video tours for the properties
that they added to their favorites list.
• The property details page must contain a MediaElement control that will be
used to play the video tour of the property.
• When downloading the video tours, the app must remain responsive, and each
download must be processed on a separate thread.
Package.appxmanifest
###EndCaseStudy###
DRAG DROP
You add a MediaElement named VideoTour and a button named playToButton to the properties
details page.
You need to ensure that video tours can be played to other devices.
You have the following code: (Line numbers are included for reference only.)
Which elements should you include in Target 1, Target 2 and Target 3 to complete the code? (To
answer, drag the appropriate elements to the correct targets in the answer area. Each element 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.)
What should you include in the recommendation?
###BeginCaseStudy###
Case Study: 4
Fabrikam, Inc
Overview
Fabrikam, Inc. is a realtor in the United States.
Fabrikam grants its customers access to a web site, where they can search for houses for rent
and for sale. Its customers can enter basic requirements, such as location, number of rooms,
dimensions, and a price range. The web site displays a list of houses that meet the customers’
criteria. The customers can then view more details about each house and can add a listing to a
favorites list.
Requirements
Business Goals
Fabrikam plans to provide a more interactive experience for its customers. Fabrikam is
creating a video tour for each listing. The video tours can be used to visit the property
virtually.
Fabrikam plans to create a Windows Store app on Windows 8.1 RT and Windows 8.1 Pro
devices.
General Requirements
Fabrikam identifies the following general requirements for the app:
• The app interface must be available in English, Spanish, and French.
• The app must provide the customers with the ability to perform searches the
same way that the current web site does.
• It is expected that the customers will view more than 3,000 pictures annually.
The main page of the app must show a list of the last 10 pictures that were
viewed.
• If pictures are added to a listing that is in a customer’s favorites list, the
pictures must be downloaded automatically from Windows Azure. This must
occur if the app is suspended or not running.
Printing Requirements
Customers must be able to print the details of a listing from the details page by clicking a
button within the app.
You plan to add the following XAML markup to the listing details page:
<Button x:Name=”btnPrint Content=”Print” Click=”InvoicePrint” />.
Video Tour Requirements
Fabrikam identifies the following requirements for the video tours:
• Customers must be able to play the video tour on a different device by using a
button within the app.
• When a customer clicks the details of a listing, the app must start downloading
the video tour in the background.
• When the app starts, the app must verify whether there are any pending
downloads, and resume any paused downloads.
• The last five viewed video tours that are not on the customer’s favorites list
must be cached for subsequent viewing.
• Customers must be able to download all of the video tours for the properties
that they added to their favorites list.
• The property details page must contain a MediaElement control that will be
used to play the video tour of the property.
• When downloading the video tours, the app must remain responsive, and each
download must be processed on a separate thread.
Package.appxmanifest
###EndCaseStudy###
You need to recommend a solution to comply with the language requirements of the app.
What should you include in the recommendation? (Each correct answer presents part of the
solution. Choose three.)
What code should you add to line 04?
###BeginCaseStudy###
Case Study: 4
Fabrikam, Inc
Overview
Fabrikam, Inc. is a realtor in the United States.
Fabrikam grants its customers access to a web site, where they can search for houses for rent
and for sale. Its customers can enter basic requirements, such as location, number of rooms,
dimensions, and a price range. The web site displays a list of houses that meet the customers’
criteria. The customers can then view more details about each house and can add a listing to a
favorites list.
Requirements
Business Goals
Fabrikam plans to provide a more interactive experience for its customers. Fabrikam is
creating a video tour for each listing. The video tours can be used to visit the property
virtually.
Fabrikam plans to create a Windows Store app on Windows 8.1 RT and Windows 8.1 Pro
devices.
General Requirements
Fabrikam identifies the following general requirements for the app:
• The app interface must be available in English, Spanish, and French.
• The app must provide the customers with the ability to perform searches the
same way that the current web site does.
• It is expected that the customers will view more than 3,000 pictures annually.
The main page of the app must show a list of the last 10 pictures that were
viewed.
• If pictures are added to a listing that is in a customer’s favorites list, the
pictures must be downloaded automatically from Windows Azure. This must
occur if the app is suspended or not running.
Printing Requirements
Customers must be able to print the details of a listing from the details page by clicking a
button within the app.
You plan to add the following XAML markup to the listing details page:
<Button x:Name=”btnPrint Content=”Print” Click=”InvoicePrint” />.
Video Tour Requirements
Fabrikam identifies the following requirements for the video tours:
• Customers must be able to play the video tour on a different device by using a
button within the app.
• When a customer clicks the details of a listing, the app must start downloading
the video tour in the background.
• When the app starts, the app must verify whether there are any pending
downloads, and resume any paused downloads.
• The last five viewed video tours that are not on the customer’s favorites list
must be cached for subsequent viewing.
• Customers must be able to download all of the video tours for the properties
that they added to their favorites list.
• The property details page must contain a MediaElement control that will be
used to play the video tour of the property.
• When downloading the video tours, the app must remain responsive, and each
download must be processed on a separate thread.
Package.appxmanifest
###EndCaseStudy###
You create the following method in a Utility class: (Line numbers are included for reference only.)
You need to complete the code to meet the requirement for displaying the last 10 viewed pictures.
What code should you add to line 04? (More than one answer choice may achieve the goal. Select
the BEST answer.)
Which code snippets should you insert in Target 1 and Target 2 to complete the code?
###BeginCaseStudy###
Case Study: 4
Fabrikam, Inc
Overview
Fabrikam, Inc. is a realtor in the United States.
Fabrikam grants its customers access to a web site, where they can search for houses for rent
and for sale. Its customers can enter basic requirements, such as location, number of rooms,
dimensions, and a price range. The web site displays a list of houses that meet the customers’
criteria. The customers can then view more details about each house and can add a listing to a
favorites list.
Requirements
Business Goals
Fabrikam plans to provide a more interactive experience for its customers. Fabrikam is
creating a video tour for each listing. The video tours can be used to visit the property
virtually.
Fabrikam plans to create a Windows Store app on Windows 8.1 RT and Windows 8.1 Pro
devices.
General Requirements
Fabrikam identifies the following general requirements for the app:
• The app interface must be available in English, Spanish, and French.
• The app must provide the customers with the ability to perform searches the
same way that the current web site does.
• It is expected that the customers will view more than 3,000 pictures annually.
The main page of the app must show a list of the last 10 pictures that were
viewed.
• If pictures are added to a listing that is in a customer’s favorites list, the
pictures must be downloaded automatically from Windows Azure. This must
occur if the app is suspended or not running.
Printing Requirements
Customers must be able to print the details of a listing from the details page by clicking a
button within the app.
You plan to add the following XAML markup to the listing details page:
<Button x:Name=”btnPrint Content=”Print” Click=”InvoicePrint” />.
Video Tour Requirements
Fabrikam identifies the following requirements for the video tours:
• Customers must be able to play the video tour on a different device by using a
button within the app.
• When a customer clicks the details of a listing, the app must start downloading
the video tour in the background.
• When the app starts, the app must verify whether there are any pending
downloads, and resume any paused downloads.
• The last five viewed video tours that are not on the customer’s favorites list
must be cached for subsequent viewing.
• Customers must be able to download all of the video tours for the properties
that they added to their favorites list.
• The property details page must contain a MediaElement control that will be
used to play the video tour of the property.
• When downloading the video tours, the app must remain responsive, and each
download must be processed on a separate thread.
Package.appxmanifest
###EndCaseStudy###
HOTSPOT
You need to handle the Click event of the Print button.
You have the following code: (Line numbers are included for reference only.)
Which code snippets should you insert in Target 1 and Target 2 to complete the code? (To answer,
select the correct code snippet from each drop-down list in the answer area.)