Certification Practice Exams with Real Test Questions & Answers

You are working on a web application handling github video

 ·  PT1H46M27S  ·  EN

copilot-gh-300 video for you are working on a web application handling sensitive user data (e.g., PII like names, emails, SSNs) and need to comply with privacy

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?