Regulatory Frameworks & Compliance Flashcards
7 cards from real LARAVEL practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 7 Regulatory Frameworks & Compliance flashcards as text
Under GDPR's data minimization principle, which Laravel practice best aligns with only collecting what is necessary?
Answer: Using `$request->only(['name', 'email'])` or Form Request validation rules that explicitly allow only required fields
Using `only()` or strict validation allow-lists ensures the application never processes or stores fields beyond what is needed, directly implementing data minimization.
Which Laravel logging configuration best supports a compliance requirement for tamper-evident, centralized log management (e.g., for SOC 2 or PCI DSS log integrity)?
Answer: Using the `stack` channel that ships logs to an external SIEM or log management service (e.g., via a `syslog` or HTTP channel), where logs are immutable and access-controlled
PCI DSS and SOC 2 require logs to be sent to a separate, access-controlled system to prevent tampering—local-only log files can be altered by anyone with server access.
A Laravel API handles sensitive personal data and must comply with GDPR. Which HTTP method and endpoint design principle reduces unnecessary data exposure compared to a non-compliant alternative?
Answer: Returning only the fields the consuming client needs (sparse fieldsets) rather than full model serialization, and using API Resources to control the output
API Resources with explicit field control prevent over-exposure of personal data, supporting GDPR's data minimization and purpose limitation principles at the API layer.
Laravel's `Illuminate\Cookie\Middleware\EncryptCookies` middleware is relevant to which compliance concern?
Answer: Satisfying requirements that session and application cookies not leak sensitive data in transit or be tampered with by the client, as required by PCI DSS and HIPAA
Encrypting cookies ensures that even if intercepted or inspected by the client, cookie values reveal no sensitive data and cannot be forged, satisfying integrity and confidentiality controls.
A healthcare Laravel application stores patient appointment notes. Under HIPAA, which database-level control is required for PHI at rest?
Answer: Encrypting the database tablespace or individual sensitive columns using at-rest encryption, with key management separate from the data
HIPAA's Technical Safeguards require encryption of PHI at rest; separate credentials alone or hashing (which makes data unreadable) do not satisfy this requirement properly.
Which Laravel approach supports the NIST Cybersecurity Framework's 'Respond' function by enabling rapid incident detection in a compromised application?
Answer: Integrating Laravel event listeners and notification channels (Slack, PagerDuty) triggered on anomalous events such as repeated failed logins or unexpected privilege escalation attempts
Automated alerting via Laravel events and notifications enables the rapid detection and response capability that the NIST CSF 'Respond' function requires.
When a Laravel application must retain financial records for 7 years to comply with IRS regulations while also honoring GDPR deletion requests, what is the correct approach?
Answer: Retain required financial records for the legally mandated period but pseudonymize or remove non-essential personal identifiers, relying on a lawful retention basis to override the deletion request for those specific records
Competing legal obligations allow retention under a separate lawful basis (legal obligation), but the application should minimize personal data within retained records as much as possible.
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Not reviewed by a subject-matter expert. Editorial policy