Platform Dev 1 Flashcards

(226 cards)

1
Q

The fundamental technology that clouds use to share IT resources cost-efficiently and securely?

A

Multi-tenancy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Resources shared by Salesforce Tenants include:

A

Database and run time engine

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Database includes:

A

Data, Metadata, Indexes, Field Histories, Data Relationships

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Unique Identifier

A

helps Salesforce identify which data belongs to that org

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is related to a governor limit

A

Run Time Engine

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Exceeding a governor limit causes

A

Exceptions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What ensures each tenant can access and allocate a certain amount of resources

A

Run Time Engine

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Governor limits monitors

A

Memory, CPU usage, access to database, queries

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

MVC

A

Model, View, Controller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Model:

A

An identity representing data or activity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

View

A

Visualization of the sate of the model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Controller

A

A facility for changing the state of the model. The middle guy gives data to the view and if data gets changed goes back to the model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Example of a Model

A

Custom and Standard Objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Example of a View

A

Page layouts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Example of a Controller

A

Apex class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Customization Options

A

3 ways to attack a problem: Configure, Buy, Build

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Configure

A

Standard and custom solutions from the Setup Menu. (Declarative: Point and Click)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Characteristics of “Configure” model

A

No programming experience needed, integrated, updates automatically. SIMPLICITY and SPEED

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Buy

A

Download apps and components from AppExchange. (Install: Packages)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Characteristics of the “Buy” model

A

Proven and reviewed solutions build for SF. May include support and maintenance. ALREADY BUILT.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Build

A

Develop new solutions using programmatic tools (Programmatic: Code)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Characteristics of “Build” model

A

Create apps that can do almost anything you want. Custom code builds on point and click functionality. CONTROL AND FLEXIBILITY (hardest and most time consuming)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What are the declarative automation tools?

A

Process Builder, Workflow, Flow, Approvals

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Which automation tool does not support time based actions?

A

Approvals

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Which automation tools support User Interaction?
Flows and Approvals
26
Which automation tools support time based actions?
Process builder, Workflow, flow
27
Which automation tools DO NOT support User Interaction?
Process Builder, Workflow
28
Which automation tools can call Apex code?
Process Builder, Flow
29
Which automation tools DO NOT call Apex code?
Workflow, Approvals
30
Which automation tool can delete a record?
Flow
31
Which automation tools can NOT delete a record
Process Builder, Workflow, Approvals
32
Standard fields
Provide a predefined set, to capture common business information in Objects
33
Custom fields
Created to allow the capture of additional business information in Objects
34
Custom Relationships
Allows you to link objects together
35
Validation Rules
Created to verify that the data in one or more fields meets the specified criteria before a record is saved on an Object
36
Verifies that the data in one or more fields meets the specified criteria before a record is saved
Validation Rules
37
Page Layouts and Record Types
Define what a user sees when they view or edit a record in an object. Control what a user sees on the screen.
38
How is Security in Salesforce segmented?
Record, field level, object access
39
Master Detail Relationship: Sharing for the _____ record is inherited from the _____ record
Detail, Master
40
Master Detail Relationship: The detail record is _______- when the parent is deleted.
automatically deleted
41
Master Detail Relationship: The ______ is always required on the ______ record
parent reference, child
42
Master Detail Relationship: You can add a _______
lookup filter
43
Master Detail Relationship: You can choose whether or not the ______ can be _______
detail, reparanted
44
The detail side of a master-detail relationship must be a ______ object
custom
45
Most important difference between a master-detail and lookup relationship has to do with ________
the record access.
46
Master-Detail relationship: ____________ is inherited from the master record
Record Access
47
When an object becomes a detail in a master-detail relationship it...
loses the ability to independently control record access
48
Master Detail relationship: Record access is inherited from _______
master record
49
_______ CANNOT be the detail of a master-detail relationship
Standard object
50
Lookup Relationship: Child record and parent record have ________
independent sharing.
51
Lookup Relationship; The lookup field on the child record can be ______ or ______
optional, required
52
"What to do if the lookup record is deleted?"
* Clear the value of the field * Don't allow deletion of the lookup record that's part of a lookup relationship * Delete this record also.
53
Lookup relationship: Record access is not inherited from _____________
the parent
54
Lookup Relationship: You can add a __________
lookup filter
55
The _______ allows you to view and modify relationships
Schema Builder
56
You can load data through:
Data Import Wizard and API/Data Loader
57
Which tools use API Connect
* Data Loader * Data Loader.io * Any tool that uses API
58
Which tool can you use to prevent duplicates when importing new records with unique fields only?
Data Loader
59
Which tool can you use to prevent duplicates with external unique IDs?
Data Import Wizard
60
Which import tool allows you to choose whether or not to trigger workflow rules?
Data Import Wizard
61
Which import tool can not trigger workflow rules?
Data Loader
62
Which tool allows you to load up to 5,000,000 records
Data Loader
63
Which tool allows you to load objects such as Products and Opportunities?
Data Loader
64
Which objects can you load with Data Import Wizard
* Account (Name and Site) * Contact (Name or Email) * Lead (Name or Email) * Solution (Title/ID) * Campaign Member (ID) * Custom Objects (Name) * Salesforce ID * External Unique ID
65
Which import tool allows you to prevent workflows from firing?
Data Import Wizard
66
Which tool allows you to schedule imports?
Data Loader
67
Which tool allows you to use mappings for later use?
Data Loader
68
Which tool allows you to export or delete data
Data Loader
69
A formula field is a ______.
Field that derives its value from other fields, expressions or values
70
You can create a ________ on a child object to reference data from parent objects, up to 10 relationships away
cross-object formula
71
You can create a cross-object formula on a ______ to reference data from _______ , up to 10 relationships away
child object | parent objects
72
You can create a cross-object formula on a child object to reference data from parent objects, up to _______ away
10 relationships
73
A formula field allows you to __________
write an expression to calculate a value. (From Course to Course Delivery)
74
Formulas can reference _______
other formulas
75
You may not create ______ formulas
circular
76
Formulas have a maximum compile size of
3900 characters
77
Formulas are calculated when ______-
the record is accessed
78
Formula values are not _______
persisted in the database
79
Be careful when using in _______ clauses or report filters
SOQL WHERE
80
Be careful when using in SQL WHERE _______ or ________
Clauses | Report filters
81
Formulas are calculated in _________-
System Mode
82
When using formula fields, users DO NOT need access to the ___________ to see the result
individual formula elements (objects or fields)
83
User that is viewing formula field, _____ data for a field that they do not have access to.
may see
84
Roll-up Summary Field is a _______
Field on a master record that summarizes date or numerical data from detail records
85
Field on a master record that summarizes date or numerical data from detail records
Roll-up summary field
86
For a Roll-up Summary Field you start by _______
selecting the detail object to summarize
87
What are the roll-up summary field "types"?
COUNT SUM MIN MAX
88
Roll up summary field: Which records can be included in the calculation?
* All records | * Only records meeting certain criteria
89
What field type would you use to summarize date or number data?
Roll-up summary field
90
3 relationships for roll-up summary field?
* Accounts and Opportunities * Campaigns and Campaign Members * Opportunities to Product
91
Roll-up summary fields are calculated and saved when ________
the detail record is saved (assuming the value changes)
92
Rollup summary field values, when saved, are persisted in _______
the database
93
Rollup summary fields, when saved will ________
trigger any automation on the parent record
94
Rollup summary fields are calculated in _______
System Mode
95
User ____________ need access to the aggregated numerical or date fields of a Roll up summary
does NOT
96
Rollup summary field: If detail is updated and makes a change, then the master will be updated and ______________________
perform DML updates on the parent (firing the triggers).
97
Apex is
SF's cloud-based, object-oriented programming language.
98
Apex is specifically designed for ______________
customizing and extending apps on the SF platform
99
Apex is tailored for _____________
data access and manipulation
100
Apex works in conjunction with _____________
declarative features
101
Apex has access to ____________
your org's metadata
102
Apex is designed to work _____________ in a multi-tenant environment
effectively and efficiently
103
Apex is compiled and executed in _____________
salesforce servers
104
Apex allows you to _______________ data
read, write and delete
105
When you complete a DML update, your workflows will fire _____________ declarative features
in conjunction with
106
With Apex code you can access __________
custom objects and fields
107
The SF platform tracks dependencies between _____ used in Apex and _________
* sObjects | * declarative object definitions
108
Any metadata referred to in Apex _____________
cannot be changed or deleted
109
You cannot import anything with _________
Apex
110
Name the 11 primitive data types
* Blob * Bloolean * Date * Datetime * Decimal * Double * ID * Integer * Long * String * Time
111
Apex initializes all variables, regardless of type to, to the special value
null
112
Constants are declared using the __________ modifiers
static + final
113
Data is stored in _______ called _______
variables | Data Types
114
Primitives can contain a ____________
single value
115
Single values (primitives) can have ___________
methods
116
If you create a String, the default value will be _________
NULL
117
Apex has 3 possible values
* True * False * Null
118
List
An ordered, indexed collection of elements
119
An ordered, indexed collection of elements
List
120
Order of a List
0, 1, 2 etc
121
Set
An unordered collection of elements that does not contain duplicates
122
An unordered collection of elements that does not contain duplicates
Set
123
Map
Collection of key value pairs where each unique key maps to a single value
124
Collection of key value pairs where each unique key maps to a single value
Map
125
4 features of a Set
* Unordered * No duplicate values * Can add multiple (unique) values * Asks if it contains a particular value
126
Name the 8 Conditionals and Loops
* If * If-else * Switch * While * Do-while * For (traditional) * For (list or set iteration) * For (iterate over SOQL result)
127
What is SOQL
Salesforce Object Query Language
128
SOQL allows developers to _______
* Retrieve data | * Integrate data
129
SOQL allows developers to retrieve data, using user defined selection criteria, from __________ that reside in the SF database
sObjects
130
SOQL allows developers to integrate data retrieval into _________________ and ____________
Apex | APIs
131
SOQL only supports ____________
query statements
132
SOQL does not support __________
SELECT *
133
SOQL supports "________" which are written using ________ syntax
relationship queries | parent-child
134
SOQL supports __________ syntax to traverse object relationships
dot notation
135
SOQL is multi-tenant aware therefore it is _________
governed by limits
136
SOQL does not support ______ relationships like SQL
ad hoc
137
SOQL select syntax
* SELECT * FROM * WHERE
138
Which special character does SOQL not support
*
139
WHERE Clause operator for: Not equals
!=
140
WHERE Clause operator for: Greater than or equal to
>=
141
WHERE Clause operator for: LIKE
% | _
142
WHERE Clause operator for: IN / NOT IN
Inclusion/Exclusion
143
WHERE Clause operator for: INCLUDES / EXCLUDES
Inclusion and exclusion for multi-select picklists
144
WHERE Clause operator for: AND OR
Logical AND | Logical OR
145
WHERE Clause operator for: NOT
Negation
146
WHERE CLAUSE: Date values should not be enclosed in ________
Quotes | ""
147
WHERE CLAUSE:
YYYY-MM-DD
148
DateTime fields in Apex are coordinated in -______
Coordinated Universal Time (UTC) | Make sure to offset values to your local time zone.
149
Variable dates (date literal) formula
WHERE ClosedDate ! = LAST_N_DAYS:365
150
Boolean value for WHERE closed clause
WHERE IsClosed = TRUE
151
SOQL supports the binding operator in the _________ clauses
WHERE and LIMIT
152
Which variables can be bound in the WHERE clause
:myVar | Expressions, example (aStatus + accountName)
153
Which special character specifies binding?
:
154
If you cannot guarantee that a single sObject is returned EACH time the query is run, you should _____
assign the query to an sObject list
155
You can assign the results of a query to ________
a single sObject
156
SQL Queries in Apex related to an sObject require_________
you to ensure only one single sObject can be returned. No rows and/or more than 1 row requires assignment to an "sObject list"
157
How do you write an sObject List?
List | example: List
158
How are queries within an outer loop retrieve 403 cases?
First 200 cases in the first iteration of the outer loop Next 200 cases in the second iteration of outer loop Final 3 cases in third iteration of outer loop
159
How would a query outside of a loop retrieve 403 cases?
All at once, exceeding the heap size limit
160
A _____________ can help prevent you from exceeding the heap size limit when working with large volumes of data fetched by a query.
list iteration variable
161
A list iteration variable can help prevent you from exceeding the __________ when working with large volumes of data fetched by a query.
heap size limit
162
A list iteration variable can help prevent you from exceeding the heap size limit when working with large volumes of data fetched by a ________.
query
163
How to identify a Standard relationship Syntax? Example Account-Contact
AccountId
164
How to identify a Custom relationship Syntax?
FieldName_ _c
165
_____ relationships are created by Salesforce
Standard
166
_______ relationships are created by user
Custom
167
Which type of relationship would you use for a Parent (one) to Child (many) relationship?
Custom
168
In a custom relationship the Primary Key is the _______
Unique field Id
169
In a custom relationship the Primary Key will be the _______
Parent ID
170
In a Standard Relationship the Child key is called the _____ and the parent key is called _____
Foreign Key | Primary Key
171
In a Standard Relationship the Primary Key is followed with _____
Id
172
In a Standard Relationship the Primary Key will contain a string of ___________ characters
15-18
173
In a standard relationship the Child key is called
Foreign Key
174
In a standard relationship the Parent key is called the
Primary Key
175
You can access _______ of ancestors from a child using dot notation
5
176
Apex can go up _______ levels on Standard or Custom relationships
5
177
How many levels of nested queries are allowed in a SELECT clause?
1
178
Apex can go down _____ level(s) on Standard or Custom relationships?
1
179
Only one level of nested queries is allowed in a ________ clause
SELECT
180
Custom relationships can use _______ when referencing parent-to-child relationships (example:level down)
Plural names | Example: Course_Delivery to Course_Deliveries
181
SOSL stands for:
Salesforce Object Search Language (think of it like a search tool like Google)
182
SOSL ( Salesforce Object Search Language) allows developers to search ____________ in multiple objects simultaneously.
text, email, and phone fields
183
SOSL ( Salesforce Object Search Language) allows developers to search text, email, and phone fields in _________________.
multiple objects simultaneously
184
When referring to SOSL "ALL FIELDS" refers to:
text, email and phone fields ONLY!!!
185
How do you write a list of list object to hold search results? (Think SOSL)
List>
186
How would you write an SOSL statement to find the word Acme?
FIND 'Acme'
187
What is the ONLY return data type that SOSL provides?
a List of Lists of sObjects
188
You can execute SOSL searches inside:
APIs | Apex statements
189
Apex statements within SOSL can use which character
[ Brackets ]
190
What two Apex statements allow you to execute SOSL searches?
- Bracket notations [ ] | - Search.query ( )
191
SOQL or SOSL? You want to count the number of records meeting criteria?
SOQL
192
SOQL or SOSL? You want data from one object or multiple related objects
SOQL
193
SOQL or SOSL? You don't know which object or field the data resides in.
SOSL
194
SOQL or SOSL? You want to sort requests as part of the query?
SOQL and SOSL
195
SOQL or SOSL? You want data from number, date, or checkbox fields?
SOQL
196
______ allows you to persist the creation of, or modifications to, an instance of an sObject
DML
197
What does DML stand for?
Data Manipulation Language
198
DML allow you to persist the _____ of, or _______ to and instance of an sObject
creation | modifications
199
Retrieve into memory a Contact whose lead source is 'Trade Show' modify its LeadSource to 'Other.' Persist this modification to your org.
Update
200
Create a new instance of a Contact in memory. Persist this instance to your org.
Insert
201
Name the DML operations
``` Insert Delete Merge Undelete Update Upsert ```
202
Users were incorrectly entered as Contacts through the UI retrieve those contacts into memory, and use their Id values to remove them from the org.
Delete
203
Create new contacts in memory. Also modifying existing Contacts that were called into memory using SOQL. Issue a single command to persist new and modified Contacts to the org.
Upsert
204
Actually, the Contacts removed in Scenario 3 were created correctly. Use SOQL to retrieve those Contacts from the Recycle Bin into memory. Then, restore those Contact records.
Undelete
205
DML Command: Adds one or more records
Insert
206
DML Command: Removes one or more records
Delete
207
DML Command: Combines up to three records of the same type into one of the records, deleting the others, and re-parenting any related records
Merge
208
DML Command: Restores one or more records from the Recycle Bin
Undelete
209
DML Command: Modifies one or more existing record
Update
210
Creates new records and updates existing records (single command)
Upsert
211
Two ways of writing DML Commands
``` 1) Standalone DML Examples: insert Contacts Insert myAccount, Update myAccounts ``` ``` 2) Database.method(sObject List) Example: Database.insert (contacts), Database.Insert (myAccount), Database.update (myAccounts) ```
212
How to process Partial Processing
only when the AllorNone parameter is, FALSE
213
How can you make sure that a failed commit does not cause an exception
Partial processing Example: Database.insert (contacts, FALSE)
214
All Apex execution is bound by ___________ that the system enforces on operations to ensure resources are available for all tenants
governor limits
215
If you exceed a __________, your code will terminate with an unhandleable, and hence unrecoverable exception
governor limit
216
If you exceed a governor limit, your code will terminate with an__________, and hence _______ exception
unhandleable | unrecoverable
217
Governor limits are not _______
CATCHABLE
218
A _______ and ________ are implicitly fired by change to data
Trigger | Workflow
219
______ anonymous explicitly invokes _______
Execute | Method
220
Execute Anonymous ______ invokes Method
explicitly
221
A trigger and workflow are _____ fired by change to data
implicitly
222
Never put a DML operation where?
Within or outside a loop
223
Where should you put a DML operation?
in the middle of two loops
224
In Apex, a data type of one class can be cast to and from a data type of another class, but only if the _______________
classes are related through inheritance.
225
Name the Access Modifier keywords: (4)
Private (default) Public Protected Global
226
A class can contain 0+ (name 4)
member variables properties constructors methods