Oracle Cloud Infrastructure 2021 Multicloud Architect Associate — Question 2
You created an Oracle Linux compute instance through the Oracle Cloud Infrastructure (OCI) management console then immediately realize you forgot to add an
SSH key file. You notice that OCI compute service provides instance console connections that supports adding SSH keys for a running instance. Hence, you created the console connection for your Linux server and activated it using the connection string provided. However, now you get prompted for a username and password to login.
What option should you recommend to add the SSH key to your running instance, while minimizing the administrative overhead? (Choose the best answer.)
Answer options
- A. You need to configure the boot loader to use ttyS0 as a console terminal on the VM.
- B. You need to terminate the running instance and recreate it by providing the SSH key file.
- C. You need to reboot the instance from the console, boot into the bash shell in maintenance mode, and add SSH keys for the opc user.
- D. You need to modify the serial console connection string to include the identity file flag, ג€"i to specify the SSH key to use.
Correct answer: D
Explanation
The correct option is D because modifying the connection string to include the identity file flag allows you to specify the SSH key without needing to restart or recreate the instance. Options A and C involve more complex steps that require additional administrative work, while option B is inefficient as it requires terminating the instance and starting over.