본문 바로가기

Salesforce/Salesforce Certification

[PDI I]_51-100문항_v230321.q230

Salesforce PDI 취득을 위한 DUMP 공부 

- v2023-03-21.q230 / 51-100문항


53. A developer needs to test an Invoicing system integration. After reviewing the number of transactions required for the test, the developer estimates that the test data will total about 2 GB
of data storage. Production data is not required for the integration testing. Which two environments meet the requirements for testing? (Choose two.) 
A. Partial Sandbox
B. Developer Sandbox
C. Full Sandbox
D. Developer Edition
E. Developer Pro Sandbox


📌 문제에서 말하는 요구사항
1) 2GB 크기의 테스트 데이터가 수용가능한 샌드박스 유형
2) 통합 테스트를 하기 적합한 샌드박스 유형

✔️ Partial Copy Sandbox 의 데이터 스토리지 5GB, Full Sandbox의 스토리지 리밋은 프로덕션 오그와 동일. 프로덕션 오그에 있는 내용을 통합 테스트만 하길 원하는 것이니 Full Sandbox도 해당. 다른 Sandbox 유형은 데이터 스토리지 크기가 요구사항을 충족하지 못하므로 정답은 Partial Sandbox, Full Sandbox.

출처 : Salesforce Help (https://help.salesforce.com/s/articleView?id=sf.data_sandbox_environments.htm&type=5)

 

더보기

Sandbox 유형

Developer Sandbox

1) A Developer sandbox is intended for development and testing in an isolated environment. 분리된 환경에서 개발 및 테스트를 수행하기 위해 사용됩니다.

2) A Developer Sandbox includes a copy of your production org’s configuration (metadata). Developer Sandbox에는 프로덕션 조직의 구성(메타데이터)에 대한 복사본이 포함됩니다.

 

Developer Pro Sandbox

1) A Developer Pro sandbox is intended for development and testing in an isolated environment and can host larger data sets than a Developer sandbox. Developer Pro Sandbox는 분리된 환경에서 개발 및 테스트를 수행하기 위해 사용되며, Developer Sandbox보다 더 큰 데이터 집합을 호스트할 수 있습니다.

2) A Developer Pro sandbox includes a copy of your production org’s configuration (metadata). 프로덕션 조직의 구성(메타데이터)에 대한 복사본이 포함됩니다.

3) Use a Developer Pro sandbox to handle more development and quality assurance tasks and for integration testing or user training.

Developer Pro Sandbox를 사용하여 통합 테스트 또는 사용자 교육을 위해 더 많은 개발 및 품질 보증 과업을 처리할 수 있습니다.

 

Partial Copy Sandbox

1) A Partial Copy sandbox is intended to be used as a testing environment. 테스트 환경으로 사용하기 위한 것입니다.

2) This environment includes a copy of your production org’s configuration (metadata) and a sample of your production org’s data as defined by a sandbox template 이 환경에는 프로덕션 조직의 구성(메타데이터)에 대한 복사본과 sandbox 템플릿에 의해 정의된 대로 프로덕션 조직의 데이터 샘플이 포함됩니다.

3) Use a Partial Copy sandbox for quality assurance tasks such as user acceptance testing, integration testing, and training. 사용자 수용 테스트, 통합 테스트 및 교육과 같은 품질 보증 과업에 부분 복사 Sandbox를 사용합니다.

 

Full Sandbox

1) A Full sandbox is intended to be used as a testing environment. Full Sandbox는 테스트 환경으로 사용하기 위한 것입니다.

2) Only Full sandboxes support performance testing, load testing, and staging. Full Sandbox만 성능 테스트, 로드 테스트 및 준비를 지원합니다.

3) Full sandboxes are a replica of your production org, including all data, such as object records and attachments, and metadata. 

Full Sandbox 는 모든 데이터(예: 개체 레코드 및 첨부 파일)와 메타데이터를 포함하는 프로덕션 조직의 복제본입니다.

4) The length of the refresh interval makes it difficult to use Full sandboxes for development. 새로 고침 간격의 길이로 인해 개발에는 전체 sandbox를 사용하기가 어렵습니다.

 

https://help.salesforce.com/s/articleView?id=sf.data_sandbox_environments.htm&type=5

 

Sandbox Licenses and Storage Limits by Type

General Information We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to

help.salesforce.com


54. Which three statements are accurate about debug logs? Choose 3 answers
A. To View Debug Logs, "Manager Users" or "View All Data" permission is needed.
B. Amount of information logged in the debug log can be controlled by the log levels.
C. Amount of information logged in the debug log can be controlled programmatically.
D. Debug Log levels are cumulative, where FINE lop level includes all events logged at the
DEBUG, INFO, WARN, and ERROR levels.
E. To View Debug Logs, "Manager Users" or "Modify All Data" permission is needed.


56. A developer wants to retrieve the Contacts and Users with the email address 'dev@uc.com'.
Which SOSL statement should the developer use?
A. FIND {Email = 'dev@uc.com'} IN Contact, User
B. FIND {dev@uc.com} IN Email Fields RETURNING Contact (Email), User (Email)
C. FIND Email IN Contact, User FOR {dev2uc.com}
D. FIND {Email = 'dev@uc.com'} RETURNING Contact (Email), User (Email)

📌SOSL 쿼리의 문법을 물어보는 문제. 답은 B.


SOSL Example

FIND {mylogin@mycompany.com}
FIND {"Joe Smith" OR "Joe Smythe"}
IN Name Fields
RETURNING lead(name, phone), contact(name, phone)

58. What can used to delete components from production? 프로덕션에서 컴포넌트 지울 때 사용하는 것은?
A. An ant migration tool deployment with destructive changes xml file and the components to delete in the package .xml file 

- 파괴적인 변경 사항 xml 파일과 패키지 .xml 파일에서 삭제할 구성 요소가 포함된 Ant 마이그레이션 도구 배포

B. A change set deployment with the delete option checked
C. A change set deployment with a destructive changes XML file
D. An ant migration tool deployment with a destructive changes XML file and an empty
package .xml file


59. A developer is tasked to perform a security review of the ContactSearch Apex class that exists in
the system. Whithin the class, the developer identifies the following method as a security threat:

List<Contact> performSearch(String lastName){ 

return Database.query('Select Id, FirstName,LastName FROM Contact WHERE LastName Like %'+lastName+'%); } 

What are two ways the developer can update the method to prevent a SOQL injection attack? Choose 2 answers

A. Use a regular expression on the parameter to remove special characters.
B. Use variable binding and replace the dynamic query with a static SOQL.
C. Use the @Readonly annotation and the with sharing keyword on the class.
D. Use the escapeSingleQuote method to sanitize the parameter before its use.


61. What are two characteristics of partial copy sandboxes versus full sandboxes? Choose 2 answers
A. Provides more data record storage
B. Supports more frequent refreshes
C. Includes a subset of metadata
D. Requires a sandbox templat

 

📌 문제가 물어보는 내요 : partial copy sandboxes & full sandboxes 공통된 특징

출처 : Salesforce Help (https://help.salesforce.com/s/articleView?id=sf.data_sandbox_environments.htm&type=5)


62. Which two are phases in the Aura application event propagation framework? Choose 2 answers
A. Bubble
B. Emit
C. Default
D. Control


65. A developer is creating a page that allows users to create multiple Opportunities. The developer
is asked to verify the current user's default } | Opportunity record type, and set certain default
values based on the record type before inserting the record. i, J Calculator How can the
developer find the current user's default record type? ns
A. Query the Profile where the ID equals userInfo.getProfileID() and then use the
profile.Opportunity.getDefaultRecordType() | | method. ] |
B. Use the Schema.userlnfo.Opportunity.getDefaultRecordType() method. < Create the
opportunity and check the opportunity.recordType before inserting, which will have the record ID
of the current Dal user's default record type.
C. Use Opportunity. SObjectType.getDescribe().getRecordTypelnfos() to get a list of record
types, and iterate through them until [ J isDefaultRecordTypeMapping() is true. Pencil & Paper |


80. A developer needs to create a Visualforce page that displays Case data. The page will be used by both support reps and support managers. The Support Rep profile does not allow visibility of the Customer_Satisfaction__c field, but the Support Manager profile does. How can the developer create the page to enforce Field Level Security and keep future maintenance to a minimum?

A. Use a new Support Manager permission set.
B. Create one Visualforce Page for use by both profiles.
C. Use a custom controller that has the with sharing keywords.
D. Create a separate Visualforce Page for each profile


87. Before putting an app into production, which step should be taken?
A. Switch to a production database
B. Scale your dynos
C. Insure that you have installed a performance introspection add-on
D. Run the production check feature via the web interface


88. What are two correct examples of the model in the salesforce MVC architecture? Choose 2
answers.
A. Workflow rule on the contact object
B. Standard lightning component
C. Standard account lookup on the contract object
D. Custom field on the custom wizard_c object


90. What is a benefit of the lightning component framework? 

A. Better integration with Force.com sites
B. More Centralized control via server-side logic
C. Better performance for custom Salesforce1 Mobile Apps
DMore pre-built components to replicate the salesforce look and feel


91. 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. Publicstatic void setBusinessUnitToEMEA(List<Contact> contacts){
for(Contact thisContact : contacts){
thisContact.Business_Unit__c = 'EMEA' ;
update contacts[0];
}
}
B. Public void setBusinessUnitToEMEA(List<Contact> contatcs){
contacts[0].Business_Unit__c = 'EMEA' ;
update contacts[0];
}
C. Public static void setBusinessUnitToEMEA(Contact thisContact){
List<Contact> contacts = new List<Contact>();
contacts.add(thisContact.Business_Unit__c ='EMEA');
update contacts;
}
D. Public static void setBusinessUnitToEMEA(List<Contact> contacts){
for(ContactthisContact : contacts) {
thisContact.Business_Unit__c = 'EMEA' ;
}
update contacts;
}

 

🏷️답에 대한 견해는 C, D로 나뉜다


98. A developer created a Visualforce page with a custom controller to show a list of accounts. The
page uses the <apex:SelecList> component, with a variable called "selection", to show the valid values for
Account.Type. The page uses an <apex:pageBlockTable> component to display the list of accounts, where the
iteration variable is "acct". The developer wants to ensure that when a user selects a type on the
<apex : selectList> component, only accounts with that type are shown on the page. What should
the developer do to accomplish this?
A. Create a component for each option and use a variable with hide parameter on the element.
B. Create multiple lists in the controller that represent the relevant accounts for each account type
when the page loads, then reference the correct one dynamically on the pageBlockTable.
C. Use the onChange event to update the list of accounts in the controller when the value
changes, and then re-render the pageBlockTable.
D. Add the Rendered={!Acct.type==selection} attribute to the pageBlockTable component

'Salesforce > Salesforce Certification' 카테고리의 다른 글

Salesforce MCA 자격증공부  (0) 2024.05.16
[PDI I]_1-50문항_v230321.q230  (0) 2024.04.11
[PDI I]_101-230문항_v230321.q230  (0) 2024.04.04