Labor Day Flash Sale: 30% off Today Only!

10 hours, 36 minutes remaining!

AWS Certified Developer Associate DVA-C02 Practice Question

A development team stores its application source code in an AWS CodeCommit repository named MyRepo. The team must ensure that only senior developers can update the main branch (refs/heads/main). All other developers should submit their changes through pull requests that receive at least one approval from a senior developer before the changes can be merged.

Which approach will meet these requirements?

  • Enable the Auto-merge feature in CodeCommit and configure it to block direct pushes to the main branch.

  • Create a CloudWatch Events rule that invokes an AWS Lambda function to delete any commit made directly to the main branch.

  • Attach an IAM policy with a Deny effect on codecommit:GitPush and merge actions that applies only when codecommit:References equals refs/heads/main to the IAM group for non-senior developers.

  • Replicate the repository by using AWS CloudFormation StackSets and restrict write permissions on the replicated repository instead of the original repository.

AWS Certified Developer Associate DVA-C02
Deployment
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot