EXAM COMPLETE ACCURATE EXAM QUESTIONS
WITH DETAILED VERIFIED ANSWERS (100% CORRECT
ANSWERS) /ALREADY GRADED A+
What is sharing? - ANSW Enables record-level access
control for all custom objects, as well as many standard objects
What are the 3 types of sharing? - ANSW - Force.com
Managed Sharing
- User Managed Sharing (Manual Sharing)
- Apex Managed Sharing
Define Force.com Managed Sharing. - ANSW Involves
sharing access granted by Force.com based on record ownership,
the role hierarchy, and sharing rules
Define User Managed Sharing. - ANSW Allows the record
owner or any user with Full Access to a record to share the record
with a user or group of users
Define Apex Managed Sharing. - ANSW Provides
developers with the ability to support an application's particular
sharing requirements programmatically through Apex or the SOAP
API
,What field on a custom object specifies the type of sharing used
for a record? - ANSW Reason
Maximum number of batch Apex job start method concurrent
executions? - ANSW 1
Batch jobs that haven't started yet remain in the queue until
they're started. If more than one job is running, this limit doesn't
cause any batch job to fail and execute methods of batch Apex
jobs still run in parallel.
What apex component do you use to display validation errors
when using a standard controller? - ANSW Display Form
Errors and Messages
Use <apex:pageMessages> to display any form handling errors or
messages.
Your page should provide useful feedback when things go wrong,
such as when a required field is missing, or when a field value
fails validation. The standard controller actually handles all of
that for you. All you need to do is tell it where to put the messages
on the page (as under a pageBlock where the input fields are
located).
How would you conditionally render an apex:inputText
component based on a value of a apex:selectList? -
✔✔ANSW 1) Place the apex:inputText box under a component
such as a pageBlock. apex:inputText components will not
reRender if referenced directly;
, 2) Under selectList component add an actionFunction with the
onChange event and set the reRender attribute to the pageBlock
component by it's id attribute. In the controller you will need null
PageReference method to set as the action as well.
3) In the apex:inputText component set the rendered attribute to
the selectList value that you want to check for
(rendered="{!selectListValue == 'valueToCheckFor'}"
How do you use a certificate with HTTP requests? -
ANSW 1) Generate a certificate (Setup>Security
Controls>Certificate and Key Management). Note: Once you save
a Salesforce certificate, you can't change the key size.
2) In your Apex, use the setClientCertificateName method of the
HttpRequest class. The value used for the argument for this
method must match the Unique Name of the certificate that was
generated.
HttpRequest req = new HttpRequest();
req.setClientCertificateName('DocSampleCert');
How do you use a certificate with SOAP Services? -
ANSW 1) Receive the WSDL for the Web service from the
third party or generate it from the application you want to connect
to.
2) Generate Apex classes from the WSDL for the Web service. See
SOAP Services: Defining a Class from a WSDL Document.
3) The generated Apex classes include a stub for calling the third-
party Web service represented by the WSDL document. Edit the
Apex classes, and assign a value to a clientCertName_x variable