Aws With Devops Practice Questions & Answers
Practise Aws With Devops with 200 questions and 1 full-length mock exams on Exam Clue. Free sample questions with answers below.
Sample Aws With Devops Questions
Free sample questions with the correct answer highlighted.
Q1. Your teammate says Git is a distributed version control system. What does this mean in practice for your local machine?
- A. Your local clone contains only the latest snapshot
- B. Your local clone contains the full project history, just like the server ✓
- C. You must always be online to commit
- D. Only the server stores commit history
Q2. You have edited a file but have not yet run 'git add'. Where does this change currently live?
- A. Staging Area
- B. Working Directory ✓
- C. Local Repository
- D. Remote Repository
Q3. You start a brand new project folder and want to begin tracking it with Git. Which command do you run first?
- A. git start
- B. git new
- C. git init ✓
- D. git create
Q4. After running 'git init' in a folder, which hidden directory is created to store Git's metadata?
- A. .gitconfig
- B. .git ✓
- C. .gitignore
- D. .repo
Q5. You need an exact working copy of a teammate's GitHub repository, including its full commit history, on your laptop. What do you run?
- A. git fetch
- B. git pull
- C. git clone ✓
- D. git copy
Q6. The repository you are cloning is huge and you only need the latest snapshot to save time and disk space. Which option helps?
- A. git clone --mirror
- B. git clone --depth 1 ✓
- C. git clone --bare
- D. git clone --full
Q7. You modified three files but only want the first two included in your next commit. What should you run?
- A. git add .
- B. git add file1 file2 ✓
- C. git commit file1 file2
- D. git stage --all
Q8. You just staged a file with 'git add' but realize it shouldn't be part of this commit. How do you unstage it without losing the edits?
- A. git rm file
- B. git reset file ✓
- C. git checkout -- file
- D. git commit --undo file