Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Salesforce logo

SalesforceCertified Sharing and Visibility Architect

Domain 3Objective 2

Given a Scenario, Describe How to Minimize Security Risks in Programmatic Customizations (Apex and Visualforce) Relative to Data Visibility. SHARING-AND-VISIBILITY-ARCHITECT Practice Questions (Page 1)

Part of the PROGRAMMATIC SHARING domain, which accounts for 25% of the SHARING-AND-VISIBILITY-ARCHITECT exam.

27questions here
6free pages
10concepts
25%of the exam

Questions 1–5

  1. 1expert · medium

    A developer is writing an Apex method that queries Accounts based on a user-provided ID. The method uses `Database.query('SELECT Id, Name FROM Account WHERE Id = \'' + inputId + '\'')`. What is the most secure way to rewrite this query?

    Select an answer first
  2. 2expert · medium

    A developer is writing a batch Apex class that processes all Account records to update a custom field. The class must run as a system administrator, but the batch job is scheduled and runs in the background. The org has private sharing on Accounts. What is the most appropriate sharing declaration for this class?

    Select an answer first
  3. 3foundation · easy

    Which Visualforce page practice is a common security risk?

    Select an answer first
  4. 4application · medium

    A Visualforce page uses a custom controller that is declared `without sharing`. The controller queries Opportunity records and displays them. The org uses private sharing on Opportunities. What is the security risk?

    Select an answer first
  5. 5application · medium

    A developer wrote the following Apex code in a controller extension: `String searchTerm = ApexPages.currentPage().getParameters().get('search'); List<Account> accounts = Database.query('SELECT Id, Name FROM Account WHERE Name LIKE \'%' + searchTerm + '%\'');` What is the most significant security risk in this code?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Salesforce. “SHARING-AND-VISIBILITY-ARCHITECT” is a trademark of its owner, used for identification only.