어느 Salesforce Developer의 개발 성장기

[Salesforce Certified Platform Developer1] Dump 오답 일기7 본문

Salesforce Dump/Platform Developer1 Dump

[Salesforce Certified Platform Developer1] Dump 오답 일기7

Developer_Foryou 2020. 3. 8. 00:55

※ 각 자격증별 Dump는 시험을 준비하면서, 
웹상에 공개된 Dump와 유료 Dump를 풀면서 자주 틀렸던 문제를 위주로 작성하였습니다. 
오래된 문제도 간혹 있기 때문에 버전에 따라 답이 다른 경우도 있으며,
개인이 공부하면서 푼 문제이기 때문에 오답일 가능성도 있습니다.
이점 유의하여 공부하시길 바랍니다.

 

A developer needs to create a Visualforce page that will override standard Account edit button. The page will be used to validate the account’s address using a SOQL query.The page will also allow the user to make edits to the address. Where would the developer write the Account address verification logic?

A. In a Controller Extension.
B. In a Custom Controller.
C. In a Standard Controller.
D. In a Standard Extension.

Answer A

A developer wants to list all of the Tasks for each Account on the Account detail page. When a Task is created for a Contact, what does the developer need to do to display the Task on the related Ac record?

A. Create an Account formula field that displays the Task information.
B. Nothing. The Task is automatically displayed on the Account page.
C. Create a Workflow Rule to relate the Task to the Contact’s Account.
D. Nothing. The Task cannot be related to an Account and a Contact.

Answer B

What is a capability of a StandardSetController? Choose 2 answers

A. It extends the functionality of a standard or custom controller
B. It allows pages to perform mass updates of records.
C. It allows pages to perform pagination with large record sets.
D. It enforces field -level security when reading large record sets.

Answer B, C

A developer has the following code.

try{
     List<String> nameList;
     Account a;
     String s = a.Name;
     nameList.add( s );
}catch ( ListException le ){
     System.debug(‘List Exception’);
}catch ( NullPointerException npe ){
     System.debug(‘NullPointer Exception’);
}catch ( Exception e ){
     System.debug(‘Generic Exception’);
}

What message would be logged?

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

Answer D

Which statement about change set deployments is accurate? Choose 3 answers

A. They can be used only between related organizations.
B. They require a deployment connection.
C. They use an all or none deployment model.
D They can be used to transfer Contact records.
E. They can be used to deploy custom settings data.

Answer A, B, C

 

A visualforce page has a standard controller for an object that has a lookup to the parent object. How can a developer display data from parent record on the page?

A. By adding a second standard controller to the page for the parent record
B. By using SOQL on the Visualforce page to query for data from the parent record
C. By using merge field syntax to retrieve data from the parent record
D. By using a roll-up formula field on the child record to include data from the parent record

Answer C

which trigger event allows a developer to update fields in the trigger.new list without using an additional dml statement? choose 2 answers

A. Before insert
B. Before update
C. After update
D. After insert

Answer A, B

 

Which code block returns the listview of an account object using the following debug statement?

system.debug( controller.getListViewOptions() );
A. ApexPages.StandardSetController controller = new ApexPages.StandardSetController( Database.getQueryLocator( 'SELECT Id FROM Account LIMIT 1' ) );
B. ApexPages.StandardController controller = new ApexPages.StandardController( [SELECT Id FROM Account LIMIT 1] );
C. ApexPages.StandardController controller = new ApexPages.StandardController( Database.getQueryLocator( 'SELECT Id FROM Account LIMIT 1' ) );
D. ApexPages.StandardController controller = new ApexPages.StandardController( [SELECT Id FROM Account LIMIT 1] );

Answer A

What is an accurate constructor for a custom controller named “myController”?

A. public MyController(){ account = new Account(); }
B. public MyController(sObject obj){ account = (Account) obj; }
C. public MyController(List objects){ accounts = (List) objects; }
D. public MyController(ApexPages.StandardController stdController){ account = (Account) stdController.getRecord(); }

Which resource can be inclouded in a lightning component bundle? choose 2 answers

A. Apex class
B. Adobe Flash
C. JavaScript
D. Documentation

Answer C, D

Comments