exam questions

Exam 70-532 All Questions

View all questions & answers for the 70-532 exam

Exam 70-532 topic 1 question 204 discussion

Actual exam question from Microsoft's 70-532
Question #: 204
Topic #: 1
[All 70-532 Questions]

Background -
You are a developer working for Fourth Coffee, a company that sells coffee and coffee accessories through an Azure-based website and retail locations. Features of the website include the ability to write product reviews, comment on reviews and find whether a particular product is available at a specific retail location.
Fourth Coffee licenses a product from Contoso, Ltd, that provides an Azure-based website for users in Japan. The website includes reviews and comments. All comments and product reviews are shared between Fourth Coffees website and the Japanese website.

Business Requirements -

Product Reviews -
User-submitted product reviews are provided by Contoso and are stored in the Japanese language in an HTML file format. When a review is submitted, you must remove specific keywords from the review and translate the review to the English language before you load the review onto the Fourth Coffee website. Translation processing and migration must occur with a minimum delay.
Product reviews can be loaded by third party websites, but only after they are processed and reviewed by Fourth Coffee employees. Reviews can be loaded up to one year after they are made public on the Fourth Coffee website.

Comments -
Users can post comments about product reviews. After a comment is posted, all other users who comment on that product receive a notification on their Android or Windows Phone device.

Technical Requirements -

Product Reviews -
The product reviews from Contoso are stored as HTML files in BLOB storage with the format "/reviews/<guid>html".
Fourth Coffee stores reviews in BLOB storage, with the format "/users/reviews/<guid>.md" where <guid> matches the file name of the review. After a Fourth
Coffee employee approves the review, a metadata property named Reviewed with the value true is set on the BLOB.
Some product reviews contain language-specific terms that require additional processing. The additional processing is done by a python script named cleanup.py.
The script relies on a data file names term.data that contains terms and their replacement values. All running instances of the script must use the same instance of the data file.

Security -
To simplify the security configuration, Contoso and Fourth Coffee agree to configure the website and services to allow for communication between the services without the traffic being visible on the public Internet.
To prevent third parties from harvesting review data, whenever the system returns public reviews, it records the IP address of the request and increments a count of the times that data is retrieved from a particular IP address. If an IP address makes more than 10 requests a minute, the client must be redirected to a static page named ratelimit.html.

Azure -
The Fourth Coffee website and related services that run on Azure are located in the US West region and are on a single virtual network named Main with the address 10.1.0.0/16.
The Contoso website and related services that run on Azure are located in the Japan West region and are on a single virtual network named CT with the address
10.2.0.0/24.

Comments -
Product review comments must be processed, at most, one time. When a comment is posted, it must be associated with the identity of the user who posted the comment. Product review comments are indexed by a web service that accepts the body of the comment in an HTTP POST. When comments are ported, they must be indexed for search within 15 minutes. Each comment must be indexed exactly once. All mobile device notifications are sent by using the Azure
Notification Hub service.

Application Structure -

CommentIndexer.cs -
Relevant portions of the CommentIndexer.cs file are shown below. Line numbers are included for reference only and include a two-character prefix that denotes the specific file to which the code belongs.


ReviewController.cs -
Relevant portions of the ReviewController.cs file are shown below. Line numbers are included for reference only and include a two-character prefix that denotes the specific file to which the code belongs.


TranslateJob.cs -
Relevant portions of the TranslateJob.cs file are shown below. Line numbers are included for reference only and include a two-character prefix that denotes the specific file to which the code belongs.


AccessRateFilter.cs -
Relevant portions of the AccessRateFilter.cs file are shown below. Line numbers are included for reference only and include a two-character prefix that denotes the specific file to which the code belongs.

You need to create a web job that performs post processing for reviews.
What should you do?

  • A. Rename the post-processing file to action.py, and add a file named settings.job that includes the following content: { "is_in_place": false)
  • B. Rename the post-processing file to run.exe, and add a file named settings.job that includes the following content: { "is_in_place": false)
  • C. Rename the post-processing file to run.py, and add a file named settings.job that includes the following content: { "is_in_place": true)
  • D. Rename the post-processing file to action.exe, and add a file named settings.job that includes the following content:
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Some product reviews contain language-specific terms that require additional processing. The additional processing is done by a python script named cleanup.py.
The script relies on a data file names term.data that contains terms and their replacement values. All running instances of the script must use the same instance of the data file.

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...