Dev 1 Study Set

¡Supera tus tareas y exámenes ahora con Quizwiz!

What is a valid way of loading external JavaScript files into a Visualforce page? (2) Using an (apex:includeScript)* tag. \> Using an (apex:define)* tag. Using a (link)* tag. Using a (script)* tag.

1) Using an (apex:includeScript)* tag. \> 2) Using a (script)* tag

How many accounts are created in the Salesforce organization ? List<Account> fList = new List <Account> (); For(integer i= 1; I <= 200; i++) { fList.add(new Account ( Name = 'Universal Account ' + i)); } Insert fList; List <Account> sList = new List<Account>(); For (integer I = 201; I <= 20000; i ++) { sList.add(new Account (Name = 'Universal Account ' + i)); } Insert sList;

0

The developer tests the code using Apex Data Loader and successfully loads 10 Orders. Then, the developer loads 150 Orders. How many Orders are successfully loaded when the developer attempts to load the 150 Orders? List<Account> customers = new List<Account>(); For (Order__c o: trigger.new) { Account a = [SELECT Id, Is_Customer__c FROM Account WHERE Id = :o.Customer__c]; a.Is_Customer__c = true; customers.add(a); } Database.update(customers, false);

0

A developer writes a SOQL query to find child records for a specific parent. How many levels can be returned in a single query? A. 1 B. 7 C. 5 D. 3

1

The initial value for a number field on a record is 1. A user updated the value of the number field to 10. This action invokes a workflow field update, which changes the value of the number field to 11. After the workflow field update, an update trigger fires. What is the value of the number field of the object that is obtained from Trigger.old? A) Null B) 11 C) 1 D) 10

1

A platform developer wants to reference an image included in the salesforce lightning design system from a visualforce page. Which 2 references should be included in the page markup? A. $Asset B. < apex:slds > C. $SLDS D. < force:slds >

1) $Asset 2) <apex:slds>

In the Lightning Component framework, which resource can be used to fire events? (2) a. Third-Party Javascript code b. Visualforce controller actions c. Third-party web service code d. Javascript controller actions

1) 3rd-Party Javascript Code 2) Javascript controller actions

A developer creates a method in an Apex class and needs to ensure that errors are handled properly. What would the developer use? (3) A) ApexPages.addErrorMessage() B) A custom exception C) .addError() D) Database.handleException() E) A try/catch construct

1) A custom exception 2) .addError() 3) A try/catch construct

Which data type or collection of data types can SOQL statements populate or evaluate to? (3) A single sObject An integer A string A list of sObjects A Boolean

1) A single sObject 2) An integer 3) A list of sObjects

Which user can edit a record after it has been locked for approval? (2) A. Any user with a higher role in the hierarchy B. A user who is assigned as the current approver C. Any user who approved the record previously D. An administrator

1) A user who is assigned as the current approver 2) An Administrator

What are two valid scenarios for automatic recompilation of Apex classes? A. All Apex classes are automatically recompiled when Apex transactions are run. B. All Apex classes are automatically recompiled before a package is installed. C. Specific Apex classes are automatically recompiled before completing a metadata deploy. D. All Apex classes are automatically recompiled before completing a metadata deploy.

1) All Apex classes are automatically recompiled before a package is installed 2) All Apex classes automatically recompiled before completing a metadata deploy

What is true about how Salesforce deals with cross-site scripting (XSS) attacks? (2) A. All standard Visualforce components, which start with <apex>, have anti-XSS filters in place. B. Custom JavaScript is protected from XSS. C. Salesforce has implemented filters that screen out harmful characters in most output methods as one of the anti-XSS defenses. D. Escape should be enabled for Visualforce Tags e.g. <apex:outputText escape="true" value="{!$CurrentPage.parameters.userInput}" />

1) All standard VF components, which start with <apex>, have anti-XSS filters in place. 2) Salesforce has implemented filters that screen out harmful characters in most output methods as one of the anti-XSS defenses.

When the value of a field in an Account record is updated, which method will update the value of a custom field in all related opportunities? (2) a. An Apex trigger on the Account object b. A Workflow Rule on the Account object c. A Process Builder on the Account object d. A cross-object formula field on the Account object

1) An Apex trigger on the Account object 2) A Process Builder on the Account object

What must a developer consider when inserting records using an API-based tool? (2) A. Required fields on page layouts are enforced. B. Universally required field settings are respected. C. Apex triggers are ignored. D. Validation rules are respected.

1) Apex triggers are ignored 2) Validation Rules are respected

Which of the following can be done using the Force.com platform? A. Data-warehousing B. Applications with clicks and not code C. Applications can be upgraded without loss of customization D. Code version control system

1) Applications with clicks and not code 2) Applications can be upgraded without loss of customization

Which statements are true regarding Roll-Up Summary fields? (3) A. Advanced currency management has no affect on roll-up summary fields. B. Because roll-up summary fields are not displayed on edit pages, you can use them in validation rules but not as the error location for you validation. C. Validation errors can display when saving either the detail or master record. D. Automatically derived fields, such as current date or current user, are allowed in a roll-up summary field. E. Once created, you cannot change the detail object selected or delete any field referenced in your roll-up summary definition.

1) Because RUS fields are not displayed on Edit pages, you can use them in validation rules but not as the error location for the error message. 2) Validation errors can display when saving either the detail or master record. 3) Once created, you cannot change the detail object selected or delete any field referenced in your roll-up summary definition

Which trigger event allows a developer to update fields in the Trigger.new list without using an additional DML statement? (2) A. Before insert B. Before update C. After update D. After insert

1) Before insert 2) Before update

How can a developer avoid exceeding governor limits when using an Apex Trigger? (2) - By using a helper class that can be invoked from multiple triggers. - By using the Database class to handle DML transactions. - By using Maps to hold data from query results. - By performing DML transactions on lists of SObjects

1) By using Maps to hold data from Query results 2) By performing DML transactions on lists of sObjects

How can a developer avoid exceeding governer limits when using Apex Triggers? (2) A. By using a helper class that can be invoked from multiple triggers B. By using Maps to hold data from query results C. By using the Database class to handle DML transactions D. By performing DML transactions on a list of sObjects

1) By using Maps to hold data from query results 2) By performing DML transactions on a list of sObjects

How can a developer refer to, or instantiate a PageReference in Apex? (2) A) By using a PageReference with a partial or full URL. B) By using the Page object and a Visualforce page name. C) By using the ApexPages.Page() method with a Visualforce page name. D) By using the PageReference.Page() method with a partial or full URL

1) By using a PageReference with a partial or full URL 2) By using the Page object and a Visualforce page name

Which component is available to deploy using Metadata API? (2) A) Case Layout B) Account Layout C) Case Feed Layout D) ConsoleLayout

1) Case Layout 2) Account Layout

Which 3 types of content can be shortcuts be created for using favorites? A. Chatter group B. Record home pages C. Dashboard D. Custom tabs E. Global actions

1) Chatter Group 2) Record home pages 3) Dashboard

Which two statements are true regarding Lightning Component JavaScript code validation? (2) A. Code validations can be temporarily disabled by setting the component version to API 40.0 or earlier. B. Code validations enforce all ESlint rules. C. Code validations are applied only to components set to API version 41.0 and later. D. The validation service ensures good software design and prevent bugs.

1) Code validations can be temporarily disabled by setting the component version to API 40.0 or earlier 2) Code validations are applied only to components set to API version 41.0 and later

A company wants a recruiting app that models candidates and interviews; displays the total number of interviews on each candidate record; and defines security on interview records that is independent from the security on candidate records. What would a developer do to accomplish this task? (2) A. Create a roll -up summary field on the Candidate object that counts Interview records. B. Create a master -detail relationship between the Candidate and Interview objects. C. Create a lookup relationship between the Candidate and Interview objects. D. Create a trigger on the Interview object that updates a field on the Candidate object.

1) Create a lookup relationship between the Candidate and Interview ojects 2) Create a trigger on the Interview object that updates a field on the Candidate object

An org has different Apex Classes that provide Account-related functionality. After a new validation rule is added to the object, many of the test methods fail. What can be done to resolve the failures and reduce the number of code changes needed for future validation rules? (2) A) Create a method that creates valid Account records, and call this method from within test methods. B) Create a method that loads valid Account records from a Static Resource, and call this method within test methods. C) Create a method that performs a callout for a valid Account record, and call this method from within test methods. D) Create a method that queries for valid Account records, and call this method from within test methods.

1) Create a method that creates valid Account record, and call this method from within test methods 2) Create a method that loads valid Accounts from a Static Resource, and call this method within test methods.

Which actions can a developer perform using the Schema Builder? (2) a) Create a custom field and automatically add it to an existing page layout. b) Create a view containing only standard and system objects. c) Create a custom object and define a lookup relationship on that object d) Create a view of objects and relationships without fields

1) Create a view containing only standard and system objects 2) Create a custom object and define a lookup relationship on that object

What happens when a workflow is re-evaluated? (3) A. Validation B. Cross-object sharing rules C. Other Workflow types D. Previous Workflows

1) Cross-object sharing rules 2) Other Workflow types 3) Previous Workflows

A developer is required to create a customized page that displays data from a web service callout. What controller should the developer use? A. Standard B. Custom C. Standard List D. Extension

1) Custom 2) Extension

Which type of code represents the Controller in MVC architecture on the Force.com platform? (2) A. JavaScript that is used to make a menu item display itself. B. A static resource that contains CSS and images. C. Custom Apex and JavaScript coda that is used to manipulate data. D. StandardController system methods that are referenced by Visualforce.

1) Custom Apex and JavaScript code that is used to manipulate data 2) StandardController system methods that are referenced by Visualforce

What can a Lightning Component contain in its resource bundle? (2) A) Custom client side rendering behavior. B) Build scripts for minification C) Properties files with global settings D) CSS styles scoped to the component

1) Custom client side rendering behavior 2) CSS styles scoped to the component

Field type conversion. Which of the following are true? (2) A. Data can be lost when converting from autonumber to text B. Information can be lost when converting from text area (rich) to text area (long) C. Data can be lost when converting from number to currency (assuming that field lengths are identical) D. Data can be lost when converting from simple picklist to multi picklist

1) Data can be lost when converting FROM auto number to Text. (not the other way around) 2) Data can be lost when converting from number to currency (assuming that field lengths are identical)

In which of the following environments can Developers write code? A. Developer edition production org B. Enterprise edition production org C. Enterprise edition Sandbox org D. Professional edition Sandbox org

1) Developer Edition Production Org 2) Enterprise Edition Sandbox Org

Which action can a developer perform in a before update trigger? (2) Display a custom error message in the application interface. Change field values using the Trigger.new context variable. Delete the original object using a delete DML operation. Update the original object using an update DML operation.

1) Display a custom error message in the application interface 2) Change field values using the Trigger.new context variable

A developer needs to provide a Visualforce page that lets users enter Product-specific details during a Sales cycle. How can this be accomplished? (2) A. Download a Managed Package from the AppExhange that provides a custom Visualforce page to modify. B. Copy the standard page and then make a new Visualforce page for Product data entry. C. Download an Unmanaged Package from the AppExchange that provides a custom Visualforce page to modify. D. Create a new Visualforce page and an Apex controller to provide Product data entry.

1) Download an Unmanaged Package from the AppExchange that provides a custom Visualforce page to modify 2) Create a new Visualforce page and an Apex controller to provide Product data entry.

Which of these statements is true for encrypted custom fields? A. Encrypted fields can be included in Search results. B. Encrypted fields can be included in report results. C. Encrypted fields are not available in filters for list views, reports, and Roll-up summary fields. D. Encrypted fields are not available for validation rules or Apex scripts.

1) Encrypted fields can be included in Search results 2) Encrypted fields can be included in report results 3) Encrypted fields are not available in filters for list views, reports, and Roll-Up Summary fields

What is a valid statement about Apex classes and interfaces? (2) A) The default modifier for a class is private. B) Exception classes must end with the word exception. C) A class can have multiple levels of inner classes. D) The default modifier for an interface is private.

1) Exception classes must end with the word "Exception" 2) The default modifier for a CLASS is private

What are two ways to use the Lightning Design System in Lightning Apps? A. Copy and paste CSS classes from Lightning Design System to the CSS resource in the Application Bundle B. Include an attribute with a name of "SLDS" of type "Boolean" that has a default value of true C. Extend "force:slds" in the < aura:application > tag D. Reference a Static Resource using "ltng:require"

1) Extend "force:slds"" in the <aura:application> tag 2) Reference a Static Resource using "ltng:require"

Which of the following refers to the data model of Salesforce? A. Force.com API B. Force.com metadata API C. Sandbox D. Force.com IDE

1) Force.com API 2) Force.com Metadata API

What tools do you need to use to migrate METADATA to 2 different Production Orgs? (3) A. Force.Com IDE B. Force.Com Migration Tool C. Change Set D. Data Loader E. Unmanaged Package

1) Force.com IDE 2) Force.com Migration Tool 3) Unmanaged Package

Which developer tool can be used to create a data model? (2) A. Force.com IDE B. Schema Builder C. Application Data Model Wizard D. Force.com Data Loader

1) Force.com IDE 2) Schema Builder

What is a capability of cross-object formula fields? (3) - Formula fields can reference fields from master-detail or lookup parent relationships. - Formula fields can expose data the user does not have access to in a record. - Formula fields can be used in three roll-up summaries per object. - Formula fields can reference fields in a collect of records from a child relationship. - Formula fields can reference fields from objects that are up to 10 relationships away.

1) Formula fields can reference fields from master-detail or lookup parent relationship 2) Formula fields can reference fields from objects that are up to 10 relationships away 3) Formula fields can expose data the user does not have access to in a record

What is a capability of formula fields? (3) A. Generate a link using the HYPERLINK function to a specific record in a legacy system. B. Display the previous values for a field using the PRIORVALUE function. C. Return and display a field value from another object using the VLOOKUP function. D. Determine if a datetime field has passed using the NOW function. E. Determine which of three different images to display using the IF function.

1) Generate a link using the HYPERLINK function to a specific record in a legacy system. 2) Determine if a datetime field has passed using the NOW function 3) Determine which of three different images to display using the IF function

Company has tried the Schema Builder but has found that because there are too many objects and relationships displayed, it has long loading times and decided it is too difficult to work with. What features would you suggest to help with this issue? A. If the 'Hide Relationships' option is selected, performance is improved B. The map can be used to navigate to objects of interest C. The filter can be used to only display objects of interest D. Fields can be hidden and only the objects displayed

1) If the "Hide Relationships" option is selected, performance is improved 2) The map can be used to navigate to objects of interest 3) The filter can be used to only display objects of interest

When a user creates a record by using an object-specific dcreate action, what feed item for that record appears? (3) A. In the Chatter feed of the user who created the record B. In the feed for the record on which the new record was created C. In the user profile feed for all users who can view the record D. As the first entry in the feed for the new record E. In the Chatter feed of the first user who follows the record on which the record was created

1) In the Chatter feed of the user who created the record 2) In the feed for the record on which the new record was created 3) As the first entry in the feed for the new record

What is the accurate statement about with sharing keyword? (2) A) Inner class do not inherit the sharing setting from the container class B) Both inner and outer class can be declared as with sharing C) Either inner class or outer classes can be declared as with sharing but not both D) Inner class inherit the sharing setting from the container class

1) Inner class do not inherit the sharing setting from the container class 2) Both inner and outer class can be declared as with sharing

What is a capability of a StandardSetController? (2) A. It allows pages to perform mass updates of records B. It allows pages to perform pagination with large record sets C. It enforces field-level security when reading large record sets D. It extends the functionality of a standard or custom controller

1) It allows pages to perform mass updates of records 2) It allows pages to perform pagination with large record sets

What is a characteristic of the Lightning Component Framework? (2) A) It has an event-driven architecture. B) It works with existing Visualforce pages. C) It includes responsive components. D) It uses XML as its data format

1) It has an event-driven architecture 2) It includes responsive components

Which of the following statements are true when defining Apex classes? (2) A. It is optional to specify an access modifier in declaring a top-level class. B. A top-level class can have multiple levels of inner classes. C. It is required to specify an access modifier in declaring top-level class. D. It is optional to specify an access modifier in declaring inner class.

1) It is required to specify an access modifier in declaring top-level class 2) It is optional to specify an access modifier in declaring inner class

What is a benefit of the Lightning Component framework? (3) A) It uses client-side Apex controllers for logic. B) It uses a traditional publish-subscribe model. C) It uses an event-driven architecture D) It uses an MVC architectural design pattern. E) It uses server-side JavaScript controller for logic.

1) It uses a traditional publish-subscribe model. 2) It uses an event-driven architecture 3) It uses an MVC architectural design pattern

Which resource can be included in a Lightning Component bundle? (2) A) Apex class B) Adobe Flash C) JavaScript D) Documentation

1) Javascript 2) Documentation

Which resource can be included in a Lightning Component bundle? (2) A. Apex class B. Adobe Flash C. JavaScript D. Documentation

1) Javascript 2) Documentation

In which two ways does Lightning Data Service (LDS) eliminate redundant server calls in Lightning Components? A. LDS identifies requests that involve the same record data and sends a single shared data request that updates all relevant components. B. LDS allows each component within an app to make independent, but concurrent, calls to perform CRUD operations on the same record data. C. LDS can be configured as a publisher hub with simple Apex code. D. LDS acts as a publisher hub that notifies components of data changes.

1) LDS identifies requests that involve the same record data and sends a single shared data request that updates all relevant components 2) LDS acts as a publisher hub that notifies components of data changes

Which 3 actions can be taken from the Global Action Menu? A. Launch a custom visual force page B. Launch a custom Canvas App C. Launch a custom lightning Component D. Post a chatter feed E. Execute anonymous blocks of Apex code

1) Launch a custom visualforce page 2) Launch a custom Canvas App 3) Launch a custom Lightning Component

Which 3 metadata components can be deployed via Change Sets? A. Lightning Application B. Wave Application C. Global Picklist D. Wave Dashboard E. Lightning Component

1) Lightning Application 2) Global Picklist 3) Lightning Component

Identify the standard Lightning Components A. List View B. Dashboards C. Rich Text D. Visualforce Page E. Reports

1) List View 2) Rich Text 3) Visualforce Page

Which statement should a developer avoid using inside procedural loops? (2) A. System.debug('Amount of CPU time (in ms) used so far: ' + Limits.getCpuTime() ); B. List contacts = [SELECT Id, Salutation, FirstName, LastName, Email FROM Contact WHERE AccountId = :a.Id]; C. If(o.accountId == a.id) D. Update contactList

1) List contacts = [SELECT Id, Salutation, FirstName, LastName, Email FROM Contact WHERE AccoundId = :a.Id]; 2) Update contactList

When loading data into an operation, what can a developer do to match records to update existing records? A. Match an auto-generated Number field to a column in the imported file. B. Match an external Id Text field to a column in the imported file. C. Match the Name field to a column in the imported file. D. Match the Id field to a column in the imported file

1) Match an external Id Text field to a column in the imported file 2) Match the Id field to a column in the imported file

What is true for a partial sandbox that is not true for a full sandbox? - More frequent refreshes. - Only Includes necessary metadata. - Use of change sets. - Limited to 5 GB of data.

1) More frequent refreshes 2) Limited to 5GB of data

Which type of information is provided by the Checkpoints tab in the Developer Console? (2) A. Namespace B. Time C. Exception D. Debug Statement

1) Namespace 2) Time

What type of programming language is Apex? A. Object-oriented B. On-Demand C. Water-Fall D. Declarative-Specific

1) Object-oriented 2) On-Demand

How can a developer retrieve all Opportunity record type labels to populate a list collection? (2) A) Obtain describe object results for the Opportunity objct. B) Write a for loop that extracts values from the C) Opportunity.RecordType.Name field. D) Use the global variable $RecordType and extract a list from the map. E) Write a SOQL for loop that iterates on the RecordType object.

1) Obtain describe object results for the Opportunity object. 2) Write a SOQL for loop that iterates on the RecordType object.

Where can the custom roll-up summary fields be created using Standard Object Relationships? (3) A. On Opportunity using Opportunity Product records. B. On Account using Case records. C. On Quote using Order records. D. On Campaign using Campaign Member records. E. On Account using Opportunity records

1) On Opportunity using Opportunity Product Records 2) On Campaign using Campaign Member records 3) On Account using Opportunity records

What is true when a field update is set to re-evaluate the workflow rule? (3) A. Only workflow rules on the same object as the initial field update will be re-evaluated and triggered. B. Only workflow rules that didn't fire before will be retriggered. C. Cascade of workflow rule re-evaluation and triggering can happen up to ten times after the initial field update that started it. D. Any workflow rules whose criteria are met as a result of the field update will be ignored. E. In a batch update, workflow is only retriggered on the entities where there is a change.

1) Only workflow rules on the same object as the initial field update will be re-evaluated and triggered 2) Only workflow rules that didn't fire before will be re-triggered 3) In a batch update, workflow is only re-triggered on the entities where there is a change

What are the two considerations when overriding standard options? A. Overriding standard actions with a Lightning component applies only to Lightning Experience and Salesforce 1, but not to Salesforce Classic. B. Overriding standard actions with a Visualforce page applies only to Salesforce Classic and Lightning Experience, but not to Salesforce1. C. Overriding standard actions with a Visualforce page applies to Salesforce Classic, Lightning Experience, and Salesforce1. D. Overriding standard actions with a Lightning component applies to Lightning Experience, Salesforce1, and Salesforce Classic.

1) Overriding standard actions with a Lightning Component applies only to Lightning Experience and SF1 but not Salesforce Classic 2) Overriding standard actions with a Visualforce page applies to Salesforce Classic, Lightning Experience and Salesforce1

A PageReference is a reference to an instantiation of a page. Which of the following are valid means of instantiating a PageReference? (2) A. ApexPages.Page().existingPageName B. Page.existingPageName C. PageReference pageRef = new PageReference('URL'); D. PageReference.page('URL')

1) Page.existingPageName 2) PageReference pageRef = new PageReference('URL');

What is an accurate statement about variable scope? (3) A. Sub-blocks cannot reuse a parent block s variable name. B. A variable can be defined at any point in a block. C. Parallel blocks can use the same variable name. D. Sub-blocks can reuse a parent block s variable name if its value is null. E. A static variable can restrict the scope to the current block if its value is null.

1) Parallel blocks can use the same variable name 2) A variable can be defined at any point in the block 3) Sub-blocks cannot reuse a parent block's variable name

What standard Chatter Actions (appear on the user profile page, regardless of the actions in the User page layout? (3) A. Post B. Poll C. Create D. File E. Email

1) Post 2) Poll 3) File

You want to use an External Data Object Table from Heroku carrying Product Category information. The data need to be included in Salesforce and be searchable. What do you have to do before you can use the connection? (2) A. Choose "include as index field" B. Press "validate and sync" C. Choose "include in Salesforce searches" option D. URL / choose the URL (?)

1) Press "Validate and Sync" 2) Choose "Include in Salesforce Searches" option

Which standard objects in the following list are not supported by DML Operations? (2) A. Profile B. User C. Opportunity Line Item D. Record Type

1) Profile 2) Record Type

You can create global actions to let users create which of the following records? (3) A. Question B. Chatter Posts C. Event (without invitees) D. Opportunity E. Users

1) Questions 2) Event (without invitees) 3) Opportunity

What is a good practice for a developer to follow when writing a trigger? (2) A. Using @future methods to perform DML operations. B. Using the Map data structure to hold query results by ID. C. Using the Set data structure to ensure distinct records. D. Using synchronous callouts to call external systems

1) Using the Map data structure to hold query results by ID 2) Using the Set data structure to ensure distinct records

Identify the field update limitations (3) A. Read-only fields like formula or auto-number fields aren't available for field updates. B. The results of a field update can't trigger additional rules such as validation, assignment, auto-response, or escalation rules. C. In a batch update, workflow is retriggered on all entities where there is a change D. Field updates that are executed as approval actions don't trigger workflow rules.

1) Read-only fields like formula or auto-number fields aren't available for field updates 2) The results of a field update can't trigger additional rules such as validation, assignment, auto-response or escalation rules. 3) Field updates that are executed as approval actions don't trigger workflow rules

Custom lightning record page can be assigned to which 3 items? A. Record Types B. Apps C. Profiles D. Public group E. Roles

1) Record Types 2) Apps 3) Profiles

Which statement about record types is true? (select 2) A. The ability to create records of a specific record type is determined by the profile B. Users cannot view records assigned to a record type their profile does not have access to C. Record types can be used to define picklist values available for a given field D. Record types can only be assigned to one profile at a time

1) Record types can be used to define picklist values available for a given field 2) The ability to create records of a specific record type is determined by the profile

Identify the standard Lightning Components (3) A. List View B. Dashboards C. Rich Text D. Visualforce Page E. Reports

1) Rich Text 2) Visualforce Page 3) List View

What is a capability of the Force.com IDE? (2) A) Roll back deployments. B) Run Apex tests. C) Download debug logs. D) Edit metadata components

1) Run Apex tests 2) Edit metadata components

In which two ways does Salesforce DX facilitate source-driven development? A. A. Salesforce DX provides an efficient, end-to-end life cycle designed for waterfall development. B. Salesforce DX provides an integrated, end-to-end life cycle designed for high-performance agile development. C. Salesforce DX allows agile, local test runs. D. Salesforce DX shifts the source of truth from the org to the version control system

1) Salesforce DC provides an integrated end-to-end life cycle designed for high-performance agile development 2) Salesforce DX shifts the source of truth from the org to the version control system

A developer needs to know if all tests currently pass in a Salesforce environment. Which feature can the developer use? (2) A. ANT Migration Tool B. Workbench Metadata Retrieval C. Salesforce UI Apex Test Execution D. Developer Console

1) Salesforce UI Apex Test Execution 2) Developer Console

What is a valid source and destination pair that can send or receive change sets? (2) A. Developer Edition to Sandbox B. Sandbox to Production C. Sandbox to Sandbox D. Developer Edition to Production

1) Sandbox to Production 2) Sandbox to Sandbox

Which method is defined in the StandardController class? (2) A. Merge B. Save C. Undelete D. Cancel

1) Save 2) Cancel

Which requirement needs to be implemented by using standard workflow instead of Process Builder? A) Create activities at multiple intervals. B) Send an outbound message without Apex code. C) Copy an account address to its contacts. D) Submit a contract for approval.

1) Send an outbound message without Apex code 2) Create activities at multiple intervals

Name two required steps for enabling debug logging for unauthenticated Guest Users accessing public Sites (2) A. Set the "Assigned Users" in the Site "Public Access Settings" to include the built-in Debug User B. Install the Sites Page Inspector plugin for Chrome C. Check the "Enable Guest Access Logging" checkbox option in Site Details D. Set a browser cookie with a name value of "debug_logs" and a domain value of ".force.com" E. Setup a new Trace Flag with a Traced Entity Type of 'User' that looks up to the Guest User for a Site

1) Set a browset cookie with a name value of "debug_logs" and a domain value of ".force.com" 2) Setup a new Trace Flag with a Traced Entity Type of 'User' that looks up to the Guest User for a Site

Which of these statements are true about the "view state" (3) A. Shows components contributing to view state B. Must be enabled on a user profile C. Is displayed only when using <apex: form> D. Is controlled by the Role Hierarchy

1) Shows components contributing to view state 2) Must be enabled on a user profile 3) Is displayed only when using <apex:form>

Which components can be added to a lightning app on a custom object? (3) A. Standard Lightning component B. Custom lightning component C. Object specific actions on the custom object D. Global actions E. Visualforce

1) Standard Lightning Component 2) Custom Lightning Component 3) Global Actions

Which two options are available to display detailed information about the status of and apex batch job? A. Heap size B. Submitted date C. Elapsed time D. Submitted by user

1) Submitted Date 2) Elapsed Time

The following scenarios can be achieved through the use of standard workflow instead of using Process Builder except for which 2?

1) Submitting an Order for approval 2) Copying the Account Postal Code to all child contacts

Company want to store an area code and wants to be able to search for it in applications (apex). Which are possible fields to store the data? (2) a) Email b) Text c) Number d) Multi-Picklist e) Phone

1) Text 2) Phone

What should a developer working in a sandbox use to exercise a new test class before the developer deploys that test class to Production? (2) A) The REST API and ApexTestRun method B) The Apex Test Execution page in Salesforce Setup. C) The Test menu in the Developer Console. D) The Run Tests page in Salesforce Setup.

1) The Apex Test Execution page in Salesforce setup 2) The Test menu in the Developer Console

Where can debug log filter settings be set? (2) A) The Filters link by the monitored user's name within the web UI. B) The Show More link on the debug log's record. C) On the monitored user's name. D) The Log Filters tab on a class or trigger detail page.

1) The Filters link by the monitored user's name within the web UI 2) The Log Filters tab on a class or trigger detail page

Which of the following statements about the IF-ELSE statement is true? (2) A. The IF-ELSE statement permits a choice to be made between two possible execution paths. B. An IF-ELSE statement allows a variable to be tested for equality against a list of values. C. An IF statement can be followed by a discretionary ELSE statement, which executes when the Boolean expression is false. D. The IF-ELSE statement provides a secondary path of execution when an IF clause evaluates to true. E. An IF-ELSE statement can have a number of possible execution paths.

1) The IF-ELSE statement permits a choice to be made between two possible execution paths. 2) An IF statement can be followed by a discretionary ELSE statement, which executes when the boolean expression is false

What features are available when writing Apex Test Classes? A) The ability to select error types to ignore in the developer console. B) The ability to write assertions to test after a @future method. C) The ability to set and modify the CreatedDate field in apex tests. D) The ability to set breakpoints to freeze the execution at a given point. E) The ability to select testing data using csv files stored in the system.

1) The ability to set and modify the CreatedDate field in apex test 2) The ability to select testing data using CSV files stored in the system

Which correctly describes the code snippet below? public with sharing class containerClass { //Insert code here public class innerClass { //Insert code here } } A. The innerClass does not inherit the sharing setting of the containerClass. B. The [with/without sharing] keyword should only be defined in outer classes. C. [without sharing] will be the default for the inner class D. The innerClass inherits the sharing setting of the containerClass.

1) The innerClass does not inherit the sharing setting of the containerClass. 2) [without sharing] will be the default for the inner class

What are considerations for deciding between using Data Loader and the Data Import Wizard for loading data into development environment? (3) A. The number of records to be loaded B. If the data will need to be loaded multiple times C. If the object is supported by the Data Import Wizard D. If triggers should run on import of the data

1) The number of records to be loaded 2) If the data will need to be loaded multiple times 3) If the object is supported by the Data Import Wizard

The Salesforce Administrator is building an application and needs to create a master-detail relationship between the Account object and a custom object. What is a true regarding the relationship? (2)

1) The standard object is always the master (Account) 2) The object on the detail side will inherit the security and sharing settings of the master object

Which statement about change set deployment is accurate? (3) A. They use an all or none deployment model. B. They require a deployment connection. C. They ca be used to transfer Contact records. D. They can be used to deploy custom settings data. E. They can be used only between related organizations.

1) They use an all or none deployment model 2) They require a deployment connection 3) They can be used only between related organizations

A custom exception "RecordNotFoundException" is defined by the following block of code: public class RecordNotFoundException extends Exception() Which statement can a developer use to throw a custom exception? (2) A) Throw new RecordNotFoundException("problem occured"); B) Throw new RecordNotFoundException(); throw C) RecordNotFoundException("problem occured"); D) Throw RecordNotFoundException();

1) Throw new RecordNotFoundException("problem occured"); 2) Throw new RecordNotFoundException(); throw

When can a developer use a custom Visualforce page in a Force.com application? (2) A. To generate a PDF document with application data B. To create components for dashboards and layouts C. To deploy components between two organizations D. To modify the page layout settings for a custom object

1) To generate a PDF document with application data 2) To create components for dashboards and layouts

When should a static method or variable be used? (3) A. To store information that is shared across instances of a class B. To use as a utility method C. When the static variable value should persist beyond the context of a single transaction D. A developer needs to access a method without instantiating a class.

1) To store information that is shared across instances of a class 2) To use as a utility method 3) A developer needs to access a method without instantiating a class

Company installs an unmanaged package. Which of the following are true? (2) A. Tests are executed during deployment B. Unmanaged packages can be upgraded C. Unmanaged packages don't have a version number D. Unmanaged packages have a namespace prefix E. Components of unmanaged packages can be edited

1) Unmanaged Packages don't have a version number 2) Components of unmanaged packages can be edited

A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case Status field are on a custom VF Page. Which action can the developer perform to get the record types and picklist values in the controller? (2) A) Use Schema.PicklistEntry returned by Case Status getDescribe().getPicklistValues(). B) Use Schema.RecordTypeinfo returned by Case.SObjectType getDescribe().getRecordTypelnfos() C) Use SOQL to query Case records in the org to get all the RecordType values available for Case. D) Use SOQL to query Case records in the org to get all value for the Status picklist field.

1) Use Schema.PicklistEntry returned by Case Status getDescribe().getPicklistValue(). 2) Use Schema.RecordTypeinfo returned by Case.SObjectType getDescribe().getRecordTypeInfos()

A developer wants to display all fo the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case.Status field are on a custom Visualforce page. Which action can the developer perform to get the record types and picklist values in the controller? (2) A. Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues(). B. Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos(). C. Use SOQL to query Case records in the org to get all the RecordType values available for Case. D. Use SOQL to query case records in the org to get all values for the Status picklist field.

1) Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues() 2) Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos()

What should a developer consider when using the upsert operation to insert and update records? (3) A. Using the upsert operation, the administrator can either insert or update an existing record in one call. B. To determine whether a record already exists, the upsert statement or Database method uses the ID of the record as the key to match records, a custom external ID field, or a standard field with the idLookup attribute set to true. C. If the key is not matched, a new object record is created. If the key is matched once, the existing object record is updated. D. If the key is matched multiple times, the existing object record is updated based on the latest match.

1) Using the upsert operation, the admin can either insert or update an existing record in one call 2) To determine whether a record already exists, the upsert statement of Database method uses the ID of the record as the key to match records, a custom external ID field, or a standard field with the idLookup attribute set to true. 3) If the key is not matched, a new object record is created. If the key is matched once, the existing object record is updated.

Which declarative method helps ensure quality data? (3) Validation Rules Workflow alerts Exception Handling Lookup Filters Page Layouts

1) Validation Rules 2) Lookup Filters 3) Page Layouts

Which two features can be used to prevent values from being selected in a picklist? A. Validation Rules B. Workflow Rules C. Restricted Picklists D. Filtered Picklists E. Validated Picklists

1) Validation Rules 2) Restricted Picklists

What are the supported content sources for custom buttons and links? (2) VisualForce Page. Static Resource. URL. Chatter File. Lightning Page

1) VisualForce Page 2) URL

Which of the following are NOT valid use cases of Apex classes? (2) A. Triggers B. Multiple objects validation C. Visualforce pages with standard controllers D. Web Service E. Custom button with Javascript

1) Visualforce pages with standard controllers 2) Custom button with Javascript

When would a developer use a custom controller instead of a controller extension? (2) A) When a Visualforce page needs to replace the functionality of a standard controller. B) When a Visualforce page does not reference a single primary object. C) When a Visualforce page should not enforce permissions or field-level security. D) When a Visualforce page needs to add new actions to a standard controller.

1) When a VF page needs to replace the functionality of a standard controller 2) When a VF page should not enforce permissions or field-level security

What is true regarding the user interface for different relationship types? (2) A. When a lookup relationship to object B is defined on object A, data from object A can appear as a related list on page layouts for object B. B. When a master detail relationship is defined, data from the master or detail object can appear as a custom related list on page layouts for the other object. C. When a many to many relationship is defined between object A and B, data from object B can appear in a custom related list on page layouts of object A. D. When a lookup relationship to object B is defined on object A, data from object B can appear as a related list on page layouts of object A.

1) When a lookup relationship to Object B is defined on Object A, data from object A can appear as a related list on page layouts for Object B. (See Product Options under Products but not Products under Product Options, just the lookup field) 2) When a many:many relationship is defined between object A and B, data from object B can appear in a custom related list on page layouts of Object A.

When should a system administrator consider using the Salesforce AppExchange? (2) A. When looking for pre-built custom applications and tools B. When standard Salesforce functionality needs to be extended C. To find answers to Salesforce application questions D. To submit ideas for Salesforce application enhancements

1) When looking for pre-built custom applications and tools 2) When standard Salesforce functionality needs to be extended

Which one of the following is not possible to view in the Debug Logs? A. Workflow formula evaluation results B. Assignment rules C. Formula field calculations D. Validation rules E. Resources used by Apex Script

1) Workflow formula evaluation results 2) Formula field calculations 3) Resources used by Apex Script

You have created a workflow rule to send an email in your configuration sandbox. For some reason it's not working - what should you double check? (2) A. You have the correct email address B. Look at the system audit trail C. Check the deliverability settings D. HTML does not work in sandbox, make sure your email has no HTML

1) You have the correct email address 2) Check the deliverability settings

What methods can be used to get a list of all sObject in an organization and their fields? A. describeObjects() B. describeGlobal() C. describeSObjects() D. describeSObjectFields()

1) describeGlobal() 2) describeSObjects()

Which two interfaces can be implemented to enable a Lightning Component for Custom Actions? A. aura:enableQuickAction B. lightning:quickActionEnabled C. force:lightningQuickActionWithoutHeader D. force:lightningQuickAction E. force:lightningQuickActionWithHeader

1) force:lightningQuickActionWithoutHeader 2) force:lightningQuickAction

Given the following options, what are the valid ways to declare a collection variable? (3) A. new Account(<Name = 'Business Account'>) B. new Map<Id, Account>() C. new Contact[]{<elements>} D. new List<Account>() E. new Integer()

1) new Map<Id, Account>() 2) new Contact[]{<elements>} 3) new List<Account>()

Given the traditional FOR loop standard syntax: for (initialization; exit_condition; increment) { statement(s) } How does the for-loop sequentially perform its operation? 1. The initialization expression initializes the loop; it is executed once. 2. The code block will be executed. 3. Evaluate the exit_condition. If true, the loop continues. If false, the loop exits. 4. Execute the increment statement and evaluate the exit_condition again. A. I, II, IV, III B. I, III, II, IV C. I, II, III, IV D. III, I, II, IV

1, 3, 2, 4 1) The initialization expression initializes the loop; it is executed once 2) Evaluate the exit_condition. If true, the loop continues. If false, the loop exits. 3) The code block will be executed 4) Execute the increment statement and evaluate the exit_condition again

How many days will the "Quick Deploy" option appear after a Change Set is successfully validated? A. 10 B. 15 C. 4 D. 30

10

A developer in a Salesforce org with 100 Accounts executes the following code using Developer Console: Account myAccount = new Account(Name = 'MyAccount');Insert myAccount;For (Integer x = 0; x < 150; x++) {Account newAccount = new Account (Name='MyAccount' + x);try {Insert newAccount;} catch (Exception ex) {System.debug (ex) ;}}insert new Account (Name='myAccount'); How many Accounts are in the org after this code is run? A. 101 B. 100 C. 102 D. 252

100

A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console - how many accounts are in the org after this runs? Account myAccount = new Account(Name = 'MyAccount'); Insert myAccount; For (Integer x = 0; x < 250; x++) { Account newAccount = new Account (Name='MyAccount' + x); try { Insert newAccount; } catch (Exception ex) { System.debug (ex) ; } } insert new Account (Name='myAccount');

100

What is the output of the code below? Integer z = 5; do { z = z + 1; } while(z &lt;= 15); System.debug(z); A. 13 B. 14 C. 15 D. 16

16

A developer runs the following anonymous code block - what is the result? List<Account> acc = [SELECT Id FROM Account LIMIT 10]; Delete acc; Database.emptyRecycleBin(acc); system.debug(Limits.getDMLStatements()+ ', ' +Limits.getLimitDMLStatements()); A) 11, 150 B) 150, 2 C) 150, 11 D) 2, 150

2, 150

In Apex, an expression is a construct made-up of variables, operators, and method invocations that evaluates to a single value. Which of the following is not a valid Apex expression? A. 3 + 4 B. new List<Opportunity>() C. myClass.myMethod() D. @future

@future

What is the correct annotation to indicate test classes that can run in parallel? A. @isTest(runParallel=true) B. @isTest C. @isTest(isParallelrun=true) D. @isTest(isParallel=true)

@isTest(isParallel=true)

Which Apex collection is used to ensure that all values are unique? A Set An Enum A List An sObject

A Set

SOQL statement results can evaluate to the following data types except which? A. A List of sObjects B. A String C. A Single sObject D. An Integer

A String

A customer wants to add a custom validation to the "contact save" process. Before a Contact is created, the customer wants to include the validation, which checks if the associated Account is active. This validation should be active for all UI as well as integration requests. Which design accomplishes this goal? A. A custom Web service B. A "before insert" Trigger C. A custom Visualforce controller D. A client-side S-control

A "before insert" Trigger

What is a Lightning Page? A. A page you can access via a customer community. B. The new name for a Salesforce page layout. C. A custom layout for creating pages in Salesforce1. D. A compact, configurable, and reusable element

A custom layout for creating pages in SF1

What is a junction object? A. A custom object with two master-detail relationships. B. A custom object with one lookup relationship and one master-detail relationship. C. A custom object with two lookup relationships. D. A custom object with any number of lookup and master-detail relationships.

A custom object with two master-detail relationships

Which of the following statements about defining an Apex Class is NOT true? A. An access modifier is required in the declaration of a top-level class B. A definition modifier is required in the top-level class. C. The keyword [class] followed by the name of the class is necessary D. A developer may add optional extensions and/or implementations.

A definition modifier is required in the top-level class

Which statement about declarations is correct? A. A developer can extend a class that is declared with Virtual keyword B. A developer can use define constant with final keyword. C. A developer can't use class or method using final keyword

A developer extend a class that is declared with Virtual keyword

What is valid in the WHERE clause of a SOQL query? (2) A. A geolocation field. B. An encrypted field. C. An aggregate function. D. An alias notation.

A geolocation field An alias notation

Which data structure is returned to a developer when performing a SOSL search? - A list of lists of sObjects. - A map of sObject types to a list of sObjects - A map of sObject types to a list oflists of sobjects - A list of sObjects.

A list of lists of sObjects

Company wants to create a custom Order Management application that allows users to enter order details such as the Product Name and Product Code. The application should be able to check if these values are consistent with the valid Product Name and Product Code combinations set up in a custom object. Which feature would a developer use to accomplish this? A. A validation rule with the REGEX function B. A formula field with the VALIDATE function C. A validation rule with the VLOOKUP function D. A formula field with the IF function

A validation rule with the VLOOKUP function

When running an Apex test, which type of Apex syntax in tested code is counted in the code coverage calculation? A. A blank line. B. A System.debug() statement. C. A variable assignment. D. A comment.

A variable assignment

An assignment statement is any statement that places a value into a variable. Which one of the following expressions is a valid Apex assignment statement? A. String a = new String('sampleString'); B. Map<Id, Account> = [SELECT Id, Name FROM Account]; C. Account acc = new Account(); D. List<Contact> conList = new [SELECT Id FROM Contact];

Account acc = new Account();

What is a valid Apex statement? A) Map conMap = (SELECT Name FROM Contact); B) Account[] acctList = new List{new Account()} C) Integer w, x, y = 123, z = 'abc', D) Private static constant Double rate = 775;

Account[] accountList = new List{new Account()}

A developer creates a new Visualforce page and Apex extension, and writes test classes that exercise 95% coverage of the new Apex extension. Change set deployment to production fails with the test coverage warning "Average test coverage across all Apex classes and triggers is 74%, at least 75% is required". What can the developer do to successfully deploy the new VF page and extension? A) Create test classes to exercise the Visualforce page markup. B) Select "Disable Parallel Apex Testing" to run all the tests. C) Add test methods to existing test classes from previous deployments. D) Select "Fast Deployment'' to bypass running all the tests.

Add test methods to existing test classes from previous deployments

A developer creates an Apex class that includes private methods. What can the developer do to ensure that the private methods can be accessed by the test class? A. Add the TestVisible attribute to the Apex class B. Add the SeeAllData attribute to the test methods. C. Add the TestVisible attribute to the apex methods. D. Add the SeeAllData attribute to the test class

Add the TestVisible attribute to the Apex METHODS

By using which tool can the developer change the data model of a Salesforce org? A. Data loader B. Administrator setup C. Cloud based data wizard D. Other

Administrator Setup

A developer wrote a workflow email alert on case creation so that an email is sent to the case owner manager when a case is created. When will the email be sent? A. After Committing to database. B. Before Trigger execution. C. After Trigger execution. D. Before Committing to database.

After committing to the database

Which of the following fields are not available for record types? A. Opportunity Stages B. Case Status C. Solution Status D. Lead Status E. All of the above

All of the above

A developer has the following query: Contact c = [SELECT id, firstname, lastname, email FROM Contact WHERE lastname = 'Smith']; What does the query return if there is no Contact with the last name 'Smith'? A. A contact initialized to null. B. An error that no rows are found. C. An empty List of Contacts. D. A Contact with empty values.

An error that no rows are found

A developer has a block of code that omits any statements that indicate whether the code block should execute with or without sharing. What will automatically obey the organization-wide defaults and sharing settings for the user who executes the code in the Salesforce organization? A. Apex Triggers B. HTTP Callouts C. Apex Controllers D. Anonymous Blocks

Anonymous Blocks

Which of the following does not execute in system mode? A. Apex Triggers B. Anonymous Code Blocks C. Apex Classes D. Apex Web Service

Anonymous Code Blocks

What is the result when a VF page calls an Apex controller, which calls another Apex class, which then results in hitting a governor limit? A) Any changes up to the error are saved. B) Any changes up to the error are rolled back. C) All changes before a savepoint are saved. D) All changes are saved in the first Apex class

Any changes up to the error are rolled back

On which object can an administrator create a roll-up summary field A) Any object that is on the master side of a master-detail relationship. B) Any object that is on the parent side of a lookup relationship. C) Any object that is on the detail side of a master-detail relationship. D) Any object that is on the child side of a lookup relationship.

Any object that is on the master side of a master-detail relationship

Before deleting a record, a complex validation needs to be performed to confirm that the record can be deleted by querying a number of objects. What solution would be most appropriate? A. Apex Trigger B. Process Builder C. Validation Rule D. Visual Workflow

Apex Trigger

Which code block returns the ListView of an Account object using the following debug statement? system.debug(controller.getListViewOptions( ) ); A. ApexPages.StandardSetController controller = new ApexPages.StandardSetController( Database.getQueryLocator( 'SELECT Id FROM Account LIMIT 1')); B. ApexPages.StandardController controller = new ApexPages.StandardController( [SELECT Id FROM Account LIMIT 1]); C. ApexPages.StandardController controller = new ApexPages.StandardController( Database.getQueryLocator( 'SELECT Id FROM Account LIMIT 1')); D. ApexPages.StandardController controller = new ApexPages.StandardController( [SELECT Id FROM Account LIMIT 1]);

ApexPages.StandardSetController controller = new ApexPages.StandardSetController(Database.getQueryLocator('select Id from Account Limit 1');

Which code block returns the ListView of an Account object using the following debug statement? System.debug(Controller.getListViewOptions()); a. ApexPages.StandardSetController controller = new ApexPages.StandardSetController([SELECT Id FROM Account LIMIT 1]); b. ApexPages.StandardController controller = new ApexPages.StandardController(Database.getQueryLocator('select Id from Account Limit 1')); c. ApexPages.StandardSetController controller = new ApexPages.StandardSetController(Database.getQueryLocator('select Id from Account Limit 1')) d. ApexPages.StandardController controller = new ApexPages.StandardController([SELECT Id FROM Account LIMIT 1]);

ApexPages.StandardSetController controller = new ApexPages.StandardSetController( Database.getQueryLocator( SELECT Id FROM Account LIMIT 1 ));

In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex? A. As a String with each value separated by a comma B. As a Set with each value as an element in the set C. As a String with each value separated by a semicolon D. As a List with each value as an element in the list Previous

As a string with each value separated by a semicolon

What is the value of X after the code segment executes? String x = 'A';Integer i = 10;if ( i < 15) {i = 15;x = 'B'} else if ( i < 20 ) {x = 'C';} else {x = 'D'; } A. B B. C C. D D. A

B

In which order does Salesforce execute events upon saving a record? A. Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit B. Validation Rules; Before Triggers; After Triggers; Workflow Rules; Assignment Rules; Commit C. Before Triggers; Validation Rules; After Triggers; Workflow Rules; Assignment Rules; Commit D. Validation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit

Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit

In which order does Salesforce execute events upon saving a record? - Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit - Validation Rules; Before Triggers; After Triggers; Workflow Rules; Assignment Rules; Commit - Before Triggers; Validation Rules; After Triggers; Workflow Rules; Assignment Rules; Commit - Validation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit

Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit

Developer needs to auto-populate the ReportsTo field in a Contact record based on the values of the related Account and Department fields in the Contact record. Which type of trigger would the developer create? (2) A) Before update B) After insert C) Before insert D) After update

Before update Before insert

A developer executes the code below: If(isCorrect){ System.debug("The value of x is True"); } else if (!isCorrect) { System.debug("The value of x is False"); } else { System.debug("The value of x is Null"); } How should the developer initialize the variable 'isCorrect'? A. Blob isCorrect; B. String isCorrect; C. Boolean isCorrect; D. Enum isCorrect;

Boolean isCorrect

A developer writes a before insert trigger. How can the developer access the incoming records in the trigger body? A) By accessing the Trigger.new context variable. B) By accessing the Trigger.newRecords context variable. C) By accessing the Trigger.newMap context variable. D) By accessing the Tripper.newList context variable.

By accessing the Trigger.new context variable

How would a developer determine if a CustomObject__c record has been manually shared with the current user in Apex? a) By querying the role hierarchy. b) By calling the isShared() method for the record. c) By querying CustomObject__Share. d) By calling the profile settings of the current user.

By querying CustomObject__Share

When creating a record with a Quick Action, what is the easiest way to post a feed item? A) By selecting create feed item on the quick action. B) By adding a trigger on the new record. C) By adding a workflow rule on the new record. D) By selecting create case feed on the new record.

By selecting "create feed item" on the quick action

What is the preferred way to reference web content such as images, style sheets, JavaScript, and other libraries that is used in Visualforce pages? A) By accessing the content from Chatter Files. B) By uploading the content in the Documents tab. C) By accessing the content from a third -party CON. D) By uploading the content as a Static Resource.

By uploading the content as a Static Resource

A developer creates an Apex helper class to handle complex trigger logic. How can the helper class warn users when the trigger exceeds governer limits? A. By using PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of DML statements is exceeded. B. By using Messaging.sendEmail() to continue toe transaction and send an alert to the user after the number of DML statements is exceeded. C. By using AmexMessage.Messages() to display an error message after the number of DML statements is exceeded. D. By using Limits.getDMLRows() and then displaying an error message before the number of DML statements is exceeded.

By using Limits.getDMLRows() and then displaying an error message before the number of DML statements is exceeded.

A developer needs to ensure there is sufficient test coverage for an Apex method that interacts with ACcounts. The developer needs to create test data. What is the preferred way to load this test data into Salesforce? a. By using WebServiceTests b. By using Static Resources c. By using HttpCalloutMocks d. By using Documents

By using Static Resources

An sObject named Application__c has a lookup relationship to another sObject named Position__c. Both Application__c and Position__c have a picklist field named Status__c. When the Status__c field on Position is updated, the Status field on Application needs to be populated automatically with the same value, and execute a workflow rule on Application. How can a developer accomplish? A) By changing Application_c.Status_c into a roll -up summary field. B) By changing Application_c.Status_c into a formula field. C) By using an Apex trigger with a DML operation. D) By configuring a cross-object field update with a workflow.

By using an Apex trigger with a DML operation

A Visualforce page has a standard controller for an object that has a lookup relationship to a parent object. How can a developer display data from the parent record on the page? A. By adding a second standard controller to the page for the parent record. B. By using a roll-up formula field on the child record to include data from the parent record. C. By using SOQL on the Visualforce page to query for data from the parent record. D. By using merge field syntax to retrieve data from the parent record.

By using merge field syntax to retrieve data from the Parent Record.

How can a developer determine, from the DescribeSObjectResult, if the currenct user will be able to create records for an object in Apex? A. By using the isInsertable() method. B. By using the isCreatable() method. C. By using the hasAccess() method. D. By using the canCreate() method

By using the isCreatable() method

What will be the result if the code below is executed when the variable testRawScore is 75? if (testRawScore &gt;= 90) { gradeEqual = 'A'; } else if (testRawScore &gt;= 80) { gradeEqual = 'B'; } else if (testRawScore &gt;= 70) { gradeEqual = 'C'; } else if (testRawScore &gt;= 60) { gradeEqual = 'D'; } System.debug(gradeEqual); A. A B. B C. C D. D

C

Which Content Security Policy (CSP) configuration is required to access the Streaming API and call Apex methods from within a Lightning container component? A. CSP set to low B. CSP set to minimum C. CSP set to Lightning D. CSP set to custom

CSP set to low

How can a developer check if a user has read access to a field and the field can be displayed on the Visualforce page? A. Call the isAccessible() method of Schema.DescribeFieldResult to verify field level read permission B. Call the isViewable() method of Schema.DescribeFieldResult to verify field level read permission C. Call the isReadable() method of Schema.SObjectResult to verify field level read permission D. Call the IsAccessible() method of Schema.DescribeSObjectResult to verify field level read permission

Call the isAccessible() method of the Schema.DescribeFieldResult to verify field level read permission

What is the easiest way to verify a user before showing them sensitive content? A) Sending the user a SMS message with a passcode. B) Calling the generateVerificationUrl method in apex. C) Sending the user an Email message with a passcode. D) Calling the Session.forcedLoginUrl method in apex.

Calling the generateVerificationUrl method in Apex

Company is using assignment rules to distribute cases to regional teams. Which of the following are true? A. It is possible to have multiple active assignment rules B. Cases may be assigned to public groups (if configured) C. Cases may be assigned to queues (if configured) D. A workflow field update can be used instead

Cases may be assigned to queues (if configured)

A developer has completed work in the sandbox and is ready to send it to a related org. What deployment tool should be used? A. Change Sets B. Force.com IDE C. Unmanaged Packages D. Force.com Migration Tool

Change Sets

You are trying to decide whether to use a master-detail or lookup relationship between two objects. Which of the following considerations are FALSE? A. In a master-detail relationship, if the master record is deleted, the detail records will all be deleted B. Child records in master-detail relationships on custom objects cannot be reparented C. Custom objects on the detail side of a master-detail relationship cannot have queues D. A custom object cannot be on the master side of a relationship with a standard object

Child records in master-detail relationships on custom objects cannot be reparented

What is the method in the second line of code snippet below called? public class sampleClass(){ public sampleClass(){ //logic here } public void sampleMethod(){ //logic here } } A. Modifier B. Constructor C. Extension D. Initiator

Constructor

In order to create an App Launcher component in Lightning what must an admin do? A. Navigate to Setup-Customize-User Interface to enable the component for the Lightning App Builder. B. Contact Salesforce to have the component activated for the Lightning App Builder. C. Purchase a license for the Lightning App Builder. D. Join the pilot Lightning App Builder team

Contact Salesforce to have the component activated for the Lightning App Builder

What is the name of the standard relationship from Account down to Contact? A. Accounts B. Contacts C. Account D. Contact

Contacts

Which new option in Winter '17 improves sandbox creation by reducing the data in a Full Sandbox? A. Data Compression B. Template Optimizer C. Login History D. Content Version History

Content Version History

A candidate may apply to multiple jobs at the company by submitting a single application per job posting. Applications cannot be modified to be resubmitted to a different job posting. What can the admin do to associate an application with each job posting in the schema for the org? A) Create a lookup relationship on both objects to a junction object called Job Posting Applications. B) Create a master-detail relationship in the Job Postings custom object to the Applications custom object. C) Create a master-detail relationship in the Application custom object to the Job Postings custom object. D) Create a lookup relationship in the Applications custom object to the Job Postings custom object.

Create a Master-Detail relationship in the application custom object to the Job Postings custom object

Company 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-5 and displayed as a set of radio buttons. How can a developer meet this requirement? A. Create the Interview score field as a picklist, displayed as a radio button on page layout B. Create a formula field that displays the interview score as a set of radio buttons C. Create the interview score field with a data type of radio button D. 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

A developer is creating a Training application to track training courses and the enrollment of the candidates. Each candidate can enroll in multiple training courses at a time. How can the developer achieve this? A. Create a junction object to relate many candidates to many training courses through master-detail relationships. B. Create a master-detail relationship between Candidate and Training Course C. Create a lookup relationship between Candidate and Training Course D. Create a junction object to relate Candidates to Training Courses and use lookup relationships to relate the junction object to Candidates and Training Courses

Create a junction object to relate many candidates to many training courses through master-detail relationships.

A developer is creating an application to track engines and their parts. An individual part can be used in different types of engines. What data model should be used to track the data and prevent orphan records? A) Create a junction object to relate many engines to many parts through a master-detail relationship B) Create a lookup relationship to represent how each part relates to the parent engine object. C) Create a master-detail relationship to represent the one-to-many model of engines to parts. D) Create a junction object to relate many engines to many parts through a lookup relationship

Create a junction object to relate many engines to many parts through a master-detail relationship

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 position. A position record need not have details of candidates and a candidate record can also be kept blank. A position can be applied to by multiple candidates, while a candidate can also apply for multiple positions. What can be done to achieve this? A. Create a master-child relationship between them B. Create a junction object to store both the values C. Create a lookup relationship of candidate on position D. Create a Visualforce page

Create a junction object to store both the values

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 to a different job posting. What can the administrator do to associate an application with each job posting in the schema for the organization? a) Create a master-detail relationship in the Job Postings custom object to the Applications custom object. b) Create a master-detail relationship in the Application custom object to the Job Postings custom object. c) Create a lookup relationship on both objects to a junction object called Job Posting Applications. d) Create a lookup relationship in the Applications custom object to the Job Postings custom object

Create a master-detail relationship in the Application custom object to the Job Postings custom object.

What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected? A) Create a process with Process Builder. B) Create a workflow rule with a field update. C) Create a Lightning Component. D) Create a Visualforce page.

Create a process with Process Builder

The Sales Management team hires a new intern. The intern is not allowed to view Opportunities but needs to see the Most Recent Closed Date of all child Opportunities when viewing an Account record. What would a developer do to meet this requirement? A. Create a trigger on the Account object that queries the Close Date of the most recent Opportunities. B. Create a Workflow rule on the Opportunity object that updates a field on the parent Account. C. Create a formula field on the Account object that performs a MAX on the Opportunity Close Date field. D. Create a roll-up summary field on the Account object that performs a MAX on the Opportunity Close Date field.

Create a roll-up summary field on the Account object that performs a MAX on the Opportunity Close Date field

A reviewer is required to enter a reason in the comments field only when a candidate is recommended to be hired. Which action can a developer take to enforce this requirement? A. Create a required Visualforce component. B. Create a formula field. C. Create a required comments field. D. Create a validation rule.

Create a validation rule.

You have a requirement to display the total cost of products at the time they were added to an opportunity. The product cost is a custom field on the product object and is added as a formula field to the opportunity product object. How would you meet this requirement? A. Create a rollup summary field on the opportunity based on the product cost formula field B. Create a workflow rule that copies the product cost to a currency field and create a rollup summary field based on the currency field C. A trigger is required to sum the values of the product cost formula field D. A trigger is required to query the product cost values and update the opportunity

Create a workflow rule that copies the Product Cost to a currency field and create a roll-up summary field based on the currency field.

A company that uses a Custom object to track candidates would like to send candidate information automatically to a 3rd-party human resource system when a candidate is hired. What can a developer do to accomplish this task? A) Create an escalation rule to the hiring manager. B) Create an auto response rule to the candidate. C) Create a Process Builder with an outbound message action. D) Create a workflow rule with an outbound message action.

Create a workflow rule with an outbound message action

There is a requirement to track which Health Care Providers are related to which Hospitals. Hospitals are a type of Account. Health Care Providers is a custom object. A Hospital can be related to multiple Health Care Providers. How can this relationship be created? A. Create a master detail relationship field on the Health Care Provider object B. Create 2 master detail relationship fields one on the Health Care Provider object and one on the Account object C. Create an additional object to connect the other 2 objects and create 2 master detail relationship fields on that object D. Create 2 lookup relationship fields, one on the Health Care Provider object and one on the Account object

Create an additional object to connect the other 2 objects and create 2 master-detail relationship fields on that object

A developer would like to relate an external data object (Social Media Posts) to the Contacts object in Salesforce to track every post the Contact has made in the external platform. How can the developer achieve this? A. Create an indirect lookup relationship using a custom field with External ID and Unique attributes B. Create an external lookup relationship using a custom field with External ID and Unique attributes C. Create a master detail relationship and update the record ID through integration D. Create a lookup relationship and update the record ID through integration

Create an indirect lookup relationship using a custom field with External ID and Unique attributes

What is the proper process for an Apex Unit Test A. Query for test data using SeeAllData = true. Call the method being tested. Verify that the results are correct. B. Query for test data using SeeAllData = true. Execute runAllTests(). Verify that the results are correct. C. Create data for testing. Execute runAllTests(). Verify that the results are correct. D. Create data for testing. Call the method being tested. Verify that the results are correct.

Create data for testing. Call the method being tested. Verify that the results are correct.

Project Managers would like to be able to record the total amount of hours each team member works on projects. A team member can be related to multiple projects and each project can have multiple team members. How can the developer achieve this? A. Create a lookup relationship on both objects to a junction object called Project Team Member. B. Create a master-detail relationship on the Project object to the Team Member object. C. Create master detail relationships from a junction object 'Project Team Member', one to the Project object and one to the Team Member object D. Create a master-detail relationship on Project and Team Member objects to a junction object 'Project Team Member'.

Create two master-detail relationships from a junction object "Project Team Member" - one to Project object and one to Team Member object

Which of the following is NOT an example of a valid Apex variable? A. Map<ID, String> sampleMap; B. Boolean y; C. String a,b,c; D. Currency abc;

Currency abc;

Company wants to rollout new product bundles with several pricing options. Pricing options include product-price bundles, account-specific pricing and more. Which Product satisfies the needs? A. Workflow on Opportunity/Opportunity Product B. Custom Appexchange-app for product-pricing C. Formula fields on Opportunity/Opportunity Product D. Lightning process builder

Custom App exchange app for product-pricing

Company uses Salesforce for managing Claims. If an email is sent regarding a claim, it should be checked for a reference number and if found, attached to a claim record, and the status of the claim record updated. What feature would be most appropriate for this requirement? A. Email to Case B. Email to Custom Object C. Process Builder D. Custom Email Handler

Custom Email Handler

A developer needs to formulate a page that requires uploading an attachment for a specific record with all the fields for the record and the fields required in uploading the document. How can the developer satisfy this requirement? A. Custom Controller B. Standard Controller C. Custom List Controller D. Standard List Controller

Custom controller

In MVC, data model refers to? A. Custom tabs B. Custom fields C. Workflow rules

Custom fields

What will be the result if the code below is executed when the variable testRawScore is 75? if (testRawScore >= 90) { gradeEqual = 'A'; } if (testRawScore >= 80) { gradeEqual = 'B'; } if (testRawScore >= 70) { gradeEqual = 'C'; } if (testRawScore >= 60) { gradeEqual = 'D'; } System.debug(gradeEqual); A. A B. B C. C D. D

D (There's no ELSE operator)

What is the minimum log level needed to see user-generated debug statements? A. DEBUG B. FINE C. INFO D. WARN

DEBUG

What will be the result of an unhandled exception on any DML statements? A. DML statements will be rolled back B. DML statements will be saved up to the exception point C. A savepoint will be generated D. There is no impact on DML statements

DML statements will be rolled back

Which 2 objects can be queried with SOQL? A. DashboardSchedule B. DashboardRefresh C. DashboardComponent D. LightningComponent

Dashboard Component

A developer has to do a quick one-time load of 100 custom object records into a development environment. The data is in a csv file and each record contains 5 fields. Which tool would you recommend to use to load the data? A. Custom Object Import Wizard B. Data Import Wizard C. Data Loader D. Data API Tool

Data Import Wizard

A developer needs to create records for the object Property__c. The developer creates the following code block: List propertiesToCreate = helperClass.createProperties();try { // line 3 } catch (Exception exp ) { //exception handling } Which line of code would the developer insert at line 3 to ensure that at least some records are created, even if a few records have errors and fail to be created? A) Database.insert(propertiesToCreate, false); B) insert propertiesToCreate; C) Database.insert(propertiesToCreate, System.ALLOW_PARTIAL); D) Database.insert(propertiesToCreate);

Database.insert(propertiesToCreate, false);

Which of the following DML statements will allow other records in a list to be inserted even if there are records that failed? A. insert sObjectsToCreate; B. upsert sObjectsToCreate; C. Database.insert(sObjectsToCreate,true); D. Database.insert(sObjectsToCreate,false);

Database.insert(sObjectsToCreate,false);

To which primitive data type in Apex is a currency field automatically assigned? A) Integer B) Decimal C) Double D) Currency

Decimal

Which data type is appropriate for a numerical value of 726.234 stored in the variable totalCost? A. Integer totalCost; B. Decimal totalCost; C. Long totalCost; D. Numeric totalCost;

Decimal totalCost;

After reviewing the following code, what comments would you provide? public String personnelSearch {get;set;} string dep = ApexPages.currentPage().getParameters().get('department'); if (dep != null) { string query = 'select id, name from '+dep+' limit 10′; // some code here } A. Use a variable instead of getting a parametric value on URL. B. Define exact condition in [if(dep != null)] and avoid using null. C. Add more fields and expand limits [limit 10] on string query to refine search. D. It is not advisable to use string queries. Refrain from using those. E. The code is working well. Keep it up!

Define exact condition in [if(dep != null)] and avoid using null

Where would a developer build a managed package? A. Developer Sandbox B. Unlimited Edition C. Partial Copy Sandbox D. Developer Edition

Developer Edition

Which permission is required to install and uninstall packages from Salesforce AppExchange? A. Manage Package Licenses B. Upload AppExchange Packages C. Download AppExchange Packages D. Create AppExchange Packages

Download AppExchange Packages

Which standard field needs to be populated when a developer inserts new Contact records programmatically? Accountld Name LastName FirstName

LastName

How can you make an External Object searchable via SOSL? A. Request a custom index from Salesforce Support B. Enable the "Allow Search" checkbox on the object C. Use the Search.QueryExternal() method D. Enable the "Is Searchable" checkbox on the object

Enable the "Allow Search" checkbox on the object

Company has a custom object "Service" which has a lookup relationship to Account. Company wants to enhance SF1 with an action that allows Account Managers to enter a new service to an Account while looking at the Account. How to accomplish? A. Enter an object specific action to Service and put it in the Account Layout B. Enter an object specific action to Service and put it in the Service Layout C. Enter an object specific action to Account and put it in the Account Layout D. Enter an object specific action to Account and put it in the Service Layout

Enter an object-specific action to Account and put it in the Account layout

What is the result of following code block ? integer x = 1; integer y = 0; while(x < 10){ y++; } What is the output : A. Error B. 9 C. 0 D. 10

Error

A developer executes following code in Console. What will happen? list<Account> flist = new list<Account>(); for(integer i=1;i<=200 ;i++){ flist.add(new Account(name='Test Acc'+i)); } insert flist; list<Account> Llist = new list<Account>(); for(integer i=201;i<=20000 ;i++){ Llist.add(new Account(name='Test Acc'+i)); } insert Llist ; A. Error will occur B. Insert all records C. Insert 200 only D. Records inserted

Error will occur

What is a capability of the Developer Console? A. Execute Anonymous Apex code, Create/Edit code, view Debug Logs. B. Execute Anonymous Apex code, Run REST API, create/Edit code. C. Execute Anonymous Apex code, Create/Edit code, Deploy code changes. D. Execute Anonymous Apex code, Run REST API, deploy code changes.

Execute anonymous Apex code, Create/Edit code, view Debug Logs

Which is NOT a capability of the schema builder? A. Create a custom object B. Delete a custom object C. Create Lookup and master detail relationships D. Export the schema definition

Export the schema definition

Which of the following is NOT a capability of the schema builder? A. Create a custom object B. Delete a custom object C. Create Lookup and master detail relationships D. Export the schema definition

Export the schema definition

A salesperson only sees the Social Contact's link for Twitter and not Facebook on his records. Why would this be happening? A. Facebook is no longer supported by Social Contacts B. The administrator hasn't enabled Social Contacts for Facebook C. The salesperson's login with Facebook has expired D. None of his Facebook contacts have confirmed the nature of their relationship

Facebook is no longer supported by Social Contacts

When the number of records in a recordset is unknown, which control statement should a developer use to implement a set of code that executes for every record in the recordset, without performing a .size() or .length() method call? A) For (init_stmt, exit_condition; increment_stmt) { } B) Do { } While (Condition) C) For (variable : list_or_set) { } D) While (Condition) { ... }

For (variable : list_or_set) {}

Which option would a developer use to display the Accounts created in the current week and the number of related Contacts using a debug statement in Apex? a) For(Account acc: [SELECT Id, Name,(SELECT Id, Name FROM Contacts) FROM Account WHERE CreatedDate = THIS_WEEK]) { List cons = acc.Contacts; System.debug(acc.Name + ' has ' + cons.size() + 'Contacts'; } b) For(Account acc: [SELECT Id, Name, (SELECT Id, Name FROM Contacts) FROM Account WHERE CreatedDate = CURRENT_WEEK]){ List cons = acc.Contacts; System.debug(acc.Name + ' has ' + cons.size() + 'Contacts'); } c) For(Account acc:[SELECT Id, Name, Account.Contacts FROM Account WHERE CreatedDate = CURRENT_WEEK]) { List cons = acc.Account.Contacts; System.debug(acc.Name + ' has ' + cons.size() + 'Contacts'); } d) For(Account acc: [SELECT Id, Name, Account.Contacts FROM Account WHERE CreatedDate = THIS_WEEK]){ List cons = acc.Account.Contacts; System.debug(acc.Name + ' has ' + cons.size() + 'Contacts' }

For(Account acc: [SELECT Id, Name,(SELECT Id, Name FROM Contacts) FROM Account WHERE CreatedDate = THIS_WEEK]) { List cons = acc.Contacts; System.debug(acc.Name + ' has ' + cons.size() + 'Contacts'; }

Which deployment tools will you use to deploy METADATA from one org to another org? A. Change sets B. Force.com IDE C. Unmanaged Packages

Force.com IDE

Which API cannot be used to create the data model? A. Force.com Single Sign-on API B. Force.com Metadata API C. AJAX Tookit for Force.com D. Force.com API

Force.com Metadata API

How would a developer write a query to return the number of leads for each lead source? A. SELECT LeadSource, COUNT(Name) FROM Lead GROUP BY LeadSource B. SELECT GROUP(LeadSource) FROM Lead C. SELECT COUNT(LeadSource) FROM Lead D. SELECT COUNT(*) FROM Lead GROUP BY LeadSource

SELECT LeadSource, COUNT(Name) FROM Lead GROUP BY LeadSource

A developer creates a custom controller and custom Visualforce page by using the following code block: public class myController {public String myString;public String getMyString() {return 'getmyString';}public String getStringMethod1() {return myString;}public String getStringMethod2() {if (myString == null)myString = 'Method2';return myString;}}{!myString}, {!StringMethod1}, {!StringMethod2}, {!myString} What does the user see when accessing the custom page? A) GetMyString , , Method2 , getMystring B) , , Method2 , getMyString C) , , Method2, D) GetMyString , ,

GetMyString , , Method2 , getMystring

A developer should keep in mind the following about getter and setter methods except which? A. Getters methods may include increment a variable, write a log message, or add a new record to the database. B. Any setter methods in a controller are automatically executed before any action methods. C. While a getter method is always required to access values from a controller, it's not always necessary to include a setter method to pass values into a controller. D. Getter methods must always be named getVariable while setter methods must always be named setVariable.

Getters methods may include increment a variable, write a log message, or add a new record to the database.

What is an important consideration when developing in a multi-tenant environment? A. Governor limits prevent tenants from impacting performance in multiple orgs on the same instance. B. Unique domain names take the place of namespaces for code developed for multiple orgs on multiple instances. C. Polyglot persistence provides support for a global, multilingual user base in multiple orgs on multiple instances. D. Org-wide data security determines whether other tenants can see data in multiple orgs on the same instance.

Governor limits prevent tenants from impacting performance in multiple orgs on the same instance.

Which statement would a developer use when creating test data for product and pricebooks? A. Id pricebookId = Test.getStandardPricebookId(); B. Pricebook pb = new Pricebook(); C. IsTest(SeeAllData = false); D. List objList = Test.loadData(Account.sObjectType, 'myResource');

Id pricebookId = Test.getStandardPricebookId()

Which code segment can be used to control when the dowork() method is called? A) For (Trigger.isRunning t: Trigger.new) { dowork(); } B) If(Trigger.isRunning) dowork(); C) For (Trigger.isInsert t: Trigger.new) { dowork(); } D) If(Trigger.isInsert) dowork();

If(Trigger.isInsert) dowork();

A developer needs to create a Visualforce page that will override the standard Account edit button. The page will be used to validate the Account's address using a SOQL query. The page will also allow the user to make edits to the address. Where would the developer write the Account address verification logic? A. In a Standard Extension. B. In a Standard Controller. C. In a Custom Controller. D. In a Controller Extension.

In a Controller Extension

Company has included its orders as an external data object into Salesforce. You want to create a relationship between Accounts and the Orders object (1:Many) leveraging a key field for Account which is on both external object and Account. Which relationship do you create? A. Master Detail Relationship B. Indirect Lookup Relationship C. Lookup Relationship D. Hierarchical Relationship E. External Lookup Relationship

Indirect Lookup Relationship

A developer needs to create a new Contact record in his Apex Trigger. What DML statement should be used in the code? A. Insert B. Upsert C. Merge D. Create

Insert

A company would like to send an offer letter to a candidate, have the candidate sign it electronically, and then send the letter back. What can a developer do to accomplish this? a) Create a visual workflow that will capture the candidate's signature electronically b) Develop a Process Builder that will send the offer letter and allow the candidate to sign it electronically. c) Install a managed package that will allow the candidate to sign documents electronically d) Create an assignment rule that will assign the offer letter to the candidate

Install a managed package that will allow the candidate to sign documents electronically.

A developer needs to initialize a numerical value of 17. What data type should the developer use? A. String B. Blob C. Numeric D. Integer

Integer

Visualforce components are similar to which type of tag library containing tag namespace prefixes? A. ASP tag library B. JSP tag library C. ASP log file D. DL JSP log file

JSP Tag Library

In the Lightning Component framework, where is client-side controller logic contained? A) Apex B) Visualforce C) HTML D) JavaScript

JavaScript

A developer uses a before insert trigger on the Lead object to fetch the Territory__c object where the Territory__c.PostalCode__c matches the Lead.PostalCode. The code fails when the developer uses the Apex Data Loader to insert 10k Lead records. The developer has the following code block - Which line of code is causing the code block to fail? Line-01: for (Lead l : Trigger.new){ Line-02: if (l.PostalCode != null) { Line-03: List<Territory__c> terrList = [SELECT Id FROM Territory__c WHERE PostalCode__c = :l.PostalCode]; Line-04: if(terrList.size() > 0) Line-05: l.Territory__c = terrList[0].Id; Line-06: } Line-07: } A) Line-03: A SOQL query is located inside of the for loop code. B) Line-01: Trigger:new is not valid in a before insert Trigger. C) Line-02: A NullPointer exception is thrown if PostalCode is null. D) Line-05: The Lead in a before insert trigger cannot be updated.

Line-03: A SOQL query is located inside of the for loop code

The following options are possible expressions to initialize a List except: A. List<Account> accList = new List<Account>(); B. Account[] accList = new Account[]{}; C. List<Account> new = 'accList'; D. List<Account> accList = new Account[]{};

List<Account> new = 'accList'

Which scenario is invalid for execution by unit tests? A. Executing methods for negative test scenarios B. Loading the standard Pricebook ID using a system method C. Loading test data in place of user input for Flows. D. Executing methods as different users.

Loading test data in place of user input for Flows

What is a consideration for Locker Service Enablement? A. Locker Service is enabled for custom Lightning Components implementing the interface force:enforceLockerService B. Locker Service is enabled for all custom lightning components with API version 40.0 or greater. C. Locker Service is disabled for custom Lightning Components implementing the interface force:ignoreLockerService D. Locker Service is disabled for all custom Lightning Components, regardless of the API version.

Locker Service is enabled for all custom lightning components with API version 40.0 or greater.

A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to a parent Account in Salesforce. Which kind of relationship would a developer use to relate the Account to the Warehouse? A) One -to -Many B) Lookup C) Master -Detail D) Parent -Child

Lookup

Your company has a requirement to track the vehicles assigned to work orders. Vehicles can exist without Work Orders and have a record owner. What kind of relationship should be created between Work Orders and Vehicles A. Master Detail B. Lookup C. Picklist D. Hierarchy

Lookup

Global Insurance has custom objects to represent Policies and Claims. A Policy can have zero or many Claims. A Claim is always related to a Policy. Claims are first assigned to a queue and then later assigned to different members of the Claims team. What type of relationship would be used? A. Master-detail relationship B. Lookup relationship C. Self relationship D. Direct relationship

Lookup relationship

Company has a custom object that has a N:M relationship with OpportunityLineItem carrying price and amount information. In order to compute total amounts and total prices per Opportunity using Rollup summary fields, what field type will you use? A. Crossobject B. Lookup C. Master-Detail D. Junction

Master-Detail

Which portion of the Model-View-Controller paradigm is represented in Force.com as a standard of custom object? A. Model B. Controller C. View

Model

What is the correct way to describe how Model-View-Controller (MVC) architecture is implemented on the Salesforce platform? A. Model: Standard and Custom Objects; View: Visualforce Pages; Controller: s-Controls B. Model: Schema Builder; View: List Views; Controller: Setup Console C. Model: Standard and Custom Objects; View: Visualforce Pages; Controller: Apex Code D. Model: Apex Code; View: List Views; Controller: Setup Console

Model: Standard and Custom Objects View: Visualforce Pages Controller: Apex Code

What is a benefit of the lightning component framework? A. Better integration with Force.com sites B. Better performance for custom Salesforce1 Mobile Apps C. More Centralized control via server-side logic D. More pre-built components to replicate the salesforce look and feel

More pre-built component to replicate the Salesforce look and feel

A developer wants to list all of the Tasks for each Account on the Account detail page. When a task is created for a Contact, what does the developer need to do to display the Task on the related Account record? A. Nothing. The task is automatically displayed on the Account page. B. Nothing. The Task cannot be related to an Account and a Contact. C. Create a Workflow rule to relate the Task to the Contact's Account. D. Create an Account formula field that displays the Task information

Nothing. The task is automatically displayed on the Account page.

A developer has the following code: {List nameList;Account a;String s = a.Name;nameList.add(s);} catch (ListException le ) {System.debug(' List Exception ');} catch (NullPointerException npe) {System.debug(' NullPointer Exception ');} catch (Exception e) {System.debug(' Generic Exception ');} What message will be logged? A. List Exception B. NullPointer Exception C. Generic Exception D. No message is logged

NullPointer Exception

Which of the following field types can a roll-up summary field calculate? A. Number B. Text C. Checkbox D. Picklist

Number - Number, currency, and percent fields are available when you select SUM as the roll-up type. - Number, currency, percent, date, and date/time fields are available when you select MIN or MAX as the roll-up type

In the code below, what type does Boolean inherit from? Boolean b= true; A) Enum B) Object C) String D) Class

Object

A custom object has a OWD default setting of "Private" with Grant Access Using Hierarchies turned off. Which users can select the Sharing Button on records for that object? A. Only the record owner and a user with the System Administrator profile B. The record owner, a user with the System Administrator profile, and a user shared to the record C. 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 D. The record owner, a user above the record owner in the role hierarchy, and a user with the System

Only the record owner and a user with the System Administrator profile

A developer created an Apex trigger using the Developer Console and now wants to debug code. How can the developer accomplish this in the Developer Console? - Select the Override Log Triggers checkbox for the trigger - Add the user name in the Log Inspector. - Open the Progress tab in the Developer Console. - Open the logs tab in the Developer Console.

Open the Logs tab in the Developer Console

Company wants an org for development which can be refreshed every 5 days with all the configuration and some data. What org do you choose? A. Developer Sandbox B. Developer Pro Sandbox C. Partial copy sandbox D. Full Sandbox

Partial Copy Sandbox

A developer has the following code block - to calculate the productTax, which code segment would a developer insert at the XXXXXXXXXX to make the value the class variable SalesTax accessible with the trigger? public class PaymentTax { public static decimal SalesTax = 0.0875; } trigger OpportunityLineItemTrigger on OpportunityLineItem (before insert, before update) { PaymentTax PayTax = new PaymentTax(); decimal ProductTax = ProductCost * XXXXXXXXXXX; } A) SalesTax B) PayTax.SalesTax C) PaymentTax.SalesTax D) OpportunityLineItemTngger.SalesTax

PaymentTax.SalesTax

Where would you find identical Force.com IDs? A. Production and Full Copy Sandbox only B. Production and Dev Sandbox only C. Two developer orgs D. Two Sandbox orgs

Production and Full Copy Sandbox only

What determines whether a user can create a new record using a specific record type? A. Profile B. Page layout C. Field level security D. Sharing

Profile

What is a correct pattern to follow when programming in Apex on a multi-tenant platform? A) Apex code is created in a separate environment from schema to reduce deployment errors. B) DML is performed on one record at a time to avoid possible data concurrency issues. C) Queries select the fewest fields and records possible to avoid exceeding governor limits. D) Apex classes use the ''with sharing" keyword to prevent access from other server tenants

Queries select the fewest fields and records possible to avoid exceeding governor limits

What is the discretionary clause that can be added to a SOSL query to specify the information to be returned in the text search result? A. LIMIT n B. RETURNING C. OFFSET n D. ORDER by

RETURNING

Which component type will display the details of the parent object from a custom lightning record for contact page? A. Related record component B. Parent component C. Hierarchy component D. Filter list component

Related record component

How would a developer change the field type of a custom field on the Account object from string to an integer? A) Make the changes in the developer console, and then the change will automatically be reflected in the Apex code. B) Make the change in the declarative UI, then update the field type to an integer field in the Apex code. C) Make the change in the declarative UI, an then the change will automatically be reflected in the Apex code. D) Remove all references in the code, make the change in the declarative UI, and restore the references with the new type.

Remove all references in the code, make the change in the declarative UI, and restore the references with the new type.

A developer notices that the code below returns only 20 Account records though he expected 60. Which of the following is true regarding SOSL query limits? FIND {test} RETURNING Account(id), Contact, Opportunity LIMIT 60 A. Limits cannot be set in SOSL queries B. Results were evenly distributed among the objects returned. C. Limits have to be individually assigned per object. D. The SOSL Syntax is incorrect.

Results were evenly distributed among the objects returned.

Which of the following is required when defining an Apex Class Method? A. Access Modifiers B. Return Data type C. Definition Modifiers D. Input parameters

Return Data Type

An administrator needs to get records with locations saved in geolocation or address fields as individual latitude and longitude values. Which SOQL statement accomplishes this goal? A. SELECT Id, Name, Location__latitude__s, Location__longitude__s FROM CustomObject__c B. SELECT Id, Name, Location__latitude__c, Location__longitude__c FROM CustomObject__c C. SELECT Id, Name, Location__r.latitude__c, Location__r.longitude__c FROM CustomObject__c D. SELECT Id, Name, Location__r.latitude, Location__r.longitude FROM CustomObject__c

SELECT Id, Name, Location__Latitude__s, Location__longitude__s FROM CustomObject__c

Which features enables creating, updating and deleting records in other SF orgs? A. Salesforce Connect Cross- Org Adapter. B. Lightning - to - Lightning Connector C. Database.WriteableObject Interface D. Apex triggers for Writeable External objects.

Salesforce Connect Cross-Org Adapter

Which of the following statements about delete and undelete DML operation is NOT true? A. If a parent object is deleted, its children are automatically deleted, as long as each child record can be deleted. B. Salesforce can restore lookup relationships that have been replaced. C. Restoring all custom lookup relationships is supported by the undelete operation. D. Parent accounts (as specified in the Parent Account field on an account) are supported by the undelete operation.

Salesforce can restore lookup relationships that have been replaced

Which use case requires a partial copy or full sandbox (3) A. Scalability Testing B. Development Testing C. Quality Assurance Testing D. Batch Data Testing E. Integration Testing

Scalability Testing Batch Data Testing Integration Testing

Dashboard refresh can be monitored using: A. Apex jobs B. Scheduled jobs C. Dashboard jobs D. Report jobs

Scheduled Jobs

Which of the following will you use for browsing objects and fields in the Force.com IDE? A. Force.com Projects B. Schema Explorer C. Development Work Area D. Debug View

Schema Explorer

A Visualforce page displays two fields named Phone Number and Email. User1 has access to Phone Number but not Email. User2 has access to Email but not Phone Number. A developer needs to ensure that User1 can only see Phone Number and User2 can only see Email. Which method can the developer use to achieve this? A) Schema isUpdateable() method. B) Schema isAccessible() method. C) Schema isReadable() method. D) Schema isCreateable() method.

Schema isAccessible() method

In Process Builder, how can you make a process reusable and invoke it from other processes or action groups in the same process? A. Check the Invocable Process checkbox option B. Reference the process from an Apex method annotated with @InvocableMethod C. No configuration is required because all processes become invocable in Winter '17 D. Select "It's invoked by another process" from the "The process starts when" picklist

Select "It's invoked by another process" from the "The process starts when" picklist.

A developer needs to get the Contact records with a last name that starts with 'Ab'. What code in the options below will satisfy his requirements? A. SELECT Id, LastName FROM Contact WHERE LastName LIKE 'Ab%' B. SELECT Id, LastName FROM Contact WHERE LastName IN ('Ab') C. SELECT Id, LastName FROM Contact WHERE LastName LIKE 'Ab_' D. SELECT Id, LastName FROM Contact WHERE LastName := 'Ab%'

Select Id, LastName FROM Contact WHERE LastName LIKE 'Ab%'

Actions on a Lightning Page allow you to do which of the following? A. Send email and delete or clone records. B. Send email, create a task, and create or update records. C. Clone records, add users, and assign permissions. D. Send email, send outbound messages, and launch a flow.

Send email, create a task, and create or update records

A developer created a simple VF page calculator that has 2 numerical inpur fields and performs an arithmetic operation based on the user input. What method shold the developer use in order to process and calculate the input of the user in the controller? A. Process Method B. Input Method C. Setter Method D. Pass Method

Setter Method

To enable the Publisher Actions area on Page Layouts, navigate to: A. Setup | Customize | Feeds | Settings B. Setup | Customize | Chatter | Settings C. Setup | Customize | Actions | Settings D. Setup | Customize | <Objects> | Settings

Setup | Customize | Chatter | Settings

How do the CSS enhancement to the Lightning Design System improve the developer experience? A. Class names are abbreviated to reduce code length. B. Class names are available in upper and lower case. C. Uppercase is used to distinguish from custom class names. D. Single underscores (dashes) are used in class names to enable commenting Salesforce Lightning.

Single underscores (dashes) are used in class names to enable commenting Salesforce Lightning

Objects of this Apex class allow developers to create list controllers similar to, or as extensions of, the pre-built VF list controllers provided by Salesforce. A. StandardSetController Class B. StandardController Class C. Controller Class D. VisualforceSetController Class E. VisualforceControllerClass F. None of the above

StandardSetController Class

A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL. Which statement is unnecessary inside the unit test for the custom controller? A) Public ExtendedController (ApexPages.StandardController cntrl) { } B) ApexPages.currentPage().getParameters().put('input', 'TestValue') C) Test.setCurrentPage(pageRef), D) String nextPage = controller.save().getUrl();

String nextPage = controller.save().getUrl(); Maybe #2) Public ExtendedController (ApexPages.StandardController cntrl) {}

The developer executes the code below and an error is returned indicating that a variable is not properly declared. String str = new String(); public void stringDisplay() { str = 'Hello'; system.debug(str); } What is the proper way of declaring a String data type variable? A. Text str; B. String new = str String(); C. String str; D. String = str();

String str;

When creating unit tests in Apex, which statement is accurate? A) Unit tests with multiple methods result in all methods failing every time one method fails. B) Increased test coverage requires large test classes with many lines of code in one method. C) Triggers do not require any unit tests in order to deploy them from sandbox to production. D) System Assert statements that do not Increase code coverage contribute important feedback in unit tests

System Assert statements that do not increase code coverage contribute important feedback in unit tests Maybe #2) Increased test coverage requires large test classes with many lines of code in one method

Each setSavepoint() and rollback statement counts against the total number of DML statements A) TRUE B) FALSE

TRUE

Which standard actions can be overridden with Lightning Components? A. List, Edit, New, Delete B. Tab, View, Edit, New C. View, Edit, New, Delete D. List, View, Edit, New

Tab, View, Edit, New

How can a developer access a static variable named TaxRate declared in a different Apex class name TaxCalculation? A. TaxCalculation.TaxRate B. TaxCalculation.TaxRate() C. (new TaxCalculation()).TaxRate D. (new TaxCalculation()).TaxRate()

TaxCalculation.TaxRate

A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for that object. What happens when a user updates a record? A) No changes are made to the data. B) Both the Apex Trigger and Workflow Rule are fired only once. C) The Workflow Rule is fired more than once. D) The Apex Trigger is fired more than once

The Apex Trigger is fired more than once

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? A. The Account should have a Master-Detail relationship to the Invoice. B. The Invoice should have a Master-Detail relationship to the Account C. The Account should have a Lookup relationship to the Invoice D. The Invoice should have a Lookup relationship to the Account Previous

The Invoice should have a Master-Detail relationship to the Account

Which statement about the Lookup Relationship between a Custom Object and Standard Object is correct? A) The Lookup Relationship on the Custom Object can prevent the deletion of the Standard Object. B) The Lookup Relationship cannot be marked as required on the page layout for the Custom Object. C) The Custom Object will be deleted when the referenced Standard Object is deleted. D) The Custom Object inherits security from the referenced Standard Objects

The Lookup Relationship on the Custom Object can prevent the deletion of the Standard Object

What must the Controller for a Visualforce page utilize to override the Standard Opportunity view button? A) The StandardSetController to support related lists for pagination. B) The Opportunity StandardController for pre -built functionality. C) A callback constructor to reference the StandardController. D) A constructor that initializes a private Opportunity variable.

The Opportunity StandardController for pre-built functionality

The following statements about Do-While and While loops are true except which? A. The while statement continually executes a block of statements while a particular condition is true. B. The do-while statement evaluates its expression at the top of the loop instead of the bottom. C. The statements within the do block are always executed at least once. D. A developer can implement an infinite loop using the while statement.

The do-while statement evaluates its expression at the top of the loop instead of the bottom.

A developer has the following trigger that fires after insert and creates a child Case whenever a new Case is created. What happens after the code block executes? List<Case> childCases = new List<Case>(); for (Case parent : Trigger.new){ Case child = new Case(ParentId = parent.Id, Subject = parent.Subject); childCases.add(child); } insert childCases; A) Multiple child cases are created for each parent case in Trigger.new. B) Child case is created for each parent case in Trigger.new. C) The trigger enters an infinite loop and eventually fails. D) The trigger fails if the Subject field on the parent is blank.

The trigger enters an infinite loop an eventually fails

Describe the ramifications of field updates and potential for recursion for the following scenario: If a field update for Rule1 triggers Rule2 and a field update for Rule2 triggers Rule1. A. The updates create a loop and the org limits for workflow time triggers per hour will likely be violated. B. When the second trigger is saved a Imminent Loop Error message will be displayed and the workflow rule update will not save. C. The updates create a loop and the org will be blocked until the admin resolves the issue. D. Loop is allowed to run 25 times within one hour. If it does not end on its own the process will be stopped by R&D.

The updates create a loop and the org limits for workflow time triggers per hour will likely be violated

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? A. The field will not appear in the edit layout. B. The user will see only masked characters, but can enter a new value and save it. C. It will throw an error on changing that field and saving it. D. 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.

In an organization that has enabled multiple currencies, a developer needs to aggregate the SUM of the Estimated_Value__c currency field from the CampaignMember object using a roll-up summary field called Total_Estimated_Value__c on Campaign. A) The values in Campaignmember.Estimated_value__c are converted into the currency of the Campaign record and the sum is displayed using the currency on the Campaign record. B) The values in CampaignMember.Estimated_value__c are converted into the currency on the majority of the CampaignMember records and the sum is displayed using that currency. C) The values in CampaignMember.Estimated_value__c are summed up and the resulting Total_estimated_value__c field is displayed as a numeric field on the Campaign record. D) The values In CampaignMember.Estimated_value__c are converted into the currency of the current user, and the sum is displayed using the currency on the Campaign record.

The values in Campaignmember.Estimated_Value__c are converted into the currency of the Campaign record and the SUM is displayed in the currency on the Campaign Record.

Why would a developer use Test.startTest() and Test.stopTest()? A) To avoid Apex code coverage requirements for the code between these lines B) To start and stop anonymous block execution when executing anonymous Apex code C) To indicate test code so that it does not Impact Apex line count governor limits. D) To create an additional set of governor limits during the execution of a single test class.

To create an additional set of governor limits during the execution of a single test class

Which social networks are available in the Lightning Experience and Salesforce1? A. Klout B. Facebook C. LinkedIn D. Twitter

Twitter

What action types should be configured to display a custom success message? Update a record. Post a feed item. Delete a record. Close a case.

Update a record

Steadfast Insurance have a custom object (Claim) to track insurance claims. A team member will record a claim and an approval process is used for the Insurance Manager to approve the claim. In order to assist the manager, the team member's claim limit from their user record should be displayed on the claim record. How can this be developed? A. Use a field update in a workflow rule to copy the team members claim limit onto the claim record B. Use a cross object formula to display the users limit on the claim record C. Use a trigger to populate the user limit field when the claim is created D. Use Process Builder to populate the user limit field when the claim is created

Use a cross-object formula to display the users limit on the claim record

How can a dynamic SOQL query be constructed at runtime using input from an end user? A. Use the Database.query(string) with a query specified in the string B. Use the SOQL.execute(string) with a query specified in the string C. Use the Database.execute(string) with a query specified in the string D. Use the Database.search(string) with a query specified in the string

Use the Database.query(string) with a query specified in the string

Sam has completed a solution design and is ready to create the data model for a new application in Salesforce. There are a number of custom objects, each with a number of custom fields and relationships between the custom objects. What would you suggest to complete the task most efficiently? A. Use the Schema Builder to create custom objects and fields and the Create->Objects in Setup to create relationships B. Use the Schema Builder to create custom objects, fields and relationships C. Use the Schema Builder to create objects, fields and relationships need to be created using the Create Custom Field in Setup D. Create the Custom objects, fields and relationships using the Create->Objects in Setup and use the Schema Builder to verify the data model was created correctly.

Use the Schema Builder to create custom objects, fields and relationships

A developer needs to confirm that an Account trigger is working correctly without changing the organization's data. What would the developer do to test an Account trigger? A) Use the Test menu on the developer Console to run all test classes for the account trigger. B) Use the New button on the Salesforce Accounts Tab to create a new Account record. C) Use the Open Execute Anonymous feature on the Developer Console to run an 'insert Account' DML statement. D) Use Deply from the Force.com IDE to deploy an 'insert Account' Apex class.

Use the Test menu on the Developer Console to run all test classes for the Account trigger

On a Visualforce page with a custom controller, how should a developer retrieve a record by using an ID that is passed on the URL? A) Use the constructor method for the controller. B) Use the $Action.View method in the Visualforce page. C) Create a new PageReference object with the Id. D) Use the tag in the Visualforce page.

Use the constructor method for the controller

How can a developer get all picklist values of a specific field via Apex? A. Use the fieldPicklist method B. Use the getPicklistValues method C. Use the describePicklist method D. Use the globalPicklist method

Use the getPicklistValues method

How can a developer check if the current user is able to delete the current object? A. Use the isDeletable() method of the DescribeSObjectResult Class B. Use the canDelete() method of the DescribeSObjectResult Class C. Use the Deletable() method of the SObjectResult Class D. Use the canDelete() method of the SObjectResult Class

Use the isDeleteable() method of the DescribeSObjectResult Class

Company has built a recruiting application with two custom objects - Job Applications and Reviews that have a master-detail relationship. Users should NOT be allowed to delete Review records after Job Application records have been approved. How would a developer meet this requirement? A. Change the interviewer's profile to Read-only for the review object B. Use workflow to change the page layout to Read-only C. Remove the Delete button from the job application page layout D. Use a validation rule in conjunction with a roll-up summary field

Use validation rule in conjunction with a roll-up summary field.

The Review object has a lookup relationship to the Job Application object. The Job Application object has a master-detail relationship to to the Position object. The relationship is based on the auto-populated defaults. What is the recommended way to display field data from the related Review records in a VF Page for a single Position record? A) Utilize the Standard Controller for Position_c and cross-object Formula Fields on the Job_Application_c object to display Review_c data. B) Utilize the Standard Controller for Position_c and a Controller Extension to query for Review_c data. C) Utilize the Standard Controller for Position_c and expression syntax in the Page to display related Review_c through the Job_Applicacion_c inject. D) 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 data.

To fulfill a business requirement, a formula field of a child object has been used in a rollup summary field of a Master object. Will the roll-up summary field function correctly? A. Yes, using formula fields in a roll-up summary is fully supported B. Yes, if the formula field is not referring to another field in a different object C. Yes, if the formula field has a numeric value D. No, using formula fields in a roll-up summary is not supported.

Yes, if the formula field is not referring to another field in a different object (no cross-object formulas)

What is true about Social Accounts? A. You can use social accounts data even when you are not logged into the social account. B. You need a personal social account in order to see social account data C. You can use social accounts to import data into Salesforce D. Connection to social account is established through a company wide "named principal"

You need a personal social account in order to see social account data.

There are several escape sequences that can be used in queries so that a user query can contain special characters. The following are escape sequences commonly used except which? A. \' B. \" C. \\ D. \n E. \a

\a

How can a validity check be performed on a component? A. cmp.get() == true B. cmp.get("v.isValid") == true C. cmp.get() != null D. cmp.get("v.isValid") != null

cmp.get() != null

The following access modifiers are supported in Apex except which? A. private B. public C. global D. default

default

What is the correct syntax for a Do While procedural loop? A. do {statement} while (Boolean_condition); B. while (Boolean_condition){ do {statement}} C. do {while (Boolean_condition); statement;} D. do {statement; while (Boolean_condition);}

do {statement} while (Boolean_condition);

How can a developer ensure that a variable 'Day' will only contain specific set of constants such a SUNDAY, MONDAY, TUESDAY, etc? What should variable 'Day' be declared as?

enum Day{ SUNDAY, MONDAY, TUESDAY, .... etc}

Given the Visualforce page code below: <apex:page controller="SampleController"> <apex:pageBlock> <apex:repeat value="{!productList}" var="prd"> Product Name: {!prd.Name} Price: {!prd.Price} Description: {!prd.Description} </apex:repeat> </apex:pageBlock> </apex:page> The getter method in the controller method should be named as? A. productList B. getproductList C. setproductList D. productListExtension

getproductList

In the following line of code, why can the helloWorld method be called directly instead of instantiating the myClass? myClass.helloWorld('Hello'); A. helloWorld is defined as a static method B. helloWorld is defined as a void method C. myClass is defined as a static class D. myClass is defined as public

helloWorld is defined as a static method

Which Base Lightning Component will display a number of buttons together in the same navigation bar? A. ui:buttons B. lightning:buttonGroup C. lightning:layout D. ui:navigation

lightning:buttonGroup

Which of the following class variable declarations best describes the statement below? A variable numberOfStudents with a constant value of 25 that is accessible only within the Apex class in which it is defined. A. global static Integer numberOfStudents = 25; B. private static final Integer numberOfStudents = 25; C. public Integer numberOfStudents = 25; D. protected final Integer numberOfStudents = 25;

private static final Integer numberOfStudents = 25;

What is an accurate constructor for a custom controlled named "MyController" A. public MyController () { account = new Account () ; } B. public MyController (sObject obj) { account = (Account) obj; } C. public MyController (List objects) { accounts = (List ) objects; } D. public MyController (ApexPages.StandardController stdController) { account = (Account) stdController.getRecord(); }

public MyController () { account = new Account (); }

A Hierarchy Custom Setting stores a specific URL for each profile in Salesforce. Which statement can a developer use to retrieve the correct URL for the current user's profile display this on a Visualforce Page? {!$Setup.Url_Settings__C.Instance[Profile.Id].URL__c} {!$Setup.Url_Settings__C.URL__c} {!$Setup.Url_Settings__C.[Profile.Id].URL__c} {!$Setup.Url_Settings__C.[$Profile.Id].URL__c}

{!$Setup.Url_Settings__C.URL__c}


Conjuntos de estudio relacionados

WGU C211: Additional Study - 4th Attempt OA Quizzes

View Set

Chapter 6 Operant Conditioning (Part 2)

View Set

Communication and Interpersonal Skills

View Set

Chapter 13 Digital Marketing and social media

View Set

All Previous Quiz Questions and Answers

View Set

MLS 301 All available practice quizes

View Set

Study Guide for Mid term Quiz Topic 4

View Set