ISC2 Certified Secure Software Lifecycle Professional (CSSLP) Practice Question

A fintech team is refactoring a payments microservice. For any transfer above $10 000, the service must verify that the caller has the SeniorApprover role before releasing funds. The architect insists this check be performed inside the service's business logic rather than through external configuration or annotations. Which implementation best exemplifies an imperative (programmatic) security control that meets the requirement?

  • Inside the transferFunds function, retrieve the caller's roles from the JWT and immediately throw an exception if "SeniorApprover" is not present before continuing processing.

  • Create a YAML access-control policy that maps the /transfers endpoint to the SeniorApprover role and load it into the organization's API gateway.

  • Apply a Kubernetes PodSecurityPolicy that prevents the payments microservice's container from running as root to limit privilege escalation.

  • Add the annotation @PreAuthorize("hasRole('SENIOR_APPROVER')") to the transferFunds method so the framework blocks unauthorized calls automatically.

ISC2 Certified Secure Software Lifecycle Professional (CSSLP)
Secure Software Implementation
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot