Quiz
Examen II Salesforce Developer
This quiz has a time limit, so it opens in the usual player.
Questions in this quiz (57)
1Which statement about change set deployments is accurate? choose 3 answers
- AThey can be used to transfer Contact records
- BThey require a deployment connection
- CThey can be used only between related organizations
- DThey can be used to deploy custom settings data
- EThey use an all or none deployment model
2A developer wants to display all 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?
Choose 2 answers.- AUse SOQL to query Case records in the org to get all values for the Status picklist field
- BUse Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues()
- CUse Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos()
- DUse SOQL to query Case records in the org to get all the RecordType values available for Case
3A 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'?- AAn empty List of Contacts
- BAn error that no rows are found
- CA contact initialized to null
- DA contact with empty
4A candidate may apply to multiple jobs at the company Universal Containers by submtting 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?- ACreate a master-detail relationship in the Job Postings custom object to the Applications custom object.
- BCreate a master-detail relationship in the Application custom object to the Job Postings custom object.
- CCreate a lookup relationship on both objects to a junction object called Job Posting Applications.
- DCreate a lookup relationship in the Applications custom object to the Job Postings custom object
5A developer writes a SOQL query to find child records for a specific parent.
How many levels can be returned in a single query?- A3
- B7
- C5
- D1
6What is a capability of formula fields?
Choose 3 answers- AGenerate a link using the HIPERLINK function to a specific record in a legacy system
- BReturn and display a field value from another object using the VLOOKUP function
- CDetermine if a datetime field has passed using the NOW function
- DDetermine which of three different images to display using IF function
- EDisplay the previous value for a field using the PRIORVALUE funtion
7Which user can edit a record after it has been loocked for approval?
Choose 2 answers- AAny user with a higher role in the hierarchy
- BAny user who approved the record previously
- CAn administrator
- DAn user who is assigned as the current approver
8A 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?- ABefore Trigger execution
- BBefore committing to database
- CAfter Trigger execution
- DAfter committing to database
9A 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 preffered way to load this test data into Salesforce?- ABy using HttpCalloutMocks
- BBy using Static Resources
- CBy using WebServiceTests
- DBy using Documents
10A 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?- AIn a Custom Controller
- BIn a Standard Extension
- CIn a Standard Controller
- DIn a Controller Extension
11A 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?- AThe Account should have a Master-Detail relationship to the Invoice.
- BThe Invoice should have a Master-Detail relationship to the Account
- CThe Account should have a Lookup relationship to the Invoice
- DThe Invoice should have a Lookup relationship to the Account
12A 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 and display this on a Visualforce page?- A{!$Setup.Url_Settings_c.Instance[Profile.Id].URL__c}
- B{!$Setup.Url_Settings__c.URL__c}
- C{!$Setup.Url_Settings__c[Profile.Id].URL__c}
- D{!$Setup.Url_Settings__c[$Profile.Id].URL__c}
13A 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?- ABy using SOQL on the Visualforce page to query for data from the parent record
- BBy using merge field syntax to retrieve data from the parent record
- CBy using a roll-up formula field on the child record to include data from the parent record
- DBy adding a second standard controller to the page for the parent record
14What is the minimum log level needed to see user-generated debug statements?
- AFINE
- BINFO
- CWARN
- DDEBUG
15How can a developer avoid exceeding governor limits when using an Apex Trigger?
Choose 2 answers- ABy using a helper class that can be invoked from multiple triggers
- BBy using the Database class to handle DML Transactions
- CBy using Maps to hold data from query results
- DBy performing DML transactions on lists of sObjects
16A 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?- ACreate an Account formula field that displays the Task information
- BNothing. The Task cannot be related to an Account and a Contact
- CNothing. The Task is automatically displayed on the Account Page.
- DCreate a Workflow Rule to relate the Task to the Contact´s Account
17When can a developer use a custom Visualforce page in a Force.com application?
Choose 2 answers- ATo modify the page layout settings for a custom object
- BTo create components for dashboards and layouts
- CTo generate a PDF document with application Data
- DTo deploy components between two organizations
18What is the proper process for an Apex unit test?
- ACreate data for testing. Execute runAllTests(). Verify that the results are correct.
- BCreate data for testing. Call the method being tested. Verify that the results are correct.
- CQuery for test data using SeeAllData= true. Call the method being tested. Verify that the results are correct.
- DQuery for test data using SeeAllData= true. Execute runAllTests(). Verify that the results are correct.
19When 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?
Choose 2 answers.- AAn Apex trigger on the Account object.
- BA Workflow Rule on the Account object.
- CA cross-object formula field on the Account object.
- DA process Builder on the Account object.
20A 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?- AAnonymous Blocks
- BApex Triggers
- CHTTP Callouts
- DApex Controllers
21Where would a developer build a managed package?
- AUnlimited Edition
- BDeveloper Edition
- CDeveloper Sandbox
- DPartial Copy Sandbox
22A 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?- ACreate a formula field
- BCreate a required comments field
- CCreate a validation rule.
- DCreate a required Visualforce component
23A 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 to prevent orphan records?- ACreate a lookup relationship to represent how each part relates to the parent engine object.
- BCreate a master-detail relationship to represent the one-to-many model of engines to parts.
- CCreate a junction object to relate many engines to many parts through a master-detail relationship
- DCreate a junction object to relate many engines to many parts through a lookup relationship
24Which type of code represents the Controller in MVC architecture on the Force.com platform?
Choose 2 answers- AA static resource that contains CSS and images
- BJavascript that is used to make a menu item display itself
- CStandardController system methods that are referenced by Visualforce
- DCustom Apex and Javascript code that is used to manipulate data
25Which data type or collection of data types can SOQL statements populate or evaluate to?
Choose 3 answers- AA single sObject
- BA list of sObjects
- CA string
- DA Boolean
- EAn Integer
26What is a valid source and destination pair that can send or receive change sets?
Choose 2 answers.- ASandbox to sandbox
- BDeveloper edition to sandbox
- CDeveloper Edition to production
- DSandbox to production
27In which order does Salesforce execute events upon saving a record
- AValidation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit
- BBefore Triggers;Validation Rules; After Triggers; Workflow Rules;Assignment Rules; Commit
- CBefore Triggers;Validation Rules; After Triggers; Assignment Rules;Workflow Rules; Commit
- DValidation Rules; Before Triggers; After Triggers; Workflow Rules;Assignment Rules; Commit
28What is a good practice for a developer to follow when writing a trigger?
Choose 2 answers- AUsing synchronous callouts to call external systems
- BUsing @future methods to perform DML operations
- CUsing the Set data structure to ensure distinct records
- DUsing the Map data structure to hold query results by ID
29What is a capability of a StandardSetController?
Choose 2 answers- AIt enforces field-level security when reading large record sets
- BIt extends the functionality of a standard or custom controller
- CIt allows pages to perform mass updates of records
- DIt allows pages to perform pagination with large record sets
30Where can custom roll-up summary fields be created using Standard Object relationships?
Choose 2 answers- AOn Opportunity using Opportunity Product records
- BOn Account using Case records
- COn Account using Opportunity records
- DOn Quote using Order records
- EOn Campaign using Campaign Member records.
31A 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?
Choose 2 answers.- ACreate a roll-up summary field on the Candidate object that counts Interview records.
- BCreate a lookup relationship between the Candidate and Interview objects.
- CCreate a trigger on the Interview object that updates a field on the Candidate object
- DCreate a master-detail relationship between the Candidate and Interview objects.
32A developer needs to provide a Visualforce page that lets users enter Product specific details during a Sales cycle.
How can this be accomplished?
Choose 2 answers- ADownload a Managed Package from the AppExchange that provides a custom Visualforce page to modify.
- BDownload an Unmanaged Package from the AppExchange that provides a custom Visualforce page to modify.
- CCopy the standard page and then make a new Visualforce page for Product data entry.
- DCreate a new Visualforce page and an Apex controller to provide data entry.
33Which type of information is provided by the Checkpoints tab in the Developer console?
Choose 2 answers.- ADebug Statement
- BException
- CTime
- DNamespace
34What is an important consideration when developing in a multi-tenant environment?
- AUnique domain names take the place of namespace for code developed for multiple orgs on multiple instances.
- BPolyglot persistence provides support for a global, multilingual user base in multiple orgs in multiple instances
- CGovernor limits prevent tenants from impacting performance in multiple orgs on the same instance
- DOrg-wide data security determines whether other tenants can see data in multiple orgs on the same instance.
35The 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?- ACreate a Workflow Rule on the Opportunity object that updates a field on the parent Account.
- BCreate a roll-up summary field on the Account object that performs a MAX on the Opportunity Close Date field.
- CCreate a trigger on the Account object that queries the Close Date of the most recent Opportunities.
- DCreate a formula field on the Account object that performs a MAX on the Opportunity Close Date field.
36How would a developer determine if a CustomObject__c record has been manually shared with the current user in Apex?
- ABy querying the role hierarchy.
- BBy calling the isShared() method for the record
- CBy calling the profile settings of the current user
- DBy querying CustomObject__share
37In the Lightning Component framework, which resource can be used to fire events?
Choose 2 answers- AVisualforce controller actions.
- BThird-party Javascript code.
- CThird-party web service code.
- DJavascript controller actions.
38In a single record, a user selects multiple values from a multi-select picklist.
How are the selected values represented in Apex?- AAs a String with each value separated by a comma
- BAs a Set<String> with each value as an element in the set
- CAs a String with each value separated by a semicolon
- DAs a List<String> with each value as an element in the list
39X = B
- AX = B
- BX = C
40What is the benefit of the Lightining Component Framework?
- ABetter performance for custom SalesforceI Mobile apps.
- BMore centralized control via server-side logic.
- CMore pre-built components to replicate the Salesforce look and feel
- DBetter integration with Force.com sites.
41A developer needs to create records for the object Property__c. The developer creates the following code block:
01 List<Property__c> propertiesToCreate = helperClass.createProperties();
02 try{
03
04 }catch(Exception exp){
05 //Exception handling
06 }
Which line of code would the developer insert at line 03 to ensure that at least some records are created even if a few records have errors and fail to be created?- ADatabase.insert (propertiesToCreate, System.ALLOW_PARTIAL);
- Binsert propertiesToCreate;
- CDatabase.insert(propertiesToCreate, false);
- DDatabase.insert(propertiesToCreate);
42A developer creates an Apex helper class to handle complex trigger logic.
How can the helper class warn users when the trigger exceeds DML governor limits?- ABy using ApexMessage.Message() to display an error message after the number of DML statements is exceeded.
- BBy using Limits.getDMLRows() and then displaying an error message before the number of DML statements is exceeded.
- CBy using PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of DML statements is exceeded.
- DBy using Messaging.SendEmail() to continue the transaction and send an alert to the user after the number of DML statements is exceeded.
43A 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?- AAdd the SeeAllData atrribute to the test methods
- BAdd the TestVisible attribute to the Apex class
- CAdd the SeeAllData attribute to the test class
- DAdd the TestVisible attribute to the Apex methods
44Which statement would a developer use when creating test data for products and pricebooks?
- AIsTest(SeeAllData=false)
- BList objList= Test.loadData(Acccount.sObjectType, ',myResource');
- CPricebook pb = new pricebook();
- DId pricebookId = Test.getStandardPricebookId();
45101
- A101
- B102
46Which action can a developer perform in a before update trigger?
Choose 2 answers- ADelete the original object using a delete DML operation
- BUpdate the original object using an update DML operation
- CDisplay a custom error message in the application interface
- DChange field values usign the Trigger.new context variable
47Which code block returns the ListView of an Account object using the following debug statement?
System.debug(Controller.getListViewOptions());- AApexPages.StandardController controller = new ApexPages.StandardController([SELECT Id FROM Account LIMIT 1]);
- BApexPages.StandardController controller = new ApexPages.StandardController(Database.getQueryLocator('select Id from Account Limit 1'));
- CApexPages.StandardSetController controller = new ApexPages.StandardSetController([SELECT Id FROM Account LIMIT 1]);
- DApexPages.StandardSetController controller = new ApexPages.StandardSetController(Database.getQueryLocator('select Id from Account Limit 1'))
48What is an accurate statement about variable scope?
Choose 3 answers- ASub-blocks cannot reuse a parent block's variable name
- BParallel blocks can use the same variable name
- CA static variable can restrict the scope to the current block if its values is null
- DA variable can be defined at any point in a block
- ESub-blocks can reuse a parent´s block variable name if its value is null
49Which scenario is invalid for execution by unit tests?
- AExecuting methods for negative test scenarios.
- BLoading test data in place of user input for Flows.
- CLoading the standard Pricebook ID using a system method
- DExecuting methods as different users
50Which is a valid way of loading external Javascript files into a VisualForce page?
Choose 2 anwers- AUsing an <apex:define> tag
- BUsing an <apex:includeScript> tag
- CUsing a <script> tag
- DUsing a <link> tag
51Which statement should a developer avoid using inside procedural loops?
Choose 2 answers- AUpdate contactList
- BList<Contact> contacts = [select id, salutation, firstname, lastname, email from Contact where accountId = :a.Id]
- CSystem.debug('Amount of CPU time (in ms) used so far:' + Limits.getCpuTime());
- Dif(o.accountid = a.id)
52When loading data into an organization, what can a developer do to match records to update existing records?
Choose 2 answers- AMatch an external Id Text field to a column in the imported file.
- BMatch an auto-generated Number field to a column in the imported file
- CMatch the Name field to a column in the imported file
- DMatch the Id field to a column in the imported file
53Which trigger event allows a developer to update fields in the Trigger.new list without using an additional DML statement?
Choose 2 answers- ABefore insert
- BAfter update
- CAfter insert
- DBefore update
54What is a capability of the Developer Console?
- AExecute Anonymous Apex code, Run REST API, create/Edit code.
- BExecute Anonymous Apex code, Create/Edit code, Deploy code changes.
- CExecute Anonymous Apex code, Create/Edit code, view Debug Logs.
- DExecute Anonymous Apex code, Run REST API, deploy code changes.
55A developer needs to know if all tests currently pass in a Salesforce environment.
Which feature can the developer use?
Choose 2 answers.- AANT Migration Tool
- BDeveloper Console
- CWorkbench Metadata Retrieval
- DSalesforce UI Apex Test Execution
56How can a developer determine, from the DescribeSObjectResult, if the current user will be able to create records for an object in Apex?
- ABy using the isCreatable() method
- BBy using the canCreatable() method
- CBy using the isInsertable() method
- DBy using the hasAccess() method
57Which declarative method helps ensure quality data?
Choose 3 answers- AValidation rules
- BPage layouts
- CException handling
- DWorkflow alerts
- ELookup filters
Information
- Description
- Examen II Salesforce Developer
- Author
- sahitya.linga
- Language
- English
- Views
- 171
- Tags
- Rating
- No ratings yet Rate this quiz