The AWS Certified Solutions Architect – Professional (SAP-C02) exam validates advanced skills in designing distributed systems on AWS. It is ideal for experienced architects looking to demonstrate their expertise.
What happens when you delete a CloudFormation stack that has a 'DeletionPolicy' attribute set to 'Retain'?
AAll resources are deleted
BResources are retained
COnly IAM roles are retained
DStack remains intact with resources
Explanation
Resources marked with 'Retain' are not deleted; other options incorrectly assume different behaviors during stack deletion.
Q202
You are setting up a VPC peering connection between two VPCs. Which of the following must be true for it to be established?
ABoth VPCs must have non-overlapping CIDR blocks.
BBoth VPCs must be in the same region.
CBoth VPCs must use the same routing table.
DBoth VPCs must have the same security group.
Explanation
VPC peering requires non-overlapping CIDR blocks, while region, routing tables, and security groups can differ.
Q203
A company wants to optimize its Amazon S3 costs and has objects that are infrequently accessed. Which storage class should they use?
AS3 Standard
BS3 Intelligent-Tiering
CS3 Glacier Deep Archive
DS3 Standard-IA
Explanation
S3 Standard-IA is designed for infrequent access, providing lower costs compared to Standard.
Q204
What happens when you mistakenly assign an IAM policy that denies all permissions to a user who also has an explicit allow policy for S3 access?
AUser can access S3 without restrictions.
BUser cannot access S3 at all.
CUser has conditional access to S3.
DUser's access is limited to certain objects.
Explanation
In AWS IAM, explicit deny policies take precedence over allow policies, preventing access completely.
Q205
Which AWS service can automatically scale EC2 instances based on demand?
AElastic Load Balancer
BAuto Scaling
CAmazon CloudFront
DAWS Lambda
Explanation
Auto Scaling adjusts EC2 instances based on demand, while others do not.
Q206
A company needs to provide users with temporary access to S3 buckets. Which service should they implement?
AIAM roles
BS3 Access Points
CAWS Lake Formation
DAWS Config
Explanation
IAM roles allow temporary access, while others focus on different functionalities.
Q207
You are configuring a VPC with public and private subnets. What happens if you assign an Elastic IP to an instance in a private subnet?
AInstance can be accessed from the internet
BInstance cannot be accessed externally
CElastic IP is released automatically
DVPC routing fails
Explanation
Instances in private subnets cannot be accessed unless through a NAT Gateway, making the EIP pointless.
Q208
Which service can automatically scale a database based on load?
AAmazon RDS
BAmazon S3
CAmazon CloudFront
DAWS Lambda
Explanation
Amazon RDS can enable read replicas to scale databases based on load, while others do not focus on database scaling.
Q209
A company needs to ensure their EC2 instances can only be accessed over SSH from specific IP addresses. Which AWS feature should they use?
AEC2 Instance Metadata
BSecurity Groups
CNetwork ACLs
DIAM Roles
Explanation
Security Groups control inbound and outbound traffic at the instance level, while the others do not primarily restrict access based on IP addresses.
Q210
What happens when an organization does not configure a lifecycle policy for their S3 bucket?
AData is deleted automatically
BData cannot be uploaded
CData remains in the bucket indefinitely
DBucket is inaccessible
Explanation
Without a lifecycle policy, objects remain in S3 until manually deleted, unlike others which suggest automatic changes.