問題 ccnp-350-601-topic-1-question-414-v-3dff341e・第4版

問題

Cisco Nexus 9000のNX-API RESTとDMEデータベースを有効にし、HTTPポートを83へ変更してHTTPS証明書を読み込む。これらを実行できるコマンドの組み合わせはどれか。<証明書ファイル>は読み込む証明書のファイル名を表す。

  1. A 
    feature nxapi
    nxapi (tcp) port 83
    nxapi certificate {httpscrt}
    
  2. B 
    feature nxapi
    nxapi (tcp) port 83
    nxapi certificate {httpscrt}
    nxapi certificate enable
    
  3. C 
    feature nxapi
    nxapi (http) port 83
    nxapi certificate {httpscrt}
    
  4. D 
    feature nxapi
    nxapi {http} port 83
    nxapi certificate {httpscrt | httpskey}
    nxapi certificate enable
    
  5. E 
    feature nxapi
    nxapi http port 83
    nxapi certificate httpscrt certfile <証明書ファイル>
    

正解:E

理由

nxapi http port 83

feature nxapiで機能を有効にし、HTTPポートを83に設定する。

コマンド名・構文 作用・条件
nxapi certificate httpscrt certfile 証明書の読み込みにはこの指定にファイル名を続ける。

証明書を有効にする操作は読み込みとは別であり、対応する鍵の構成も必要になる。

選択肢ごとの説明

A.
feature nxapi
nxapi (tcp) port 83
nxapi certificate {httpscrt}

portの指定にはhttpまたはhttpsを使い、(tcp)は有効な指定ではない。証明書を読み込むcertfileとファイル名も欠けている。

B.
feature nxapi
nxapi (tcp) port 83
nxapi certificate {httpscrt}
nxapi certificate enable

certificate enableがあっても、(tcp)のport指定と不完全な証明書読み込みコマンドは成立しない。

C.
feature nxapi
nxapi (http) port 83
nxapi certificate {httpscrt}

CLIへ(http)をそのまま入力できず、httpscrtの後にはcertfileとファイル名が必要になる。有効化の有無だけが誤りではない。

D.
feature nxapi
nxapi {http} port 83
nxapi certificate {httpscrt | httpskey}
nxapi certificate enable

中括弧や縦線は構文の選択表記であり、そのまま入力するコマンドではない。読み込みにはhttpscrt certfileまたはhttpskey keyfileとファイル名を指定する。

E.
feature nxapi
nxapi http port 83
nxapi certificate httpscrt certfile <証明書ファイル>

NX-APIの有効化、HTTPポート83、証明書ファイルの読み込みという三つの操作に対応する。証明書の読み込みと有効化は別の操作である。

お問い合わせ

演習する →