Sitecore 10 .NET Developer Certification — Question 33
How would you debug the Sitecore Content Delivery role that is running on containers?
Answer options
- A. Attach to the w3wp.exe process of the container from your IDE.
- B. Open the container logs in Docker Desktop and review for errors.
- C. Right-click the container in Docker Desktop and select Debug.
- D. Stop the container and run a debug command from PowerShell.
Correct answer: A
Explanation
The correct answer is A because attaching to the w3wp.exe process allows for direct debugging of the application running in the container. Option B, while useful for reviewing logs, does not provide a direct debugging interface. Option C is not applicable as Docker Desktop does not offer a direct debug option through its GUI. Option D may help with general troubleshooting, but it does not facilitate direct debugging of the process.