AWS Exams GCP Exams Azure Exams GitHub Exams Jira Exams ISC2 Exams

Video: You are working on a web application handling github video

Question 1
« Back   Next copilot-gh-300 Question »

Full Certification Question

You are working on a web application handling sensitive user data (e.g., PII like names, emails, SSNs) and need to comply with privacy regulations like GDPR. To avoid logging sensitive data, GitHub Copilot suggests this function: def log_user_data ( user ): print ( f "User data: {user.name}, {user.email}, {user.ssn}" ) Which GitHub Copilot suggestion is best to exclude sensitive data (e.g., SSN) from logs?