Search Header Logo

Security Coding Quiz

Authored by Dominika Sułot

Information Technology (IT)

Professional Development

Used 1+ times

Security Coding Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?