Questions
ayuda
option
My Daypo

ERASED TEST, YOU MAY BE INTERESTED ONCRI 10

COMMENTS STATISTICS RECORDS
TAKE THE TEST
Title of test:
CRI 10

Description:
Teste 123

Author:
Cristianoma
(Other tests from this author)

Creation Date:
23/01/2020

Category:
Others

Number of questions: 31
Share the Test:
Facebook
Twitter
Whatsapp
Share the Test:
Facebook
Twitter
Whatsapp
Last comments
No comments about this test.
Content:
Which two queries can a developer use in a visualforce controller to protect against SOQL injection Vulnerabilities? Choose 2 answers String qryName = '%' + String.enforceSecurityChecks(name)+ '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString); String qryName = '%' + name '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString); String qryName = '%' + String.escpaeSingleQuotes(name)+ '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString); String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);.
Which two statement are acceptable for a developer to use Inside procedural loops? Contactlist.remove(i) Delete contactList Account a=[select id,name from account where id=:con.accountid limit 1] Contact con =new contact().
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'sprofile and 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}.
To which data type in Apex a currency field automatically assigned? Integer Decimal Double Currency.
Which type of code represents the Model in the MVC architecture on the Force.com platform? A Controller Extension method that uses SOQL to query for a list of Account records Custom JavaScript that processes a list of Account records. A list of Account records returned from a Controller Extension method A Controller Extension method that saves a list of Account records.
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.
Where would a developer build a managed package? Developer Sandbox Unlimited Edition Partial Copy Sandbox Developer Edition.
What declarative method helps ensure quality data? Choose 3 answers Page layouts Lookup filters Exception handling Workflow alerts Validation rules.
What must the Controller for a Visulforce page utilized to override the standard Opportunity view button? A constructor that initialized a private Opportunity variable. A callback constructor to reference the StandardController The StandardSetController to support related lists for pagination The Opportunity StandardController for pre-built functionality.
In which two trigger types can a developer modify the new sObject records that are obtained by the trigger.new context? Choose 2 answers After insert After update Before update Before insert.
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? After Committing to database. Before Trigger execution. After Trigger execution. Before Committing to database.
When creating a record with a Quick Action, what is the easiest way to post a feed item? By selecting create feed item on the quick action. By adding a trigger on the new record. By adding a workflow rule on the new record. By selecting create case feed on the new record.
A developer has javascript code that needs to be called by controller functions in multiple components by extending a new abstract component. Which resource in the abstract component bundle allows the developer to achieve this Controller.js Superrender.js Rendered.js Helper.js.
When the value of a field of an account record is updated, which method will update the value of a custom field opportunity? Choose 2 answers. A process builder on the Account object An Apex trigger on the Account object. A cross-object formula field on the Account object A workflow rule on the Account object.
A developer needs to know if all tests currently pass in a Salesforce environment. Which feature can the developer use? (Choose 2) ANT Migration Tool Workbench Metadata Retrieval Salesforce UI Apex Test Execution Developer Console.
What is true for a partial sandbox that is not true for a full sandbox? Choose 2 answers: More frequent refreshes. Only Includes necessary metadata. Use of change sets. Limited to 5 GB of data.
Which two sosl searches will return records matching search criteria contained in any of the searchable text fields on an object? choose 2 answers [find 'acme*' in any fields returning account,opportunity] [find 'acme*'returning account,opportunity] [find 'acme*'in all fields returning account,opportunity] [find 'acme*' in text fields returning account,opportunity].
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 Timiline. 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.
Which statement about the Lookup Relationship between a Custom Object and a Standard Object is correct? The Lookup Relationship on the Custom Object can prevent the deletion of the Standard Object. The Lookup Relationship cannot be marked as required on the page layout for the Custom Object. The Custom Object will be deleted when the referenced Standard Object is deleted. The Custom Object inherits security from the referenced Standard Objects.
What is the advantage of Salesforce Lightning? Uses service side for better handling Option 4 Pre-defined components to give Standard Look and Feel Option 3.
A developer in a Salesforce org with 100 Accounts executes the following code using the 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? 101 100 102 252.
A developer working on a time management application wants to make total hours for each timecard available to applications users. A timecard entry has a Master-Detail relationship to a timecard. Which approach should the developer use to accomplish this declaratively? A visualforce page that calculates the total number of hours for a timecard and displays it on the page. An Apex trigger that uses an Aggregate Query to calculate the hours for a given timecard and stores it in a custom field. A Roll-up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard. A Process Builder process that updates a field on the timecard entry is created.
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 Visualforce page. Which action can the developer perform to get the record types and picklist values in the controller? (Choose 2) Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues(). Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos(). Use SOQL to query Case records in the org to get all the RecordType values available for Case. Use SOQL to query case records in the org to get all values for the Status picklist field.
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. 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. 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. 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. 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.
What are the supported content sources for custom buttons and links? (Choose 2 Answers) VisualForce Page. Static Resource. URL. Chatter File. Lightning Page.
How can a developer determine, from the DescribeSObjectResult, if the current user will be able to create records for an object in Apex? By using the isInsertable() method. By using the isCreatable() method. By using the hasAccess() method. By using the canCreate() method.
When can a developer use a custom Visualforce page in a Force.com application? (Choose 2) To generate a PDF document with application data To create components for dashboards and layouts To deploy components between two organizations To modify the page layout settings for a custom object.
Requirements state that a child record be to deleted when its parent is deleted, and a child can be moved to a different parent when necessary. Which type of relationship should be built between the parent and child objects in Schema Builder to support these requirements? Lookup Relathionship from to child to the parent Child relationship Master-Detail relationship Lookup Relathionship from to parent to the child.
What is the result when a Visualforce page calls an Apex controller, which calls another Apex class, which then results in hitting a governor limit? Any changes up to the error are saved. Any changes up to the error are rolled back. All changes before a savepoint are saved. All changes are saved in the first Apex class.
A developer runs the following anonymous code block in a Salesforce org with 100 accounts List acc= {select id from account limit 10}; delete acc; database.emptyrecyclebin(acc); system.debug(limits.getlimitqueries()+' ,'+Limits.getlimitDMLStatements()); What is the debug output? 1, 2 10, 2 100, 150 150, 100.
Opportunity opp=[SELECT Id,StageName FROM Opportunity LIMIT 1]; Given the code above,how can a developer get the label for the StageName field? Call Opportunity.StageName.Label Call Opportunity.StageName.getDescribe().getLabel() Call Opp.StageName.getDescri Call Opp.StageName.Label.
Report abuse Consent Terms of use