ISC2 Certified Secure Software Lifecycle Professional (CSSLP) Practice Question
A development team is building an online banking API that must decide at run-time whether a user may transfer money between two accounts. The decision depends on current balances, daily limits, account ownership, and in-memory fraud flags. Which implementation best illustrates an imperative (programmatic) security approach for this need?
Write a validation routine inside the transferFunds() method that checks the requester's role, account ownership, real-time balances, and fraud flags before executing the transaction.
Attach a pre-defined cloud IAM role to the container so only principals with that role can invoke any API endpoint.
Define allowed source and destination account pairs in a YAML policy file that the API gateway enforces at deployment time.
Set container securityContext fields to restrict network egress to the banking core and rely on the platform to block unauthorized calls.
Imperative security embeds access-control logic directly in executable code so it can evaluate dynamic, context-specific information at run-time. Placing a transfer-authorization function inside the service method lets the application inspect live variables such as balances, limits, and fraud flags before permitting the operation. The other choices rely on external, largely static configurations (YAML policies, container manifests, or pre-defined cloud IAM roles) that describe permissions declaratively; they cannot easily incorporate the complex, per-request business logic required here.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is imperative security in programming?
Open an interactive chat with Bash
Why is declarative security insufficient for dynamic checks?
Open an interactive chat with Bash
How does the `transferFunds()` method ensure real-time security?
Open an interactive chat with Bash
What does imperative security mean?
Open an interactive chat with Bash
How does imperative security differ from declarative security?
Open an interactive chat with Bash
Why is imperative security better for real-time contexts like an online banking API?
Open an interactive chat with Bash
ISC2 Certified Secure Software Lifecycle Professional (CSSLP)
Secure Software Implementation
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .