CRI 6

INFO
STADISTICS
RECORDS
TAKE THE TEST
Title of test:
CRI 6

Description:
Teste 123

Author:
cristianoma@gmail.com
(Other tests from this author)

Creation Date:
22/01/2020

Category:
Others
Share the Test:
Facebook
Twitter
Whatsapp
TAKE THE TEST
Last comments
No comments about this test.
Content:
A developer needs to join data received from an integration with an external system with parent records in Salesforce. The data set does not contain the Salesforce IDs of the parent records, but it does have a foreign key attribute that can be used to identify the parent. Which action will allow the developer to relate records in the data model without knowing the Salesforce ID? Create and populate a custom field on the parent object marked as Unique. Create a custom field on the child object of type External Relationship. Create and populate a custom field on the parent object marked as an External ID. Create a custom field on the child object of type Foreign Key.
What is the requirement for a class to be used as a custom Visualforce controller? Any top-level Apex class that has a constructor that returns a PageReference Any top-level Apex class that extends a PageReference Any top-level Apex class that has a default, no-argument constructor Any top-level Apex class that implements the controller interface.
A newly hired developer discovers that there are multiple triggers on the case object. What should the developer consider when working with triggers? Developers must dictate the order of trigger execution. Trigger execution order is based on creation date and time. Unit tests must specify the trigger being tested. Trigger execution order is not guaranteed for the same sObject.
A developer needs to display all of the available fields for an object. In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object? (Choose two.) Use myObject.sObjectType.getDescribe().fieldSet() to return a set of fields. Use mySObject.myObject.fields.getMap() to return a map of fields. Use Schema.describeSObjects(new String[]{myObject})[0].fields.getMap() to return a map of fields. Use getGlobalDescribe().get(myObject).getDescribe().fields.getMap() to return a map of fields.
Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class. What is the end result? The API name is not changed and there are no other impacts. The API name of the field and the reference in the test class is changed. The API name of the field is changed, and a warning is issued to update the class. The API name of the field and the reference in the test class is updated.
A developer wants to override a button using Visualforce on an object. What is the requirement? The controller or extension must have a PageReference method. The standardController attribute must be set to the object. The action attribute must be set to a controller method. The object record must be instantiated in a controller or extension.
A method is passed a list of generic sObjects as a parameter. What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject? Use the first three characters of the sObject ID to determine the sObject type. Use the getSObjectType method on each generic sObject to retrieve the sObject token. Use the getSObjectName method on the sObject class to get the sObject name. Use a try-catch construct to cast the sObject into one of the three sObject types.
A developer has the controller class below. Public with sharing class myFooController { public integer prop {get; private set;} } Which code block will run successfully in an execute anonymous window? myFooController m = new myFooController();System.assert(m.prop !=null); myFooController m = new myFooController();System.assert(m.prop ==0); myFooController m = new myFooController();System.assert(m.prop ==null); myFooController m = new myFooController();System.assert(m.prop ==1);.
Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.) Use collections to store all fields from a related object and not just minimally required fields. Use methods from the “Limits” class to monitor governor limits. Use SOQL for loops to iterate data retrieved from queries that return a high number of rows. Use variables within Apex classes to store large amounts of data.
While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a standard PriceBook since one already exists in the org. How should the Developer overcome this problem? Use Test.getStandardPricebookId() to get the standard PriceBook ID. Use @IsTest(SeeAllData=true) and delete the existing standard PriceBook. Use Test.loadData() and a Static Resource to load a standard Pricebook. Use @TestVisible to allow the test method to see the standard PriceBook.
What actions types should be configured to display a custom success message? Update a record. Post a feed item. Delete a record. Close a case.
Which Apex collection is used to ensure that all values are unique? A Set An Enum A List An sObject.
What is a capability of formula fields? (Choose 3) Generate a link using the HYPERLINK function to a specific record in a legacy system. Display the previous values for a field using the PRIORVALUE function Return and display a field value from another object using the VLOOKUP function. Determine if a datetime field has passed using the NOW function. Determine which of three different images to display using the IF function.
What are two valid options for iterating through each Account in the collection List <Account> named AccountList? Choose 2 answers. For (List L : AccountList) {…} For (Account theAccount : AccountList){…} For(AccountList){…} For (Integer i=0; i<AccountList. Size();i++){…}.
Before putting an app into production, which step should be taken? Run the production check feature via the web interface Switch to a production database Insure that you have installed a performance introspection add-on Scale your dynos.
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();.
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? Use the constructor method for the controller. Use the $Action.View method in the Visualforce page. Create a new PageReference object with the Id. Use the tag in the Visualforce page.
A developer has the following trigger that fires after insert and creates a child Case whenever a new Case is created. 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; What happens after the code block executes? Multiple child cases are created for each parent case in Trigger.new. Child case is created for each parent case in Trigger.new. The trigger enters an infinite loop and eventually fails. The trigger fails if the Subject field on the parent is blank.
A developer wants to create a custom object to track Customer Invoices.How should Invoices and Accounts be related to ensure that all Invoices are visible to everyone with access to an Account? The Account should have a Master-Detail relationship to the Invoice. The Invoice should have a Master-Detail relationship to the Account The Account should have a Lookup relationship to the Invoice The Invoice should have a Lookup relationship to the Account Previous.
Which two components are available to deploy using the METADATA API? Choose 2 answers Web-to-Case Lead Conversion Settings Case Settings Web-to-Lead.
Which three resources in a Lightning Component Bundle can contain JavaScript functions? Choose 3 Renderer Design Helper Controller Style.
Which statement would a developer use when creating test data for products and pricebooks? Id pricebookId = Test.getStandardPricebookId(); Pricebook pb = new Pricebook(); IsTest(SeeAllData = false); List objList = Test.loadData(Account.sObjectType, 'myResource');.
What is the minimum log level needed to see user-generated debug statements? DEBUG FINE INFO WARN.
What can used to delete components from production? A change set deployment with the delete option checked An ant migration tool deployment with destructivechanges xml file and the components to delete in the package .xml file A change set deployment with a destructivechanges XML file An ant migration tool deployment with a destructivechanges XML file and an empty package .xml file.
Which three data types can be returned from an SOQL statement? Boolean List of objects String Integer Single object.
A developer is asked to create a custom visualforce page that will be used as a dashboard component. Which three are valid controller options for this page? Choose 3 answers Use a custom controller Use a custom controller with extensions Use a standard controller with extensions Do not specify a controller Use a standard controller.
Account acct = {SELECT Id from Account limit 1}; Given the code above, how can a developer get the type of object from acct? Call "acct.getsObjectType()" Call "Account.getSobjectType()" Call "Account.SobjectType" Call "acct.SobjectType".
On which object can an administrator create a roll-up summary field? Any object that is on the master side of a master-detail relationship. Any object that is on the parent side of a lookup relationship. Any object that is on the detail side of a master-detail relationship. Any object that is on the child side of a lookup relationship.
A developer created a lightning component name accountList.cmp that display a list of Accounts. Client-side logic that is executed when a user hovers over an account in the list should be stored in which bundle member? AccountListHelper.js AccountListRenderer.js AccountList.renderer AccountList.helper.
A developer writes a SOQL query to find child records for a specific parent. How many levels can be returned in a single query? 1 7 5 3.
When a task is created for a contact, how can a developer prevent the task from being included on the activity timeline of the contact's account record? In activity settings,uncheck roll-up activities to a contact's primary account By default,tasks do not display on the account activity timeline Use process builder to create a process to set the task account field to blank Create a task trigger to set the account field to NULL.
Report abuse Terms of use
CREATE TEST
We use cookies to personalize your experience. If you continue browsing you will be accepting its use. More information.