CRT-450問題集と練習テスト(364問題) [Q145-Q170]

Share

(2022)CRT-450問題集と練習テスト(364問題)

ガイド(2022年最新)リアルなSalesforce CRT-450試験問題


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

トピック出題範囲
トピック 1
  • Apexトリガーの操作
  • 実行ユーザーインターフェイスの保存順序の説明
  • Visualforceページの操作
トピック 2
  • Visualforceコントローラの操作
  • Lightningコンポーネントフレームワークテストの操作
トピック 3
  • Apexでの基本構造の操作
  • SOQLの操作、SOSLの操作、DMLの操作
トピック 4
  • 例外とガバナー制限の操作
  • ロジックとプロセスの自動化
  • Apexクラスの操作
トピック 5
  • AWコンピューティングの概要
  • プラットフォーム開発者の概要1認定

 

質問 145
Where can debug log filter settings be set?Choose 2 answers

  • A. The Log Filters tab on a class or trigger detail page.
  • B. On the monitored user's name.
  • C. The Filters link by the monitored user's name within the web UI.
  • D. The Show More link on the debug log's record.

正解: A,C

 

質問 146
Given the code below, which three statements can be used to create the controller variable? Public class accountlistcontroller{ public list<account>getaccounts(){ return controller.getrecords(); } } Choose 3 answers

  • A. Apexpages.standardcontroller controller= new apexpages.standardcontroller(database.getquerylocator('select id from account'));
  • B. Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller (database.query('select id from account'));
  • C. Apexpages.standardsetcontroller controller=new apexpages.standardsetcontroller(database.getquerylocator('select id from account'));
  • D. Apexpages.standardcontroller controller= new apexpages.standardcontroller([select id from account]);
  • E. Apexpages.standardsetcontroller controller = new apexpages.standardsetcontroller (database.getquerylocator([select id from account]));

正解: B,D,E

 

質問 147
Which two declarative process automation features can be directly invoked when a field value changes on a record? (Choose two.)

  • A. Process Builder processes
  • B. Workflow rules
  • C. Validation rules
  • D. Cloud Flow Designer flows

正解: A,B

 

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

 

質問 149
Which three data types can be returned from an SOQL statement?

  • A. Single object
  • B. String
  • C. Integer
  • D. List of objects
  • E. Boolean

正解: A,C,D

 

質問 150
What is the result of the debug statements in testMethod3 when you create test data using testSetup in below code?

  • A. Account0.Phone=888-1515, Account1.Phone=999-1515
  • B. Account0.Phone=333-8781, Account1.Phone=333-8780
  • C. Account0.Phone=333-8780, Account1.Phone=333-8781
  • D. Account0.Phone=888-1515, Account1.Phone=999-2525

正解: C

 

質問 151
What is true of a partial sandbox that is not true of a full sandbox? Choose 2 answers

  • A. Only includes necessary meta data
  • B. Limited to 5 GB of data
  • C. More frequent refreshes
  • D. Use of change sets

正解: B,C

 

質問 152
Which exception type cannot be caught?

  • A. LimitException
  • B. NoAccessException
  • C. A Custom Exception
  • D. CalloutException

正解: A

解説:
Explanation

 

質問 153
Account acct = {SELECT Id from Account limit 1}; Given the code above, how can a developer get the type of object from acct?

  • A. Call "Account.SobjectType"
  • B. Call "Account.getSobjectType()"
  • C. Call "acct.getsObjectType()"
  • D. Call "acct.SobjectType"

正解: C

 

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

  • A. Create a custom field on the child object of type External Relationship.
  • B. Create and populate a custom field on the parent object marked as Unique.
  • C. Create and populate a custom field on the parent object marked as an External ID.
  • D. Create a custom field on the child object of type Foreign Key.

正解: D

 

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

 

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

 

質問 157
What should a developer use to implement an automatic Approval Process submission for Cases?

  • A. Process Builder
  • B. Scheduled Apex
  • C. An Assignment Rule
  • D. A Workflow Rule

正解: A

 

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

  • A. By default, tasks do not display on the Account Activity Timeline.
  • B. Use Process Builder to create a process to set the Task Account field to blank.
  • C. Create a Task trigger to set the Account field to NULL.
  • D. In Activity Setting, uncheck Roll up activities to a contact's primary account.

正解: D

解説:
Explanation/Reference:

 

質問 159
Given the following block code: try{ List <Accounts> retrievedRecords = [SELECT Id FROM Account WHERE Website = null]; }catch(Exception e){ //manage exception logic } What should a developer do to ensure the code execution is disrupted if the retrievedRecordslist remains empty after the SOQL query?

  • A. Check the state of the retrievedRecords variable and access the first element of the list if the variable is empty.
  • B. Replace the retrievedRecords variable declaration from a List of Account to a single Account.
  • C. Check the state of the retrieveRecords variable and throw a custom exception if the variable is empty.
  • D. Check the state of the retrievedRecords variable and use System.assert(false) if the variable is empty

正解: D

 

質問 160
When loading data into an operation, what can a developer do to match records to update existing records? (Choose 2)

  • A. Match the Id field to a column in the imported file.
  • B. Match an external Id Text field to a column in the imported file.
  • C. Match an auto-generated Number field to a column in the imported file.
  • D. Match the Name field to a column in the imported file.

正解: A,B

 

質問 161
When is an Apex Trigger required instead of a Process Builder Process?

  • A. When a post to Chatter needs to be created
  • B. When a record needs to be created
  • C. When multiple records related to the triggering record need to be updated
  • D. When an action needs to be taken on a delete or undelete, or before a DML operation is executed.

正解: D

 

質問 162
A Visual force page displays two fields named Phone Number and Email.User1 has access to Phone Number, but not to Email.User2 has access to Email, but not Phone NumberA developer needs to ensure that User1 can only see Phone Number, and User2 can only see Email.Which method can the developer use to achieve this?

  • A. Schema isReadable() method.
  • B. Schema isCreateable() method.
  • C. Schema isAccessible() method.
  • D. Schema isUpdateable() method.

正解: C

 

質問 163
Which control statement should a developer use to ensure that a loop body executes at least once?

  • A. For(variable : list_or_set){}
  • B. While (condition){}
  • C. For(init_stmt;exit_cond;increment){}
  • D. Do {} while (cond)

正解: D

 

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

  • A. Use the seealldata=true annotation in each test class
  • B. Define a variable for test records in each test classes
  • C. Create a test setup method for each test class
  • D. Reference a test utility class in each test class

正解: A

 

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

  • A. Create a task trigger to set the account field to NULL
  • B. Use process builder to create a process to set the task account field to blank
  • C. In activity settings,uncheck roll-up activities to a contact's primary account
  • D. By default,tasks do not display on the account activity timeline

正解: C

 

質問 166
A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) {
/*implementation*/ } } Which is the correct implementation?

  • A. Public class CreditCardPayment implements Payment {
    public override void makePayment(Decimal amount) { /*Implementation*/ }
    }
  • B. Public class CreditCardPayment extends Payment {
    public virtual void makePayment(Decimal amount) { /*implementation*/ }
    }
  • C. Public class CreditCardPayment implements Payment {
    public virtual void makePayment(Decimal amount) { /*implementation*/ }
    }
  • D. Public class CreditcardPayment extends Payment {
    public override void makePayment(Decimal amount) { /*implementation*/ }
    }

正解: D

 

質問 167
An Approval Process is defined in the Expense_Item__c. A business rule dictates that whenever a user changes the Status to 'Submitted' on an Expense_Report__c record, 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__c with an 'Apex' action type to submit all related Expense_Item__c records when the criteria is met.
  • B. Create a Process Builder on Expense_Report__c to mark the related Expense_Item__c as submittable and trigger on Expense_item__c to submit the records for approval.
  • C. Create two Process Builder, one on Expense_Report__c to mark the related Expense_Item__c as submittable and the second on Expense_Item__c to submit the records for approval.
  • D. Create a Process Builder on Expense_Report__c with a 'Submit for Approval' action type to submit all related Expense_Item__c records when the criteria is met.

正解: C

 

質問 168
What are three characteristics of static methods? (Choose three.)

  • A. Allowed only in inner classes
  • B. Initialized only when a class is loaded
  • C. Excluded from the view state for a Visualforce page
  • D. Allowed only in outer classes
  • E. A static variable outside of the scope of an Apex transaction

正解: B,C,D

 

質問 169
Which two roll-up summary field types are required to find the average of values on detail records in a Master-Detail relationship?

  • A. Roll-up summary field of type TOTAL
  • B. Roll-up summary field of type SUM
  • C. Roll-up summary field of type COUNT
  • D. Roll-up summary field of type NUM

正解: B,C

 

質問 170
......

CRT-450試験問題集パスできる2022年最新の認証された試験問題:https://www.goshiken.com/Salesforce/CRT-450-mondaishu.html

CRT-450試験問題リアルな最新問題PDF:https://drive.google.com/open?id=165FxtWHLCSCvMsWql0rbLuSPSwsUPpG6