Github Foundations · Free Practice Question Medium
Question 5
Bryan is a content creator and wants to offer students hands-on experience using codespaces. How can he share codespace links directly to a browser?
-
A
provide instructions for installing the GitHub CLI and using specific commands to initiate Codespaces creation
-
B
instruct students to manually create Codespaces by navigating to the GitHub repository's main page
-
C
share a deep link in the course materials that, when clicked, opens a pre-configured Codespace in the browser
-
D
ask students to clone the repository and set up Codespaces individually based on their preferences
Reveal correct answer
Correct answer: C
Explanation
You can make it easy for people to work on your repository in a codespace by providing a link to the codespace creation page. You can add a link to take people straight to a page for creating a codespace, with your choice of options preconfigured. Alternatively you can link to the "Resume codespace" page.
********************
WRONG ANSWERS:
Instructing students to manually create Codespaces by navigating to the GitHub repository's main page is not the most efficient way to provide hands-on experience.
Asking students to clone the repository and set up Codespaces individually introduces unnecessary complexity and manual steps.
Providing instructions for installing the GitHub CLI and using specific commands adds complexity and might be challenging for students, especially beginners.
A. Providing instructions for installing the GitHub CLI and using specific commands to initiate Codespaces creation is not the most user-friendly method for sharing Codespace links directly to a browser. This approach adds unnecessary complexity for students and may deter them from engaging with the hands-on experience.
B. Instructing students to manually create Codespaces by navigating to the GitHub repository's main page is not an efficient way to share Codespace links directly to a browser. This method requires additional steps and manual effort from students, which can be cumbersome and may discourage them from exploring the Codespace environment.
C. Sharing a deep link in the course materials that directly opens a pre-configured Codespace in the browser is the correct option. This method allows students to quickly access the Codespace without the need for manual setup, providing a seamless and efficient hands-on experience.
D. Asking students to clone the repository and set up Codespaces individually based on their preferences is not the most effective way to offer hands-on experience using Codespaces. This approach can be time-consuming and may lead to inconsistencies in the setup, hindering the learning experience.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
