exam questions

Exam 70-487 All Questions

View all questions & answers for the 70-487 exam

Exam 70-487 topic 2 question 9 discussion

Actual exam question from Microsoft's 70-487
Question #: 9
Topic #: 2
[All 70-487 Questions]

Data provided by Consolidated Messenger is cached in the HttpContext.Cache object. You need to ensure that the cache is correctly updated when new data arrives.
What should you do?

  • A. Ensure that the EffectivePrivateBytesLimit value is greater than the size of the database file.
  • B. Change the sliding expiration of the cache item to 12 hours.
  • C. Use the SqlCacheDependency type configured with a connection string to the database file.
  • D. Use the CacheDependency type configured to monitor the SFTP target folder.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
tokyohanuman
Highly Voted 5 years, 3 months ago
as the data source is file, not a sql server; anser is D?
upvoted 13 times
klassanov
4 years, 10 months ago
The dependency is on a folder where the backup is dropped (even if not indicated explicitly, it is logical). When something in the folder changes, i.e. a new db backup is dropped, the cache is invalidated. I also believe that the answer is D.
upvoted 1 times
...
Dreamchaser1980
4 years, 8 months ago
Yes I also think it answer D, because CacheDependency will monitor a single file, folder or an array of files and folders for changes. The content of the file is less relevant, because the file is read by your own custom code. string fileContent = Cache["AccessFile"] as string; if (string.IsNullOrEmpty(fileContent)) { //Method that reads Access DB, could return string or Dataset fileContent = ReadAccessDB(pathToAccessDBFile); Cache.Insert("AccessFile", fileContent, new CacheDependency(Server.MapPath(pathToAccessDBFile))); }
upvoted 2 times
...
...
sti88
Most Recent 4 years, 7 months ago
I think D is correct.
upvoted 1 times
...
zimzimzimma
4 years, 8 months ago
D is correct.
upvoted 1 times
...
E123456789
4 years, 8 months ago
Answer should be C I believe. The question says "The service retrieves flight information from a number of sources and combines them into a single data set. The consolidated flight information is stored in a SQL Server database. " ... so the data received from various sources, in various formats (Access etc.) ends up consolidated in a SQL database by the service we are building. When new data is written to the database the SqlCacheDpendency can update the cache.
upvoted 1 times
...
viniventura
5 years, 1 month ago
SqlCacheDependency is not suportted by Microsoft Access, so answer C is not an option: "Cache dependency is not supported by Microsoft Access, and any access to the SqlCacheDependency property results in a NotSupportedException exception." Ref: https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.webcontrols.accessdatasource.sqlcachedependency?view=netframework-4.8 https://docs.microsoft.com/pt-br/dotnet/api/system.web.ui.webcontrols.accessdatasource.sqlcachedependency?view=netframework-4.8
upvoted 3 times
...
C0unt23r0
5 years, 5 months ago
Don't think that D is correct. Only one Provider uses SFTP to provide data every 12 Hours and that is only one part of the Consolidated data wich is stored in and and retrieved from the database. So i would go with C by using SQLCacheDependency.
upvoted 2 times
Sanfour
4 years, 11 months ago
Consolidated Messenger not Consolidated data . i think D is correct
upvoted 2 times
...
...
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 ...