Question 30
A Linux administrator faces this situation: A VM snapshot is used as a golden image and every clone contains the same SSH host private keys. Which action best resolves the specific issue while preserving correct system behavior?
Explanation
Correct Answer
Remove template-specific host keys and regenerate unique SSH host identities during instance initialization. This corrects the case-specific failure. First verify: Inspect the template's SSH host keys and first-boot regeneration process. Then demonstrate success: Cloned guests present different server host key fingerprints to SSH clients.
Incorrect Answers
Use rpm -qf /path/to/executable to identify its installed owning package. That would matter when a Red Hat family host contains an unfamiliar executable and an engineer must identify which installed RPM owns it. The relevant distinction in this case is: Remove template-specific host keys and regenerate unique SSH host identities during instance initialization.
Correct the cloud-init provisioning data or supported instance initialization flow. That would matter when a cloud instance boots with the wrong hostname and SSH access despite correct virtual hardware settings. It does not address this case's requirement: A VM snapshot is used as a golden image and every clone contains the same SSH host private keys.
Reset the cloned machine identity through the distribution's supported provisioning workflow before deployment. That would matter when a Linux VM template is cloned many times and every instance inherits the same machine ID. That separate mechanism does not verify the needed Linux administration outcome in this case.