70-332 · Question #81
You need to resolve the SharePoint database error. What should you do?
The correct answer is D. Add the managed path for the site collection to the web application. SharePoint requires managed paths to be defined on the web application so it can recognize and serve site collection URLs stored in attached content databases.
Question
Options
- AAdd a new request URL mapping to the web application.
- BRemove the orphaned objects from the database.
- CSet the databases to read-write.
- DAdd the managed path for the site collection to the web application.
How the community answered
(27 responses)- A4% (1)
- B4% (1)
- C11% (3)
- D81% (22)
Why each option
SharePoint requires managed paths to be defined on the web application so it can recognize and serve site collection URLs stored in attached content databases.
Adding a request URL mapping changes how IIS routes requests to web applications but does not resolve the missing managed path that prevents SharePoint from recognizing the site collection URLs in the database.
Removing orphaned objects addresses stale references left behind after deletions but does not resolve the structural issue of a missing managed path that causes URL routing failures.
Setting databases to read-write changes the access mode of the database but does not address the managed path configuration needed for SharePoint to serve the site collections contained in the database.
When a content database is attached or restored, SharePoint must have a matching managed path configured on the web application for each site collection URL pattern such as /sites/ or /personal/. If the managed path does not exist, SharePoint cannot resolve the site collection URL, resulting in a database error. Adding the correct managed path allows the web application to correctly route requests to the site collections in that database.
Concept tested: SharePoint managed paths and site collection URL resolution
Source: https://learn.microsoft.com/en-us/sharepoint/administration/define-managed-paths
Topics
Community Discussion
No community discussion yet for this question.