Security Coding Quiz

Quiz
•
Information Technology (IT)
•
Professional Development
•
Easy
Dominika Sułot
Used 1+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
it’s safe to store a database password in a private GitHub repo.
True
False
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which practice helps prevent SQL injection vulnerabilities?
Using eval() on inputs
Strict input validation and parameterized queries
Giving the DB user full admin rights
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the purpose of Azure Key Vault?
Store large BLOBs
Perform automated database backups
Manage and audit encryption keys/secrets safely
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the main risk of using eval() on user input in Python?
It’s slow
It can execute arbitrary code from the user
It can’t handle strings
It doesn't support variables
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Why shouldn’t you log user passwords or API keys?
There is no problem with that
Because people with log access can see them breaking least privilege rule
Because logs are often accessible and can leak secrets
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following is the best practice for storing a production API key?
In a .env file committed to the repo
As a plaintext string in your source code
In Azure Key Vault with restricted access
Inside a shared Excel file on SharePoint
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What does “principle of least privilege” help prevent?
Data duplication
Time zone issues
Code duplication
Lateral movement in case of a breach
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade