CompTIA Cloud+ (CV0-004) — Question 104
A cloud solutions architect needs to design a solution that will collect a report and upload it to an object storage service every time a virtual machine is gracefully or non-gracefully stopped. Which of the following will best satisfy this requirement?
Answer options
- A. An event-driven architecture that will send a message when the VM shuts down to a log-collecting function that extracts and uploads the log directly from the storage volume
- B. Creating a webhook that will trigger on VM shutdown API calls and upload the requested files from the volume attached to the VM into the object-defined storage service
- C. An API of the object-defined storage service that will scrape the stopped VM disk and self-upload the required files as objects
- D. A script embedded on the stopping VM's OS that will upload the logs on system shutdown
Correct answer: A
Explanation
The correct answer, A, utilizes an event-driven architecture to monitor VM shutdowns and automatically processes logs, ensuring timely uploads. Option B relies on API calls which may not capture non-graceful shutdowns, while option C suggests a less efficient scraping method that may not be reliable. Option D depends on the VM's OS to function correctly, which could fail during abrupt shutdowns.