exam questions

Exam PT0-002 All Questions

View all questions & answers for the PT0-002 exam

Exam PT0-002 topic 1 question 393 discussion

Actual exam question from CompTIA's PT0-002
Question #: 393
Topic #: 1
[All PT0-002 Questions]

Given the following table:



Which of the following data structures would most likely be used to store Known-good configurations of firewall rules in a Python script?

  • A. Lists
  • B. Trees
  • C. Dictionaries
  • D. Tuples
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
PTA
1 month, 2 weeks ago
Selected Answer: C
dictionaries are the most suitable data structure for storing firewall rules in a Python script, as they allow for easy association of configuration parameters with their respective values.
upvoted 4 times
...
Nikamy
1 month, 4 weeks ago
Selected Answer: C
Dictionary. It has key and value
upvoted 1 times
...
SecEngi
2 months, 3 weeks ago
Selected Answer: A
Dictionary is key-value, I think it can be list (like an array)
upvoted 2 times
zemijan
3 weeks, 3 days ago
If you’re managing multiple firewall rules, use a list of dictionaries. If you’re managing a single firewall rule, use a dictionary.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago