Skip to content

Commit

Permalink
Added 3 Cybersecurity questions and Answered 2 questions. (#3680)
Browse files Browse the repository at this point in the history
* Added 3 Cybersecurity questions and Answered 2 questions.

Gave the test 3 minutes ago.

* Updated mysql-quiz.md with 3 questions.

Answered one question with reference.

* Updated Linux-Assesment with 3 questions.

Answered 2 and have references for them as well.
  • Loading branch information
Prz8 authored May 18, 2022
1 parent 079d60f commit 8568767
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
26 changes: 26 additions & 0 deletions cybersecurity/cybersecurity-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -778,3 +778,29 @@ What is the next step you should take to best fulfill your responsibilities and
- [ ] Take the server offline until your investigation is complete.
- [x] Take a snapshot of the compromised virtual server for your investigation.
- [ ] Restart the server. Remediate the issue after business hours.

#### Q102. Site-to-site VPN provides access from one network address space (192.168.0.0/24) to another network address space _____.Site-to-site VPN provides access from one network address space (192.168.0.0/24) to another network address space _____.

- [ ] 192.168.0.1/24192.168.0.1/24
- [ ] 192.168.0.3/24192.168.0.3/24
- [ ] 10.10.0.0/2410.10.0.0/24
- [ ] 192.168.0.2/24


#### Q103. You are researching probable threats to your company’s internet-facing web applications. Which organization should you reference as an authoritative source for information on web-based attack vectors?You are researching probable threats to your company’s internet-facing web applications. Which organization should you reference as an authoritative source for information on web-based attack vectors?

- [ ] EC-Council
- [ ] ISACAISACA
- [ ] NISTNIST
- [x] OWASP

[Explanation:](https://www.imperva.com/learn/application-security/application-security/)

#### Q104. Which action is most likely to simplify security staff training, improve integration between security components, and reduce risk to the business? (Choose the best answer.)Which action is most likely to simplify security staff training, improve integration between security components, and reduce risk to the business? (Choose the best answer.)

- [ ] adopting a "best-in-suite" approach to securityadopting a "best-in-suite" approach to security
- [x] adopting a "trust but verify" approach to securityadopting a "trust but verify" approach to security
- [ ] adopting a "best-of-breed" approach to securityadopting a "best-of-breed" approach to security
- [ ] adopting a "defense-in-depth" approach to security

[Explanation:](https://www.law.com/njlawjournal/2021/12/03/zero-trust-security-moving-from-trust-but-verify-to-never-trust-always-verify/?slreturn=20220417191235)
27 changes: 27 additions & 0 deletions linux/linux-assessment.md
Original file line number Diff line number Diff line change
Expand Up @@ -732,3 +732,30 @@ if [[ $FILE == $GLOB ]] ;then
- [ ] service
- [ ] single
- [ ] process

#### Q89. What tool should you use to replace a physical volume in LVM?What tool should you use to replace a physical volume in LVM?

- [ ] cpcp
- [ ] pvmovepvmove
- [ ] tartar
- [ ] lvcopy

#### Q90. What is the difference between the apt remove and apt autoremove commands?What is the difference between the apt remove and apt autoremove commands?

- [ ] The apt remove command is a link to apt autoremove, so there are no differences. The apt remove command is a link to apt autoremove, so there are no differences.
- [x] Both uninstall software. The apt autoremove command also uninstalls the dependencies.Both uninstall software. The apt autoremove command also uninstalls the dependencies.
- [ ] Both uninstall software. The apt remove command also uninstalls the dependencies.Both uninstall software. The apt remove command also uninstalls the dependencies.
- [ ] The apt autoremove command is a system service that routinely removes unused software packages.

[reference:] https://dannyda.com/2021/08/19/whats-the-difference-between-apt-remove-and-apt-autoremove-what-is-apt-purge-when-to-use-debian-ubuntu-kali-linux-etc/

#### Q91. You want to extract the contents from an rpm package. Which command do you use?You want to extract the contents from an rpm package. Which command do you use?

- [ ] rpm --updaterpm --update
- [ ] rpm -ivh --forcerpm -ivh --force
- [ ] rpm --reinstallrpm --reinstall
- [x] rpm2cpio

[reference:](https://stackoverflow.com/questions/18787375/how-do-i-extract-the-contents-of-an-rpm)


23 changes: 23 additions & 0 deletions mysql/mysql-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -977,3 +977,26 @@ Table name: superheroes
- [ ] Add a column to this table to serve as a record identifier, and make it the primary key.
- [ ] Extend this table to have additional columns "power4," "power5," and so on, to allow additional powers for each superhero.
- [ ] Convert this table to have column called "power," and add one record for each superhero-power combination, for a total of 15 records in this example.

#### Q101. What is valid way to create a database view in MySQL?What is valid way to create a database view in MySQL?

- [ ] 1 CREATE VIEW v1 2 SELECT * FROM t1 3 WHERE col1 > 10;
- [ ] 1 CREATE VIEW v1 2 BEGIN 3 SELECT * FROM t1 4 END
- [ ] 1 CREATE VIEW v1 AS 2 SELECT * FROM t1;
- [ ] 1 CREATE VIEW v1 AS 2 BEGIN 3 SELECT * FROM t1 4 END;

#### Q102. A table Item has a Boolean field endOfLife and a field makeYear of type YEAR(4). How can you set the Boolean to true for all Items that have been made before 2019?A table Item has a Boolean field endOfLife and a field makeYear of type YEAR(4). How can you set the Boolean to true for all Items that have been made before 2019?

- [ ] UPSERT Item SET endOfLife = true WHERE makeYear < 2019UPSERT Item SET endOfLife = true WHERE makeYear < 2019
- [ ] CHANGE Item SET endOfLife = true WHERE makeYear < 2019CHANGE Item SET endOfLife = true WHERE makeYear < 2019
- [ ] ALTER Item SET endOfLife = true WHERE makeYear < 2019ALTER Item SET endOfLife = true WHERE makeYear < 2019
- [ ] UPDATE Item SET endOfLife = true WHERE makeYear < 2019

#### Q103. Which choice is an example of an aggregate function?Which choice is an example of an aggregate function?
- [ ] NOW()NOW()
- [ ] MID()MID()
- [ ] FORMAT()FORMAT()
- [x] COUNT()

[Reference](https://www.sqltutorial.org/sql-aggregate-functions/)

0 comments on commit 8568767

Please sign in to comment.