LPIC-2 Exam 202 (Linux Engineer) — Question 115
Which http_access directive for Squid allows users in the ACL named sales_net to only access the Internet at times specified in the time_acl named sales_time?
Answer options
- A. http_access deny sales_time sales_net
- B. http_access allow sales_net sales_time
- C. http_access allow sales_net and sales-time
- D. allow http_access sales_net sales_time
- E. http_access sales_net sales_time
Correct answer: B
Explanation
The correct answer, B, allows users in the sales_net ACL to access the Internet only during the specified times in sales_time, which is the intended functionality. Option A incorrectly denies access, while options C and D use incorrect syntax for Squid directives. Option E lacks the necessary action to permit access based on time restrictions.