Valid Sharing-and-Visibility-Architect Dumps shared by ExamDiscuss.com for Helping Passing Sharing-and-Visibility-Architect Exam! ExamDiscuss.com now offer the newest Sharing-and-Visibility-Architect exam dumps, the ExamDiscuss.com Sharing-and-Visibility-Architect exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com Sharing-and-Visibility-Architect dumps with Test Engine here:
Universal Containers has developed an AppExchange managed package for their distribution partners, which required a private key to be generated for each partner and used by the code. Universal Containers support representatives must be able to access the private key value to debug connection issues, but it must not be possible for the partner to access the value. How can the Architect best support this requirement?
Correct Answer: D
The correct answer is D. Store the value in an encrypted field on a custom object in the package. By storing the private key value in an encrypted field on a custom object in the package, the architect can ensure that the value is protected and cannot be accessed by the partner. This meets the requirement of allowing Universal Containers support representatives to access the value for debugging purposes while preventing the partner from accessing it. Options A and C involve using custom settings to store the value, but these settings do not provide the necessary encryption to protect the private key value. Option B suggests storing the value in a static variable in a class included in the managed package. However, static variables can be accessed by other classes within the package, including classes belonging to the partner. Therefore, this option does not adequately address the requirement of preventing the partner from accessing the private key value. Therefore, the best option is D. Store the value in an encrypted field on a custom object in the package.
Recent Comments (The most recent comments are at the top.)
Ankur - May 04, 2025
A is the correct Answer. D is not correct because partner admin may have View Encrypted Data permission.
Itay Eshet - Jul 22, 2024
Anonymous, it says "the package" so obviously it means the managed package from the question... D will also work because classic encrypted fields are masked and the support representatives can be assigned the View Encrypted Data permission so they will see it and parters won't, and it can be used in code (on system mode). but this isn't the pupose of encryption, fls should be used instead
Protected custom settings in an unmanaged package behave like public custom settings. Make sure that secrets, personally identifying information, or any private data are stored in protected custom metadata types that are installed as part of a managed package. Outside of a managed package, use named credentials or encrypted custom fields to store secrets like OAuth tokens, passwords, and other confidential material.
Sky - Feb 03, 2024
A. Store the value in a text field on a protected custom setting in the package.
When a custom setting is contained in a managed package, and the visibility is set to Protected, access is allowed only through the Apex code that is part of that managed package. Subscriber organizations can’t directly access, read, or modify the protected custom settings.
Recent Comments (The most recent comments are at the top.)
A is the correct Answer. D is not correct because partner admin may have View Encrypted Data permission.
Anonymous, it says "the package" so obviously it means the managed package from the question...
D will also work because classic encrypted fields are masked and the support representatives can be assigned the View Encrypted Data permission so they will see it and parters won't, and it can be used in code (on system mode). but this isn't the pupose of encryption, fls should be used instead
D seems right as A does not mention whether it's managed/unmanaged package.
https://help.salesforce.com/s/articleView?id=sf.cs_schema_settings.htm&type=5
Protected custom settings in an unmanaged package behave like public custom settings. Make sure that secrets, personally identifying information, or any private data are stored in protected custom metadata types that are installed as part of a managed package. Outside of a managed package, use named credentials or encrypted custom fields to store secrets like OAuth tokens, passwords, and other confidential material.
A. Store the value in a text field on a protected custom setting in the package.
If Privacy for a custom setting is Protected and the custom setting is contained in a managed package, the subscribing organization can’t edit the values or access them using Apex.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_customsettings.htm#
Option A is correct - https://help.salesforce.com/s/articleView?id=sf.cs_schema_settings.htm&type=5
https://help.salesforce.com/s/articleView?id=sf.cs_schema_settings.htm&type=5
When a custom setting is contained in a managed package, and the visibility is set to Protected, access is allowed only through the Apex code that is part of that managed package. Subscriber organizations can’t directly access, read, or modify the protected custom settings.