Skip to content

平成22年度 秋期 ITパスポート試験 問94

This question's explanation and your answers so far.

問94
頻出度★★★

S 社の T 営業所では,ID カードによる入室管理システムを導入することになった。T 営業所の施設の種類と管理対象者の区分(以下,対象区分という)を表のように分類し,入室許可の有無の区分(以下,許可区分という)の設定を行う。ここで,表は施設に対して入室を許可する対象区分を“○”,入室を許可しない対象区分を“×”で示す。 表 許可区分の設定

施設\対象区分来客者営業課員
執務室×○
応接室○○

施設と対象区分に対する許可区分の設定は,入室管理システムの管理用 PC から,次の設定の形式のとおりに入力する。 〔設定の形式〕 形式1:ポリシ|許可区分 形式2:施設|許可区分|対象区分 注 形式 1 の三つ目の項目は使用しない。 (1) 設定は,形式 1 を 1 行目に記述し,形式 2 を 2 行目以降に必要な行数だけ記述する。 (2) 許可区分には,入室を許可する場合は“ACCEPT”,入室を許可しない場合は“DENY”を記述する。 (3) 形式 1 は,ポリシを記述するための形式であり,最初の項目には“ポリシ”と記述する。ポリシの記述とは,2 行目以降に記述する行のいずれにも該当しない施設と対象区分の組合せに対して,適用する許可区分を指定するものである。 (4) 形式 2 には,施設と対象区分の組合せとそれに対する許可区分を記述する。施設に対して許可区分が同じ対象区分については,コンマで区切って複数記述できる。 (5) 入室が許可されるかどうかは,2 行目以降で記述した行の順に評価される。指定した施設と対象区分の組合せの行が見つかれば,その行の許可区分を適用し,それ以降の行の評価は行わない。 次の表に示す許可区分の設定について,ポリシの許可区分を DENY にしたときの設定の記述は,形式 1 を記述する行を含めて,最低何行必要か。

施設\対象区分来客者営業課員技術課員
会議室×○○
執務室1×○×
執務室2××○
応接室○○○
出典 平成22年度 秋期 ITパスポート試験 問94
解説

問 94

  • Incorrectア

    This is the value you get if you count only the 4 lines of Format 2 and forget the Format 1 line (Policy | DENY) that must always be placed on the first line. The question explicitly says including the line that describes Format 1, so 1 must be added to the 4 lines of Format 2; 4 is one line short.

  • イ

    正解 When the Policy permission category is set to DENY, rule (3) means that every combination of a facility and a person category that matches none of the Format 2 lines is treated as DENY (entry not permitted). Therefore, in Format 2 you only need to write the ○ (entry permitted) combinations as ACCEPT, and you do not need a single line for the × combinations. Furthermore, rule (4) lets you join person categories that have the same permission category for the same facility into one line with commas, so one line per facility is enough. - Meeting room | ACCEPT | Sales staff, Technical staff - Office 1 | ACCEPT | Sales staff - Office 2 | ACCEPT | Technical staff - Reception room | ACCEPT | Visitor, Sales staff, Technical staff Lines for different facilities cannot be merged, so Format 2 needs at least 4 lines. Adding the Format 1 line on the first line (Policy | DENY) gives 4 + 1 = 5 lines. Therefore the “5” of イ is correct. Note that in this question all 4 lines are ACCEPT and their facilities are all different, so the evaluation order of rule (5) does not affect the result.

  • Incorrectウ

    This is the number of lines when, in addition to the required 1 line of Format 1 and the 4 ACCEPT lines, one extra line is written for a × combination that does not need to be written at all (1 + 4 + 1 = 6). Because the DENY policy is automatically applied as the default, not a single line is needed for the × combinations, and the minimum is 5 lines.

  • Incorrectエ

    This is the same as the number of ○ marks in the table (2 for the Meeting room + 1 for Office 1 + 1 for Office 2 + 3 for the Reception room = 7). It corresponds to the number of Format 2 lines when the comma merging of rule (4) is not used and each ○ combination is written on its own separate line. With merging, Format 2 needs only 4 lines, and this 7 does not even include the Format 1 line, so it cannot be the answer for the minimum number of lines.

ここがポイント
  • The policy (Format 1) is the default permission category applied to combinations that match none of the explicitly written lines. Setting the policy to DENY gives a whitelist approach, in which you only need to write out the combinations that permit entry (ACCEPT); conversely, setting the policy to ACCEPT gives a blacklist approach, in which you write out only the × combinations.
  • When asked for the minimum number of lines, compress the line count by making the fullest use of the merging in rule (4) (joining, with commas, the person categories that have the same permission category for the same facility), and on top of that do not forget to count the Format 1 line on the first line. Note that lines for different facilities cannot be merged.
用語

Your answers