CSSLP · Question #250
Which of the following are the basic characteristics of declarative security? Each correct answer represents a complete solution. Choose all that apply.
The correct answer is A. It is a container-managed security. B. It has a runtime environment. C. All security constraints are stated in the configuration files. Declarative security involves defining security policies externally through configuration rather than directly in application code.
Question
Which of the following are the basic characteristics of declarative security? Each correct answer represents a complete solution. Choose all that apply.
Options
- AIt is a container-managed security.
- BIt has a runtime environment.
- CAll security constraints are stated in the configuration files.
- DThe security policies are applied at the deployment time.
How the community answered
(43 responses)- A91% (39)
- D9% (4)
Why each option
Declarative security involves defining security policies externally through configuration rather than directly in application code.
Declarative security is often container-managed, meaning the application server or runtime environment enforces the security constraints defined externally.
It operates within a runtime environment, where the container or framework interprets and enforces the specified security constraints during application execution.
A core characteristic is that security constraints, such as access control rules or authentication methods, are explicitly stated in configuration files or annotations, separate from the business logic.
While security policies are often configured or loaded during deployment, their enforcement happens continuously at runtime by the container or environment, not solely at the deployment time itself.
Concept tested: Declarative security characteristics
Source: https://docs.oracle.com/javaee/6/tutorial/doc/bncbx.html
Topics
Community Discussion
No community discussion yet for this question.