PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which method should you add to the TranscodeWorkerRole class?

Case Study: 3
Scenario 3
Background
You are developing a video transcoding service. This service is used by customers to upload video files,
convert video to other formats, and view the converted files. This service is used by customers all over the
world.
Business Requirements
The user-facing portion of the application is an ASP.NET MVC application. It provides an interface for
administrators to upload video and schedule transcoding. It also enables administrators and users to download
the transcoded videos.
When videos are uploaded, they are populated with metadata used to identify the video. The video metadata is
gathered by only one system when the video upload is complete. Customers require support for Microsoft
Internet Explorer 7 and later. The application contains a header that is visible on every page. If thelogged-on
user is an administrator, then the header will contain links to administrative functions. This information is read
from a cookie that is set on the server. The administrative links must not be present if an error condition is
present.
Technical Requirements
User Experience:
The front-end web application enables a user to view a list of videos. The main view of the application is the
web page that displays the list of videos. HTML elements other than the list of videos are changed with every
request requiring the page to reload.
Compatibility:
Some customers use browsers that do not support the HTTP DELETE verb. These browsers send a POST
request with an HTTP header of X-Delete when the intended action is to delete.
Transcoding:
The video transcoding occurs on a set of Windows Azure worker roles. The transcoding is performed by a
third-party command line tool named transcode.exe. When the tool is installed, an Environment variable
named transcode contains the path to the utility.
A variable named license contains the license key. The license for the transcoding utility requires that it be
unregistered when it is not in use. The transcoding utility requires a significant amount of resources. A
maximum of 10 instances of the utility can be running at any one time. If an instance of the role cannot process
an additional video, it must not prevent any other roles from processing that video.
The utility logs errors to a Logs directory underthe utilities path. A local Azure directory resource named perf
is used to capture performance data.
Development:
Developers must use Microsoft Remote Desktop Protocol (RDP) to view errors generated by the transcode.
exe utility.
An x509 certificate has been created and distributed to the developers for this purpose.
Developers must be able to use only RDP and not any other administrative functions.
Application Structure



********************************************************************

The transcode.exe utility activates its license online when it is installed. You need to ensure that the registration
of the transcode utility is handled as specified inits license. Which method should you add to the
TranscodeWorkerRole class?

Which code segment should you use as the body of the SendAsyncmethod in the DeleteHandler class?

Case Study: 3
Scenario 3
Background
You are developing a video transcoding service. This service is used by customers to upload video files,
convert video to other formats, and view the converted files. This service is used by customers all over the
world.
Business Requirements
The user-facing portion of the application is an ASP.NET MVC application. It provides an interface for
administrators to upload video and schedule transcoding. It also enables administrators and users to download
the transcoded videos.
When videos are uploaded, they are populated with metadata used to identify the video. The video metadata is
gathered by only one system when the video upload is complete. Customers require support for Microsoft
Internet Explorer 7 and later. The application contains a header that is visible on every page. If thelogged-on
user is an administrator, then the header will contain links to administrative functions. This information is read
from a cookie that is set on the server. The administrative links must not be present if an error condition is
present.
Technical Requirements
User Experience:
The front-end web application enables a user to view a list of videos. The main view of the application is the
web page that displays the list of videos. HTML elements other than the list of videos are changed with every
request requiring the page to reload.
Compatibility:
Some customers use browsers that do not support the HTTP DELETE verb. These browsers send a POST
request with an HTTP header of X-Delete when the intended action is to delete.
Transcoding:
The video transcoding occurs on a set of Windows Azure worker roles. The transcoding is performed by a
third-party command line tool named transcode.exe. When the tool is installed, an Environment variable
named transcode contains the path to the utility.
A variable named license contains the license key. The license for the transcoding utility requires that it be
unregistered when it is not in use. The transcoding utility requires a significant amount of resources. A
maximum of 10 instances of the utility can be running at any one time. If an instance of the role cannot process
an additional video, it must not prevent any other roles from processing that video.
The utility logs errors to a Logs directory underthe utilities path. A local Azure directory resource named perf
is used to capture performance data.
Development:
Developers must use Microsoft Remote Desktop Protocol (RDP) to view errors generated by the transcode.
exe utility.
An x509 certificate has been created and distributed to the developers for this purpose.
Developers must be able to use only RDP and not any other administrative functions.
Application Structure



********************************************************************

You need to ensure that all customers can delete videos regardless of their browser capability. Which code
segment should you use as the body of the SendAsyncmethod in the DeleteHandler class?

How should you implement the startup task?

Case Study: 3
Scenario 3
Background
You are developing a video transcoding service. This service is used by customers to upload video files,
convert video to other formats, and view the converted files. This service is used by customers all over the
world.
Business Requirements
The user-facing portion of the application is an ASP.NET MVC application. It provides an interface for
administrators to upload video and schedule transcoding. It also enables administrators and users to download
the transcoded videos.
When videos are uploaded, they are populated with metadata used to identify the video. The video metadata is
gathered by only one system when the video upload is complete. Customers require support for Microsoft
Internet Explorer 7 and later. The application contains a header that is visible on every page. If thelogged-on
user is an administrator, then the header will contain links to administrative functions. This information is read
from a cookie that is set on the server. The administrative links must not be present if an error condition is
present.
Technical Requirements
User Experience:
The front-end web application enables a user to view a list of videos. The main view of the application is the
web page that displays the list of videos. HTML elements other than the list of videos are changed with every
request requiring the page to reload.
Compatibility:
Some customers use browsers that do not support the HTTP DELETE verb. These browsers send a POST
request with an HTTP header of X-Delete when the intended action is to delete.
Transcoding:
The video transcoding occurs on a set of Windows Azure worker roles. The transcoding is performed by a
third-party command line tool named transcode.exe. When the tool is installed, an Environment variable
named transcode contains the path to the utility.
A variable named license contains the license key. The license for the transcoding utility requires that it be
unregistered when it is not in use. The transcoding utility requires a significant amount of resources. A
maximum of 10 instances of the utility can be running at any one time. If an instance of the role cannot process
an additional video, it must not prevent any other roles from processing that video.
The utility logs errors to a Logs directory underthe utilities path. A local Azure directory resource named perf
is used to capture performance data.
Development:
Developers must use Microsoft Remote Desktop Protocol (RDP) to view errors generated by the transcode.
exe utility.
An x509 certificate has been created and distributed to the developers for this purpose.
Developers must be able to use only RDP and not any other administrative functions.
Application Structure



********************************************************************

DRAG DROP
You need to ensure that the transcode.exe utility is installed before the worker role starts. How should you
implement the startup task? (To answer, drag the appropriate values to the correct element or attribute. Each
value 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 four code segments in sequence should you replace line AX23?

Scenario 1
Background
You are developing a Windows Store app by using C# and XAML. The app will allow users to share and rate
photos. The app will also provide information to users about photo competitions.
Application Structure
The app stores data by using a class that is derived from the DataStoreBase class.
The app coordinates content between users by makingcalls to a centralized RESTful web service.
The app has a reminder system that displays toast notifications when a photo competition is almost over.
The app gets the competition schedule data from theweb service.
The app displays a list of images that are available for viewing in a data-bound list box.
The image file list stores paths to the image files.
The app downloads new images from the web service on a regular basis.
Relevant portions of the app files are shown. (Linenumbers are included for reference only and include a two-character prefix that denotes the specific file to which they belong.)
Business Requirements
The app must allow users to do the following:
– Run the app on a variety of devices, including devices that have limited bandwidth connections.
– Share and synchronize high resolution photographsthat are greater than 1 MB in size.
– Rate each photo on a scale from 1 through 5.
Technical Requirements
The app must meet the following technical requirements:
– Retain state for each user and each device.
– Restore previously saved state each time the app is launched.
– Preserve user state and photo edits when switching between this app and other apps.
– When the app resumes after a period of suspension, refresh the user interface, tile images, and datawith
current information from the web service.
– Update the image list box as new images are addedto the image file list.
– Convert the image paths into images when binding the image file list to the list box.
The app must store cached images on the device only, and must display images or notifications on the app tile
to meet the following requirements:
– Regularly update the app tile with random images from the user’s collection displayed one at a time.
– When a photo is displayed on the tile, one of thefollowing badges must be displayed:
– If the photo has a user rating, the tile must display the average user rating as a badge.
– If the photo does not have a rating, the tile must display the Unavailable glyph as a badge.
– Update the app tile in real time when the app receives a notification.
– Display only the most recent notification on the app tile.
The app must display toast notifications to signal the end of a photo competition.
The toast notifications must meet the following requirements:
– Display toast notifications based on the schedulethat is received from the web service.
– Display toast notifications for as long as possible.
– Display toast notifications regardless of whetherthe app is running.
– When a user clicks a toast notification that indicates the end of the photo competition, the app must display
the details of the photo competition that triggeredthe toast notification.



*********************************************************************
You need to update the app tile images.
With which four code segments in sequence should you replace line AX23?

Which class should you use?

Background
You are developing a Windows Store app by using C# and XAML. The app will allow users to share and rate
photos. The app will also provide information to users about photo competitions.
Application Structure
The app stores data by using a class that is derived from the DataStoreBase class.
The app coordinates content between users by makingcalls to a centralized RESTful web service.
The app has a reminder system that displays toast notifications when a photo competition is almost over.
The app gets the competition schedule data from theweb service.
The app displays a list of images that are available for viewing in a data-bound list box.
The image file list stores paths to the image files.
The app downloads new images from the web service on a regular basis.
Relevant portions of the app files are shown. (Linenumbers are included for reference only and include a two-character prefix that denotes the specific file to which they belong.)
Business Requirements
The app must allow users to do the following:
– Run the app on a variety of devices, including devices that have limited bandwidth connections.
– Share and synchronize high resolution photographsthat are greater than 1 MB in size.
– Rate each photo on a scale from 1 through 5.
Technical Requirements
The app must meet the following technical requirements:
– Retain state for each user and each device.
– Restore previously saved state each time the app is launched.
– Preserve user state and photo edits when switching between this app and other apps.
– When the app resumes after a period of suspension, refresh the user interface, tile images, and datawith
current information from the web service.
– Update the image list box as new images are addedto the image file list.
– Convert the image paths into images when binding the image file list to the list box.
The app must store cached images on the device only, and must display images or notifications on the app tile
to meet the following requirements:
– Regularly update the app tile with random images from the user’s collection displayed one at a time.
– When a photo is displayed on the tile, one of thefollowing badges must be displayed:
– If the photo has a user rating, the tile must display the average user rating as a badge.
– If the photo does not have a rating, the tile must display the Unavailable glyph as a badge.
– Update the app tile in real time when the app receives a notification.
– Display only the most recent notification on the app tile.
The app must display toast notifications to signal the end of a photo competition.
The toast notifications must meet the following requirements:
– Display toast notifications based on the schedulethat is received from the web service.
– Display toast notifications for as long as possible.
– Display toast notifications regardless of whetherthe app is running.
– When a user clicks a toast notification that indicates the end of the photo competition, the app must display
the details of the photo competition that triggeredthe toast notification.



*********************************************************************
You need to identify the class to use as the data context for the image list box. Which class should you use?

Which method should you use?

Background
You are developing a Windows Store app by using C# and XAML. The app will allow users to share and rate
photos. The app will also provide information to users about photo competitions.
Application Structure
The app stores data by using a class that is derived from the DataStoreBase class.
The app coordinates content between users by makingcalls to a centralized RESTful web service.
The app has a reminder system that displays toast notifications when a photo competition is almost over.
The app gets the competition schedule data from theweb service.
The app displays a list of images that are available for viewing in a data-bound list box.
The image file list stores paths to the image files.
The app downloads new images from the web service on a regular basis.
Relevant portions of the app files are shown. (Linenumbers are included for reference only and include a two-character prefix that denotes the specific file to which they belong.)
Business Requirements
The app must allow users to do the following:
– Run the app on a variety of devices, including devices that have limited bandwidth connections.
– Share and synchronize high resolution photographsthat are greater than 1 MB in size.
– Rate each photo on a scale from 1 through 5.
Technical Requirements
The app must meet the following technical requirements:
– Retain state for each user and each device.
– Restore previously saved state each time the app is launched.
– Preserve user state and photo edits when switching between this app and other apps.
– When the app resumes after a period of suspension, refresh the user interface, tile images, and datawith
current information from the web service.
– Update the image list box as new images are addedto the image file list.
– Convert the image paths into images when binding the image file list to the list box.
The app must store cached images on the device only, and must display images or notifications on the app tile
to meet the following requirements:
– Regularly update the app tile with random images from the user’s collection displayed one at a time.
– When a photo is displayed on the tile, one of thefollowing badges must be displayed:
– If the photo has a user rating, the tile must display the average user rating as a badge.
– If the photo does not have a rating, the tile must display the Unavailable glyph as a badge.
– Update the app tile in real time when the app receives a notification.
– Display only the most recent notification on the app tile.
The app must display toast notifications to signal the end of a photo competition.
The toast notifications must meet the following requirements:
– Display toast notifications based on the schedulethat is received from the web service.
– Display toast notifications for as long as possible.
– Display toast notifications regardless of whetherthe app is running.
– When a user clicks a toast notification that indicates the end of the photo competition, the app must display
the details of the photo competition that triggeredthe toast notification.



*********************************************************************
You need to choose the appropriate data binding strategy for the image list box.
Which method should you use?

which ApplicationExecutionState enumeration should you configure the user interface state?

Background
You are developing a Windows Store app by using C# and XAML. The app will allow users to share and rate
photos. The app will also provide information to users about photo competitions.
Application Structure
The app stores data by using a class that is derived from the DataStoreBase class.
The app coordinates content between users by makingcalls to a centralized RESTful web service.
The app has a reminder system that displays toast notifications when a photo competition is almost over.
The app gets the competition schedule data from theweb service.
The app displays a list of images that are available for viewing in a data-bound list box.
The image file list stores paths to the image files.
The app downloads new images from the web service on a regular basis.
Relevant portions of the app files are shown. (Linenumbers are included for reference only and include a two-character prefix that denotes the specific file to which they belong.)
Business Requirements
The app must allow users to do the following:
– Run the app on a variety of devices, including devices that have limited bandwidth connections.
– Share and synchronize high resolution photographsthat are greater than 1 MB in size.
– Rate each photo on a scale from 1 through 5.
Technical Requirements
The app must meet the following technical requirements:
– Retain state for each user and each device.
– Restore previously saved state each time the app is launched.
– Preserve user state and photo edits when switching between this app and other apps.
– When the app resumes after a period of suspension, refresh the user interface, tile images, and datawith
current information from the web service.
– Update the image list box as new images are addedto the image file list.
– Convert the image paths into images when binding the image file list to the list box.
The app must store cached images on the device only, and must display images or notifications on the app tile
to meet the following requirements:
– Regularly update the app tile with random images from the user’s collection displayed one at a time.
– When a photo is displayed on the tile, one of thefollowing badges must be displayed:
– If the photo has a user rating, the tile must display the average user rating as a badge.
– If the photo does not have a rating, the tile must display the Unavailable glyph as a badge.
– Update the app tile in real time when the app receives a notification.
– Display only the most recent notification on the app tile.
The app must display toast notifications to signal the end of a photo competition.
The toast notifications must meet the following requirements:
– Display toast notifications based on the schedulethat is received from the web service.
– Display toast notifications for as long as possible.
– Display toast notifications regardless of whetherthe app is running.
– When a user clicks a toast notification that indicates the end of the photo competition, the app must display
the details of the photo competition that triggeredthe toast notification.



*********************************************************************
You need to ensure that launching the app displays the required information.
From which ApplicationExecutionState enumeration should you configure the user interface state?

Which method should you use?

Background
You are developing a Windows Store app by using C# and XAML. The app will allow users to share and rate
photos. The app will also provide information to users about photo competitions.
Application Structure
The app stores data by using a class that is derived from the DataStoreBase class.
The app coordinates content between users by makingcalls to a centralized RESTful web service.
The app has a reminder system that displays toast notifications when a photo competition is almost over.
The app gets the competition schedule data from theweb service.
The app displays a list of images that are available for viewing in a data-bound list box.
The image file list stores paths to the image files.
The app downloads new images from the web service on a regular basis.
Relevant portions of the app files are shown. (Linenumbers are included for reference only and include a two-character prefix that denotes the specific file to which they belong.)
Business Requirements
The app must allow users to do the following:
– Run the app on a variety of devices, including devices that have limited bandwidth connections.
– Share and synchronize high resolution photographsthat are greater than 1 MB in size.
– Rate each photo on a scale from 1 through 5.
Technical Requirements
The app must meet the following technical requirements:
– Retain state for each user and each device.
– Restore previously saved state each time the app is launched.
– Preserve user state and photo edits when switching between this app and other apps.
– When the app resumes after a period of suspension, refresh the user interface, tile images, and datawith
current information from the web service.
– Update the image list box as new images are addedto the image file list.
– Convert the image paths into images when binding the image file list to the list box.
The app must store cached images on the device only, and must display images or notifications on the app tile
to meet the following requirements:
– Regularly update the app tile with random images from the user’s collection displayed one at a time.
– When a photo is displayed on the tile, one of thefollowing badges must be displayed:
– If the photo has a user rating, the tile must display the average user rating as a badge.
– If the photo does not have a rating, the tile must display the Unavailable glyph as a badge.
– Update the app tile in real time when the app receives a notification.
– Display only the most recent notification on the app tile.
The app must display toast notifications to signal the end of a photo competition.
The toast notifications must meet the following requirements:
– Display toast notifications based on the schedulethat is received from the web service.
– Display toast notifications for as long as possible.
– Display toast notifications regardless of whetherthe app is running.
– When a user clicks a toast notification that indicates the end of the photo competition, the app must display
the details of the photo competition that triggeredthe toast notification.



*********************************************************************
You need to save cached image data. Which method should you use?

Which data storage methods should you use?

Background
You are developing a Windows Store app by using C# and XAML. The app will allow users to share and rate
photos. The app will also provide information to users about photo competitions.
Application Structure
The app stores data by using a class that is derived from the DataStoreBase class.
The app coordinates content between users by makingcalls to a centralized RESTful web service.
The app has a reminder system that displays toast notifications when a photo competition is almost over.
The app gets the competition schedule data from theweb service.
The app displays a list of images that are available for viewing in a data-bound list box.
The image file list stores paths to the image files.
The app downloads new images from the web service on a regular basis.
Relevant portions of the app files are shown. (Linenumbers are included for reference only and include a two-character prefix that denotes the specific file to which they belong.)
Business Requirements
The app must allow users to do the following:
– Run the app on a variety of devices, including devices that have limited bandwidth connections.
– Share and synchronize high resolution photographsthat are greater than 1 MB in size.
– Rate each photo on a scale from 1 through 5.
Technical Requirements
The app must meet the following technical requirements:
– Retain state for each user and each device.
– Restore previously saved state each time the app is launched.
– Preserve user state and photo edits when switching between this app and other apps.
– When the app resumes after a period of suspension, refresh the user interface, tile images, and datawith
current information from the web service.
– Update the image list box as new images are addedto the image file list.
– Convert the image paths into images when binding the image file list to the list box.
The app must store cached images on the device only, and must display images or notifications on the app tile
to meet the following requirements:
– Regularly update the app tile with random images from the user’s collection displayed one at a time.
– When a photo is displayed on the tile, one of thefollowing badges must be displayed:
– If the photo has a user rating, the tile must display the average user rating as a badge.
– If the photo does not have a rating, the tile must display the Unavailable glyph as a badge.
– Update the app tile in real time when the app receives a notification.
– Display only the most recent notification on the app tile.
The app must display toast notifications to signal the end of a photo competition.
The toast notifications must meet the following requirements:
– Display toast notifications based on the schedulethat is received from the web service.
– Display toast notifications for as long as possible.
– Display toast notifications regardless of whetherthe app is running.
– When a user clicks a toast notification that indicates the end of the photo competition, the app must display
the details of the photo competition that triggeredthe toast notification.



*********************************************************************
You need to access the remote image data according to the requirements.
Which data storage methods should you use?

Which actions should you perform?

Background
You are developing a Windows Store app by using C# and XAML. The app will allow users to share and rate
photos. The app will also provide information to users about photo competitions.
Application Structure
The app stores data by using a class that is derived from the DataStoreBase class.
The app coordinates content between users by makingcalls to a centralized RESTful web service.
The app has a reminder system that displays toast notifications when a photo competition is almost over.
The app gets the competition schedule data from theweb service.
The app displays a list of images that are available for viewing in a data-bound list box.
The image file list stores paths to the image files.
The app downloads new images from the web service on a regular basis.
Relevant portions of the app files are shown. (Linenumbers are included for reference only and include a two-character prefix that denotes the specific file to which they belong.)
Business Requirements
The app must allow users to do the following:
– Run the app on a variety of devices, including devices that have limited bandwidth connections.
– Share and synchronize high resolution photographsthat are greater than 1 MB in size.
– Rate each photo on a scale from 1 through 5.
Technical Requirements
The app must meet the following technical requirements:
– Retain state for each user and each device.
– Restore previously saved state each time the app is launched.
– Preserve user state and photo edits when switching between this app and other apps.
– When the app resumes after a period of suspension, refresh the user interface, tile images, and datawith
current information from the web service.
– Update the image list box as new images are addedto the image file list.
– Convert the image paths into images when binding the image file list to the list box.
The app must store cached images on the device only, and must display images or notifications on the app tile
to meet the following requirements:
– Regularly update the app tile with random images from the user’s collection displayed one at a time.
– When a photo is displayed on the tile, one of thefollowing badges must be displayed:
– If the photo has a user rating, the tile must display the average user rating as a badge.
– If the photo does not have a rating, the tile must display the Unavailable glyph as a badge.
– Update the app tile in real time when the app receives a notification.
– Display only the most recent notification on the app tile.
The app must display toast notifications to signal the end of a photo competition.
The toast notifications must meet the following requirements:
– Display toast notifications based on the schedulethat is received from the web service.
– Display toast notifications for as long as possible.
– Display toast notifications regardless of whetherthe app is running.
– When a user clicks a toast notification that indicates the end of the photo competition, the app must display
the details of the photo competition that triggeredthe toast notification.



*********************************************************************
You need to ensure that only the correct information is preserved when the user switches to another app.
Which actions should you perform? (Each correct answer presents part of the solution. Choose all that apply.