QuestionQ97
DevSecOps Pipeline-Code StageElizabeth Moss works as a DevSecOps engineer for an IT company based in San Diego, California. Because of AWS's strong security and cost-effective services, her organization migrated all workloads from on-premises to AWS in 2017.
Elizabeth wants to prevent AWS keys from being committed into repositories, so she performed the following steps:
- Created a global
git-templatesdirectory from the command line - Inside it, created another directory named
hooks - Inside the
hooksdirectory, created a file namedpre-commit - Pasted into the
pre-commitfile a script designed to prevent AWS keys from being committed into repositories
She now needs to make sure that the pre-commit hook is executable.
Which command should Elizabeth run to make the pre-commit hook executable?
- A chmod a+e ~/.hooks/git-templates/pre-commit
- B chmod a+e ~/.git-templates/hooks/pre-commit
- C chmod a+x ~/.git-templates/hooks/pre-commit
- D chmod a+x ~/.hooks/git-templates/pre-commit
Community Discussion