Salesforce Platform Developer I Flashcards
(123 cards)
What is the maximum number of custom fields that can be created for an object in Salesforce?
a) 100
b) 200
c) 500
d) 800
c) 500
b) DateTime
Which data type should be used to store a value that represents a date and time in Apex?
a) Date
b) DateTime
c) Time
d) Timestamp
b) DateTime
Which of the following is not a valid Salesforce Object relationship?
a) Master-Detail
b) Lookup
c) Parent-Child
d) External Lookup
d) External Lookup
What is the purpose of a trigger in Salesforce?
a) To provide a user interface for data entry
b) To automate business processes when specific events occur
c) To generate reports and dashboards
d) To perform calculations on custom fields
What is the purpose of a trigger in Salesforce?
a) To provide a user interface for data entry
b) To automate business processes when specific events occur
c) To generate reports and dashboards
d) To perform calculations on custom fields
What is the maximum batch size for a batch Apex job?
a) 100
b) 200
c) 500
d) 1000
Which keyword is used in Apex to prevent a variable from being modified?
a) final
b) const
c) static
d) private
Which keyword is used in Apex to prevent a variable from being modified?
a) final
b) const
c) static
d) private
In Salesforce, what is the purpose of the @AuraEnabled annotation?
a) To expose an Apex method to be invoked from Lightning components
b) To enable access to external web services
c) To make a field visible in the Lightning App Builder
d) To enable the use of Aura components in Visualforce pages
a) to expose an Apex method to be invoked from Lightning Components
b) 100What is the limit for the total number of SOQL queries issued per transaction in asynchronous Apex (batch and future)?
a) 50
b) 100
c) 150
d) 200
b) 100
When using the “with sharing” keyword in an Apex class, what happens to the record visibility?
a) All records are visible, regardless of the user’s permissions.
b) Record visibility is determined by the class’s sharing settings.
c) The “with sharing” keyword is not related to record visibility.
d) The record visibility is restricted to the owner of the class.
b) Record visibility is determined by the class’s sharing settings.
Which Salesforce feature allows you to create a custom user interface for your application using standard web technologies like HTML, CSS, and JavaScript?
a) Visualforce
b) Apex
c) Lightning Web Components
d) Workflow Rules
c) Lightning Web Components
In Salesforce, what is the purpose of the @AuraEnabled annotation?
a) To expose an Apex method to be invoked from Lightning components
b) To enable access to external web services
c) To make a field visible in the Lightning App Builder
d) To enable the use of Aura components in Visualforce pages
a) To expose an Apex method to be invoked from Lightning components
Which keyword is used in Apex to prevent a variable from being modified?
a) final
b) const
c) static
d) private
a) final
What is the purpose of a trigger in Salesforce?
a) To provide a user interface for data entry
b) To automate business processes when specific events occur
c) To generate reports and dashboards
d) To perform calculations on custom fields
b) To automate business processes when specific events occur
What is the maximum batch size for a batch Apex job?
a) 100
b) 200
c) 500
d) 1000
d) 1000
What is the maximum number of characters allowed for a custom field name in Salesforce?
a) 25 characters
b) 30 characters
c) 40 characters
d) 50 characters
Answer: d) 50 characters
In Salesforce, which relationship type allows you to associate a single record from one object with multiple records from another object?
a) Master-Detail Relationship
b) Lookup Relationship
c) Many-to-Many Relationship
d) External Lookup Relationship
Answer: c) Many-to-Many Relationship
Which data type should you use in Salesforce to store large text values that exceed 255 characters and do not require indexing or searching?
a) Text
b) Long Text Area
c) Text Area (Long)
d) Text Area (Rich)
Answer: c) Text Area (Long)
What does the “with sharing” keyword indicate in an Apex class definition?
a) It enforces sharing rules on queries for the object.
b) It allows access to private and protected class members outside the class.
c) It allows the class to perform operations without sharing record-level access.
d) It enables access to external systems with shared credentials.
Answer: a) It enforces sharing rules on queries for the object.
In a Salesforce trigger, when are “before” triggers fired in the execution sequence?
a) After the record is inserted or updated in the database.
b) Before the record is deleted from the database.
c) Before the record is inserted or updated in the database.
d) After the record is deleted from the database
Answer: c) Before the record is inserted or updated in the database.
Which interface must be implemented to make a class iterable using a for-each loop in Apex?
a) Iterable
b) Iterator
c) Traversable
d) Enumerable
Answer: a) Iterable
What is the maximum number of external objects that can be synchronized in Salesforce using the Lightning Connect feature?
a) 5
b) 10
c) 15
d) 20
Answer: d) 20
In Salesforce, what is the purpose of a sharing rule?
a) To define the sharing model for a custom object.
b) To grant access to records owned by a specific user.
c) To determine the level of access users have to records in a report.
d) To automate the process of assigning record ownership.
Answer: b) To grant access to records owned by a specific user.