http://https://www.lead1pass.com/Microsoft/70-357-practice-exam-dumps.html (51 Q&As Dumps, 30%OFF Special Discount: 30free )
NEW QUESTION NO: 10
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.
You are developing a Universal Windows Platform (UWP) app.
Your app stores files on a user's device.
You need to be able to replace the existing files with new files generated by the user.
Solution: You run the StorageFile.GetParentAsync method to get a reference to the existing file. Then, you run the StorageFile.CreateStreamedFileAsync method to create the new file at the same location.
Does this meet the goal?
A. Yes
B. No
Answer: A
Explanation/Reference:
Explanation:
The GetParentAsync() method gets the parent folder of the current file.
The CreateStreamedFileAsync method can be used to create a StorageFile that can be passed to other methods or passed to another app through app contracts.
Reference: https://docs.microsoft.com/en-us/uwp/api/windows.storage.storagefile
NEW QUESTION NO: 11
DRAG DROP
Case Study
This is a case study. Case studies are not limited 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
Fabrikam is a commercial bank. The primary customers are individuals and employers with up to 10,000 employees. Fabrikam provides Internet banking services to customers.
You are developing a Universal Windows Platform (UWP) app for Fabrikam that extends the Internet banking to a UWP app.
Business Requirements
Core functionality
Users must be able to access accounts, view balances, view recent transactions, and deposit checks by using the UWP app.
Usability
The app must use industry proven design patterns across the app. All navigational elements must be visible at all times.
Security
The app must provide secure transactions to protect customer privacy.
Technical Requirements
Data
The app must use a file based database. You must use a code first entity framework approach.
User interface
You must use a Model-View-ViewModel (MVVM) pattern.

Users must be able to access all content through the top-level navigation after they sign in.

The app must allow the user to upload up to 50 images (front and back) of checks to deposit.

During the upload process, the app must be responsive to any other user actions.

The app must only upload images when no other pending inputs are in the queue.

You must implement the following pages:

Network and web service
The app must meet the following requirements related to networking and web services:
Connect to a web service over a secure HTTP connection to upload images.

Connect to Fabrikam's core web service to retrieve account information.

Use networking technology already available in the .Net Framework.

Consume the JSON that the Fabrikam core web service provides.

User data and alerts
The app must meet the following requirements related to user data and alerts:
Download new monthly bank statements when possible. The download process must not affect the

performance of the app.
Report to the user when the statements are downloaded to the device.

Write a log entry when statement downloads are not successful.

Periodically check for user activity and automatically log the user out when there is no activity for more

than 15 minutes.
Security
The app must meet the following requirements related to security:
Use a multi-factor authentication (MFA) by using email and a verification code to identify the user.

Securely store credentials and retrieve credentials.

Automatically sign in the user irrespective of the device that is used to sign in to the app.

Store the resource name within the app itself.

Connect to an authentication app by using the URI schema fabrikam-security://oauth/.

Application Structure
AccountContext.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.

ImageManager.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.

ClientProxy.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.

BkgTaskMgr.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.

CredentialManager.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.

MainPage.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 insert code at line AC07 to create the database entities.
How should you complete the relevant code? To answer, drag the appropriate code segments to the correct location. Each code segments 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.
Select and Place:

Answer:

Explanation/Reference:
Explanation:
From scenario:
The app must use a file based database. You must use a code first entity framework approach.
The DbContextOptionsBuilder Class provides a simple API surface for configuring DbContextOptions.
Databases (and other extensions) typically define extension methods on this object that allow you to configure the database connection (and other options) to be used for a context.
A DbSet<TEntity> can be used to query and save instances of TEntity. LINQ queries against a DbSet<TEntity> will be translated into queries against the database.
UseModel(IModel) sets the model to be used for the context. If the model is set, then OnModelCreating (ModelBuilder) will not be run.
Reference: https://docs.microsoft.com/en-us/ef/core/api/
microsoft.entityframeworkcore.dbcontextoptionsbuilder
NEW QUESTION NO: 12
Case Study
This is a case study. Case studies are not limited 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
Fabrikam is a commercial bank. The primary customers are individuals and employers with up to 10,000 employees. Fabrikam provides Internet banking services to customers.
You are developing a Universal Windows Platform (UWP) app for Fabrikam that extends the Internet banking to a UWP app.
Business Requirements
Core functionality
Users must be able to access accounts, view balances, view recent transactions, and deposit checks by using the UWP app.
Usability
The app must use industry proven design patterns across the app. All navigational elements must be visible at all times.
Security
The app must provide secure transactions to protect customer privacy.
Technical Requirements
Data
The app must use a file based database. You must use a code first entity framework approach.
User interface
You must use a Model-View-ViewModel (MVVM) pattern.

Users must be able to access all content through the top-level navigation after they sign in.

The app must allow the user to upload up to 50 images (front and back) of checks to deposit.

During the upload process, the app must be responsive to any other user actions.

The app must only upload images when no other pending inputs are in the queue.

You must implement the following pages:

Network and web service
The app must meet the following requirements related to networking and web services:
Connect to a web service over a secure HTTP connection to upload images.

Connect to Fabrikam's core web service to retrieve account information.

Use networking technology already available in the .Net Framework.

Consume the JSON that the Fabrikam core web service provides.

User data and alerts
The app must meet the following requirements related to user data and alerts:
Download new monthly bank statements when possible. The download process must not affect the

performance of the app.
Report to the user when the statements are downloaded to the device.

Write a log entry when statement downloads are not successful.

Periodically check for user activity and automatically log the user out when there is no activity for more

than 15 minutes.
Security
The app must meet the following requirements related to security:
Use a multi-factor authentication (MFA) by using email and a verification code to identify the user.

Securely store credentials and retrieve credentials.

Automatically sign in the user irrespective of the device that is used to sign in to the app.

Store the resource name within the app itself.

Connect to an authentication app by using the URI schema fabrikam-security://oauth/.

Application Structure
AccountContext.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.

ImageManager.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.

ClientProxy.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.

BkgTaskMgr.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.

CredentialManager.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.

MainPage.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 configure authentication for the app.
Which two technologies should you use? Each correct answer presents part of the solution.
A. Windows Hello
B. Windows Kerberos
C. Azure Active Directory
D. Microsoft Passport
Answer: A,D
Explanation/Reference:
Explanation:
Microsoft Hello
Microsoft Hello provides simple multi-factor authentication using facial recognition (or iris, or fingerprints) that is used to access the Microsoft Passport private key stored in the secure TPM chip. For the first time, Microsoft has included the biometric software (middleware) in Windows 10 to support biometrics for authentication. In previous versions of Windows, the OEM (HP, Dell, Lenovo, etc) needed to add its own biometric middleware to support biometric authentication.
From scenario: The app must meet the following requirements related to security:
Use a multi-factor authentication (MFA) by using email and a verification code to identify the user.

Securely store credentials and retrieve credentials.

Automatically sign in the user irrespective of the device that is used to sign in to the app.

Store the resource name within the app itself.

Connect to an authentication app by using the URI schema fabrikam-security://oauth/.

Note: Microsoft Passport
Microsoft has resurrected the Passport moniker for a new PKI credential system that requires multi-factor authentication. Most interesting about Microsoft Passport is that it fully supports the Fast IDentity Online (FIDO) Alliance standards which means it will work with many web/cloud services without modification. The plan is that users of cloud services supporting FIDO is that there will no longer be passwords associated with the user's account.
Microsoft Passport involves a user logging onto the Windows 10 computer with multi-factor (PIN, face, iris, fingerprint, etc) and either creating a new account or associating an existing account with an IDentity Provider (IDP). Windows generates a public/private key pair with the private key stored securely outside of the Windows 10 OS. The public key is associated with the account so that a challenge can be sent that can only correctly respond to the IDP. Another key point to the Microsoft Passport credential system is that the user needs to enroll every device used to access the service (IDP).
Reference: https://adsecurity.org/?p=1535
NEW QUESTION NO: 13
You are developing a Universal Windows Platform (UWP) app that allows users to take photos and record videos.
The photos and videos must be stored in the user's Photos library and Videos library, respectively. The app must not display a user interface for saving files.
You need to configure the app.
Which set of capabilities should you declare in the app manifest?
A. Internet (client), microphone, location and proximity
B. webcam, microphone, Pictures library and Video library
C. Internet (client), Documents library, Videos library, and proximity
D. webcam, location, proximity and Pictures library
Answer: B
Explanation/Reference:
Explanation:
You must specify the webcam or microphone capabilities in your app manifest file if you are using MediaCapture to capture audio, photos, or video programmatically.
Reference: https://docs.microsoft.com/en-us/windows/uwp/audio-video-camera/capture-photos-and-video- with-cameracaptureui
NEW QUESTION NO: 14
HOTSPOT
You are developing a Universal Windows Platform (UWP) app that plays audio recordings.
You are creating a page where the user can set a volume level for the app using a slider control. You need to display the volume level in a TextBox right below the slider. You have C# class named VolumeConverter that converts slider values to a number.
You have a page that includes the following markup:

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Answer:

Explanation/Reference:
Explanation:
Box 1: Yes
Box 2: Yes
Box 3: No
Reference: https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.slider
NEW QUESTION NO: 15
Case Study
This is a case study. Case studies are not limited 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 developing an application named Timeline that presents information on a timeline. The app allows users to create items and enter details about the item. The app displays item names on a timeline. When users select an item name on the timeline, the app displays additional content about the item.
Business requirements
Timeline section
The timeline element of the app has the following layout requirements:

The timeline must adapt to the screen size and orientation of the device.

The timeline size must dynamically change if the window containing the content is resized by the user.

The user must be able to scroll through the timeline horizontally when the device is in landscape mode.

The user must be able to scroll through the timeline vertically when the device is in portrait mode.

The timeline must begin scrolling as soon as a scroll is detected. Scrolling must continue for a short

distance after the scroll input has stopped.
Scroll bars or panning controls must always be visible.

The following image depicts the layout for the timeline section of the app when the device is using landscape orientation:

The following image depicts the layout for the timeline section of the app when the device is using portrait orientation:

Content section
The content element of the app has the following layout requirements:
When a user selects an item on the timeline, the details for that item must display beneath or to the

right of the timeline.
The content section must display one page of information. The element must be a child of the selected

item in the timeline.
Users must be able to return to a previously selected event by pressing the Back button.

User interface
The user must be able to navigate the application using the interface below:

The Favorite button marks the current content to be displayed in a Favorites panel.

The Back and Forward buttons navigate through the app selection history. Both buttons must be

available on all devices.
The Notes button allows the user to manage notes about the current content.

The app must support touch, mouse, and stylus input.

The app layout must automatically adapt to the screen size and orientation.

Technical requirements
Layout
You identify the following layout requirements:
General
All user interface (UI) elements must continuously scale when a user resizes the window.

UI controls must be smaller and spaced closer together if there is a mouse or stylus available.

UI controls must be larger and spaced farther apart if the device supports touch and there is no mouse

or pointer available.
Timeline
The timeline must be displayed in a horizontal layout when the device is in a landscape orientation or

when the horizontal width is greater than the vertical height.
The timeline must be displayed in a vertical layout when the device is in a portrait orientation or when

the vertical height is greater than the horizontal width.
Each item in the past must be linked to the next item in the future.

Users must be able to scroll from past events to future events or from future events to past events.

The app must only allow one level of detail to be linked to each item in the timeline.

Optimization
You must optimize the app using the following guidelines:
You must minimize the time it takes to display content when an item on the timeline is selected.

The app must respect memory and resource constraints for all devices.

XAML coding style
All code and markup must conform to the following style guidelines:
Use resource dictionaries for styles that are used more than once.

Limit the use of nested panels.

Use built-in properties of existing panels instead of using separate style objects.

Use the navigation structure that best models the data without exceeding the requirements of the app.

Application structure
MainPage.xaml
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.)

Settings.xaml
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.)

ResourceDictionery.xaml
Relevant portions of the app files are shown below. (Line numbers in the code segments are included for reference only.)

MainPage.xaml.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.)

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.
You need to implement the appropriate XAML layout for the Timeline app.
Solution: You create an instance of a SplitView control.
Does this meet the goal?
A. Yes
B. No
Answer: B
Explanation/Reference:
Explanation:
A split view control has an expandable/collapsible pane and a content area.
Here is an example of the Microsoft Edge app using SplitView to show its Hub.

Reference: https://docs.microsoft.com/en-us/windows/uwp/controls-and-patterns/split-view
NEW QUESTION NO: 16
You are developing a Universal Windows Platform (UWP) app that uses XAML and C#. The app must use the Model-View-ViewModel (MVVM) pattern.
The user interface (UI) triggers an event.
You need to bind the event to a view model method.
What should you do?
A. Create a custom behavior and attach the behavior to the UI element. Bind the behavior's event trigger to the command declared in the view model.
B. Create an attached property of type ICommand. Bind the UI element's event to the attached property.
C. Assign the value of the DataContext property to the view model. Use the BindingExression.UpdateSource() method to update the data source.
D. Add a strongly-typed view model property to the view. In the code behind file for the view, invoke the view model method.
Answer: B
Explanation/Reference:
Explanation:
Commands are an implementation of the ICommand interface that is part of the .NET Framework. This interface is used a lot in MVVM applications.
Reference: https://msdn.microsoft.com/en-us/magazine/dn237302.aspx
NEW QUESTION NO: 17
HOTSPOT
Case Study
This is a case study. Case studies are not limited 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 developing an application named Timeline that presents information on a timeline. The app allows users to create items and enter details about the item. The app displays item names on a timeline. When users select an item name on the timeline, the app displays additional content about the item.
Business requirements
Timeline section
The timeline element of the app has the following layout requirements:
The timeline must adapt to the screen size and orientation of the device.

The timeline size must dynamically change if the window containing the content is resized by the user.

The user must be able to scroll through the timeline horizontally when the device is in landscape mode.

The user must be able to scroll through the timeline vertically when the device is in portrait mode.

The timeline must begin scrolling as soon as a scroll is detected. Scrolling must continue for a short

distance after the scroll input has stopped.
Scroll bars or panning controls must always be visible.

The following image depicts the layout for the timeline section of the app when the device is using landscape orientation:

The following image depicts the layout for the timeline section of the app when the device is using portrait orientation:

Content section
The content element of the app has the following layout requirements:
When a user selects an item on the timeline, the details for that item must display beneath or to the

right of the timeline.
The content section must display one page of information. The element must be a child of the selected

item in the timeline.
Users must be able to return to a previously selected event by pressing the Back button.

User interface
The user must be able to navigate the application using the interface below:

The Favorite button marks the current content to be displayed in a Favorites panel.

The Back and Forward buttons navigate through the app selection history. Both buttons must be

available on all devices.
The Notes button allows the user to manage notes about the current content.

The app must support touch, mouse, and stylus input.

The app layout must automatically adapt to the screen size and orientation.

Technical requirements
Layout
You identify the following layout requirements:
General
All user interface (UI) elements must continuously scale when a user resizes the window.

UI controls must be smaller and spaced closer together if there is a mouse or stylus available.

UI controls must be larger and spaced farther apart if the device supports touch and there is no mouse

or pointer available.
Timeline
The timeline must be displayed in a horizontal layout when the device is in a landscape orientation or

when the horizontal width is greater than the vertical height.
The timeline must be displayed in a vertical layout when the device is in a portrait orientation or when

the vertical height is greater than the horizontal width.
Each item in the past must be linked to the next item in the future.

Users must be able to scroll from past events to future events or from future events to past events.

The app must only allow one level of detail to be linked to each item in the timeline.

Optimization
You must optimize the app using the following guidelines:
You must minimize the time it takes to display content when an item on the timeline is selected.

The app must respect memory and resource constraints for all devices.

XAML coding style
All code and markup must conform to the following style guidelines:
Use resource dictionaries for styles that are used more than once.

Limit the use of nested panels.

Use built-in properties of existing panels instead of using separate style objects.

Use the navigation structure that best models the data without exceeding the requirements of the app.

Application structure
MainPage.xaml
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.)

Settings.xaml
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.)

ResourceDictionery.xaml
Relevant portions of the app files are shown below. (Line numbers in the code segments are included for reference only.)

MainPage.xaml.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 properly handle the size of the user interface objects.
How should you complete the method? To answer, select the appropriate code segment from each list in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Answer:

Explanation/Reference:
Explanation:
From scenario:
UI controls must be smaller and spaced closer together if there is a mouse or stylus available.
UI controls must be larger and spaced farther apart if the device supports touch and there is no mouse or pointer available.
Box 1: MouseCapabilities pd = new Windows.Devices.Input.MouseCapabilities(); The Windows.Devices.Input namespace contains the MouseCapabilities class used to retrieve the properties exposed by one or more connected mice. Just create a new MouseCapabilities object and get the properties you're interested in.
Box 2: int pointer = pd.MousePresent;
Example:
MouseCapabilities mouseCapabilities = new Windows.Devices.Input.MouseCapabilities(); MousePresent.Text = mouseCapabilities.MousePresent != 0 ? "Yes" : "No"; Box 3: if (pointer == 1)
This is true if a mouse is present.
Reference: https://docs.microsoft.com/en-us/windows/uwp/input-and-devices/identify-input-devices
NEW QUESTION NO: 18
HOTSPOT
Case Study
This is a case study. Case studies are not limited 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 developing a Universal Windows Platform (UWP) app for LitWare, Inc. that will assist video artists.
The app allows artists to create videos, share videos through other mobile apps, and upload the videos through LitWare, Inc.'s web services. What helps set LitWare Inc.'s app apart from competitors is their focus on speed and performance.
Business Requirements
Support many devices
Users may have phones, tablets, or laptops. The app must support all devices with a fluid layout that

grows off-screen and adapts to each device.
Record video
Users must be able to record videos and view them in their videos library.

The app must display information about the recorded video.

Users must be able to edit the upload queue in the app.

Branding
The app must have consistent branding throughout all views.

Upload videos
The app must allow deferral and scheduling of video uploads.

Users must be able to view the status of uploaded videos.

Any videos created with this app or shared with this app must be uploaded without user interaction.

Download video
The app must have the option to automatically download videos.

Users must be able to initiate downloading of videos.

Share video
The app must allow be allowed to receive videos from other apps.

Technical Requirements
Support multiple devices
The app must support the following:
Use horizontal layout for larger screens.

User vertical layout for smaller screens.

Use one layout control per view.

The app must be compatible with current and future XBOX apps that use C++.
Uploading and downloading
The app must use a background operations to upload and download videos.

Code reuse
The app must use a common pool of XAML resources and custom controls. All custom controls must

use a consistent theme throughout the app.
You must create code that can be reused in C++, C#, JavaScript, whenever possible.

The app must call the background service to avoid duplication of code.

Security
End users must be authenticated using OAuth.

Web services must be authenticated.

Users must have the option to use single sign-on.

Recording
The app must use the microphone and webcam to support audio and video recording. In addition, the

app must support the use of the back and camera buttons, if present.
Integration
Other apps must be able to share videos with this app through a Universal Windows Platform (UWP)

app service.
Architecture and coding style
The app must follow the Model-View-ViewModel (MVVM) pattern.

The app's user interface (UI) must be optimized for performance.

The app must use compile time coding techniques over runtime.

Application structure
Package.appxmanifest
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.

BackgroundTask.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 implement the following code segment according to the requirements.
How should you complete the code? To answer, select the appropriate code segment from each list in the answer area.
Hot Area:

Answer:

Explanation/Reference:
Explanation:
From scenario:
The app must use the microphone and webcam to support audio and video recording. In addition, the

app must support the use of the back and camera buttons, if present.
Box 1: IsTypePresent
Box 2: Windows.Phone.UI.Input.HardwareButtons
Here is an example. We'll assume our app wants to take advantage of a Mobile device's dedicated camera button. If I directly referenced the HardwareButtons object for the CameraPressed event while on a desktop without checking that HardwareButtons is present, my app would crash.
// Note: Cache the value instead of querying it more than once.
bool isHardwareButtonsAPIPresent
Windows.Foundation.Metadata.ApiInformation.IsTypePresent
("Windows.Phone.UI.Input.HardwareButtons");
Reference: https://blogs.windows.com/buildingapps/2015/09/15/dynamically-detecting-features-with-api- contracts-10-by-10/
NEW QUESTION NO: 19
Case Study
This is a case study. Case studies are not limited 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 developing an application named Timeline that presents information on a timeline. The app allows users to create items and enter details about the item. The app displays item names on a timeline. When users select an item name on the timeline, the app displays additional content about the item.
Business requirements
Timeline section
The timeline element of the app has the following layout requirements:
The timeline must adapt to the screen size and orientation of the device.

The timeline size must dynamically change if the window containing the content is resized by the user.

The user must be able to scroll through the timeline horizontally when the device is in landscape mode.

The user must be able to scroll through the timeline vertically when the device is in portrait mode.

The timeline must begin scrolling as soon as a scroll is detected. Scrolling must continue for a short

distance after the scroll input has stopped.
Scroll bars or panning controls must always be visible.

The following image depicts the layout for the timeline section of the app when the device is using landscape orientation:

The following image depicts the layout for the timeline section of the app when the device is using portrait orientation:

Content section
The content element of the app has the following layout requirements:
When a user selects an item on the timeline, the details for that item must display beneath or to the

right of the timeline.
The content section must display one page of information. The element must be a child of the selected

item in the timeline.
Users must be able to return to a previously selected event by pressing the Back button.

User interface
The user must be able to navigate the application using the interface below:

The Favorite button marks the current content to be displayed in a Favorites panel.

The Back and Forward buttons navigate through the app selection history. Both buttons must be

available on all devices.
The Notes button allows the user to manage notes about the current content.

The app must support touch, mouse, and stylus input.

The app layout must automatically adapt to the screen size and orientation.

Technical requirements
Layout
You identify the following layout requirements:
General
All user interface (UI) elements must continuously scale when a user resizes the window.

UI controls must be smaller and spaced closer together if there is a mouse or stylus available.

UI controls must be larger and spaced farther apart if the device supports touch and there is no mouse

or pointer available.
Timeline
The timeline must be displayed in a horizontal layout when the device is in a landscape orientation or

when the horizontal width is greater than the vertical height.
The timeline must be displayed in a vertical layout when the device is in a portrait orientation or when

the vertical height is greater than the horizontal width.
Each item in the past must be linked to the next item in the future.

Users must be able to scroll from past events to future events or from future events to past events.

The app must only allow one level of detail to be linked to each item in the timeline.

Optimization
You must optimize the app using the following guidelines:
You must minimize the time it takes to display content when an item on the timeline is selected.

The app must respect memory and resource constraints for all devices.

XAML coding style
All code and markup must conform to the following style guidelines:
Use resource dictionaries for styles that are used more than once.

Limit the use of nested panels.

Use built-in properties of existing panels instead of using separate style objects.

Use the navigation structure that best models the data without exceeding the requirements of the app.

Application structure
MainPage.xaml
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.)

Settings.xaml
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.)

ResourceDictionery.xaml
Relevant portions of the app files are shown below. (Line numbers in the code segments are included for reference only.)

MainPage.xaml.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 design the navigation for the timeline.
What navigation should you use?
A. hierarchy
B. peer
C. hub
D. master/details
Answer: A
Explanation/Reference:
Explanation:
From scenario:
Each item in the past must be linked to the next item in the future.

Users must be able to scroll from past events to future events or from future events to past events.

The app must only allow one level of detail to be linked to each item in the timeline.

Here we can use a hierarchy with each parent node having only one single child node.
Hierarchical structures are good for organizing complex content that spans lots of pages or when pages should be viewed in a particular order. The downside is that hierarchical pages introduce some navigation overhead: the deeper the structure, the more clicks it takes for users to get from page to page.
We recommend a hiearchical structure when:
You expect the user to traverse the pages in a specific order. Arrange the hierarchy to enforce that order.
There is a clear parent-child relationship between one of the pages and the other pages in the group.
There are more than 7 pages in the group.
When there are more than 7 pages in the group, it might be difficult for users to understand how the pages are unique or to understand their current location within the group. If you don't think that's an issue for your app, go ahead and make the pages peers
Reference: https://docs.microsoft.com/en-us/windows/uwp/layout/navigation-basics
NEW QUESTION NO: 20
Case Study
This is a case study. Case studies are not limited 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 developing a Universal Windows Platform (UWP) app for LitWare, Inc. that will assist video artists.
The app allows artists to create videos, share videos through other mobile apps, and upload the videos through LitWare, Inc.'s web services. What helps set LitWare Inc.'s app apart from competitors is their focus on speed and performance.
Business Requirements
Support many devices
Users may have phones, tablets, or laptops. The app must support all devices with a fluid layout that

grows off-screen and adapts to each device.
Record video
Users must be able to record videos and view them in their videos library.

The app must display information about the recorded video.

Users must be able to edit the upload queue in the app.

Branding
The app must have consistent branding throughout all views.

Upload videos
The app must allow deferral and scheduling of video uploads.

Users must be able to view the status of uploaded videos.

Any videos created with this app or shared with this app must be uploaded without user interaction.

Download video
The app must have the option to automatically download videos.

Users must be able to initiate downloading of videos.

Share video
The app must allow be allowed to receive videos from other apps.

Technical Requirements
Support multiple devices
The app must support the following:
Use horizontal layout for larger screens.

User vertical layout for smaller screens.

Use one layout control per view.

The app must be compatible with current and future XBOX apps that use C++.
Uploading and downloading
The app must use a background operations to upload and download videos.

Code reuse
The app must use a common pool of XAML resources and custom controls. All custom controls must

use a consistent theme throughout the app.
You must create code that can be reused in C++, C#, JavaScript, whenever possible.

The app must call the background service to avoid duplication of code.

Security
End users must be authenticated using OAuth.

Web services must be authenticated.

Users must have the option to use single sign-on.

Recording
The app must use the microphone and webcam to support audio and video recording. In addition, the

app must support the use of the back and camera buttons, if present.
Integration
Other apps must be able to share videos with this app through a Universal Windows Platform (UWP)

app service.
Architecture and coding style
The app must follow the Model-View-ViewModel (MVVM) pattern.

The app's user interface (UI) must be optimized for performance.

The app must use compile time coding techniques over runtime.

Application structure
Package.appxmanifest
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.

BackgroundTask.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.

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.
You must create a project for shared code.
Solution: You implement the shared code in a Shared Project.
Does this meet the goal?
A. Yes
B. No
Answer: B
Explanation/Reference:
Explanation:
The .NET Framework Portable Class Library project type in Visual Studio helps you build cross-platform apps and libraries for Microsoft platforms quickly and easily.
Portable class libraries can help you reduce the time and costs of developing and testing code. Use this project type to write and build portable .NET Framework assemblies, and then reference those assemblies from apps that target multiple platforms such as Windows and Windows Phone.
Even after you create a Portable Class Library project in Visual Studio and start developing it, you can change the target platforms. Visual Studio will compile your library with the new assemblies, which helps you identify the changes you need to make in your code.
From scenario:
The app must be compatible with current and future XBOX apps that use C++.
You must create code that can be reused in C++, C#, JavaScript, whenever possible.

The app must call the background service to avoid duplication of code.

IncorrectAnswers:
B: A Shared Project (Shared Folder) offers a simple organizational structure for storing all the shared code and assets, including app.xaml and other XAML files, code files, images, XML/JSON and .resw files, as well as templates such as Common and DataModel.
Reference:
https://docs.microsoft.com/en-us/dotnet/standard/cross-platform/cross-platform-development-with-the- portable-class-library
https://msdn.microsoft.com/en-us/magazine/dn802607.aspx