お手軽CRT-450問題集PDFのベスト問題集を使おう!高得点目指すならここ [Q48-Q63]

Share

お手軽CRT-450問題集PDFのベスト問題集を使おう!高得点目指すならここ

Salesforce Developers CRT-450試験と認定テストエンジン

質問 48
In the code below, which type does String inherit from? String s = 'Hello World';

  • A. Object
  • B. Object
  • C. Prototype
  • D. Class

正解: A

 

質問 49
For which example task should a developer use a trigger rather than a workflow rule?

  • A. To set the Name field of an expense report record to Expense and the Date when it is saved.
  • B. To send an email to hiring manager when a candidate accepts a job offer.
  • C. To set the primary Contact on an Account record when it is saved
  • D. To notify an external system that a record has been modified.

正解: C

 

質問 50
A developer creates a custom controller and custom Visualforce page by using the code block below.

What can the user expect to see when accessing the custom page?

  • A. a, a, a
  • B. b, a, getMyString
  • C. a, b, getMyString
  • D. a, b, b

正解: A

 

質問 51
An Account trigger updates all related Contacts and Cases each time an Account is saved using the following two DML statements:
update allContacts; update allCases;
What is the result if the Case update exceeds the governor limit for maximum number of DML records?

  • A. The Account save succeeds, Contacts are updated, but Cases are not.
  • B. The Account save fails and no Contacts or Cases are updated
  • C. The Account save succeeds and no Contacts or Cases are updated
  • D. The Account save is retried using a smaller trigger batch size.

正解: B

 

質問 52
Which two statements can a developer use to throw a custom exception of type MissingFieldValueException?
Choose 2 answers.

  • A. Throw Exception (new MissingFieldValueException());
  • B. Throw new MissingFieldValueException ('Problem occurred');
  • C. Throw new MissingFieldValueException();
  • D. Throw (MissingFieldValueException, 'Problem occurred');

正解: B,C

 

質問 53
What is a benefit of using a trigger framework?

  • A. Reduces trigger execution time
  • B. Allows functional code to be tested b
  • C. Simplifies addition of context-specific logic
  • D. Increases trigger governor limits

正解: A

 

質問 54
What must the Controller for a Visualforce page utilize to override the Standard Opportunity view button?

  • A. The Opportunity StandardController for pre -built functionality.
  • B. A constructor that initializes a private Opportunity variable.
  • C. A callback constructor to reference the StandardController.
  • D. The StandardSetController to support related lists for pagination.

正解: A

 

質問 55
A company wants to create an employee rating program that allows employees to rate each other. An employee's average rating must be displayed on the employee record. Employees must be able to create rating records, but are not allowed to create employee records.
Which two actions should a developer take to accomplish this task? (Choose two.)

  • A. Create a master-detail relationship between the Rating and Employee objects.
  • B. Create a roll-up summary field on the Employee and use AVG to calculate the average rating score.
  • C. Create a lookup relationship between the Rating and Employee object.
  • D. Create a trigger on the Rating object that updates a fields on the Employee object.

正解: A,B

解説:
Explanation/Reference:

 

質問 56
Which message is logged by the code below?

  • A. No message is logged.
  • B. NullPointer Exception
  • C. List Exception
  • D. Generic Exception

正解: B

 

質問 57
Which declarative method helps ensure quality data? (Choose 3)

  • A. Validation Rules
  • B. Workflow alerts
  • C. Lookup Filters
  • D. Page Layouts
  • E. Exception Handling

正解: A,C,D

 

質問 58
What is the proper process for an Apex Unit Test

  • A. Create data for testing. Call the method being tested. Verify that the results are correct.
  • B. Create data for testing. Execute runAllTests(). Verify that the results are correct.
  • C. Query for test data using SeeAllData = true. Call the method being tested. Verify that the results are correct.
  • D. Query for test data using SeeAllData = true. Execute runAllTests(). Verify that the results are correct.

正解: A

 

質問 59
Which action can a developer take to reduce the execution time of the following code? List<account> allaccounts = [select id from account]; list<account> allcontacts = [select id, accountid from contact]; for (account a :allaccounts){ for (contact c:allcontacts){ if(c.accountid = a.id){ //do work } } }

  • A. Create an apex helper class for the SOQL
  • B. Add a group by clause to the contact SOQL
  • C. Use a map <id,contact> for allaccounts
  • D. Put the account loop inside the contact loop

正解: C

 

質問 60
A developer needs to create a custom Visualforce button for the Opportunity object page layout that will cause a web service to be called and redirect the user to a new page when clicked. Which three attributes need to be defined in the <apex:page> tag of the Visualforce page to enable this functionality? Choose three answers.

  • A. Action
  • B. Extensions
  • C. StandardController
  • D. Controller

正解: A,B,C

 

質問 61
A SSN__ccustom field exists on the Candidate__ccustom object. The field is used to store each candidate's social security number and is marked as Unique in the schema definition.
As part of a data enrichment process, Universal Containers has a CSV file that contains updated data for all candidates in the system. The file contains each Candidate's social security number as a data point. Universal Containers wants to upload this information into Salesforce, while ensuring all data rows are correctly mapped to a candidate in the system.
Which technique should the developer implement to streamline the data upload?

  • A. Create a Process Builder on the Candidate__cobject to map the records.
  • B. Upload the CSV into a custom object related to Candidate__c.
  • C. Update the SSN__cfield definition to mark it as an External Id.
  • D. Create a before insert trigger to correctly map the records.

正解: D

 

質問 62
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. HTTP Callouts
  • B. Anonymous Blocks
  • C. Apex Triggers
  • D. Apex Controllers

正解: B

 

質問 63
......

無料提供中のCRT-450試験問題集で(2022年最新のPDF問題集)信頼度の高いCRT-450テストエンジン:https://www.goshiken.com/Salesforce/CRT-450-mondaishu.html

CRT-450のPDFで最近更新された問題です集試験点数を伸ばそう:https://drive.google.com/open?id=165FxtWHLCSCvMsWql0rbLuSPSwsUPpG6