AWS SAA-C03 practice question 1: Secure architectures
An application running on EC2 needs to read objects from one S3 bucket. What is the most secure way to grant access?
The options
- A. Attach an IAM role with a policy limited to that bucket to the instance.
- B. Store an administrator access key in the application code.
- C. Share the account root user's password with the application team.
- D. Make the bucket public so the application can read it.
Answer and why
The correct answer is A: Attach an IAM role with a policy limited to that bucket to the instance.
A. A role provides temporary credentials and a scoped policy applies least privilege.
B. Long-lived administrator keys in code are a serious exposure and give far more access than needed.
C. The root user should never be used for application access.
D. Public access lets anyone read the data.
What Secure architectures tests
Design secure architectures is the heaviest domain at 30%. It covers IAM, network isolation, encryption and data protection. The best answer uses least privilege and managed controls, and avoids long-lived credentials and public access.
Design secure architectures is 30% of the SAA-C03 exam. The exam has 65 questions in 130 minutes, so this question is a slice of the real mix, not a prediction of your result.
Try these next
Each one is a free question from the same practice test, with the answer and the reason for every option on its own page.
- A company needs private connectivity from instances in private subnets to S3 without sending traffic over the public internet and without paying for a NAT gateway for this traffic. What should they use?
- A team must encrypt data at rest in an S3 bucket and keep a record of who used the encryption key. Which option meets both needs?
- Several AWS accounts in an organization must be prevented from disabling CloudTrail, no matter what permissions their administrators have. Which feature does this?
- A web application behind an Application Load Balancer must be protected from common web exploits such as SQL injection and cross-site scripting. Which service should be attached?
Keep going
This is question 1 of 15 in the free AWS SAA-C03 practice test. If you missed it, say why in one sentence before you read on: the reason is what transfers to a differently worded question.