Valid SPS-C01 Dumps shared by EduDump.com for Helping Passing SPS-C01 Exam! EduDump.com now offer the newest SPS-C01 exam dumps, the EduDump.com SPS-C01 exam questions have been updated and answers have been corrected get the newest EduDump.com SPS-C01 dumps with Test Engine here:
You are tasked with automating the creation of Snowpark sessions using key pair authentication for multiple users. You have a function that retrieves connection parameters (account, user, private key, etc.) for each user from a secure configuration file. The private keys are stored in PEM format. However, some users' private keys are password-protected. Which of the following approaches ensures the secure and correct establishment of Snowpark sessions for all users, including those with password-protected private keys? Assume get_user config(username)' retrieves the user's configuration, including the private key and password (if any).
Correct Answer: C
Option C is the most secure and correct approach. It handles both password-protected and non-password-protected private keys gracefully using the 'cryptography' library, without storing passwords in memory or requiring users to compromise their security. It attempts to load the private key with the password (if provided), and if no password is provided, it defaults to 'None'. Options A and D have security vulnerabilities associated with storing or prompting for passwords. Option B forces users to weaken security. Option E doesn't consider password protected private keys.