Professional Cloud DevOps Engineer free question 10 / 10 · Domain 5: Optimizing performance and cost
An idle VM recommendation contains an operation group with two operations. What do the operations tell the team to do?
- Replace the VM status with SUSPENDED, and then test the attached disks
- Test the CPU utilization of the VM, and then delete the VM
- Replace the machine type with a smaller one, and then test the VM again
- Test that the VM is RUNNING, then replace its status with TERMINATED
Show the answer and explanation
Answer: D
Why this is correct
Each idle VM recommendation contains an operation group with two operations that you perform in serial. The first is a test operation that verifies the current status of the VM, which should still be RUNNING, and you can check this by looking at the VM state. The second is a replace operation that changes the status of the VM to TERMINATED, which you do by stopping the VM. The recommendation does not delete the VM, and a smaller machine type is a different recommender's suggestion.
Why the other options are wrong
"Test the CPU utilization of the VM, and then delete the VM" … The first operation tests the status of the VM, which should still be RUNNING. The second replaces the status with TERMINATED, which means stopping the VM.
"Replace the VM status with SUSPENDED, and then test the attached disks" … The operations are a test of the current status followed by a replace to TERMINATED. A suspend step is not part of them.
"Replace the machine type with a smaller one, and then test the VM again" … Changing the machine type is the job of the VM machine type recommender. The idle VM recommendation operates on the status of the VM.
Key points
Idle VM operations: test status RUNNING, then replace with TERMINATED (stop).