Study for the Salesforce Platform Developer Exam. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Practice this question and more.


An organization needs to create a public website that displays data from Salesforce.com organization without user registration. What is the best solution?

  1. Apex

  2. Triggers

  3. Salesforce Knowledge base

  4. Force.com sites

The correct answer is: Force.com sites

Creating a public website that displays data from a Salesforce organization requires a solution that allows external users to access Salesforce data without needing to register or log in. Force.com Sites is specifically designed for this purpose. It allows the development of public-facing websites that can seamlessly access Salesforce data while managing user permissions effectively. When using Force.com Sites, organizations can create custom web pages that consume Salesforce data through Visualforce or Lightning components. This offers a flexible way to present the necessary information to users without requiring authentication. It allows businesses to expose specific objects, data, or even applications to the public, ensuring that data remains available to end users while still being governed by Salesforce’s security model. In contrast, Apex is primarily for backend logic and processing and is not designed to serve public web content directly. Triggers are automated pieces of code that run on the server in response to database events and do not provide a means to create publicly accessible web pages. The Salesforce Knowledge base is designed for article and FAQ publishing but requires authentication, making it unsuitable for a public-facing website. In summary, Force.com Sites is the optimal solution for creating a public website that displays data from Salesforce without user registration, providing the necessary capabilities for developing external-facing applications in a secure manner.