Github Foundations · Free Practice Question Medium

Question 8

Ramesh is working on a complex software project in a GitHub codespace, and he notices that the current machine type doesn't provide the necessary performance for development tasks. What steps should Ramesh take to reconfigure the codespace so it meets his requirements?

  • A

    clone the repository and create a new codespace from scratch with the desired machine type

  • B

    use the GitHub codespace settings to change the machine type according to his performance requirements

  • C

    open a support ticket with GitHub to request a machine type change for his codespace

  • D

    manually install a more powerful machine type on his local development machine

Reveal correct answer

Correct answer: B

Explanation

You can change the type of machine that's running your codespace so that you're using resources appropriate for the work you're doing. Typically, you can run your codespace on a choice of remote machine types. These machine types offer a choice of hardware specifications ranging from 2 cores to 32 cores, although the full range of machine types may not always be available. Each machine type has a different level of resources and a different billing tier.

********************

WRONG ANSWERS:

  • Manually installing a machine type on your local machine does not affect the configuration of a GitHub codespace.

  • Opening a support ticket is not the typical process for changing the machine type for a codespace. It can be done through self-service options.

  • Cloning the repository and creating a new codespace is not necessary for changing the machine type. The machine type change can be applied to the existing codespace.

https://docs.github.com/en/codespaces/customizing-your-codespace/changing-the-machine-type-for-your-codespace

A. Cloning the repository and creating a new codespace from scratch with the desired machine type is a time-consuming and unnecessary step. GitHub codespaces offer the flexibility to adjust the machine type within the existing environment, eliminating the need to start from scratch with a new codespace.

B. Using the GitHub codespace settings to change the machine type is the correct approach as it allows Ramesh to easily configure the codespace to meet his performance requirements without the need for manual installation or support ticket requests. This option provides a straightforward and efficient way to adjust the machine type according to his needs.

C. Opening a support ticket with GitHub to request a machine type change for his codespace is not necessary as GitHub provides users with the ability to adjust the machine type directly through the codespace settings. Ramesh can easily make the necessary changes himself without the need for external support.

D. Manually installing a more powerful machine type on his local development machine is not the correct approach to reconfigure the codespace. The machine type in a GitHub codespace is specific to the environment provided by GitHub, and changing the local development machine's specifications will not impact the performance of the codespace.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need