CAD Security & Deployment β Questions and Answers
Question 1: Which security measure helps prevent unauthorized access to an application?
- Disabling error messages
- Authentication (Correct answer)
- Hiding the URL
- Increasing application size
Correct answer: Authentication
Authentication ensures that only authorized users can access an application by requiring login credentials such as a username and password.
Question 2: What is the purpose of data encryption in application security?
- Increase storage space
- Convert data into unreadable format for security (Correct answer)
- Speed up data processing
- Reduce user access
Correct answer: Convert data into unreadable format for security
Encryption protects sensitive information by converting it into unreadable code that can only be decrypted by authorized users.
Question 3: Which security vulnerability occurs when user input is not properly validated?
- Cross-site scripting (XSS)
- SQL injection (Correct answer)
- Denial of service (DoS)
- Brute-force attack
Correct answer: SQL injection
SQL injection occurs when attackers manipulate input fields to execute unauthorized database queries, compromising sensitive data.
Question 4: What is the purpose of role-based access control (RBAC) in an application?
- Increase application speed
- Limit access to features based on user roles (Correct answer)
- Allow public access to all resources
- Store user credentials in plain text
Correct answer: Limit access to features based on user roles
RBAC restricts access to certain features based on a userβs role, ensuring only authorized personnel can perform specific actions.
Question 5: Which deployment strategy involves gradually releasing updates to a small subset of users before a full rollout?
- Blue-green deployment
- Canary deployment (Correct answer)
- Rolling back
- Big bang deployment
Correct answer: Canary deployment
A canary deployment gradually introduces new features to a small group of users, allowing for testing and minimizing risks.
Question 6: Why is continuous deployment beneficial in application development?
- Reduces version control
- Automates the release process for faster updates (Correct answer)
- Eliminates security requirements
- Prevents updates from being deployed
Correct answer: Automates the release process for faster updates
Continuous deployment automates the release process, allowing faster and more reliable delivery of new features and fixes.
Which security measure helps prevent unauthorized access to an application?