GITHUB-FOUNDATIONS practice question 9 of 15

Which of the following steps are part of the Codespaces lifecycle? (Each answer presents a complete solution. Choose three.)

Full set: 75 questions
Answer options
A:

A. Commit

B:

B. Clone

C:

C. Rebuild

Correct answer
D:

D. Rollback

E:

E. Delete

Correct answer
F:

F. Create

Correct answer
G:

G. Install

Correct Answer:
C. C. Rebuild; E. E. Delete; F. F. Create
Explanation

GitHub designates specific management actions as the formal “lifecycle” of a Codespace. The GitHub Docs list those actions as: create, stop, restart, rebuild, and delete. Therefore, “Create” (F), “Rebuild” (C), and “Delete” (E) are lifecycle steps. “Commit,” “Clone,” “Rollback,” and “Install” are not mentioned in the lifecycle list— they are general Git or environment operations, not Codespaces-lifecycle events.

Why Incorrect

A. Commit – Git operation; not enumerated among Codespaces lifecycle actions.
B. Clone – Optional feature to copy a repo locally; not a lifecycle phase.
D. Rollback – No “rollback” action exists in Codespaces management commands.
G. Install – Refers to software setup inside the dev-container, not a lifecycle step.

References

1. GitHub Documentation – “About GitHub Codespaces,” section “Codespace lifecycle.” https://docs.github.com/en/codespaces/about-codespaces#codespace-lifecycle

2. GitHub Documentation – “Rebuilding a codespace,” Steps 1-3 (confirms rebuild is lifecycle action). https://docs.github.com/en/codespaces/customizing-your-codespace/rebuilding-a-codespace

3. GitHub Documentation – “Deleting a codespace,” Introduction paragraph (delete is lifecycle action). https://docs.github.com/en/codespaces/managing-your-codespaces/deleting-a-codespace

4. GitHub Documentation – “Creating a codespace,” Overview (create is lifecycle action). https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/creating-a-codespace

Scroll to Top