어느 Salesforce Developer의 개발 성장기

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

Salesforce Dump/Platform Developer1 Dump

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

Developer_Foryou 2020. 3. 8. 00:45

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

 

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 and populate a custom field on the parent object marked as Unique.
B. Create a custom field on the child object of type External Relationship.
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.

Answer D

Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?

A. REST resource path URL
B. Workbench REST Explorer
C. Developer Console REST tab
D. Force.com IDE REST Explorer tab

Answer B

Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.)

A. Use collections to store all fields from a related object and not just minimally required fields.
B. Use methods from the "Limits” class to monitor governor limits.
C. Use SOQL for loops to iterate data retrieved from queries that return a high number of rows.
D. Use variables within Apex classes to store large amounts of data.

Answer B, C

A developer executes the following query in Apex to retrieve a list of contacts for each account:

List<account> accounts = [Select ID, Name, (Select ID, Name from Contacts) from Account] ;

Which two exceptions may occur when it executes? (Choose two.)

A. CPU limit exception due to the complexity of the query.
B. SOQL query row limit exception due to the number of contacts.
C. SOQL query limit exception due to the number of contacts.
D. SOQL query row limit exception due to the number of accounts.

Answer C, D

Which three tools can deploy metadata to production? (Choose three.)

A. Change Set from Developer Org
B. Force.com IDE
C. Data Loader
D. Change Set from Sandbox
E. Metadata API

Answer A, D, E

A developer needs to display all of the available fields for an object. In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object? (Choose two.)

A. Use myObject.sObjectType.getDescribe().fieldSet() to return a set of fields.
B. Use mySObject.myObject.fields.getMap() to return a map of fields.
C. Use Schema.describeSObjects(new String[]{myObject})[0].fields.getMap() to return a map of fields.
D. Use getGlobalDescribe().get(myObject).getDescribe().fields.getMap() to return a map of fields.

Answer B, C

Which three declarative fields are correctly mapped to variable types in Apex? (Choose three.)

A. Number maps to Decimal
B. Number maps to Integer
C. TextArea maps to List of type String
D. Data/Time maps to Dateline
E. Checkbox maps to Boolean

Answer A, D, E

A developer created a Lightning component to display a short text summary for an object and wants to use it with multiple Apex classes. How should the developer design the Apex classes?

A. Have each class define method getObject() that returns the sObject that is controlled by the Apex class.
B. Extend each class from the same base class that has a method getTextSummary() that returns the summary.
C. Have each class implement an interface that defines method getTextSummary() that returns the summary.
D. Have each class define method getTextSummary() that returns the summary.

Answer C

What is a benefit of using an after insert trigger over using a before insert trigger?

A. An after insert trigger allows a developer to bypass validation rules when updating fields on the new record.
B. An after insert trigger allows a developer to insert other objects that reference the new record.
C. An after insert trigger allows a developer to make a callout to an external service.
D. An after insert trigger allows a developer to modify fields in the new record without a query.

Answer B

Comments