sf test dump dev 1 part 2 Flashcards
- In which of the following environments can Developers write code? Select all that apply.
Developer edition production org
Enterprise edition production org
Enterprise edition Sandbox org
Professional edition Sandbox org
Developer edition production org
Enterprise edition Sandbox org
- How can a developer avoid exceeding Governor Limits when using an Apex Trigger? Select all that apply.
By using a helper class that can be invoked from multiple triggers
By using Maps to hold data from query results
By using the Database class to handle DML transactions
By performing DML transactions on lists of Objects
By using Maps to hold data from query results
By performing DML transactions on lists of Objects
7. Visualforce components are similar to which type of tag library containing tag namespace prefixes? ASP tag library JSP tag library ASP log file DL JSP log file
JSP tag library
- On a Visualforce page with a custom controller, by using an ID parameter that is passed in the URL, how should a developer retrieve a record? Select all that apply.
Use the constructor method for the controller
Use the $Action.View method in the Visualforce page
Use the tag in the Visualforce page
Create a new PageReference object with the Id
Use the constructor method for the controller
Create a new PageReference object with the Id
- The Review__c object has a lookup relationship with the Job_Application__c object. The Job_Application__c object has a master-detail relationship with the Position__c object. The relationship field names are based on the auto-populated defaults. What is the recommended way to display field data from the related Review__c records on a Visualforce page for a single Position__c record?
Utilize the Standard Controller for Position__c and expression syntax in the Page to display related Review__c data through the Job_Application__c object
Utilize the Standard Controller for Position__c and cross-object Formula Fields on the Job_Application__c object to display Review__c data
Utilize the Standard Controller for Position__c and cross-object Formula Fields on the Review__c object to display Review__c data
Utilize the Standard Controller for Position__c and a Controller Extension to query for Review__c data
Utilize the Standard Controller for Position__c and a Controller Extension to query for Review__c data
- Which of these statements are true about the “view state” inspector? Select all that apply.
Shows components contributing to view state
Must be enabled on a user profile
Is displayed only when using
Is controlled by the Role Hierarchy
Shows components contributing to view state
Must be enabled on a user profile
Is displayed only when using
15. What type of a programming language is Apex? Select all that apply. Object-oriented On-Demand Water-Fall Declarative-Specific
Object-oriented
On-Demand
- When would a developer use a custom controller instead of a controller extension? Select all that apply.
When a Visualforce page needs to replace the functionality of a standard controller
When a Visualforce page needs to add new actions to a standard controller
When a Visualforce page does not reference a single primary object
When a Visualforce page should not enforce permissions or field-level security
When a Visualforce page needs to replace the functionality of a standard controller
When a Visualforce page does not reference a single primary object
- A person who does not have “View Encrypted Data” permission will see the field with masked characters. Assuming the field is in the page layout, what happens if he tries to edit the value by clicking on the Edit button?
The field will not appear in the edit layout.
The user will see only masked characters, but can enter a new value and save it.
It will throw an error on changing that field and saving it.
He can see the original value and he can save the record.
The user will see only masked characters, but can enter a new value and save it.
- A Position is a custom object containing details of each position. A Candidate contains the details of each candidate such as skills. When users view the Position records, they should also be able to see all those candidates who match the skills required for the post. A position record need not have details of candidates and a candidate record can also be kept blank. A position can be applied by multiple candidates, while a candidate can also apply for multiple positions. What can be done to achieve this?
Create a master-child relationship between them
Create a junction object to store both the values
Create a lookup relationship of candidate on position
Create a Visualforce page
Create a junction object to store both the values
- A custom object has an organization-wide default setting of “Private” with Grant Access Using Hierarchies turned off. Which users can select the Sharing button on records for that object?
Only the record owner and a user with the System Administrator profile
The record owner, a user with the System Administrator profile, and a user shared to the record
The record owner, a user shared to the record, any user above the record owner in the role hierarchy, and a user with the System Administrator profile
The record owner, a user above the record owner in the role hierarchy, and a user with the System
The record owner, a user with the System Administrator profile, and a user shared to the record
- Universal Containers tracks reviews as a custom object in a recruiting application. The interview score is tracked on each review record and should have a numerical value, so that hiring managers can calculate scores. The scores should be restricted to integer values 1 through 5 and displayed as a set of radio buttons. How can a developer meet this requirement?
Create the Interview score field as a picklist, displayed as a radio button on page layout
Create a formula field that displays the interview score as a set of radio buttons
Create the interview score field with a data type of radio button
Create a Visualforce page to display the interview score as a set of radio buttons
Create a Visualforce page to display the interview score as a set of radio buttons
- Where can custom roll-up summary fields be created using Standard Object relationships? Select all that apply.
On Opportunity using Opportunity Product records
On Account using Case records
On Campaign using Campaign Member records
On Account using Opportunity records
On Opportunity using Opportunity Product records
On Campaign using Campaign Member records
On Account using Opportunity records
- A Developer wants to create a custom object to track Customer Invoices. How should Invoices and Accounts be related to ensure that all Invoices are visible to everyone with access to an Account?
The Account should have a Lookup relationship to the Invoice.
The Account should have a Master-Detail relationship to the Invoice.
The Invoice should have a Master-Detail relationship to the Account.
The Invoice should have a Lookup relationship to the Account.
The Invoice should have a Master-Detail relationship to the Account.
- A candidate may apply to multiple jobs at the company Universal Containers by submitting a single application per job posting. Once an application is submitted for a job posting, that application cannot be modified to be resubmitted for another job position. The candidate can apply for a different job posting only by submitting a new application. What can an administrator do to associate an application with each job posting in the schema for the organization?
Create a master-detail relationship in the Application custom object to the Job Postings custom object
Create a master-detail relationship in the Job Postings custom object to the Applications customer object
Create a lookup relationship on both objects to a junction object called Job Posting Applications
Create a lookup relationship in the Applications customer object to the Job Postings custom object
Create a master-detail relationship in the Application custom object to the Job Postings custom object