最新 [2022年01月] 効果的な学習法でGoShikenの問題集でCRT-450テストを合格せよ [Q216-Q238]

Share

最新 [2022年01月] 効果的な学習法でGoShikenの問題集でCRT-450テストを合格せよ

実績のある受験者のシミュレーションされたCRT-450試験PDF問題を試そう


Salesforce CRT-450 認定試験の出題範囲:

トピック出題範囲
トピック 1
  • テストフレームワークと要件の説明
  • テストデータとテストの作成
  • テストの実行
  • テストの考慮事項
トピック 2
  • 例外とガバナー制限の操作
  • ロジックとプロセスの自動化
  • Apexクラスの操作
トピック 3
  • Apexでの基本構造の操作
  • SOQLの操作、SOSLの操作、DMLの操作
トピック 4
  • Apexトリガーの操作
  • 実行ユーザーインターフェイスの保存順序の説明
  • Visualforceページの操作
トピック 5
  • ロジックとプロセスの自動化
  • 数式とロールアップの概要フィールドの操作
  • デバッグと展開ツール
トピック 6
  • Salesforceの基礎
  • データベースのモデリングと管理
  • データのモデリング、データの管理

 

質問 216
Universal Containers requires Service Representatives to update all Cases at least one every three days. To make sure of this policy is obeyed, a developer has been asked to implement a field that displays the number of days since the last Case update. What should the developer use to configure the solution?

  • A. Formula field
  • B. Scheduled Apex Class
  • C. Process Builder
  • D. Workflow rule

正解: A

 

質問 217
Which two queries can a developer use in a visualforce controller to protect against SOQL injection Vulnerabilities? Choose 2 answers

  • A. String qryName = '%' + String.escpaeSingleQuotes(name)+ '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);
  • B. String qryName = '%' + name '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);
  • C. String qryName = '%' + String.enforceSecurityChecks(name)+ '%'; String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);
  • D. String qryString = 'SELECT Id FROM Contact WHERE Name LIKE :qryNAme'; List queryResults = Database.query(qryString);

正解: C,D

 

質問 218
Which two approaches optimize test maintenance and support future declarative configuration changes? Choose 2 answers.

  • A. Create a method that creates valid records,then call this method within test methods.
  • B. Create a method that queries for valid records, then call this method within test methods.
  • C. Create a method that performs a callout for valid records, then call this method within test methods.
  • D. Create a methods that loads valid Account records from a static resources, then call this method within test methods.

正解: A,D

 

質問 219
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 List with each value as an element in the list Previous
  • B. As a String with each value separated by a comma
  • C. As a Set with each value as an element in the set
  • D. As a String with each value separated by a semicolon

正解: D

 

質問 220
If Apex code executes inside the execute()method of an Apex class when implementing the Batchable interface, which two statements are true regarding governor limits? (Choose two.)

  • A. The Apex governor limits might be higher due to the asynchronous nature of the transaction.
  • B. The Apex governor limits are reset for each iteration of the execute()method.
  • C. The Apex governor limits are relaxed while calling the constructor of the Apex class.
  • D. The Apex governor limits cannot be exceeded due to the asynchronous nature of the transaction.

正解: A,B

 

質問 221
The following Apex method is part of the ContactService class that is called from a trigger: public static void setBusinessUnitToEMEA(Contact thisContact){ thisContact.Business_Unit__c = "EMEA" ; update thisContact; } How should the developer modify the code to ensure best practice are met?

  • A. Public static void setBusinessUnitToEMEA(Contact thisContact){
    List<Contact> contacts = new List<Contact>();
    contacts.add(thisContact.Business_Unit__c = 'EMEA');
    update contacts;
    }
  • B. Public void setBusinessUnitToEMEA(List<Contact> contatcs){
    contacts[0].Business_Unit__c = 'EMEA' ;
    update contacts[0];
    }
  • C. Public static void setBusinessUnitToEMEA(List<Contact> contacts){
    for(Contact thisContact : contacts) {
    thisContact.Business_Unit__c = 'EMEA' ;
    }
    update contacts;
    }
  • D. Public static void setBusinessUnitToEMEA(List<Contact> contacts){
    for(Contact thisContact : contacts){
    thisContact.Business_Unit__c = 'EMEA' ;
    update contacts[0];
    }
    }

正解: A

 

質問 222
A developer must create a ShippingCalculator class that cannot be instantiated and must include a working default implementation of a calculate method, that sub-classes can override.
What is the correct implementation of the ShippingCalculator class?

  • A.
  • B.
  • C.
  • D.

正解: A

 

質問 223
An Approval Process is defined in the Expense_Item__cobject. A business rule dictates that whenever a user changes the Status to 'Submitted' on an Expense_Report__crecord, all the Expense_Item__c records related to the expense report must enter the approval process individually.
Which approach should be used to ensure the business requirement is met?

  • A. Create a Process Builder on Expense_Report__cwith an 'Apex' action type to submit all related Expense_Item__crecords when the criteria is met.
  • B. Create two Process Builders, one on Expense_Report__cto mark the related Expense_Item__cas submittable and the second on Expense_Item__cto submit the records for approval.
  • C. Create a Process Builder on Expense_Report__cto mark the related Expense_Item__cas submittable and a trigger on Expense_Item__cto submit the records for approval.
  • D. Create a Process Builder on Expense_Report__cwith a 'Submit for Approval' action type to submit all related Expense_Item__crecords when the criteria are met.

正解: C

 

質問 224
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

 

質問 225
Which statement should a developer avoid using inside procedural loops? (Choose 2)

  • A. If(o.accountId == a.id)
  • B. System.debug('Amount of CPU time (in ms) used so far: ' + Limits.getCpuTime() );
  • C. Update contactList;
  • D. List contacts = [SELECT Id, Salutation, FirstName, LastName, Email FROM Contact WHERE AccountId =
    :a.Id];

正解: C,D

 

質問 226
Which two number expressions evaluate correctly? (Choose two.)

  • A. Decimal d = 3.14159;
  • B. Long l = 3.14159;
  • C. Integer I = 3.14159;
  • D. Double d = 3.14159;

正解: A,D

 

質問 227
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?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

正解: A

 

質問 228
Universal Containers wants to back up all of the data and attachments in its Salesforce org once month.
Which approach should a developer use to meet this requirement?

  • A. Use the Data Loader command line.
  • B. Create a Schedulable Apex class.
  • C. Define a Data Export scheduled job.
  • D. Schedule a report.

正解: C

 

質問 229
A developer is debugging the following code to determine why Accounts are not being created.
Account a = new Account(Name = 'A');
Database.insert(a, false);
How should the code be altered to help debug the issue?

  • A. Collect the insert method return value in a SaveResult record.
  • B. Add a System.debug() statement before the insert method.
  • C. Add a try/catch around the insert method.
  • D. Set the second insert method parameter to TRUE.

正解: A

 

質問 230
Universal Containers (UC) decided it will not to send emails to support personnel directly from Salesforce in the event that an unhandled exception occurs. Instead, UC wants an external system be notified of the error. What is the appropriate publish/subscribe logic to meet these requirements?

  • A. Publish the error event using the Eventbus.publish() method and have the external system subscribe to the event using CometD.
  • B. Publish the error event using the addError() method and write a trigger to subscribe to the event and notify the external system.
  • C. Have the external system subscribe to the BatchApexError event, no publishing is necessary.
  • D. Publish the error event using the addError() method and have the external system subscribe to the event using CometD.

正解: A

 

質問 231
A developer wrote Apex code that calls out to an external system.
How should a developer write the test to provide test coverage?

  • A. Write a class that extends HTTPCalloutMock.
  • B. Write a class that implements the HTTPCalloutMockinterface.
  • C. Write a class that implements the WebserviceMockinterface.
  • D. Write a class that extends WebserviceMock.

正解: B

 

質問 232
Universal Containers has an order system that uses an Order Number to identify an order for customers and service agents. Order will be imported into Salesforce.

  • A. Number with External ID
  • B. Indirect Lookup
  • C. Lookup
  • D. Direct Lookup

正解: A

 

質問 233
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

 

質問 234
A developer wants multiple test classes to use the same set of test data.
How should the developer create the test data?

  • A. Reference a test utility class in each test class.
  • B. Use the SeeAllData=true annotation in each test class.
  • C. Define variables for test records in each test class.
  • D. Create a Test Setup method for each test class.

正解: B

 

質問 235
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?

  • A. 150, 100
  • B. 100, 150
  • C. 10, 2
  • D. 1, 2

正解: B

 

質問 236
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. Before Trigger execution.
  • B. After Committing to database.
  • C. After Trigger execution.
  • D. Before Committing to database.

正解: B

 

質問 237
A developer must create a Lightning component that allows user to input Contact record information to create a Contact record, including a Salary__c custom field. What should the developer use, along with a lightning-record-edit-form, so that Salary__c field functions as a currency input and is only viewable and editable by users that have the correct field level permissions on Salary__c?

  • A. <lightning-formatted-number value="Salary__c" format-style="currency">
    </lightning-formatted-number>
  • B. <lightning-input type="number" value="Salary__c" formatter="currency">
    </lightning-input>
  • C. <ligthning-input-field field-name="Salary__c">
    </lightning-input-field>
  • D. <lightning-input-currency value="Salary__c">
    </lightning-input-currency>

正解: C

 

質問 238
......

シミュレーションされた材料でCRT-450テストエンジンで学習:https://www.goshiken.com/Salesforce/CRT-450-mondaishu.html

合格には必要なるCRT-450試験問題集:https://drive.google.com/open?id=165FxtWHLCSCvMsWql0rbLuSPSwsUPpG6