What will be the output if data.isEncrypted is true but access.isRestricted is false?
medium
A. 'Compliant'
B. 'Partially compliant'
C. 'Non-compliant'
D. Error: Undefined variable
Solution
Step 1: Analyze the condition logic
The condition requires both data.isEncrypted and access.isRestricted to be true for compliance.
Step 2: Evaluate given values
data.isEncrypted is true, but access.isRestricted is false, so the condition fails.
Final Answer:
'Non-compliant' -> Option C
Quick Check:
Both true needed = 'Non-compliant' if false [OK]
Hint: Both conditions must be true for compliance [OK]
Common Mistakes:
Assuming one true condition is enough
Confusing output strings
Ignoring boolean AND logic
4. A company claims it follows PCI DSS by encrypting payment data but allows all employees unrestricted access to the data. What is the main error in their compliance?
medium
A. They failed to restrict access to payment data
B. They did not encrypt the data properly
C. They used outdated encryption algorithms
D. They did not install firewalls
Solution
Step 1: Identify PCI DSS requirements
PCI DSS requires both encryption and strict access controls to protect data.
Step 2: Analyze the company's practice
They encrypt data but allow unrestricted access, violating access control rules.
Final Answer:
They failed to restrict access to payment data -> Option A
Quick Check:
Access control is mandatory, not just encryption [OK]
Hint: Encryption alone is not enough; control access too [OK]
Common Mistakes:
Assuming encryption fixes all security issues
Ignoring access control importance
Confusing encryption quality with access policies
5. A retailer wants to comply with PCI DSS by encrypting stored cardholder data and limiting access. They also want to ensure their firewall rules are strict. Which combination of actions best meets PCI DSS requirements?
hard
A. Encrypt data only and allow all staff to access it for convenience
B. Encrypt data, restrict access to authorized staff, and configure firewalls to block unauthorized traffic
C. Use firewalls only and do not encrypt data to improve speed
D. Restrict access only and skip encryption if firewalls are active
Solution
Step 1: Review PCI DSS key controls
PCI DSS requires encryption, access control, and firewall protection together.
Step 2: Evaluate each option
Encrypt data, restrict access to authorized staff, and configure firewalls to block unauthorized traffic includes all required controls; others miss one or more important steps.
Final Answer:
Encrypt data, restrict access to authorized staff, and configure firewalls to block unauthorized traffic -> Option B
Quick Check:
All three controls combined = PCI DSS compliance [OK]
Hint: Combine encryption, access control, and firewalls [OK]
Common Mistakes:
Skipping encryption or access control
Relying on firewalls alone
Allowing unrestricted data access
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.