Sitecore 10 NET Developer Free Sample Questions

20 free sample questions223 in the full practice test

Try simulator

Sitecore-10-NET-Developer Sample Questions

  1. Question 1

    A development team is implementing a multi-tenant Sitecore solution following Helix principles. They have a 'Foundation.Common' module providing a base page template and a 'Feature.News' module with a 'News Article' template inheriting from the base page. The 'Project.MainWebsite' layer uses these templates. During a code review, it's noted that the 'Feature.News' module directly references a rendering from a 'Feature.SocialSharing' module to display share buttons. According to Helix dependency rules, what is the most appropriate way to resolve this architectural violation?

    Answer and explanation

    Correct answer: B

    This is the correct Helix approach. Feature modules should not depend on each other directly. By using a placeholder, the 'Feature.News' module remains independent. The 'Project' layer, which is allowed to reference multiple Feature modules, is responsible for orchestrating how features are combined on a page. This maintains loose coupling and adheres to the Stable Dependencies Principle.

  2. Question 2

    A Sitecore administrator is attempting to configure a new content delivery (CD) server role. After deploying the files and attempting to start the site, they observe that the application pool fails to start, and logs indicate a configuration error related to a custom pipeline processor. The administrator needs to ensure this processor only loads on the content management (CM) server. What is the correct XML syntax to use in a patch file to achieve this?

    Answer and explanation

    Correct answer: B

    The correct syntax for restricting a configuration element to a specific server role in Sitecore 10 is by using the role:require attribute. The value 'ContentManagement' is the predefined role name for CM servers. This ensures that the configuration factory only includes this processor element when the server's role is defined as ContentManagement.

  3. Question 3

    Multiple answers

    A global company has a website with content in English (en), German (de-DE), and Swiss German (de-CH). The business rule is that if a field in a Swiss German item version is empty, it should display the value from the German version. If the German version is also empty, it should not fall back to English. Which configuration settings are required to implement this specific language fallback chain? (Select TWO)

    Answer and explanation

    Correct answers: A, C

  4. Question 4

    A developer is creating a set of templates for blog authors. They've created a base template called _ContentBase with fields for 'Title' and 'Summary'. They want to create a new template, BlogPost, which inherits from _ContentBase. To improve the authoring experience, whenever a new BlogPost item is created, the 'Title' field should be pre-populated with the name of the item. How should this be accomplished using Sitecore best practices?

    Answer and explanation

    Correct answer: B

    Sitecore Standard Values support replacement tokens. The $name token is specifically designed to be replaced with the name of the item being created. By setting this token on the 'Title' field of the BlogPost template's Standard Values, any new item created from this template will automatically have its title populated with its name, providing a sensible default for content authors.

  5. Question 5

    A developer needs to retrieve all child items of the /sitecore/content/Home item that are based on the 'ProductPage' template. For performance reasons, the query should avoid returning all children and then filtering in memory. Which Sitecore API code snippet performs this query most efficiently?

    Answer and explanation

    Correct answer: C

    Sitecore Fast Query is a highly optimized API for item retrieval that bypasses many of the events and abstractions of the standard Item API. The query fast:/sitecore/content/Home/*[@@templatename='ProductPage'] is the most direct and performant way to get immediate children of a specific template. The * selects immediate children, and the predicate [@@templatename='ProductPage'] filters them at the database level, which is much more efficient than retrieving all children and filtering in the application's memory.

  6. Question 6

    A website's search functionality is returning inaccurate results for product specifications stored in a 'Rich Text' field. The field contains HTML markup, and searches for terms inside tags (e.g., 'strong') are matching, which is undesirable. To fix this, the search index needs to store a plain-text version of the content. What is the most appropriate way to configure this in Sitecore's content search?

    Answer and explanation

    Correct answer: C

    Sitecore provides a built-in HtmlStripFieldReader specifically for this purpose. By mapping the rich text field type to this reader in the index configuration's , you instruct the indexing process to automatically strip all HTML tags before the content is sent to the search provider (like Solr). This is the standard, most efficient way to handle this common requirement without writing custom code.

  7. Question 7

    A developer has created a Controller Rendering for a 'Call to Action' component. The component needs a data source item to provide the button text and link. To ensure content authors can easily select a valid data source, the developer wants to restrict the selection to items based on the 'CallToActionData' template, located under /sitecore/content/Global/CTAs. Which field on the rendering item should be configured to enable this?

    Answer and explanation

    Correct answer: B

    The 'Datasource Location' field on a rendering item is used to specify the root item(s) from which content authors can select a data source. It supports Sitecore queries. Combining this with the 'Datasource Template' field (which specifies the required template) provides a robust and user-friendly authoring experience in the Experience Editor.

  8. Question 8

    A marketing team wants to display a promotional banner to visitors who arrive at the website from a specific marketing campaign. The campaign is tagged with the UTM code utm_campaign=summer_sale. Using the Rule Set Editor, which condition should be used to identify these visitors?

    Answer and explanation

    Correct answer: B

    Sitecore automatically processes UTM parameters and triggers internal campaign events. The correct way to personalize based on a campaign is to use the condition that checks if a specific campaign was triggered during the current interaction. This rule directly evaluates the campaign data captured by Sitecore's analytics.

  9. Question 9

    True or False: In a standard Sitecore 10 installation, patch files located in the App_Config/Include/Project folder will always be loaded before files in the App_Config/Include/Feature folder.

    Answer and explanation

    Correct answer: B

    False. By default, Sitecore loads configuration files alphabetically by folder and then by file name. However, the Layers.config file explicitly defines the load order for Helix-style folders, ensuring that Foundation, Feature, and then Project layers are loaded in that sequence. Therefore, files in the Feature folder are loaded before files in the Project folder.

  10. Question 10

    A developer is using the Sitecore CLI to serialize content items for source control. After running dotnet sitecore ser pull, they notice that a newly created template is not being serialized. The module.json file contains the following rule for templates:

    {
    "namespace": "MyProject.Templates",
    "path": "/sitecore/templates/Project/MyProject",
    "scope": "ItemAndDescendants",
    "allowedPushOperations": "CreateUpdateAndDelete"
    }
    

    The new template was created at /sitecore/templates/Feature/MyFeature. What is the reason for this issue?

    Answer and explanation

    Correct answer: B

    Sitecore Content Serialization relies on rules defined in module.json files to determine which items to include. The rule shown only covers items under /sitecore/templates/Project/MyProject. Since the new template was created in /sitecore/templates/Feature/MyFeature, it falls outside the specified path and is therefore ignored by the serialization process. A new rule would need to be added for the Feature folder.

Register free to unlock 10 more sample questions

Lifetime One

Own this practice test forever.

$79.99
$75.99
one-time
  • Full access to 223 questions
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • Brainy AI Assistant
  • Lifetime updates

Two

Any 2 exams per month.

$20.00/exam
$39.99
/month
  • 2 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 1,000 Brainy AI Credits
  • Cancel anytime

Premium Twelve

Any 12 exams over 3 months.

$15.00/exam
$179.99
/3 months
  • 4 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 15,000 Brainy AI Credits
  • Dedicated support
  • Friend seat included — full access

Trusted by professionals at

NvidiaSupabaseGitHubOpenAITursoClerkClaude AIAmazon