Principal Software Engineer Interview Questions

2,159 principal software engineer interview questions shared by candidates

1. Given that there is a validation Rule and it’s been updated directly in prod by one person and the same fix is not in the lower sandboxes and no one is aware of that in the team and when the other team is trying to deploy a package there is a 100 test class failures and there is no time to fix the issue . Being a principle developer how do I make the deployment success by applying the simple fix . Answer : I would first strongly recommend the team not to make any changes in the prod directly before it get tested in lower sandboxes. Interviewer : what was the fix that I still consider given that the deployment is very much needed for the organization Answer : I would first take that change to lower sandbox and try to test and make the appropriate change to test class to align the test data to comply with validation rule . P.s : Noticed when i said this answer interviewer is giving me a disappointed look/facial expression as he was not looking for that answer :) Interviewer : What if there is no time to take that to lower sandbox and make changes to the test classes . Answer : I would deactivate that Validation Rule in prod until the changes get deployed. Interviewer : But the business users don’t want to turn off the Validation Rule for not even 1 min. Answer : As I said earlier and stick to it that I will not break the good practice of applying the changes directly in prod but if you are looking for answer anyway I would enhance the validation rule in prod and put a bypass to the user who is trying to deploy the package . P.s:- I don’t think he like that answer and looks like he got offended by noticing his facial expressions :) again a person with those many technical certs in salesforce would think of making changes directly in prod ;) 2 . Given there is a trigger with trigger handler and in the handler there is 400 lines of code and it already at the edge of 99 soql query’s when ever the handler is been called called and there is a new business use case to apply to the existing code with one more query to the handler . How do I handle that situation. Answer : I would refactor the code by coming up with a good trigger pattern( interrupted by the interviewer already ) Interviewer : what if there is no time for the refactor the code. Answer : I don’t put the new functionality until I fix the issue as it may bail out any time if I chase for the fixes . Ps:- He is really really pissed off and abruptly stoped the interview and said if I have any questions to him. By this time I already understood he don’t like me :) Again the interviewer has many technical certs like developer I and developer II aswell and the questions and the answers he is looking doesn’t seems to be matching at all.
avatar

Principal Salesforce Developer

Interviewed at Advance Auto Parts

3.1
Sep 15, 2021

1. Given that there is a validation Rule and it’s been updated directly in prod by one person and the same fix is not in the lower sandboxes and no one is aware of that in the team and when the other team is trying to deploy a package there is a 100 test class failures and there is no time to fix the issue . Being a principle developer how do I make the deployment success by applying the simple fix . Answer : I would first strongly recommend the team not to make any changes in the prod directly before it get tested in lower sandboxes. Interviewer : what was the fix that I still consider given that the deployment is very much needed for the organization Answer : I would first take that change to lower sandbox and try to test and make the appropriate change to test class to align the test data to comply with validation rule . P.s : Noticed when i said this answer interviewer is giving me a disappointed look/facial expression as he was not looking for that answer :) Interviewer : What if there is no time to take that to lower sandbox and make changes to the test classes . Answer : I would deactivate that Validation Rule in prod until the changes get deployed. Interviewer : But the business users don’t want to turn off the Validation Rule for not even 1 min. Answer : As I said earlier and stick to it that I will not break the good practice of applying the changes directly in prod but if you are looking for answer anyway I would enhance the validation rule in prod and put a bypass to the user who is trying to deploy the package . P.s:- I don’t think he like that answer and looks like he got offended by noticing his facial expressions :) again a person with those many technical certs in salesforce would think of making changes directly in prod ;) 2 . Given there is a trigger with trigger handler and in the handler there is 400 lines of code and it already at the edge of 99 soql query’s when ever the handler is been called called and there is a new business use case to apply to the existing code with one more query to the handler . How do I handle that situation. Answer : I would refactor the code by coming up with a good trigger pattern( interrupted by the interviewer already ) Interviewer : what if there is no time for the refactor the code. Answer : I don’t put the new functionality until I fix the issue as it may bail out any time if I chase for the fixes . Ps:- He is really really pissed off and abruptly stoped the interview and said if I have any questions to him. By this time I already understood he don’t like me :) Again the interviewer has many technical certs like developer I and developer II aswell and the questions and the answers he is looking doesn’t seems to be matching at all.

Viewing 1771 - 1780 interview questions

Glassdoor has 2,159 interview questions and reports from Principal software engineer interviews. Prepare for your interview. Get hired. Love your job.