AWS Solutions Architect Associate Domain 1: Design Secure Architectures
60 free practice questions for Design Secure Architectures in the AWS Certified Solutions Architect – Associate (SAA-C03) exam. Try each question first, then open "Show answer" for the correct option and explanation.
Design Secure Architectures practice questions
-
Question 1. EC2 instances in a private subnet must access Amazon S3 without traversing the internet. What is the MOST cost-effective solution?
Show answer
Answer: A. Create a gateway VPC endpoint for S3 and update the route tables
Gateway endpoints for S3 and DynamoDB have no hourly charge and keep traffic on the AWS network.
-
Question 2. An application in a VPC must call AWS Secrets Manager privately without internet access. What should be used?
Show answer
Answer: C. An interface VPC endpoint (AWS PrivateLink) for Secrets Manager
Most services use interface endpoints. Gateway endpoints exist only for S3 and DynamoDB.
-
Question 3. A company wants only its CloudFront distribution to read objects from a private S3 bucket. What should it configure?
Show answer
Answer: D. Origin access control (OAC) with a bucket policy allowing the distribution
OAC signs requests from CloudFront, and the bucket policy denies all other access.
-
Question 4. A third-party SaaS vendor needs access to resources in a company's AWS account. What is the MOST secure approach?
Show answer
Answer: C. Create an IAM role the vendor can assume, with an external ID condition
Cross-account roles with an external ID prevent the confused deputy problem and avoid long-term keys.
-
Question 5. A company must ensure no account in its organization can disable AWS CloudTrail, even administrators. What should it use?
Show answer
Answer: B. An SCP denying CloudTrail stop and delete actions
SCPs set maximum permissions for all principals in member accounts, including administrators.
-
Question 6. Developers can create IAM roles for their Lambda functions, but those roles must never exceed a defined set of permissions. What should be used?
Show answer
Answer: C. IAM permissions boundaries
Permissions boundaries cap the maximum permissions an identity-based policy can grant.
-
Question 7. A bucket policy must deny any request that doesn't use HTTPS. Which condition key should be used?
Show answer
Answer: A. aws:SecureTransport set to false in a Deny statement
Denying requests where aws:SecureTransport is false enforces encryption in transit.
-
Question 8. Objects in S3 must be encrypted with keys the company controls, with key usage logged in CloudTrail. Which encryption option fits BEST?
Show answer
Answer: B. SSE-KMS with a customer managed key
SSE-KMS with customer managed keys gives control over key policies, rotation, and auditable usage.
-
Question 9. Compliance requires that financial records in S3 can't be deleted or overwritten for seven years, even by the root user. What should be used?
Show answer
Answer: B. S3 Object Lock in compliance mode
Compliance mode prevents deletion or overwrite by anyone until the retention period ends.
-
Question 10. An existing unencrypted Amazon RDS instance must be encrypted at rest. What is the correct approach?
Show answer
Answer: D. Snapshot it, copy the snapshot with encryption, and restore a new instance
RDS encryption must be set at creation, so you encrypt a snapshot copy and restore from it.
-
Question 11. A company wants all new EBS volumes in a Region to be encrypted automatically. What should it enable?
Show answer
Answer: A. EBS encryption by default for the Region
The account-level setting ensures all new volumes and snapshot copies are encrypted.
-
Question 12. Database credentials used by an application must be rotated automatically every 30 days. Which service should store them?
Show answer
Answer: C. AWS Secrets Manager
Secrets Manager provides built-in rotation integrations for RDS and other databases.
-
Question 13. A web application behind an Application Load Balancer is receiving SQL injection attempts. What should be added?
Show answer
Answer: C. AWS WAF with managed rule groups on the ALB
AWS WAF inspects HTTP requests and blocks common attacks such as SQL injection.
-
Question 14. A company needs to block traffic from specific countries to its CloudFront distribution. What is the SIMPLEST option?
Show answer
Answer: C. CloudFront geographic restrictions or a WAF geo-match rule
CloudFront geo restriction and WAF geo-match rules filter by viewer country.
-
Question 15. Mobile app users must get temporary AWS credentials to upload photos directly to S3. Which service should be used?
Show answer
Answer: A. Amazon Cognito identity pools
Identity pools exchange user identities for temporary, scoped AWS credentials.
-
Question 16. A company wants users to sign in to a web app with social identities and receive JWTs. Which feature should it use?
Show answer
Answer: A. Amazon Cognito user pools
User pools provide user directories, sign-in, and tokens; identity pools grant AWS credentials.
-
Question 17. Administrators must connect to private EC2 instances without opening SSH ports or managing bastion hosts. What should be used?
Show answer
Answer: D. AWS Systems Manager Session Manager
Session Manager provides audited shell access through the SSM agent with no inbound ports.
-
Question 18. Web servers should accept traffic only from the load balancer, even as load balancer IPs change. How should the security group be configured?
Show answer
Answer: A. Allow inbound from the load balancer's security group
Referencing a security group ID automatically covers all resources in that group.
-
Question 19. A company must block a specific malicious IP address from reaching instances in a subnet. Which control supports explicit deny rules?
Show answer
Answer: B. Network ACL
Security groups only support allow rules. NACLs support both allow and deny.
-
Question 20. A company needs a TLS certificate for a CloudFront distribution using a custom domain. Where must the ACM certificate be created?
Show answer
Answer: B. In the us-east-1 Region
CloudFront requires ACM certificates from US East (N. Virginia).
-
Question 21. A Lambda function needs to write items to one DynamoDB table. How should permissions be granted?
Show answer
Answer: A. An execution role allowing PutItem on that table's ARN
Execution roles provide temporary credentials scoped with least privilege.
-
Question 22. Traffic over an AWS Direct Connect connection must be encrypted. What is a common solution?
Show answer
Answer: C. Run an IPsec Site-to-Site VPN over Direct Connect
Direct Connect is private but not encrypted by default. IPsec VPN over it (or MACsec where supported) adds encryption.
-
Question 23. A company wants to detect compromised EC2 instances communicating with known malicious IP addresses. Which service fits?
Show answer
Answer: B. Amazon GuardDuty
GuardDuty analyzes VPC Flow Logs, DNS logs, and CloudTrail with threat intelligence.
-
Question 24. A security team needs to find S3 buckets containing credit card numbers across many accounts. Which service should it use?
Show answer
Answer: D. Amazon Macie
Macie discovers sensitive data such as financial and personal information in S3.
-
Question 25. A company wants one CloudTrail trail that logs all accounts in its organization to a central bucket. What should it create?
Show answer
Answer: A. An organization trail in the management account
Organization trails log all member accounts automatically, and members can't modify them.
-
Question 26. A presigned URL is useful when an application needs to:
Show answer
Answer: D. Grant temporary access to one S3 object without making it public
Presigned URLs embed time-limited authorization for a specific object operation.
-
Question 27. An application must enforce that S3 objects are encrypted with a specific KMS key when uploaded. What should be used?
Show answer
Answer: C. A bucket policy denying PutObject without the SSE-KMS key header
Bucket policy conditions on x-amz-server-side-encryption and the KMS key ID enforce encryption requirements.
-
Question 28. A company needs centralized, stateful traffic inspection with intrusion prevention for all VPC egress traffic. Which service fits?
Show answer
Answer: D. AWS Network Firewall
Network Firewall provides stateful inspection and IPS rules at the VPC level.
-
Question 29. A company must restrict all AWS usage to two approved Regions across its organization. What should it use?
Show answer
Answer: D. An SCP that denies actions outside the approved Regions
SCPs with the aws:RequestedRegion condition enforce Region restrictions organization-wide.
-
Question 30. A company wants to encrypt data in a DynamoDB table at rest. What is required?
Show answer
Answer: D. Nothing extra; DynamoDB encrypts all tables at rest by default
DynamoDB encrypts all data at rest, with AWS owned, AWS managed, or customer managed keys.
-
Question 31. A company wants to allow users from its corporate identity provider to access multiple AWS accounts with permission sets. Which service fits BEST?
Show answer
Answer: B. AWS IAM Identity Center
IAM Identity Center federates workforce identities and assigns permission sets across accounts.
-
Question 32. A KMS key must be usable by an IAM role in another AWS account. What must be configured?
Show answer
Answer: C. Allow it in the key policy and in the role's IAM policy
Cross-account KMS use requires permission in both the key policy and the caller's IAM policy.
-
Question 33. Encrypted data must be decryptable in two Regions using the same key material for a DR design. What KMS feature helps?
Show answer
Answer: A. Multi-Region keys
Multi-Region keys share key material across Regions, so ciphertext can be decrypted in either.
-
Question 34. A company must use FIPS 140-2 Level 3 validated HSMs under its exclusive control for key storage. Which service fits?
Show answer
Answer: A. AWS CloudHSM
CloudHSM provides single-tenant HSMs where the customer manages keys and users.
-
Question 35. An API built with Amazon API Gateway must allow only users authenticated by a Cognito user pool. What should be configured?
Show answer
Answer: D. A Cognito user pool authorizer on the API methods
API Gateway validates Cognito-issued tokens with a user pool authorizer.
-
Question 36. Which statement about security groups is correct?
Show answer
Answer: C. They're stateful: return traffic is automatically allowed
Security groups are stateful allow-lists attached to network interfaces.
-
Question 37. A company wants to block public access to all S3 buckets in an account, including future buckets. What should it enable?
Show answer
Answer: B. S3 Block Public Access at the account level
Account-level Block Public Access overrides bucket policies and ACLs that would grant public access.
-
Question 38. An application's security group must allow MySQL traffic only from the app tier. What is the BEST rule?
Show answer
Answer: D. Allow TCP 3306 from the app tier's security group
Security group references limit access to exactly the intended tier.
-
Question 39. A company wants to protect an internet-facing ALB against large DDoS attacks and get help from AWS experts during an attack. What should it use?
Show answer
Answer: C. AWS Shield Advanced
Shield Advanced adds enhanced detection, the Shield Response Team, and cost protection.
-
Question 40. A company must ensure an S3 bucket's objects can only be accessed from within its VPC. What should the bucket policy use?
Show answer
Answer: B. A condition on aws:SourceVpce for the VPC endpoint
Restricting to a VPC endpoint ID ensures requests originate through that endpoint.
-
Question 41. A security team wants to automatically check whether resources comply with rules such as 'EBS volumes must be encrypted'. Which service fits?
Show answer
Answer: C. AWS Config rules
Config evaluates resource configurations against managed or custom rules and can remediate.
-
Question 42. Which is the MOST secure way to give an on-premises application access to AWS APIs without long-term credentials?
Show answer
Answer: D. IAM Roles Anywhere using X.509 certificates
IAM Roles Anywhere issues temporary credentials to workloads outside AWS based on trusted certificates.
-
Question 43. A company needs to share an AMI with another account securely. What should it do?
Show answer
Answer: D. Share it with the account ID, plus the KMS key if encrypted
AMIs can be shared with specific accounts. Encrypted AMIs also need KMS key permissions.
-
Question 44. A company wants to centrally manage security groups and WAF rules across all accounts in its organization. Which service fits?
Show answer
Answer: B. AWS Firewall Manager
Firewall Manager enforces protection policies across accounts in AWS Organizations.
-
Question 45. Which approach protects an S3 bucket against accidental deletion of objects while still allowing updates?
Show answer
Answer: C. Enable versioning and require MFA Delete
Versioning keeps prior versions, and MFA Delete adds protection for permanent deletions.
-
Question 46. Which service provides a single dashboard of security findings with automated checks against the CIS AWS Foundations Benchmark?
Show answer
Answer: B. AWS Security Hub
Security Hub aggregates findings and runs standards-based checks.
-
Question 47. An EC2 instance needs to retrieve configuration values and encrypted secrets without rotation needs, at low cost. Which service fits?
Show answer
Answer: D. AWS Systems Manager Parameter Store with SecureString
Parameter Store stores configuration and KMS-encrypted SecureString values; standard parameters are free.
-
Question 48. A company requires that IAM users use MFA before they can terminate EC2 instances. How can this be enforced?
Show answer
Answer: C. An IAM condition requiring aws:MultiFactorAuthPresent
Policy conditions can require MFA for sensitive API actions.
-
Question 49. A solutions architect must isolate development and production workloads for security and billing. What is the recommended approach?
Show answer
Answer: A. Use separate AWS accounts managed with AWS Organizations
Accounts are the strongest isolation boundary, with Organizations for governance.
-
Question 50. Traffic between two VPCs in different accounts must stay private. Which option is simplest for two VPCs?
Show answer
Answer: A. VPC peering
VPC peering routes traffic privately between two VPCs, including across accounts and Regions.
-
Question 51. A company exposes a service in its VPC to hundreds of customer VPCs without exposing the entire network. What should it use?
Show answer
Answer: C. AWS PrivateLink with a Network Load Balancer-backed endpoint service
PrivateLink exposes a single service privately, without routing between whole networks.
-
Question 52. Which option encrypts data in transit between clients and an Application Load Balancer?
Show answer
Answer: A. An HTTPS listener with a certificate from ACM
TLS termination at the ALB uses ACM-managed certificates.
-
Question 53. Logs in a central S3 bucket must be protected from tampering by account administrators. What helps MOST?
Show answer
Answer: C. Store logs in a separate log-archive account with Object Lock
Separating logs into a restricted account and using Object Lock prevents deletion or alteration.
-
Question 54. Which Amazon RDS feature lets applications authenticate using IAM instead of database passwords?
Show answer
Answer: D. IAM database authentication
IAM authentication issues short-lived tokens for MySQL and PostgreSQL.
-
Question 55. A company must inspect traffic between VPCs attached to a Transit Gateway through a central inspection VPC. What does this design achieve?
Show answer
Answer: D. Centralized security inspection of east-west traffic
Routing through an inspection VPC applies consistent controls, such as Network Firewall, to inter-VPC traffic.
-
Question 56. What is the purpose of the 'aws:PrincipalOrgID' condition in resource policies?
Show answer
Answer: D. Limit access to principals in a specific AWS organization
It's a simple way to limit access to identities in your own organization.
-
Question 57. An application stores sensitive data in DynamoDB and must ensure only specific roles can decrypt it. What should be used?
Show answer
Answer: A. A customer managed KMS key with a restrictive key policy
Customer managed keys allow fine-grained control over who can use them to decrypt.
-
Question 58. Which service can automatically remediate noncompliant resources, such as re-enabling encryption on a bucket?
Show answer
Answer: D. AWS Config rules with SSM Automation remediation
Config rules can trigger Systems Manager Automation documents to remediate issues.
-
Question 59. A company wants to scan container images in Amazon ECR for vulnerabilities on push. What should it enable?
Show answer
Answer: A. Amazon Inspector enhanced scanning for ECR
Inspector scans container images for OS and language package vulnerabilities.
-
Question 60. An S3 bucket must accept uploads from a partner account without granting the partner access to other objects. What is the BEST approach?
Show answer
Answer: A. A bucket policy allowing the partner's principal PutObject on a specific prefix
Resource policies can grant narrowly scoped cross-account access.
AWS, Amazon Web Services, and AWS Certified are trademarks of Amazon.com, Inc. or its affiliates. These questions are original study material, not questions from the real exam.