
App Security and npm Quiz

Quiz
•
Computers
•
University
•
Medium
Zh L
Used 2+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which package is used to hash passwords and other sensitive information before sending them to the database to protect against breaches?
dotenv
bcrypt
jsonwebtoken
mongoose
Answer explanation
bcrypt is used to hash passwords and other sensitive information before storing them in a database. Hashing is a security measure that converts sensitive data into a fixed-length string of characters, making it difficult for attackers to decipher the original data. This helps protect against breaches by ensuring that even if the database is compromised, the original passwords and sensitive information remain secure.
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of the jsonwebtoken package in app security?
To manage environmental variables and sensitive information.
To hash passwords and sensitive information.
To provide a means of representing claims transferred between two parties securely.
To build APIs and server-side applications with Node.js.
Answer explanation
jsonwebtoken is used to create and verify JSON Web Tokens (JWTs), which are a means of representing claims between two parties securely.
JWTs are commonly used for authentication and information exchange in web development.
The package allows developers to create tokens containing information (claims) that can be verified by the receiving party to ensure their authenticity and integrity.
This helps enhance app security by enabling secure communication and verification of user identity.
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What npm command is used to initialize a new or existing npm package in a directory?
npm install
npm start
npm init
npm run
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of authorization in app security?
To track user activity within the application.
To determine user permissions within the application.
To verify user or system identity for application access.
To encrypt data at rest.
Answer explanation
Authorization in app security controls what users can do in the application. It decides which parts of the app a user can access based on their identity and role. This prevents unauthorized access to sensitive data and features, ensuring that users only have access to what they're supposed to.
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of authentication in app security?
To track user activity within the application.
To determine user permissions within the application.
To verify user identity when accessing an application.
To manage user accounts and system settings.
Answer explanation
Authentication in app security is like proving you are who you say you are. It's the process of verifying your identity, typically by entering a username and password, to access an app. This helps ensure that only the right people can get into the app and keeps out unauthorized users.
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is NOT a responsibility of administration in app security?
User account creation, modification, and deletion.
Role assignment (e.g., user, admin).
Configuring security policies.
Tracking user activity within the application.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of using dotenv in app security?
To manage environmental variables and sensitive information.
To hash passwords and sensitive information.
To handle authentication and authorization.
To encrypt sensitive data at rest.
Answer explanation
dotenv helps keep sensitive information, like passwords or API keys, safe by storing them in a separate file. It loads these details into the app securely, so they're not exposed in the code.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Cryptography and Network Security Quiz 3

Quiz
•
University
15 questions
OOP Semifinal Quiz IS2C

Quiz
•
University
10 questions
Pop Quiz for Topic 2.1 Show Security Policy & 2.2 Show Security

Quiz
•
University
15 questions
ReactJS Quiz

Quiz
•
University
10 questions
Cyber Security Quiz: Protect and Analyse

Quiz
•
University
10 questions
H466 - Network Basics

Quiz
•
12th Grade - University
10 questions
Axios in Vue 3

Quiz
•
12th Grade - University
15 questions
Introduction to Research in Informatics

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University