Doubt: I implemented my SOQL as
Security.stripInaccessible(AccessType.READABLE, [SELECT Id, Name FROM CustObj__c WHERE Name IN: custObjNameListJSON WITH SECURITY_ENFORCED]).getRecords();
So, I just wanted to know implementing both 'WITH SECURITY_ENFORCED' and 'Security.stripInaccessible' in a single SOQL is a bit too extra for the system or should both be applied if I have to check for Object and field level security.
With comparison I understood that stripInaccessible does NOT respect for sharing rule while WITH SECURITY_ENFORCED will throw error at the time of inaccesible field, so should we always use the combination or will it be extra effort for the system.
Note: I already have with sharing in my class.